SqlContainer
Manages a SQL Container within a Cosmos DB Account.
Create a SqlContainer Resource
new SqlContainer(name: string, args: SqlContainerArgs, opts?: CustomResourceOptions);def SqlContainer(resource_name, opts=None, account_name=None, database_name=None, default_ttl=None, name=None, partition_key_path=None, resource_group_name=None, throughput=None, unique_keys=None, __props__=None);func NewSqlContainer(ctx *Context, name string, args SqlContainerArgs, opts ...ResourceOption) (*SqlContainer, error)public SqlContainer(string name, SqlContainerArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args SqlContainerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SqlContainerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SqlContainerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
SqlContainer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The SqlContainer resource accepts the following input properties:
- Account
Name string The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
- Database
Name string The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which the Cosmos DB SQL Database is created. Changing this forces a new resource to be created.
- Default
Ttl int The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to
-1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some numbern– items will expirenseconds after their last modified time.- Name string
Specifies the name of the Cosmos DB SQL Database. Changing this forces a new resource to be created.
- Partition
Key stringPath Define a partition key. Changing this forces a new resource to be created.
- Throughput int
The throughput of SQL container (RU/s). Must be set in increments of
100. The minimum value is400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.- Unique
Keys List<SqlContainer Unique Key Args> One or more
unique_keyblocks as defined below. Changing this forces a new resource to be created.
- Account
Name string The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
- Database
Name string The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which the Cosmos DB SQL Database is created. Changing this forces a new resource to be created.
- Default
Ttl int The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to
-1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some numbern– items will expirenseconds after their last modified time.- Name string
Specifies the name of the Cosmos DB SQL Database. Changing this forces a new resource to be created.
- Partition
Key stringPath Define a partition key. Changing this forces a new resource to be created.
- Throughput int
The throughput of SQL container (RU/s). Must be set in increments of
100. The minimum value is400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.- Unique
Keys []SqlContainer Unique Key One or more
unique_keyblocks as defined below. Changing this forces a new resource to be created.
- account
Name string The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
- database
Name string The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group in which the Cosmos DB SQL Database is created. Changing this forces a new resource to be created.
- default
Ttl number The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to
-1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some numbern– items will expirenseconds after their last modified time.- name string
Specifies the name of the Cosmos DB SQL Database. Changing this forces a new resource to be created.
- partition
Key stringPath Define a partition key. Changing this forces a new resource to be created.
- throughput number
The throughput of SQL container (RU/s). Must be set in increments of
100. The minimum value is400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.- unique
Keys SqlContainer Unique Key[] One or more
unique_keyblocks as defined below. Changing this forces a new resource to be created.
- account_
name str The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
- database_
name str The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group in which the Cosmos DB SQL Database is created. Changing this forces a new resource to be created.
- default_
ttl float The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to
-1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some numbern– items will expirenseconds after their last modified time.- name str
Specifies the name of the Cosmos DB SQL Database. Changing this forces a new resource to be created.
- partition_
key_ strpath Define a partition key. Changing this forces a new resource to be created.
- throughput float
The throughput of SQL container (RU/s). Must be set in increments of
100. The minimum value is400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.- unique_
keys List[SqlContainer Unique Key] One or more
unique_keyblocks as defined below. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the SqlContainer resource produces the following output properties:
Look up an Existing SqlContainer Resource
Get an existing SqlContainer 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?: SqlContainerState, opts?: CustomResourceOptions): SqlContainerstatic get(resource_name, id, opts=None, account_name=None, database_name=None, default_ttl=None, name=None, partition_key_path=None, resource_group_name=None, throughput=None, unique_keys=None, __props__=None);func GetSqlContainer(ctx *Context, name string, id IDInput, state *SqlContainerState, opts ...ResourceOption) (*SqlContainer, error)public static SqlContainer Get(string name, Input<string> id, SqlContainerState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Account
Name string The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
- Database
Name string The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
- Default
Ttl int The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to
-1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some numbern– items will expirenseconds after their last modified time.- Name string
Specifies the name of the Cosmos DB SQL Database. Changing this forces a new resource to be created.
- Partition
Key stringPath Define a partition key. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which the Cosmos DB SQL Database is created. Changing this forces a new resource to be created.
- Throughput int
The throughput of SQL container (RU/s). Must be set in increments of
100. The minimum value is400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.- Unique
Keys List<SqlContainer Unique Key Args> One or more
unique_keyblocks as defined below. Changing this forces a new resource to be created.
- Account
Name string The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
- Database
Name string The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
- Default
Ttl int The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to
-1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some numbern– items will expirenseconds after their last modified time.- Name string
Specifies the name of the Cosmos DB SQL Database. Changing this forces a new resource to be created.
- Partition
Key stringPath Define a partition key. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which the Cosmos DB SQL Database is created. Changing this forces a new resource to be created.
- Throughput int
The throughput of SQL container (RU/s). Must be set in increments of
100. The minimum value is400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.- Unique
Keys []SqlContainer Unique Key One or more
unique_keyblocks as defined below. Changing this forces a new resource to be created.
- account
Name string The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
- database
Name string The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
- default
Ttl number The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to
-1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some numbern– items will expirenseconds after their last modified time.- name string
Specifies the name of the Cosmos DB SQL Database. Changing this forces a new resource to be created.
- partition
Key stringPath Define a partition key. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group in which the Cosmos DB SQL Database is created. Changing this forces a new resource to be created.
- throughput number
The throughput of SQL container (RU/s). Must be set in increments of
100. The minimum value is400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.- unique
Keys SqlContainer Unique Key[] One or more
unique_keyblocks as defined below. Changing this forces a new resource to be created.
- account_
name str The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
- database_
name str The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
- default_
ttl float The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to
-1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some numbern– items will expirenseconds after their last modified time.- name str
Specifies the name of the Cosmos DB SQL Database. Changing this forces a new resource to be created.
- partition_
key_ strpath Define a partition key. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group in which the Cosmos DB SQL Database is created. Changing this forces a new resource to be created.
- throughput float
The throughput of SQL container (RU/s). Must be set in increments of
100. The minimum value is400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.- unique_
keys List[SqlContainer Unique Key] One or more
unique_keyblocks as defined below. Changing this forces a new resource to be created.
Supporting Types
SqlContainerUniqueKey
- Paths List<string>
A list of paths to use for this unique key.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.