Account
Manages a CosmosDB (formally DocumentDB) Account.
Create a Account Resource
new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);def Account(resource_name, opts=None, capabilities=None, consistency_policy=None, enable_automatic_failover=None, enable_multiple_write_locations=None, geo_locations=None, ip_range_filter=None, is_virtual_network_filter_enabled=None, kind=None, location=None, name=None, offer_type=None, resource_group_name=None, tags=None, virtual_network_rules=None, __props__=None);func NewAccount(ctx *Context, name string, args AccountArgs, opts ...ResourceOption) (*Account, error)public Account(string name, AccountArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AccountArgs
- 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 AccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Account Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Account resource accepts the following input properties:
- Consistency
Policy AccountConsistency Policy Args Specifies a
consistency_policyresource, used to define the consistency policy for this CosmosDB account.- Geo
Locations List<AccountGeo Location Args> Specifies a
geo_locationresource, used to define where data should be replicated with thefailover_priority0 specifying the primary location.- Offer
Type string Specifies the Offer Type to use for this CosmosDB Account - currently this can only be set to
Standard.- Resource
Group stringName The name of the resource group in which the CosmosDB Account is created. Changing this forces a new resource to be created.
- Capabilities
List<Account
Capability Args> The capabilities which should be enabled for this Cosmos DB account. Possible values are
EnableAggregationPipeline,EnableCassandra,EnableGremlin,EnableTable,MongoDBv3.4, andmongoEnableDocLevelTTL.- Enable
Automatic boolFailover Enable automatic fail over for this Cosmos DB account.
- Enable
Multiple boolWrite Locations Enable multi-master support for this Cosmos DB account.
- Ip
Range stringFilter CosmosDB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IP’s for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces.
- Is
Virtual boolNetwork Filter Enabled Enables virtual network filtering for this Cosmos DB account.
- Kind string
Specifies the Kind of CosmosDB to create - possible values are
GlobalDocumentDBandMongoDB. Defaults toGlobalDocumentDB. Changing this forces a new resource to be created.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Virtual
Network List<AccountRules Virtual Network Rule Args> Specifies a
virtual_network_rulesresource, used to define which subnets are allowed to access this CosmosDB account.
- Consistency
Policy AccountConsistency Policy Specifies a
consistency_policyresource, used to define the consistency policy for this CosmosDB account.- Geo
Locations []AccountGeo Location Specifies a
geo_locationresource, used to define where data should be replicated with thefailover_priority0 specifying the primary location.- Offer
Type string Specifies the Offer Type to use for this CosmosDB Account - currently this can only be set to
Standard.- Resource
Group stringName The name of the resource group in which the CosmosDB Account is created. Changing this forces a new resource to be created.
- Capabilities
[]Account
Capability The capabilities which should be enabled for this Cosmos DB account. Possible values are
EnableAggregationPipeline,EnableCassandra,EnableGremlin,EnableTable,MongoDBv3.4, andmongoEnableDocLevelTTL.- Enable
Automatic boolFailover Enable automatic fail over for this Cosmos DB account.
- Enable
Multiple boolWrite Locations Enable multi-master support for this Cosmos DB account.
- Ip
Range stringFilter CosmosDB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IP’s for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces.
- Is
Virtual boolNetwork Filter Enabled Enables virtual network filtering for this Cosmos DB account.
- Kind string
Specifies the Kind of CosmosDB to create - possible values are
GlobalDocumentDBandMongoDB. Defaults toGlobalDocumentDB. Changing this forces a new resource to be created.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
- map[string]string
A mapping of tags to assign to the resource.
- Virtual
Network []AccountRules Virtual Network Rule Specifies a
virtual_network_rulesresource, used to define which subnets are allowed to access this CosmosDB account.
- consistency
Policy AccountConsistency Policy Specifies a
consistency_policyresource, used to define the consistency policy for this CosmosDB account.- geo
Locations AccountGeo Location[] Specifies a
geo_locationresource, used to define where data should be replicated with thefailover_priority0 specifying the primary location.- offer
Type string Specifies the Offer Type to use for this CosmosDB Account - currently this can only be set to
Standard.- resource
Group stringName The name of the resource group in which the CosmosDB Account is created. Changing this forces a new resource to be created.
- capabilities
Account
Capability[] The capabilities which should be enabled for this Cosmos DB account. Possible values are
EnableAggregationPipeline,EnableCassandra,EnableGremlin,EnableTable,MongoDBv3.4, andmongoEnableDocLevelTTL.- enable
Automatic booleanFailover Enable automatic fail over for this Cosmos DB account.
- enable
Multiple booleanWrite Locations Enable multi-master support for this Cosmos DB account.
- ip
Range stringFilter CosmosDB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IP’s for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces.
- is
Virtual booleanNetwork Filter Enabled Enables virtual network filtering for this Cosmos DB account.
- kind string
Specifies the Kind of CosmosDB to create - possible values are
GlobalDocumentDBandMongoDB. Defaults toGlobalDocumentDB. Changing this forces a new resource to be created.- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- virtual
Network AccountRules Virtual Network Rule[] Specifies a
virtual_network_rulesresource, used to define which subnets are allowed to access this CosmosDB account.
- consistency_
policy Dict[AccountConsistency Policy] Specifies a
consistency_policyresource, used to define the consistency policy for this CosmosDB account.- geo_
locations List[AccountGeo Location] Specifies a
geo_locationresource, used to define where data should be replicated with thefailover_priority0 specifying the primary location.- offer_
type str Specifies the Offer Type to use for this CosmosDB Account - currently this can only be set to
Standard.- resource_
group_ strname The name of the resource group in which the CosmosDB Account is created. Changing this forces a new resource to be created.
- capabilities
List[Account
Capability] The capabilities which should be enabled for this Cosmos DB account. Possible values are
EnableAggregationPipeline,EnableCassandra,EnableGremlin,EnableTable,MongoDBv3.4, andmongoEnableDocLevelTTL.- enable_
automatic_ boolfailover Enable automatic fail over for this Cosmos DB account.
- enable_
multiple_ boolwrite_ locations Enable multi-master support for this Cosmos DB account.
- ip_
range_ strfilter CosmosDB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IP’s for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces.
- is_
virtual_ boolnetwork_ filter_ enabled Enables virtual network filtering for this Cosmos DB account.
- kind str
Specifies the Kind of CosmosDB to create - possible values are
GlobalDocumentDBandMongoDB. Defaults toGlobalDocumentDB. Changing this forces a new resource to be created.- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
- Dict[str, str]
A mapping of tags to assign to the resource.
- virtual_
network_ List[Accountrules Virtual Network Rule] Specifies a
virtual_network_rulesresource, used to define which subnets are allowed to access this CosmosDB account.
Outputs
All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:
- Connection
Strings List<string> A list of connection strings available for this CosmosDB account.
- Endpoint string
The endpoint used to connect to the CosmosDB account.
- Id string
- The provider-assigned unique ID for this managed resource.
- Primary
Master stringKey The Primary master key for the CosmosDB Account.
- Primary
Readonly stringMaster Key The Primary read-only master Key for the CosmosDB Account.
- Read
Endpoints List<string> A list of read endpoints available for this CosmosDB account.
- Secondary
Master stringKey The Secondary master key for the CosmosDB Account.
- Secondary
Readonly stringMaster Key The Secondary read-only master key for the CosmosDB Account.
- Write
Endpoints List<string> A list of write endpoints available for this CosmosDB account.
- Connection
Strings []string A list of connection strings available for this CosmosDB account.
- Endpoint string
The endpoint used to connect to the CosmosDB account.
- Id string
- The provider-assigned unique ID for this managed resource.
- Primary
Master stringKey The Primary master key for the CosmosDB Account.
- Primary
Readonly stringMaster Key The Primary read-only master Key for the CosmosDB Account.
- Read
Endpoints []string A list of read endpoints available for this CosmosDB account.
- Secondary
Master stringKey The Secondary master key for the CosmosDB Account.
- Secondary
Readonly stringMaster Key The Secondary read-only master key for the CosmosDB Account.
- Write
Endpoints []string A list of write endpoints available for this CosmosDB account.
- connection
Strings string[] A list of connection strings available for this CosmosDB account.
- endpoint string
The endpoint used to connect to the CosmosDB account.
- id string
- The provider-assigned unique ID for this managed resource.
- primary
Master stringKey The Primary master key for the CosmosDB Account.
- primary
Readonly stringMaster Key The Primary read-only master Key for the CosmosDB Account.
- read
Endpoints string[] A list of read endpoints available for this CosmosDB account.
- secondary
Master stringKey The Secondary master key for the CosmosDB Account.
- secondary
Readonly stringMaster Key The Secondary read-only master key for the CosmosDB Account.
- write
Endpoints string[] A list of write endpoints available for this CosmosDB account.
- connection_
strings List[str] A list of connection strings available for this CosmosDB account.
- endpoint str
The endpoint used to connect to the CosmosDB account.
- id str
- The provider-assigned unique ID for this managed resource.
- primary_
master_ strkey The Primary master key for the CosmosDB Account.
- primary_
readonly_ strmaster_ key The Primary read-only master Key for the CosmosDB Account.
- read_
endpoints List[str] A list of read endpoints available for this CosmosDB account.
- secondary_
master_ strkey The Secondary master key for the CosmosDB Account.
- secondary_
readonly_ strmaster_ key The Secondary read-only master key for the CosmosDB Account.
- write_
endpoints List[str] A list of write endpoints available for this CosmosDB account.
Look up an Existing Account Resource
Get an existing Account 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?: AccountState, opts?: CustomResourceOptions): Accountstatic get(resource_name, id, opts=None, capabilities=None, connection_strings=None, consistency_policy=None, enable_automatic_failover=None, enable_multiple_write_locations=None, endpoint=None, geo_locations=None, ip_range_filter=None, is_virtual_network_filter_enabled=None, kind=None, location=None, name=None, offer_type=None, primary_master_key=None, primary_readonly_master_key=None, read_endpoints=None, resource_group_name=None, secondary_master_key=None, secondary_readonly_master_key=None, tags=None, virtual_network_rules=None, write_endpoints=None, __props__=None);func GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)public static Account Get(string name, Input<string> id, AccountState? 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:
- Capabilities
List<Account
Capability Args> The capabilities which should be enabled for this Cosmos DB account. Possible values are
EnableAggregationPipeline,EnableCassandra,EnableGremlin,EnableTable,MongoDBv3.4, andmongoEnableDocLevelTTL.- Connection
Strings List<string> A list of connection strings available for this CosmosDB account.
- Consistency
Policy AccountConsistency Policy Args Specifies a
consistency_policyresource, used to define the consistency policy for this CosmosDB account.- Enable
Automatic boolFailover Enable automatic fail over for this Cosmos DB account.
- Enable
Multiple boolWrite Locations Enable multi-master support for this Cosmos DB account.
- Endpoint string
The endpoint used to connect to the CosmosDB account.
- Geo
Locations List<AccountGeo Location Args> Specifies a
geo_locationresource, used to define where data should be replicated with thefailover_priority0 specifying the primary location.- Ip
Range stringFilter CosmosDB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IP’s for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces.
- Is
Virtual boolNetwork Filter Enabled Enables virtual network filtering for this Cosmos DB account.
- Kind string
Specifies the Kind of CosmosDB to create - possible values are
GlobalDocumentDBandMongoDB. Defaults toGlobalDocumentDB. Changing this forces a new resource to be created.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
- Offer
Type string Specifies the Offer Type to use for this CosmosDB Account - currently this can only be set to
Standard.- Primary
Master stringKey The Primary master key for the CosmosDB Account.
- Primary
Readonly stringMaster Key The Primary read-only master Key for the CosmosDB Account.
- Read
Endpoints List<string> A list of read endpoints available for this CosmosDB account.
- Resource
Group stringName The name of the resource group in which the CosmosDB Account is created. Changing this forces a new resource to be created.
- Secondary
Master stringKey The Secondary master key for the CosmosDB Account.
- Secondary
Readonly stringMaster Key The Secondary read-only master key for the CosmosDB Account.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Virtual
Network List<AccountRules Virtual Network Rule Args> Specifies a
virtual_network_rulesresource, used to define which subnets are allowed to access this CosmosDB account.- Write
Endpoints List<string> A list of write endpoints available for this CosmosDB account.
- Capabilities
[]Account
Capability The capabilities which should be enabled for this Cosmos DB account. Possible values are
EnableAggregationPipeline,EnableCassandra,EnableGremlin,EnableTable,MongoDBv3.4, andmongoEnableDocLevelTTL.- Connection
Strings []string A list of connection strings available for this CosmosDB account.
- Consistency
Policy AccountConsistency Policy Specifies a
consistency_policyresource, used to define the consistency policy for this CosmosDB account.- Enable
Automatic boolFailover Enable automatic fail over for this Cosmos DB account.
- Enable
Multiple boolWrite Locations Enable multi-master support for this Cosmos DB account.
- Endpoint string
The endpoint used to connect to the CosmosDB account.
- Geo
Locations []AccountGeo Location Specifies a
geo_locationresource, used to define where data should be replicated with thefailover_priority0 specifying the primary location.- Ip
Range stringFilter CosmosDB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IP’s for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces.
- Is
Virtual boolNetwork Filter Enabled Enables virtual network filtering for this Cosmos DB account.
- Kind string
Specifies the Kind of CosmosDB to create - possible values are
GlobalDocumentDBandMongoDB. Defaults toGlobalDocumentDB. Changing this forces a new resource to be created.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
- Offer
Type string Specifies the Offer Type to use for this CosmosDB Account - currently this can only be set to
Standard.- Primary
Master stringKey The Primary master key for the CosmosDB Account.
- Primary
Readonly stringMaster Key The Primary read-only master Key for the CosmosDB Account.
- Read
Endpoints []string A list of read endpoints available for this CosmosDB account.
- Resource
Group stringName The name of the resource group in which the CosmosDB Account is created. Changing this forces a new resource to be created.
- Secondary
Master stringKey The Secondary master key for the CosmosDB Account.
- Secondary
Readonly stringMaster Key The Secondary read-only master key for the CosmosDB Account.
- map[string]string
A mapping of tags to assign to the resource.
- Virtual
Network []AccountRules Virtual Network Rule Specifies a
virtual_network_rulesresource, used to define which subnets are allowed to access this CosmosDB account.- Write
Endpoints []string A list of write endpoints available for this CosmosDB account.
- capabilities
Account
Capability[] The capabilities which should be enabled for this Cosmos DB account. Possible values are
EnableAggregationPipeline,EnableCassandra,EnableGremlin,EnableTable,MongoDBv3.4, andmongoEnableDocLevelTTL.- connection
Strings string[] A list of connection strings available for this CosmosDB account.
- consistency
Policy AccountConsistency Policy Specifies a
consistency_policyresource, used to define the consistency policy for this CosmosDB account.- enable
Automatic booleanFailover Enable automatic fail over for this Cosmos DB account.
- enable
Multiple booleanWrite Locations Enable multi-master support for this Cosmos DB account.
- endpoint string
The endpoint used to connect to the CosmosDB account.
- geo
Locations AccountGeo Location[] Specifies a
geo_locationresource, used to define where data should be replicated with thefailover_priority0 specifying the primary location.- ip
Range stringFilter CosmosDB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IP’s for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces.
- is
Virtual booleanNetwork Filter Enabled Enables virtual network filtering for this Cosmos DB account.
- kind string
Specifies the Kind of CosmosDB to create - possible values are
GlobalDocumentDBandMongoDB. Defaults toGlobalDocumentDB. Changing this forces a new resource to be created.- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
- offer
Type string Specifies the Offer Type to use for this CosmosDB Account - currently this can only be set to
Standard.- primary
Master stringKey The Primary master key for the CosmosDB Account.
- primary
Readonly stringMaster Key The Primary read-only master Key for the CosmosDB Account.
- read
Endpoints string[] A list of read endpoints available for this CosmosDB account.
- resource
Group stringName The name of the resource group in which the CosmosDB Account is created. Changing this forces a new resource to be created.
- secondary
Master stringKey The Secondary master key for the CosmosDB Account.
- secondary
Readonly stringMaster Key The Secondary read-only master key for the CosmosDB Account.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- virtual
Network AccountRules Virtual Network Rule[] Specifies a
virtual_network_rulesresource, used to define which subnets are allowed to access this CosmosDB account.- write
Endpoints string[] A list of write endpoints available for this CosmosDB account.
- capabilities
List[Account
Capability] The capabilities which should be enabled for this Cosmos DB account. Possible values are
EnableAggregationPipeline,EnableCassandra,EnableGremlin,EnableTable,MongoDBv3.4, andmongoEnableDocLevelTTL.- connection_
strings List[str] A list of connection strings available for this CosmosDB account.
- consistency_
policy Dict[AccountConsistency Policy] Specifies a
consistency_policyresource, used to define the consistency policy for this CosmosDB account.- enable_
automatic_ boolfailover Enable automatic fail over for this Cosmos DB account.
- enable_
multiple_ boolwrite_ locations Enable multi-master support for this Cosmos DB account.
- endpoint str
The endpoint used to connect to the CosmosDB account.
- geo_
locations List[AccountGeo Location] Specifies a
geo_locationresource, used to define where data should be replicated with thefailover_priority0 specifying the primary location.- ip_
range_ strfilter CosmosDB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IP’s for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces.
- is_
virtual_ boolnetwork_ filter_ enabled Enables virtual network filtering for this Cosmos DB account.
- kind str
Specifies the Kind of CosmosDB to create - possible values are
GlobalDocumentDBandMongoDB. Defaults toGlobalDocumentDB. Changing this forces a new resource to be created.- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
- offer_
type str Specifies the Offer Type to use for this CosmosDB Account - currently this can only be set to
Standard.- primary_
master_ strkey The Primary master key for the CosmosDB Account.
- primary_
readonly_ strmaster_ key The Primary read-only master Key for the CosmosDB Account.
- read_
endpoints List[str] A list of read endpoints available for this CosmosDB account.
- resource_
group_ strname The name of the resource group in which the CosmosDB Account is created. Changing this forces a new resource to be created.
- secondary_
master_ strkey The Secondary master key for the CosmosDB Account.
- secondary_
readonly_ strmaster_ key The Secondary read-only master key for the CosmosDB Account.
- Dict[str, str]
A mapping of tags to assign to the resource.
- virtual_
network_ List[Accountrules Virtual Network Rule] Specifies a
virtual_network_rulesresource, used to define which subnets are allowed to access this CosmosDB account.- write_
endpoints List[str] A list of write endpoints available for this CosmosDB account.
Supporting Types
AccountCapability
AccountConsistencyPolicy
- Consistency
Level string The Consistency Level to use for this CosmosDB Account - can be either
BoundedStaleness,Eventual,Session,StrongorConsistentPrefix.- Max
Interval intIn Seconds When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is
5-86400(1 day). Defaults to5. Required whenconsistency_levelis set toBoundedStaleness.- Max
Staleness intPrefix When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is
10–2147483647. Defaults to100. Required whenconsistency_levelis set toBoundedStaleness.
- Consistency
Level string The Consistency Level to use for this CosmosDB Account - can be either
BoundedStaleness,Eventual,Session,StrongorConsistentPrefix.- Max
Interval intIn Seconds When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is
5-86400(1 day). Defaults to5. Required whenconsistency_levelis set toBoundedStaleness.- Max
Staleness intPrefix When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is
10–2147483647. Defaults to100. Required whenconsistency_levelis set toBoundedStaleness.
- consistency
Level string The Consistency Level to use for this CosmosDB Account - can be either
BoundedStaleness,Eventual,Session,StrongorConsistentPrefix.- max
Interval numberIn Seconds When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is
5-86400(1 day). Defaults to5. Required whenconsistency_levelis set toBoundedStaleness.- max
Staleness numberPrefix When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is
10–2147483647. Defaults to100. Required whenconsistency_levelis set toBoundedStaleness.
- consistency
Level str The Consistency Level to use for this CosmosDB Account - can be either
BoundedStaleness,Eventual,Session,StrongorConsistentPrefix.- max
Interval floatIn Seconds When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is
5-86400(1 day). Defaults to5. Required whenconsistency_levelis set toBoundedStaleness.- max
Staleness floatPrefix When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is
10–2147483647. Defaults to100. Required whenconsistency_levelis set toBoundedStaleness.
AccountGeoLocation
- Failover
Priority int The failover priority of the region. A failover priority of
0indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. Changing this causes the location to be re-provisioned and cannot be changed for the location with failover priority0.- Location string
The name of the Azure region to host replicated data.
- Id string
The ID of the virtual network subnet.
- Prefix string
The string used to generate the document endpoints for this region. If not specified it defaults to
${cosmosdb_account.name}-${location}. Changing this causes the location to be deleted and re-provisioned and cannot be changed for the location with failover priority0.
- Failover
Priority int The failover priority of the region. A failover priority of
0indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. Changing this causes the location to be re-provisioned and cannot be changed for the location with failover priority0.- Location string
The name of the Azure region to host replicated data.
- Id string
The ID of the virtual network subnet.
- Prefix string
The string used to generate the document endpoints for this region. If not specified it defaults to
${cosmosdb_account.name}-${location}. Changing this causes the location to be deleted and re-provisioned and cannot be changed for the location with failover priority0.
- failover
Priority number The failover priority of the region. A failover priority of
0indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. Changing this causes the location to be re-provisioned and cannot be changed for the location with failover priority0.- location string
The name of the Azure region to host replicated data.
- id string
The ID of the virtual network subnet.
- prefix string
The string used to generate the document endpoints for this region. If not specified it defaults to
${cosmosdb_account.name}-${location}. Changing this causes the location to be deleted and re-provisioned and cannot be changed for the location with failover priority0.
- failover
Priority float The failover priority of the region. A failover priority of
0indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. Changing this causes the location to be re-provisioned and cannot be changed for the location with failover priority0.- location str
The name of the Azure region to host replicated data.
- id str
The ID of the virtual network subnet.
- prefix str
The string used to generate the document endpoints for this region. If not specified it defaults to
${cosmosdb_account.name}-${location}. Changing this causes the location to be deleted and re-provisioned and cannot be changed for the location with failover priority0.
AccountVirtualNetworkRule
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.