aiven.InfluxdbDatabase
Explore with Pulumi AI
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.
Constructor 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The InfluxdbDatabase resource accepts the following input properties:
- Database
Name string - The name of the service database. Changing this property forces recreation of the resource.
- Project string
- The name of 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 string - 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
- Database
Name string - The name of the service database. Changing this property forces recreation of the resource.
- Project string
- The name of 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 string - 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
- database
Name String - The name of the service database. Changing this property forces recreation of the resource.
- project String
- The name of 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 String - 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 Boolean
- database
Name string - The name of the service database. Changing this property forces recreation of the resource.
- project string
- The name of 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 string - 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 boolean
- database_
name str - The name of the service database. Changing this property forces recreation of the resource.
- project str
- The name of 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 - 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
- database
Name String - The name of the service database. Changing this property forces recreation of the resource.
- project String
- The name of 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 String - 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 Boolean
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.
- Database
Name string - The name of the service database. Changing this property forces recreation of the resource.
- Project string
- The name of 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 string - 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
- Database
Name string - The name of the service database. Changing this property forces recreation of the resource.
- Project string
- The name of 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 string - 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
- database
Name String - The name of the service database. Changing this property forces recreation of the resource.
- project String
- The name of 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 String - 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 Boolean
- database
Name string - The name of the service database. Changing this property forces recreation of the resource.
- project string
- The name of 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 string - 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 boolean
- database_
name str - The name of the service database. Changing this property forces recreation of the resource.
- project str
- The name of 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 - 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
- database
Name String - The name of the service database. Changing this property forces recreation of the resource.
- project String
- The name of 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 String - 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 Boolean
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aiven
Terraform Provider.