1. Packages
  2. Aiven
  3. API Docs
  4. InfluxdbDatabase
Aiven v6.13.0 published on Monday, Mar 25, 2024 by Pulumi

aiven.InfluxdbDatabase

Explore with Pulumi AI

aiven logo
Aiven v6.13.0 published on Monday, Mar 25, 2024 by Pulumi

    Create InfluxdbDatabase Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new InfluxdbDatabase(name: string, args: InfluxdbDatabaseArgs, opts?: CustomResourceOptions);
    @overload
    def InfluxdbDatabase(resource_name: str,
                         args: InfluxdbDatabaseArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def InfluxdbDatabase(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         database_name: Optional[str] = None,
                         project: Optional[str] = None,
                         service_name: Optional[str] = None,
                         termination_protection: Optional[bool] = None)
    func NewInfluxdbDatabase(ctx *Context, name string, args InfluxdbDatabaseArgs, opts ...ResourceOption) (*InfluxdbDatabase, error)
    public InfluxdbDatabase(string name, InfluxdbDatabaseArgs args, CustomResourceOptions? opts = null)
    public InfluxdbDatabase(String name, InfluxdbDatabaseArgs args)
    public InfluxdbDatabase(String name, InfluxdbDatabaseArgs args, CustomResourceOptions options)
    
    type: aiven:InfluxdbDatabase
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args InfluxdbDatabaseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args InfluxdbDatabaseArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args InfluxdbDatabaseArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InfluxdbDatabaseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InfluxdbDatabaseArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var influxdbDatabaseResource = new Aiven.InfluxdbDatabase("influxdbDatabaseResource", new()
    {
        DatabaseName = "string",
        Project = "string",
        ServiceName = "string",
        TerminationProtection = false,
    });
    
    example, err := aiven.NewInfluxdbDatabase(ctx, "influxdbDatabaseResource", &aiven.InfluxdbDatabaseArgs{
    	DatabaseName:          pulumi.String("string"),
    	Project:               pulumi.String("string"),
    	ServiceName:           pulumi.String("string"),
    	TerminationProtection: pulumi.Bool(false),
    })
    
    var influxdbDatabaseResource = new InfluxdbDatabase("influxdbDatabaseResource", InfluxdbDatabaseArgs.builder()        
        .databaseName("string")
        .project("string")
        .serviceName("string")
        .terminationProtection(false)
        .build());
    
    influxdb_database_resource = aiven.InfluxdbDatabase("influxdbDatabaseResource",
        database_name="string",
        project="string",
        service_name="string",
        termination_protection=False)
    
    const influxdbDatabaseResource = new aiven.InfluxdbDatabase("influxdbDatabaseResource", {
        databaseName: "string",
        project: "string",
        serviceName: "string",
        terminationProtection: false,
    });
    
    type: aiven:InfluxdbDatabase
    properties:
        databaseName: string
        project: string
        serviceName: string
        terminationProtection: false
    

    InfluxdbDatabase Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The InfluxdbDatabase resource accepts the following input properties:

    DatabaseName string
    The name of the service database. Changing this property forces recreation of the resource.
    Project string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    ServiceName string
    Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    TerminationProtection bool
    It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is recommended to enable this for any production databases containing critical data. The default value is false.
    DatabaseName string
    The name of the service database. Changing this property forces recreation of the resource.
    Project string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    ServiceName string
    Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    TerminationProtection bool
    It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is recommended to enable this for any production databases containing critical data. The default value is false.
    databaseName String
    The name of the service database. Changing this property forces recreation of the resource.
    project String
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    serviceName String
    Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    terminationProtection Boolean
    It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is recommended to enable this for any production databases containing critical data. The default value is false.
    databaseName string
    The name of the service database. Changing this property forces recreation of the resource.
    project string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    serviceName string
    Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    terminationProtection boolean
    It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is recommended to enable this for any production databases containing critical data. The default value is false.
    database_name str
    The name of the service database. Changing this property forces recreation of the resource.
    project str
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    service_name str
    Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    termination_protection bool
    It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is recommended to enable this for any production databases containing critical data. The default value is false.
    databaseName String
    The name of the service database. Changing this property forces recreation of the resource.
    project String
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    serviceName String
    Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    terminationProtection Boolean
    It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is recommended to enable this for any production databases containing critical data. The default value is false.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the InfluxdbDatabase resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing InfluxdbDatabase Resource

    Get an existing InfluxdbDatabase resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: InfluxdbDatabaseState, opts?: CustomResourceOptions): InfluxdbDatabase
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            database_name: Optional[str] = None,
            project: Optional[str] = None,
            service_name: Optional[str] = None,
            termination_protection: Optional[bool] = None) -> InfluxdbDatabase
    func GetInfluxdbDatabase(ctx *Context, name string, id IDInput, state *InfluxdbDatabaseState, opts ...ResourceOption) (*InfluxdbDatabase, error)
    public static InfluxdbDatabase Get(string name, Input<string> id, InfluxdbDatabaseState? state, CustomResourceOptions? opts = null)
    public static InfluxdbDatabase get(String name, Output<String> id, InfluxdbDatabaseState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DatabaseName string
    The name of the service database. Changing this property forces recreation of the resource.
    Project string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    ServiceName string
    Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    TerminationProtection bool
    It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is recommended to enable this for any production databases containing critical data. The default value is false.
    DatabaseName string
    The name of the service database. Changing this property forces recreation of the resource.
    Project string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    ServiceName string
    Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    TerminationProtection bool
    It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is recommended to enable this for any production databases containing critical data. The default value is false.
    databaseName String
    The name of the service database. Changing this property forces recreation of the resource.
    project String
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    serviceName String
    Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    terminationProtection Boolean
    It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is recommended to enable this for any production databases containing critical data. The default value is false.
    databaseName string
    The name of the service database. Changing this property forces recreation of the resource.
    project string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    serviceName string
    Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    terminationProtection boolean
    It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is recommended to enable this for any production databases containing critical data. The default value is false.
    database_name str
    The name of the service database. Changing this property forces recreation of the resource.
    project str
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    service_name str
    Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    termination_protection bool
    It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is recommended to enable this for any production databases containing critical data. The default value is false.
    databaseName String
    The name of the service database. Changing this property forces recreation of the resource.
    project String
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    serviceName String
    Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    terminationProtection Boolean
    It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is recommended to enable this for any production databases containing critical data. The default value is false.

    Package Details

    Repository
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo
    Aiven v6.13.0 published on Monday, Mar 25, 2024 by Pulumi