cosmosdb

package
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	pulumi.CustomResourceState

	// The capabilities which should be enabled for this Cosmos DB account. Possible values are `EnableAggregationPipeline`, `EnableCassandra`, `EnableGremlin`, `EnableTable`, `MongoDBv3.4`, and `mongoEnableDocLevelTTL`.
	Capabilities AccountCapabilityArrayOutput `pulumi:"capabilities"`
	// A list of connection strings available for this CosmosDB account. If the kind is `GlobalDocumentDB`, this will be empty.
	ConnectionStrings pulumi.StringArrayOutput `pulumi:"connectionStrings"`
	// Specifies a `consistencyPolicy` resource, used to define the consistency policy for this CosmosDB account.
	ConsistencyPolicy AccountConsistencyPolicyOutput `pulumi:"consistencyPolicy"`
	// Enable automatic fail over for this Cosmos DB account.
	EnableAutomaticFailover pulumi.BoolPtrOutput `pulumi:"enableAutomaticFailover"`
	// Enable multi-master support for this Cosmos DB account.
	EnableMultipleWriteLocations pulumi.BoolPtrOutput `pulumi:"enableMultipleWriteLocations"`
	// The endpoint used to connect to the CosmosDB account.
	Endpoint         pulumi.StringOutput              `pulumi:"endpoint"`
	FailoverPolicies AccountFailoverPolicyArrayOutput `pulumi:"failoverPolicies"`
	// Specifies a `geoLocation` resource, used to define where data should be replicated with the `failoverPriority` 0 specifying the primary location.
	GeoLocations AccountGeoLocationArrayOutput `pulumi:"geoLocations"`
	// 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.
	IpRangeFilter pulumi.StringPtrOutput `pulumi:"ipRangeFilter"`
	// Enables virtual network filtering for this Cosmos DB account.
	IsVirtualNetworkFilterEnabled pulumi.BoolPtrOutput `pulumi:"isVirtualNetworkFilterEnabled"`
	// Specifies the Kind of CosmosDB to create - possible values are `GlobalDocumentDB` and `MongoDB`. Defaults to `GlobalDocumentDB`. Changing this forces a new resource to be created.
	Kind pulumi.StringPtrOutput `pulumi:"kind"`
	// The name of the Azure region to host replicated data.
	Location pulumi.StringOutput `pulumi:"location"`
	// The capability to enable - Possible values are `EnableAggregationPipeline`, `EnableCassandra`, `EnableGremlin`,`EnableMongo`, `EnableTable`, `MongoDBv3.4`, and `mongoEnableDocLevelTTL`.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the Offer Type to use for this CosmosDB Account - currently this can only be set to `Standard`.
	OfferType pulumi.StringOutput `pulumi:"offerType"`
	// The Primary master key for the CosmosDB Account.
	PrimaryMasterKey pulumi.StringOutput `pulumi:"primaryMasterKey"`
	// The Primary read-only master Key for the CosmosDB Account.
	PrimaryReadonlyMasterKey pulumi.StringOutput `pulumi:"primaryReadonlyMasterKey"`
	// A list of read endpoints available for this CosmosDB account.
	ReadEndpoints pulumi.StringArrayOutput `pulumi:"readEndpoints"`
	// The name of the resource group in which the CosmosDB Account is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// The Secondary master key for the CosmosDB Account.
	SecondaryMasterKey pulumi.StringOutput `pulumi:"secondaryMasterKey"`
	// The Secondary read-only master key for the CosmosDB Account.
	SecondaryReadonlyMasterKey pulumi.StringOutput `pulumi:"secondaryReadonlyMasterKey"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// Specifies a `virtualNetworkRules` resource, used to define which subnets are allowed to access this CosmosDB account.
	VirtualNetworkRules AccountVirtualNetworkRuleArrayOutput `pulumi:"virtualNetworkRules"`
	// A list of write endpoints available for this CosmosDB account.
	WriteEndpoints pulumi.StringArrayOutput `pulumi:"writeEndpoints"`
}

Manages a CosmosDB (formally DocumentDB) Account.

> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/cosmosdb_account.html.markdown.

func GetAccount

func GetAccount(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AccountState, opts ...pulumi.ResourceOption) (*Account, error)

GetAccount gets an existing Account resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAccount

func NewAccount(ctx *pulumi.Context,
	name string, args *AccountArgs, opts ...pulumi.ResourceOption) (*Account, error)

NewAccount registers a new resource with the given unique name, arguments, and options.

type AccountArgs

type AccountArgs struct {
	// The capabilities which should be enabled for this Cosmos DB account. Possible values are `EnableAggregationPipeline`, `EnableCassandra`, `EnableGremlin`, `EnableTable`, `MongoDBv3.4`, and `mongoEnableDocLevelTTL`.
	Capabilities AccountCapabilityArrayInput
	// Specifies a `consistencyPolicy` resource, used to define the consistency policy for this CosmosDB account.
	ConsistencyPolicy AccountConsistencyPolicyInput
	// Enable automatic fail over for this Cosmos DB account.
	EnableAutomaticFailover pulumi.BoolPtrInput
	// Enable multi-master support for this Cosmos DB account.
	EnableMultipleWriteLocations pulumi.BoolPtrInput
	FailoverPolicies             AccountFailoverPolicyArrayInput
	// Specifies a `geoLocation` resource, used to define where data should be replicated with the `failoverPriority` 0 specifying the primary location.
	GeoLocations AccountGeoLocationArrayInput
	// 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.
	IpRangeFilter pulumi.StringPtrInput
	// Enables virtual network filtering for this Cosmos DB account.
	IsVirtualNetworkFilterEnabled pulumi.BoolPtrInput
	// Specifies the Kind of CosmosDB to create - possible values are `GlobalDocumentDB` and `MongoDB`. Defaults to `GlobalDocumentDB`. Changing this forces a new resource to be created.
	Kind pulumi.StringPtrInput
	// The name of the Azure region to host replicated data.
	Location pulumi.StringPtrInput
	// The capability to enable - Possible values are `EnableAggregationPipeline`, `EnableCassandra`, `EnableGremlin`,`EnableMongo`, `EnableTable`, `MongoDBv3.4`, and `mongoEnableDocLevelTTL`.
	Name pulumi.StringPtrInput
	// Specifies the Offer Type to use for this CosmosDB Account - currently this can only be set to `Standard`.
	OfferType pulumi.StringInput
	// The name of the resource group in which the CosmosDB Account is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// Specifies a `virtualNetworkRules` resource, used to define which subnets are allowed to access this CosmosDB account.
	VirtualNetworkRules AccountVirtualNetworkRuleArrayInput
}

The set of arguments for constructing a Account resource.

func (AccountArgs) ElementType added in v1.12.0

func (AccountArgs) ElementType() reflect.Type

type AccountCapability added in v1.12.0

type AccountCapability struct {
	// The capability to enable - Possible values are `EnableAggregationPipeline`, `EnableCassandra`, `EnableGremlin`,`EnableMongo`, `EnableTable`, `MongoDBv3.4`, and `mongoEnableDocLevelTTL`.
	Name string `pulumi:"name"`
}

type AccountCapabilityArgs added in v1.12.0

type AccountCapabilityArgs struct {
	// The capability to enable - Possible values are `EnableAggregationPipeline`, `EnableCassandra`, `EnableGremlin`,`EnableMongo`, `EnableTable`, `MongoDBv3.4`, and `mongoEnableDocLevelTTL`.
	Name pulumi.StringInput `pulumi:"name"`
}

func (AccountCapabilityArgs) ElementType added in v1.12.0

func (AccountCapabilityArgs) ElementType() reflect.Type

func (AccountCapabilityArgs) ToAccountCapabilityOutput added in v1.12.0

func (i AccountCapabilityArgs) ToAccountCapabilityOutput() AccountCapabilityOutput

func (AccountCapabilityArgs) ToAccountCapabilityOutputWithContext added in v1.12.0

func (i AccountCapabilityArgs) ToAccountCapabilityOutputWithContext(ctx context.Context) AccountCapabilityOutput

type AccountCapabilityArray added in v1.12.0

type AccountCapabilityArray []AccountCapabilityInput

func (AccountCapabilityArray) ElementType added in v1.12.0

func (AccountCapabilityArray) ElementType() reflect.Type

func (AccountCapabilityArray) ToAccountCapabilityArrayOutput added in v1.12.0

func (i AccountCapabilityArray) ToAccountCapabilityArrayOutput() AccountCapabilityArrayOutput

func (AccountCapabilityArray) ToAccountCapabilityArrayOutputWithContext added in v1.12.0

func (i AccountCapabilityArray) ToAccountCapabilityArrayOutputWithContext(ctx context.Context) AccountCapabilityArrayOutput

type AccountCapabilityArrayInput added in v1.12.0

type AccountCapabilityArrayInput interface {
	pulumi.Input

	ToAccountCapabilityArrayOutput() AccountCapabilityArrayOutput
	ToAccountCapabilityArrayOutputWithContext(context.Context) AccountCapabilityArrayOutput
}

type AccountCapabilityArrayOutput added in v1.12.0

type AccountCapabilityArrayOutput struct{ *pulumi.OutputState }

func (AccountCapabilityArrayOutput) ElementType added in v1.12.0

func (AccountCapabilityArrayOutput) Index added in v1.12.0

func (AccountCapabilityArrayOutput) ToAccountCapabilityArrayOutput added in v1.12.0

func (o AccountCapabilityArrayOutput) ToAccountCapabilityArrayOutput() AccountCapabilityArrayOutput

func (AccountCapabilityArrayOutput) ToAccountCapabilityArrayOutputWithContext added in v1.12.0

func (o AccountCapabilityArrayOutput) ToAccountCapabilityArrayOutputWithContext(ctx context.Context) AccountCapabilityArrayOutput

type AccountCapabilityInput added in v1.12.0

type AccountCapabilityInput interface {
	pulumi.Input

	ToAccountCapabilityOutput() AccountCapabilityOutput
	ToAccountCapabilityOutputWithContext(context.Context) AccountCapabilityOutput
}

type AccountCapabilityOutput added in v1.12.0

type AccountCapabilityOutput struct{ *pulumi.OutputState }

func (AccountCapabilityOutput) ElementType added in v1.12.0

func (AccountCapabilityOutput) ElementType() reflect.Type

func (AccountCapabilityOutput) Name added in v1.12.0

The capability to enable - Possible values are `EnableAggregationPipeline`, `EnableCassandra`, `EnableGremlin`,`EnableMongo`, `EnableTable`, `MongoDBv3.4`, and `mongoEnableDocLevelTTL`.

func (AccountCapabilityOutput) ToAccountCapabilityOutput added in v1.12.0

func (o AccountCapabilityOutput) ToAccountCapabilityOutput() AccountCapabilityOutput

func (AccountCapabilityOutput) ToAccountCapabilityOutputWithContext added in v1.12.0

func (o AccountCapabilityOutput) ToAccountCapabilityOutputWithContext(ctx context.Context) AccountCapabilityOutput

type AccountConsistencyPolicy added in v1.12.0

type AccountConsistencyPolicy struct {
	// The Consistency Level to use for this CosmosDB Account - can be either `BoundedStaleness`, `Eventual`, `Session`, `Strong` or `ConsistentPrefix`.
	ConsistencyLevel string `pulumi:"consistencyLevel"`
	// 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 to `5`. Required when `consistencyLevel` is set to `BoundedStaleness`.
	MaxIntervalInSeconds *int `pulumi:"maxIntervalInSeconds"`
	// 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 to `100`. Required when `consistencyLevel` is set to `BoundedStaleness`.
	MaxStalenessPrefix *int `pulumi:"maxStalenessPrefix"`
}

type AccountConsistencyPolicyArgs added in v1.12.0

type AccountConsistencyPolicyArgs struct {
	// The Consistency Level to use for this CosmosDB Account - can be either `BoundedStaleness`, `Eventual`, `Session`, `Strong` or `ConsistentPrefix`.
	ConsistencyLevel pulumi.StringInput `pulumi:"consistencyLevel"`
	// 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 to `5`. Required when `consistencyLevel` is set to `BoundedStaleness`.
	MaxIntervalInSeconds pulumi.IntPtrInput `pulumi:"maxIntervalInSeconds"`
	// 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 to `100`. Required when `consistencyLevel` is set to `BoundedStaleness`.
	MaxStalenessPrefix pulumi.IntPtrInput `pulumi:"maxStalenessPrefix"`
}

func (AccountConsistencyPolicyArgs) ElementType added in v1.12.0

func (AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyOutput added in v1.12.0

func (i AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyOutput() AccountConsistencyPolicyOutput

func (AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyOutputWithContext added in v1.12.0

func (i AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyOutputWithContext(ctx context.Context) AccountConsistencyPolicyOutput

func (AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyPtrOutput added in v1.12.0

func (i AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyPtrOutput() AccountConsistencyPolicyPtrOutput

func (AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyPtrOutputWithContext added in v1.12.0

func (i AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyPtrOutputWithContext(ctx context.Context) AccountConsistencyPolicyPtrOutput

type AccountConsistencyPolicyInput added in v1.12.0

type AccountConsistencyPolicyInput interface {
	pulumi.Input

	ToAccountConsistencyPolicyOutput() AccountConsistencyPolicyOutput
	ToAccountConsistencyPolicyOutputWithContext(context.Context) AccountConsistencyPolicyOutput
}

type AccountConsistencyPolicyOutput added in v1.12.0

type AccountConsistencyPolicyOutput struct{ *pulumi.OutputState }

func (AccountConsistencyPolicyOutput) ConsistencyLevel added in v1.12.0

func (o AccountConsistencyPolicyOutput) ConsistencyLevel() pulumi.StringOutput

The Consistency Level to use for this CosmosDB Account - can be either `BoundedStaleness`, `Eventual`, `Session`, `Strong` or `ConsistentPrefix`.

func (AccountConsistencyPolicyOutput) ElementType added in v1.12.0

func (AccountConsistencyPolicyOutput) MaxIntervalInSeconds added in v1.12.0

func (o AccountConsistencyPolicyOutput) MaxIntervalInSeconds() pulumi.IntPtrOutput

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 to `5`. Required when `consistencyLevel` is set to `BoundedStaleness`.

func (AccountConsistencyPolicyOutput) MaxStalenessPrefix added in v1.12.0

func (o AccountConsistencyPolicyOutput) MaxStalenessPrefix() pulumi.IntPtrOutput

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 to `100`. Required when `consistencyLevel` is set to `BoundedStaleness`.

func (AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyOutput added in v1.12.0

func (o AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyOutput() AccountConsistencyPolicyOutput

func (AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyOutputWithContext added in v1.12.0

func (o AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyOutputWithContext(ctx context.Context) AccountConsistencyPolicyOutput

func (AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyPtrOutput added in v1.12.0

func (o AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyPtrOutput() AccountConsistencyPolicyPtrOutput

func (AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyPtrOutputWithContext added in v1.12.0

func (o AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyPtrOutputWithContext(ctx context.Context) AccountConsistencyPolicyPtrOutput

type AccountConsistencyPolicyPtrInput added in v1.12.0

type AccountConsistencyPolicyPtrInput interface {
	pulumi.Input

	ToAccountConsistencyPolicyPtrOutput() AccountConsistencyPolicyPtrOutput
	ToAccountConsistencyPolicyPtrOutputWithContext(context.Context) AccountConsistencyPolicyPtrOutput
}

func AccountConsistencyPolicyPtr added in v1.12.0

func AccountConsistencyPolicyPtr(v *AccountConsistencyPolicyArgs) AccountConsistencyPolicyPtrInput

type AccountConsistencyPolicyPtrOutput added in v1.12.0

type AccountConsistencyPolicyPtrOutput struct{ *pulumi.OutputState }

func (AccountConsistencyPolicyPtrOutput) ConsistencyLevel added in v1.12.0

The Consistency Level to use for this CosmosDB Account - can be either `BoundedStaleness`, `Eventual`, `Session`, `Strong` or `ConsistentPrefix`.

func (AccountConsistencyPolicyPtrOutput) Elem added in v1.12.0

func (AccountConsistencyPolicyPtrOutput) ElementType added in v1.12.0

func (AccountConsistencyPolicyPtrOutput) MaxIntervalInSeconds added in v1.12.0

func (o AccountConsistencyPolicyPtrOutput) MaxIntervalInSeconds() pulumi.IntPtrOutput

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 to `5`. Required when `consistencyLevel` is set to `BoundedStaleness`.

func (AccountConsistencyPolicyPtrOutput) MaxStalenessPrefix added in v1.12.0

func (o AccountConsistencyPolicyPtrOutput) MaxStalenessPrefix() pulumi.IntPtrOutput

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 to `100`. Required when `consistencyLevel` is set to `BoundedStaleness`.

func (AccountConsistencyPolicyPtrOutput) ToAccountConsistencyPolicyPtrOutput added in v1.12.0

func (o AccountConsistencyPolicyPtrOutput) ToAccountConsistencyPolicyPtrOutput() AccountConsistencyPolicyPtrOutput

func (AccountConsistencyPolicyPtrOutput) ToAccountConsistencyPolicyPtrOutputWithContext added in v1.12.0

func (o AccountConsistencyPolicyPtrOutput) ToAccountConsistencyPolicyPtrOutputWithContext(ctx context.Context) AccountConsistencyPolicyPtrOutput

type AccountFailoverPolicy added in v1.12.0

type AccountFailoverPolicy struct {
	// The ID of the virtual network subnet.
	Id *string `pulumi:"id"`
	// The name of the Azure region to host replicated data.
	Location string `pulumi:"location"`
	Priority int    `pulumi:"priority"`
}

type AccountFailoverPolicyArgs added in v1.12.0

type AccountFailoverPolicyArgs struct {
	// The ID of the virtual network subnet.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The name of the Azure region to host replicated data.
	Location pulumi.StringInput `pulumi:"location"`
	Priority pulumi.IntInput    `pulumi:"priority"`
}

func (AccountFailoverPolicyArgs) ElementType added in v1.12.0

func (AccountFailoverPolicyArgs) ElementType() reflect.Type

func (AccountFailoverPolicyArgs) ToAccountFailoverPolicyOutput added in v1.12.0

func (i AccountFailoverPolicyArgs) ToAccountFailoverPolicyOutput() AccountFailoverPolicyOutput

func (AccountFailoverPolicyArgs) ToAccountFailoverPolicyOutputWithContext added in v1.12.0

func (i AccountFailoverPolicyArgs) ToAccountFailoverPolicyOutputWithContext(ctx context.Context) AccountFailoverPolicyOutput

type AccountFailoverPolicyArray added in v1.12.0

type AccountFailoverPolicyArray []AccountFailoverPolicyInput

func (AccountFailoverPolicyArray) ElementType added in v1.12.0

func (AccountFailoverPolicyArray) ElementType() reflect.Type

func (AccountFailoverPolicyArray) ToAccountFailoverPolicyArrayOutput added in v1.12.0

func (i AccountFailoverPolicyArray) ToAccountFailoverPolicyArrayOutput() AccountFailoverPolicyArrayOutput

func (AccountFailoverPolicyArray) ToAccountFailoverPolicyArrayOutputWithContext added in v1.12.0

func (i AccountFailoverPolicyArray) ToAccountFailoverPolicyArrayOutputWithContext(ctx context.Context) AccountFailoverPolicyArrayOutput

type AccountFailoverPolicyArrayInput added in v1.12.0

type AccountFailoverPolicyArrayInput interface {
	pulumi.Input

	ToAccountFailoverPolicyArrayOutput() AccountFailoverPolicyArrayOutput
	ToAccountFailoverPolicyArrayOutputWithContext(context.Context) AccountFailoverPolicyArrayOutput
}

type AccountFailoverPolicyArrayOutput added in v1.12.0

type AccountFailoverPolicyArrayOutput struct{ *pulumi.OutputState }

func (AccountFailoverPolicyArrayOutput) ElementType added in v1.12.0

func (AccountFailoverPolicyArrayOutput) Index added in v1.12.0

func (AccountFailoverPolicyArrayOutput) ToAccountFailoverPolicyArrayOutput added in v1.12.0

func (o AccountFailoverPolicyArrayOutput) ToAccountFailoverPolicyArrayOutput() AccountFailoverPolicyArrayOutput

func (AccountFailoverPolicyArrayOutput) ToAccountFailoverPolicyArrayOutputWithContext added in v1.12.0

func (o AccountFailoverPolicyArrayOutput) ToAccountFailoverPolicyArrayOutputWithContext(ctx context.Context) AccountFailoverPolicyArrayOutput

type AccountFailoverPolicyInput added in v1.12.0

type AccountFailoverPolicyInput interface {
	pulumi.Input

	ToAccountFailoverPolicyOutput() AccountFailoverPolicyOutput
	ToAccountFailoverPolicyOutputWithContext(context.Context) AccountFailoverPolicyOutput
}

type AccountFailoverPolicyOutput added in v1.12.0

type AccountFailoverPolicyOutput struct{ *pulumi.OutputState }

func (AccountFailoverPolicyOutput) ElementType added in v1.12.0

func (AccountFailoverPolicyOutput) Id added in v1.12.0

The ID of the virtual network subnet.

func (AccountFailoverPolicyOutput) Location added in v1.12.0

The name of the Azure region to host replicated data.

func (AccountFailoverPolicyOutput) Priority added in v1.12.0

func (AccountFailoverPolicyOutput) ToAccountFailoverPolicyOutput added in v1.12.0

func (o AccountFailoverPolicyOutput) ToAccountFailoverPolicyOutput() AccountFailoverPolicyOutput

func (AccountFailoverPolicyOutput) ToAccountFailoverPolicyOutputWithContext added in v1.12.0

func (o AccountFailoverPolicyOutput) ToAccountFailoverPolicyOutputWithContext(ctx context.Context) AccountFailoverPolicyOutput

type AccountGeoLocation added in v1.12.0

type AccountGeoLocation struct {
	// The failover priority of the region. A failover priority of `0` indicates 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 priority `0`.
	FailoverPriority int `pulumi:"failoverPriority"`
	// The ID of the virtual network subnet.
	Id *string `pulumi:"id"`
	// The name of the Azure region to host replicated data.
	Location string `pulumi:"location"`
	// 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 priority `0`.
	Prefix *string `pulumi:"prefix"`
}

type AccountGeoLocationArgs added in v1.12.0

type AccountGeoLocationArgs struct {
	// The failover priority of the region. A failover priority of `0` indicates 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 priority `0`.
	FailoverPriority pulumi.IntInput `pulumi:"failoverPriority"`
	// The ID of the virtual network subnet.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The name of the Azure region to host replicated data.
	Location pulumi.StringInput `pulumi:"location"`
	// 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 priority `0`.
	Prefix pulumi.StringPtrInput `pulumi:"prefix"`
}

func (AccountGeoLocationArgs) ElementType added in v1.12.0

func (AccountGeoLocationArgs) ElementType() reflect.Type

func (AccountGeoLocationArgs) ToAccountGeoLocationOutput added in v1.12.0

func (i AccountGeoLocationArgs) ToAccountGeoLocationOutput() AccountGeoLocationOutput

func (AccountGeoLocationArgs) ToAccountGeoLocationOutputWithContext added in v1.12.0

func (i AccountGeoLocationArgs) ToAccountGeoLocationOutputWithContext(ctx context.Context) AccountGeoLocationOutput

type AccountGeoLocationArray added in v1.12.0

type AccountGeoLocationArray []AccountGeoLocationInput

func (AccountGeoLocationArray) ElementType added in v1.12.0

func (AccountGeoLocationArray) ElementType() reflect.Type

func (AccountGeoLocationArray) ToAccountGeoLocationArrayOutput added in v1.12.0

func (i AccountGeoLocationArray) ToAccountGeoLocationArrayOutput() AccountGeoLocationArrayOutput

func (AccountGeoLocationArray) ToAccountGeoLocationArrayOutputWithContext added in v1.12.0

func (i AccountGeoLocationArray) ToAccountGeoLocationArrayOutputWithContext(ctx context.Context) AccountGeoLocationArrayOutput

type AccountGeoLocationArrayInput added in v1.12.0

type AccountGeoLocationArrayInput interface {
	pulumi.Input

	ToAccountGeoLocationArrayOutput() AccountGeoLocationArrayOutput
	ToAccountGeoLocationArrayOutputWithContext(context.Context) AccountGeoLocationArrayOutput
}

type AccountGeoLocationArrayOutput added in v1.12.0

type AccountGeoLocationArrayOutput struct{ *pulumi.OutputState }

func (AccountGeoLocationArrayOutput) ElementType added in v1.12.0

func (AccountGeoLocationArrayOutput) Index added in v1.12.0

func (AccountGeoLocationArrayOutput) ToAccountGeoLocationArrayOutput added in v1.12.0

func (o AccountGeoLocationArrayOutput) ToAccountGeoLocationArrayOutput() AccountGeoLocationArrayOutput

func (AccountGeoLocationArrayOutput) ToAccountGeoLocationArrayOutputWithContext added in v1.12.0

func (o AccountGeoLocationArrayOutput) ToAccountGeoLocationArrayOutputWithContext(ctx context.Context) AccountGeoLocationArrayOutput

type AccountGeoLocationInput added in v1.12.0

type AccountGeoLocationInput interface {
	pulumi.Input

	ToAccountGeoLocationOutput() AccountGeoLocationOutput
	ToAccountGeoLocationOutputWithContext(context.Context) AccountGeoLocationOutput
}

type AccountGeoLocationOutput added in v1.12.0

type AccountGeoLocationOutput struct{ *pulumi.OutputState }

func (AccountGeoLocationOutput) ElementType added in v1.12.0

func (AccountGeoLocationOutput) ElementType() reflect.Type

func (AccountGeoLocationOutput) FailoverPriority added in v1.12.0

func (o AccountGeoLocationOutput) FailoverPriority() pulumi.IntOutput

The failover priority of the region. A failover priority of `0` indicates 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 priority `0`.

func (AccountGeoLocationOutput) Id added in v1.12.0

The ID of the virtual network subnet.

func (AccountGeoLocationOutput) Location added in v1.12.0

The name of the Azure region to host replicated data.

func (AccountGeoLocationOutput) Prefix added in v1.12.0

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 priority `0`.

func (AccountGeoLocationOutput) ToAccountGeoLocationOutput added in v1.12.0

func (o AccountGeoLocationOutput) ToAccountGeoLocationOutput() AccountGeoLocationOutput

func (AccountGeoLocationOutput) ToAccountGeoLocationOutputWithContext added in v1.12.0

func (o AccountGeoLocationOutput) ToAccountGeoLocationOutputWithContext(ctx context.Context) AccountGeoLocationOutput

type AccountState

type AccountState struct {
	// The capabilities which should be enabled for this Cosmos DB account. Possible values are `EnableAggregationPipeline`, `EnableCassandra`, `EnableGremlin`, `EnableTable`, `MongoDBv3.4`, and `mongoEnableDocLevelTTL`.
	Capabilities AccountCapabilityArrayInput
	// A list of connection strings available for this CosmosDB account. If the kind is `GlobalDocumentDB`, this will be empty.
	ConnectionStrings pulumi.StringArrayInput
	// Specifies a `consistencyPolicy` resource, used to define the consistency policy for this CosmosDB account.
	ConsistencyPolicy AccountConsistencyPolicyPtrInput
	// Enable automatic fail over for this Cosmos DB account.
	EnableAutomaticFailover pulumi.BoolPtrInput
	// Enable multi-master support for this Cosmos DB account.
	EnableMultipleWriteLocations pulumi.BoolPtrInput
	// The endpoint used to connect to the CosmosDB account.
	Endpoint         pulumi.StringPtrInput
	FailoverPolicies AccountFailoverPolicyArrayInput
	// Specifies a `geoLocation` resource, used to define where data should be replicated with the `failoverPriority` 0 specifying the primary location.
	GeoLocations AccountGeoLocationArrayInput
	// 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.
	IpRangeFilter pulumi.StringPtrInput
	// Enables virtual network filtering for this Cosmos DB account.
	IsVirtualNetworkFilterEnabled pulumi.BoolPtrInput
	// Specifies the Kind of CosmosDB to create - possible values are `GlobalDocumentDB` and `MongoDB`. Defaults to `GlobalDocumentDB`. Changing this forces a new resource to be created.
	Kind pulumi.StringPtrInput
	// The name of the Azure region to host replicated data.
	Location pulumi.StringPtrInput
	// The capability to enable - Possible values are `EnableAggregationPipeline`, `EnableCassandra`, `EnableGremlin`,`EnableMongo`, `EnableTable`, `MongoDBv3.4`, and `mongoEnableDocLevelTTL`.
	Name pulumi.StringPtrInput
	// Specifies the Offer Type to use for this CosmosDB Account - currently this can only be set to `Standard`.
	OfferType pulumi.StringPtrInput
	// The Primary master key for the CosmosDB Account.
	PrimaryMasterKey pulumi.StringPtrInput
	// The Primary read-only master Key for the CosmosDB Account.
	PrimaryReadonlyMasterKey pulumi.StringPtrInput
	// A list of read endpoints available for this CosmosDB account.
	ReadEndpoints pulumi.StringArrayInput
	// The name of the resource group in which the CosmosDB Account is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// The Secondary master key for the CosmosDB Account.
	SecondaryMasterKey pulumi.StringPtrInput
	// The Secondary read-only master key for the CosmosDB Account.
	SecondaryReadonlyMasterKey pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// Specifies a `virtualNetworkRules` resource, used to define which subnets are allowed to access this CosmosDB account.
	VirtualNetworkRules AccountVirtualNetworkRuleArrayInput
	// A list of write endpoints available for this CosmosDB account.
	WriteEndpoints pulumi.StringArrayInput
}

func (AccountState) ElementType added in v1.12.0

func (AccountState) ElementType() reflect.Type

type AccountVirtualNetworkRule added in v1.12.0

type AccountVirtualNetworkRule struct {
	// The ID of the virtual network subnet.
	Id string `pulumi:"id"`
}

type AccountVirtualNetworkRuleArgs added in v1.12.0

type AccountVirtualNetworkRuleArgs struct {
	// The ID of the virtual network subnet.
	Id pulumi.StringInput `pulumi:"id"`
}

func (AccountVirtualNetworkRuleArgs) ElementType added in v1.12.0

func (AccountVirtualNetworkRuleArgs) ToAccountVirtualNetworkRuleOutput added in v1.12.0

func (i AccountVirtualNetworkRuleArgs) ToAccountVirtualNetworkRuleOutput() AccountVirtualNetworkRuleOutput

func (AccountVirtualNetworkRuleArgs) ToAccountVirtualNetworkRuleOutputWithContext added in v1.12.0

func (i AccountVirtualNetworkRuleArgs) ToAccountVirtualNetworkRuleOutputWithContext(ctx context.Context) AccountVirtualNetworkRuleOutput

type AccountVirtualNetworkRuleArray added in v1.12.0

type AccountVirtualNetworkRuleArray []AccountVirtualNetworkRuleInput

func (AccountVirtualNetworkRuleArray) ElementType added in v1.12.0

func (AccountVirtualNetworkRuleArray) ToAccountVirtualNetworkRuleArrayOutput added in v1.12.0

func (i AccountVirtualNetworkRuleArray) ToAccountVirtualNetworkRuleArrayOutput() AccountVirtualNetworkRuleArrayOutput

func (AccountVirtualNetworkRuleArray) ToAccountVirtualNetworkRuleArrayOutputWithContext added in v1.12.0

func (i AccountVirtualNetworkRuleArray) ToAccountVirtualNetworkRuleArrayOutputWithContext(ctx context.Context) AccountVirtualNetworkRuleArrayOutput

type AccountVirtualNetworkRuleArrayInput added in v1.12.0

type AccountVirtualNetworkRuleArrayInput interface {
	pulumi.Input

	ToAccountVirtualNetworkRuleArrayOutput() AccountVirtualNetworkRuleArrayOutput
	ToAccountVirtualNetworkRuleArrayOutputWithContext(context.Context) AccountVirtualNetworkRuleArrayOutput
}

type AccountVirtualNetworkRuleArrayOutput added in v1.12.0

type AccountVirtualNetworkRuleArrayOutput struct{ *pulumi.OutputState }

func (AccountVirtualNetworkRuleArrayOutput) ElementType added in v1.12.0

func (AccountVirtualNetworkRuleArrayOutput) Index added in v1.12.0

func (AccountVirtualNetworkRuleArrayOutput) ToAccountVirtualNetworkRuleArrayOutput added in v1.12.0

func (o AccountVirtualNetworkRuleArrayOutput) ToAccountVirtualNetworkRuleArrayOutput() AccountVirtualNetworkRuleArrayOutput

func (AccountVirtualNetworkRuleArrayOutput) ToAccountVirtualNetworkRuleArrayOutputWithContext added in v1.12.0

func (o AccountVirtualNetworkRuleArrayOutput) ToAccountVirtualNetworkRuleArrayOutputWithContext(ctx context.Context) AccountVirtualNetworkRuleArrayOutput

type AccountVirtualNetworkRuleInput added in v1.12.0

type AccountVirtualNetworkRuleInput interface {
	pulumi.Input

	ToAccountVirtualNetworkRuleOutput() AccountVirtualNetworkRuleOutput
	ToAccountVirtualNetworkRuleOutputWithContext(context.Context) AccountVirtualNetworkRuleOutput
}

type AccountVirtualNetworkRuleOutput added in v1.12.0

type AccountVirtualNetworkRuleOutput struct{ *pulumi.OutputState }

func (AccountVirtualNetworkRuleOutput) ElementType added in v1.12.0

func (AccountVirtualNetworkRuleOutput) Id added in v1.12.0

The ID of the virtual network subnet.

func (AccountVirtualNetworkRuleOutput) ToAccountVirtualNetworkRuleOutput added in v1.12.0

func (o AccountVirtualNetworkRuleOutput) ToAccountVirtualNetworkRuleOutput() AccountVirtualNetworkRuleOutput

func (AccountVirtualNetworkRuleOutput) ToAccountVirtualNetworkRuleOutputWithContext added in v1.12.0

func (o AccountVirtualNetworkRuleOutput) ToAccountVirtualNetworkRuleOutputWithContext(ctx context.Context) AccountVirtualNetworkRuleOutput

type CassandraKeyspace added in v0.18.3

type CassandraKeyspace struct {
	pulumi.CustomResourceState

	// The name of the Cosmos DB Cassandra KeySpace to create the table within. Changing this forces a new resource to be created.
	AccountName pulumi.StringOutput `pulumi:"accountName"`
	// Specifies the name of the Cosmos DB Cassandra KeySpace. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the resource group in which the Cosmos DB Cassandra KeySpace is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	Throughput        pulumi.IntOutput    `pulumi:"throughput"`
}

Manages a Cassandra KeySpace within a Cosmos DB Account.

> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/cosmosdb_cassandra_keyspace.html.markdown.

func GetCassandraKeyspace added in v0.18.3

func GetCassandraKeyspace(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CassandraKeyspaceState, opts ...pulumi.ResourceOption) (*CassandraKeyspace, error)

GetCassandraKeyspace gets an existing CassandraKeyspace resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCassandraKeyspace added in v0.18.3

func NewCassandraKeyspace(ctx *pulumi.Context,
	name string, args *CassandraKeyspaceArgs, opts ...pulumi.ResourceOption) (*CassandraKeyspace, error)

NewCassandraKeyspace registers a new resource with the given unique name, arguments, and options.

type CassandraKeyspaceArgs added in v0.18.3

type CassandraKeyspaceArgs struct {
	// The name of the Cosmos DB Cassandra KeySpace to create the table within. Changing this forces a new resource to be created.
	AccountName pulumi.StringInput
	// Specifies the name of the Cosmos DB Cassandra KeySpace. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the resource group in which the Cosmos DB Cassandra KeySpace is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	Throughput        pulumi.IntPtrInput
}

The set of arguments for constructing a CassandraKeyspace resource.

func (CassandraKeyspaceArgs) ElementType added in v1.12.0

func (CassandraKeyspaceArgs) ElementType() reflect.Type

type CassandraKeyspaceState added in v0.18.3

type CassandraKeyspaceState struct {
	// The name of the Cosmos DB Cassandra KeySpace to create the table within. Changing this forces a new resource to be created.
	AccountName pulumi.StringPtrInput
	// Specifies the name of the Cosmos DB Cassandra KeySpace. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the resource group in which the Cosmos DB Cassandra KeySpace is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	Throughput        pulumi.IntPtrInput
}

func (CassandraKeyspaceState) ElementType added in v1.12.0

func (CassandraKeyspaceState) ElementType() reflect.Type

type GetAccountCapability added in v1.12.0

type GetAccountCapability struct {
	// Specifies the name of the CosmosDB Account.
	Name string `pulumi:"name"`
}

type GetAccountCapabilityArgs added in v1.12.0

type GetAccountCapabilityArgs struct {
	// Specifies the name of the CosmosDB Account.
	Name pulumi.StringInput `pulumi:"name"`
}

func (GetAccountCapabilityArgs) ElementType added in v1.12.0

func (GetAccountCapabilityArgs) ElementType() reflect.Type

func (GetAccountCapabilityArgs) ToGetAccountCapabilityOutput added in v1.12.0

func (i GetAccountCapabilityArgs) ToGetAccountCapabilityOutput() GetAccountCapabilityOutput

func (GetAccountCapabilityArgs) ToGetAccountCapabilityOutputWithContext added in v1.12.0

func (i GetAccountCapabilityArgs) ToGetAccountCapabilityOutputWithContext(ctx context.Context) GetAccountCapabilityOutput

type GetAccountCapabilityArray added in v1.12.0

type GetAccountCapabilityArray []GetAccountCapabilityInput

func (GetAccountCapabilityArray) ElementType added in v1.12.0

func (GetAccountCapabilityArray) ElementType() reflect.Type

func (GetAccountCapabilityArray) ToGetAccountCapabilityArrayOutput added in v1.12.0

func (i GetAccountCapabilityArray) ToGetAccountCapabilityArrayOutput() GetAccountCapabilityArrayOutput

func (GetAccountCapabilityArray) ToGetAccountCapabilityArrayOutputWithContext added in v1.12.0

func (i GetAccountCapabilityArray) ToGetAccountCapabilityArrayOutputWithContext(ctx context.Context) GetAccountCapabilityArrayOutput

type GetAccountCapabilityArrayInput added in v1.12.0

type GetAccountCapabilityArrayInput interface {
	pulumi.Input

	ToGetAccountCapabilityArrayOutput() GetAccountCapabilityArrayOutput
	ToGetAccountCapabilityArrayOutputWithContext(context.Context) GetAccountCapabilityArrayOutput
}

type GetAccountCapabilityArrayOutput added in v1.12.0

type GetAccountCapabilityArrayOutput struct{ *pulumi.OutputState }

func (GetAccountCapabilityArrayOutput) ElementType added in v1.12.0

func (GetAccountCapabilityArrayOutput) Index added in v1.12.0

func (GetAccountCapabilityArrayOutput) ToGetAccountCapabilityArrayOutput added in v1.12.0

func (o GetAccountCapabilityArrayOutput) ToGetAccountCapabilityArrayOutput() GetAccountCapabilityArrayOutput

func (GetAccountCapabilityArrayOutput) ToGetAccountCapabilityArrayOutputWithContext added in v1.12.0

func (o GetAccountCapabilityArrayOutput) ToGetAccountCapabilityArrayOutputWithContext(ctx context.Context) GetAccountCapabilityArrayOutput

type GetAccountCapabilityInput added in v1.12.0

type GetAccountCapabilityInput interface {
	pulumi.Input

	ToGetAccountCapabilityOutput() GetAccountCapabilityOutput
	ToGetAccountCapabilityOutputWithContext(context.Context) GetAccountCapabilityOutput
}

type GetAccountCapabilityOutput added in v1.12.0

type GetAccountCapabilityOutput struct{ *pulumi.OutputState }

func (GetAccountCapabilityOutput) ElementType added in v1.12.0

func (GetAccountCapabilityOutput) ElementType() reflect.Type

func (GetAccountCapabilityOutput) Name added in v1.12.0

Specifies the name of the CosmosDB Account.

func (GetAccountCapabilityOutput) ToGetAccountCapabilityOutput added in v1.12.0

func (o GetAccountCapabilityOutput) ToGetAccountCapabilityOutput() GetAccountCapabilityOutput

func (GetAccountCapabilityOutput) ToGetAccountCapabilityOutputWithContext added in v1.12.0

func (o GetAccountCapabilityOutput) ToGetAccountCapabilityOutputWithContext(ctx context.Context) GetAccountCapabilityOutput

type GetAccountConsistencyPolicy added in v1.12.0

type GetAccountConsistencyPolicy struct {
	// The Consistency Level used by this CosmosDB Account.
	ConsistencyLevel string `pulumi:"consistencyLevel"`
	// The amount of staleness (in seconds) tolerated when the consistency level is Bounded Staleness.
	MaxIntervalInSeconds int `pulumi:"maxIntervalInSeconds"`
	// The number of stale requests tolerated when the consistency level is Bounded Staleness.
	MaxStalenessPrefix int `pulumi:"maxStalenessPrefix"`
}

type GetAccountConsistencyPolicyArgs added in v1.12.0

type GetAccountConsistencyPolicyArgs struct {
	// The Consistency Level used by this CosmosDB Account.
	ConsistencyLevel pulumi.StringInput `pulumi:"consistencyLevel"`
	// The amount of staleness (in seconds) tolerated when the consistency level is Bounded Staleness.
	MaxIntervalInSeconds pulumi.IntInput `pulumi:"maxIntervalInSeconds"`
	// The number of stale requests tolerated when the consistency level is Bounded Staleness.
	MaxStalenessPrefix pulumi.IntInput `pulumi:"maxStalenessPrefix"`
}

func (GetAccountConsistencyPolicyArgs) ElementType added in v1.12.0

func (GetAccountConsistencyPolicyArgs) ToGetAccountConsistencyPolicyOutput added in v1.12.0

func (i GetAccountConsistencyPolicyArgs) ToGetAccountConsistencyPolicyOutput() GetAccountConsistencyPolicyOutput

func (GetAccountConsistencyPolicyArgs) ToGetAccountConsistencyPolicyOutputWithContext added in v1.12.0

func (i GetAccountConsistencyPolicyArgs) ToGetAccountConsistencyPolicyOutputWithContext(ctx context.Context) GetAccountConsistencyPolicyOutput

type GetAccountConsistencyPolicyArray added in v1.12.0

type GetAccountConsistencyPolicyArray []GetAccountConsistencyPolicyInput

func (GetAccountConsistencyPolicyArray) ElementType added in v1.12.0

func (GetAccountConsistencyPolicyArray) ToGetAccountConsistencyPolicyArrayOutput added in v1.12.0

func (i GetAccountConsistencyPolicyArray) ToGetAccountConsistencyPolicyArrayOutput() GetAccountConsistencyPolicyArrayOutput

func (GetAccountConsistencyPolicyArray) ToGetAccountConsistencyPolicyArrayOutputWithContext added in v1.12.0

func (i GetAccountConsistencyPolicyArray) ToGetAccountConsistencyPolicyArrayOutputWithContext(ctx context.Context) GetAccountConsistencyPolicyArrayOutput

type GetAccountConsistencyPolicyArrayInput added in v1.12.0

type GetAccountConsistencyPolicyArrayInput interface {
	pulumi.Input

	ToGetAccountConsistencyPolicyArrayOutput() GetAccountConsistencyPolicyArrayOutput
	ToGetAccountConsistencyPolicyArrayOutputWithContext(context.Context) GetAccountConsistencyPolicyArrayOutput
}

type GetAccountConsistencyPolicyArrayOutput added in v1.12.0

type GetAccountConsistencyPolicyArrayOutput struct{ *pulumi.OutputState }

func (GetAccountConsistencyPolicyArrayOutput) ElementType added in v1.12.0

func (GetAccountConsistencyPolicyArrayOutput) Index added in v1.12.0

func (GetAccountConsistencyPolicyArrayOutput) ToGetAccountConsistencyPolicyArrayOutput added in v1.12.0

func (o GetAccountConsistencyPolicyArrayOutput) ToGetAccountConsistencyPolicyArrayOutput() GetAccountConsistencyPolicyArrayOutput

func (GetAccountConsistencyPolicyArrayOutput) ToGetAccountConsistencyPolicyArrayOutputWithContext added in v1.12.0

func (o GetAccountConsistencyPolicyArrayOutput) ToGetAccountConsistencyPolicyArrayOutputWithContext(ctx context.Context) GetAccountConsistencyPolicyArrayOutput

type GetAccountConsistencyPolicyInput added in v1.12.0

type GetAccountConsistencyPolicyInput interface {
	pulumi.Input

	ToGetAccountConsistencyPolicyOutput() GetAccountConsistencyPolicyOutput
	ToGetAccountConsistencyPolicyOutputWithContext(context.Context) GetAccountConsistencyPolicyOutput
}

type GetAccountConsistencyPolicyOutput added in v1.12.0

type GetAccountConsistencyPolicyOutput struct{ *pulumi.OutputState }

func (GetAccountConsistencyPolicyOutput) ConsistencyLevel added in v1.12.0

The Consistency Level used by this CosmosDB Account.

func (GetAccountConsistencyPolicyOutput) ElementType added in v1.12.0

func (GetAccountConsistencyPolicyOutput) MaxIntervalInSeconds added in v1.12.0

func (o GetAccountConsistencyPolicyOutput) MaxIntervalInSeconds() pulumi.IntOutput

The amount of staleness (in seconds) tolerated when the consistency level is Bounded Staleness.

func (GetAccountConsistencyPolicyOutput) MaxStalenessPrefix added in v1.12.0

func (o GetAccountConsistencyPolicyOutput) MaxStalenessPrefix() pulumi.IntOutput

The number of stale requests tolerated when the consistency level is Bounded Staleness.

func (GetAccountConsistencyPolicyOutput) ToGetAccountConsistencyPolicyOutput added in v1.12.0

func (o GetAccountConsistencyPolicyOutput) ToGetAccountConsistencyPolicyOutput() GetAccountConsistencyPolicyOutput

func (GetAccountConsistencyPolicyOutput) ToGetAccountConsistencyPolicyOutputWithContext added in v1.12.0

func (o GetAccountConsistencyPolicyOutput) ToGetAccountConsistencyPolicyOutputWithContext(ctx context.Context) GetAccountConsistencyPolicyOutput

type GetAccountGeoLocation added in v1.12.0

type GetAccountGeoLocation struct {
	FailoverPriority int `pulumi:"failoverPriority"`
	// The ID of the virtual network subnet.
	Id string `pulumi:"id"`
	// The name of the Azure region hosting replicated data.
	Location string `pulumi:"location"`
}

type GetAccountGeoLocationArgs added in v1.12.0

type GetAccountGeoLocationArgs struct {
	FailoverPriority pulumi.IntInput `pulumi:"failoverPriority"`
	// The ID of the virtual network subnet.
	Id pulumi.StringInput `pulumi:"id"`
	// The name of the Azure region hosting replicated data.
	Location pulumi.StringInput `pulumi:"location"`
}

func (GetAccountGeoLocationArgs) ElementType added in v1.12.0

func (GetAccountGeoLocationArgs) ElementType() reflect.Type

func (GetAccountGeoLocationArgs) ToGetAccountGeoLocationOutput added in v1.12.0

func (i GetAccountGeoLocationArgs) ToGetAccountGeoLocationOutput() GetAccountGeoLocationOutput

func (GetAccountGeoLocationArgs) ToGetAccountGeoLocationOutputWithContext added in v1.12.0

func (i GetAccountGeoLocationArgs) ToGetAccountGeoLocationOutputWithContext(ctx context.Context) GetAccountGeoLocationOutput

type GetAccountGeoLocationArray added in v1.12.0

type GetAccountGeoLocationArray []GetAccountGeoLocationInput

func (GetAccountGeoLocationArray) ElementType added in v1.12.0

func (GetAccountGeoLocationArray) ElementType() reflect.Type

func (GetAccountGeoLocationArray) ToGetAccountGeoLocationArrayOutput added in v1.12.0

func (i GetAccountGeoLocationArray) ToGetAccountGeoLocationArrayOutput() GetAccountGeoLocationArrayOutput

func (GetAccountGeoLocationArray) ToGetAccountGeoLocationArrayOutputWithContext added in v1.12.0

func (i GetAccountGeoLocationArray) ToGetAccountGeoLocationArrayOutputWithContext(ctx context.Context) GetAccountGeoLocationArrayOutput

type GetAccountGeoLocationArrayInput added in v1.12.0

type GetAccountGeoLocationArrayInput interface {
	pulumi.Input

	ToGetAccountGeoLocationArrayOutput() GetAccountGeoLocationArrayOutput
	ToGetAccountGeoLocationArrayOutputWithContext(context.Context) GetAccountGeoLocationArrayOutput
}

type GetAccountGeoLocationArrayOutput added in v1.12.0

type GetAccountGeoLocationArrayOutput struct{ *pulumi.OutputState }

func (GetAccountGeoLocationArrayOutput) ElementType added in v1.12.0

func (GetAccountGeoLocationArrayOutput) Index added in v1.12.0

func (GetAccountGeoLocationArrayOutput) ToGetAccountGeoLocationArrayOutput added in v1.12.0

func (o GetAccountGeoLocationArrayOutput) ToGetAccountGeoLocationArrayOutput() GetAccountGeoLocationArrayOutput

func (GetAccountGeoLocationArrayOutput) ToGetAccountGeoLocationArrayOutputWithContext added in v1.12.0

func (o GetAccountGeoLocationArrayOutput) ToGetAccountGeoLocationArrayOutputWithContext(ctx context.Context) GetAccountGeoLocationArrayOutput

type GetAccountGeoLocationInput added in v1.12.0

type GetAccountGeoLocationInput interface {
	pulumi.Input

	ToGetAccountGeoLocationOutput() GetAccountGeoLocationOutput
	ToGetAccountGeoLocationOutputWithContext(context.Context) GetAccountGeoLocationOutput
}

type GetAccountGeoLocationOutput added in v1.12.0

type GetAccountGeoLocationOutput struct{ *pulumi.OutputState }

func (GetAccountGeoLocationOutput) ElementType added in v1.12.0

func (GetAccountGeoLocationOutput) FailoverPriority added in v1.12.0

func (o GetAccountGeoLocationOutput) FailoverPriority() pulumi.IntOutput

func (GetAccountGeoLocationOutput) Id added in v1.12.0

The ID of the virtual network subnet.

func (GetAccountGeoLocationOutput) Location added in v1.12.0

The name of the Azure region hosting replicated data.

func (GetAccountGeoLocationOutput) ToGetAccountGeoLocationOutput added in v1.12.0

func (o GetAccountGeoLocationOutput) ToGetAccountGeoLocationOutput() GetAccountGeoLocationOutput

func (GetAccountGeoLocationOutput) ToGetAccountGeoLocationOutputWithContext added in v1.12.0

func (o GetAccountGeoLocationOutput) ToGetAccountGeoLocationOutputWithContext(ctx context.Context) GetAccountGeoLocationOutput

type GetAccountVirtualNetworkRule added in v1.12.0

type GetAccountVirtualNetworkRule struct {
	// The ID of the virtual network subnet.
	Id string `pulumi:"id"`
}

type GetAccountVirtualNetworkRuleArgs added in v1.12.0

type GetAccountVirtualNetworkRuleArgs struct {
	// The ID of the virtual network subnet.
	Id pulumi.StringInput `pulumi:"id"`
}

func (GetAccountVirtualNetworkRuleArgs) ElementType added in v1.12.0

func (GetAccountVirtualNetworkRuleArgs) ToGetAccountVirtualNetworkRuleOutput added in v1.12.0

func (i GetAccountVirtualNetworkRuleArgs) ToGetAccountVirtualNetworkRuleOutput() GetAccountVirtualNetworkRuleOutput

func (GetAccountVirtualNetworkRuleArgs) ToGetAccountVirtualNetworkRuleOutputWithContext added in v1.12.0

func (i GetAccountVirtualNetworkRuleArgs) ToGetAccountVirtualNetworkRuleOutputWithContext(ctx context.Context) GetAccountVirtualNetworkRuleOutput

type GetAccountVirtualNetworkRuleArray added in v1.12.0

type GetAccountVirtualNetworkRuleArray []GetAccountVirtualNetworkRuleInput

func (GetAccountVirtualNetworkRuleArray) ElementType added in v1.12.0

func (GetAccountVirtualNetworkRuleArray) ToGetAccountVirtualNetworkRuleArrayOutput added in v1.12.0

func (i GetAccountVirtualNetworkRuleArray) ToGetAccountVirtualNetworkRuleArrayOutput() GetAccountVirtualNetworkRuleArrayOutput

func (GetAccountVirtualNetworkRuleArray) ToGetAccountVirtualNetworkRuleArrayOutputWithContext added in v1.12.0

func (i GetAccountVirtualNetworkRuleArray) ToGetAccountVirtualNetworkRuleArrayOutputWithContext(ctx context.Context) GetAccountVirtualNetworkRuleArrayOutput

type GetAccountVirtualNetworkRuleArrayInput added in v1.12.0

type GetAccountVirtualNetworkRuleArrayInput interface {
	pulumi.Input

	ToGetAccountVirtualNetworkRuleArrayOutput() GetAccountVirtualNetworkRuleArrayOutput
	ToGetAccountVirtualNetworkRuleArrayOutputWithContext(context.Context) GetAccountVirtualNetworkRuleArrayOutput
}

type GetAccountVirtualNetworkRuleArrayOutput added in v1.12.0

type GetAccountVirtualNetworkRuleArrayOutput struct{ *pulumi.OutputState }

func (GetAccountVirtualNetworkRuleArrayOutput) ElementType added in v1.12.0

func (GetAccountVirtualNetworkRuleArrayOutput) Index added in v1.12.0

func (GetAccountVirtualNetworkRuleArrayOutput) ToGetAccountVirtualNetworkRuleArrayOutput added in v1.12.0

func (o GetAccountVirtualNetworkRuleArrayOutput) ToGetAccountVirtualNetworkRuleArrayOutput() GetAccountVirtualNetworkRuleArrayOutput

func (GetAccountVirtualNetworkRuleArrayOutput) ToGetAccountVirtualNetworkRuleArrayOutputWithContext added in v1.12.0

func (o GetAccountVirtualNetworkRuleArrayOutput) ToGetAccountVirtualNetworkRuleArrayOutputWithContext(ctx context.Context) GetAccountVirtualNetworkRuleArrayOutput

type GetAccountVirtualNetworkRuleInput added in v1.12.0

type GetAccountVirtualNetworkRuleInput interface {
	pulumi.Input

	ToGetAccountVirtualNetworkRuleOutput() GetAccountVirtualNetworkRuleOutput
	ToGetAccountVirtualNetworkRuleOutputWithContext(context.Context) GetAccountVirtualNetworkRuleOutput
}

type GetAccountVirtualNetworkRuleOutput added in v1.12.0

type GetAccountVirtualNetworkRuleOutput struct{ *pulumi.OutputState }

func (GetAccountVirtualNetworkRuleOutput) ElementType added in v1.12.0

func (GetAccountVirtualNetworkRuleOutput) Id added in v1.12.0

The ID of the virtual network subnet.

func (GetAccountVirtualNetworkRuleOutput) ToGetAccountVirtualNetworkRuleOutput added in v1.12.0

func (o GetAccountVirtualNetworkRuleOutput) ToGetAccountVirtualNetworkRuleOutput() GetAccountVirtualNetworkRuleOutput

func (GetAccountVirtualNetworkRuleOutput) ToGetAccountVirtualNetworkRuleOutputWithContext added in v1.12.0

func (o GetAccountVirtualNetworkRuleOutput) ToGetAccountVirtualNetworkRuleOutputWithContext(ctx context.Context) GetAccountVirtualNetworkRuleOutput

type GremlinDatabase added in v1.10.0

type GremlinDatabase struct {
	pulumi.CustomResourceState

	// The name of the CosmosDB Account to create the Gremlin Database within. Changing this forces a new resource to be created.
	AccountName pulumi.StringOutput `pulumi:"accountName"`
	// Specifies the name of the Cosmos DB Gremlin Database. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the resource group in which the Cosmos DB Gremlin Database is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	Throughput        pulumi.IntOutput    `pulumi:"throughput"`
}

Manages a Gremlin Database within a Cosmos DB Account.

> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/cosmosdb_gremlin_database.html.markdown.

func GetGremlinDatabase added in v1.10.0

func GetGremlinDatabase(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GremlinDatabaseState, opts ...pulumi.ResourceOption) (*GremlinDatabase, error)

GetGremlinDatabase gets an existing GremlinDatabase resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewGremlinDatabase added in v1.10.0

func NewGremlinDatabase(ctx *pulumi.Context,
	name string, args *GremlinDatabaseArgs, opts ...pulumi.ResourceOption) (*GremlinDatabase, error)

NewGremlinDatabase registers a new resource with the given unique name, arguments, and options.

type GremlinDatabaseArgs added in v1.10.0

type GremlinDatabaseArgs struct {
	// The name of the CosmosDB Account to create the Gremlin Database within. Changing this forces a new resource to be created.
	AccountName pulumi.StringInput
	// Specifies the name of the Cosmos DB Gremlin Database. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the resource group in which the Cosmos DB Gremlin Database is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	Throughput        pulumi.IntPtrInput
}

The set of arguments for constructing a GremlinDatabase resource.

func (GremlinDatabaseArgs) ElementType added in v1.12.0

func (GremlinDatabaseArgs) ElementType() reflect.Type

type GremlinDatabaseState added in v1.10.0

type GremlinDatabaseState struct {
	// The name of the CosmosDB Account to create the Gremlin Database within. Changing this forces a new resource to be created.
	AccountName pulumi.StringPtrInput
	// Specifies the name of the Cosmos DB Gremlin Database. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the resource group in which the Cosmos DB Gremlin Database is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	Throughput        pulumi.IntPtrInput
}

func (GremlinDatabaseState) ElementType added in v1.12.0

func (GremlinDatabaseState) ElementType() reflect.Type

type GremlinGraph added in v1.11.0

type GremlinGraph struct {
	pulumi.CustomResourceState

	// The name of the CosmosDB Account to create the Gremlin Graph within. Changing this forces a new resource to be created.
	AccountName pulumi.StringOutput `pulumi:"accountName"`
	// The conflict resolution policy for the graph. One or more `conflictResolutionPolicy` blocks as defined below. Changing this forces a new resource to be created.
	ConflictResolutionPolicies GremlinGraphConflictResolutionPolicyArrayOutput `pulumi:"conflictResolutionPolicies"`
	// The name of the Cosmos DB Graph Database in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// The configuration of the indexing policy. One or more `indexPolicy` blocks as defined below. Changing this forces a new resource to be created.
	IndexPolicies GremlinGraphIndexPolicyArrayOutput `pulumi:"indexPolicies"`
	// Specifies the name of the Cosmos DB Gremlin Graph. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Define a partition key. Changing this forces a new resource to be created.
	PartitionKeyPath pulumi.StringPtrOutput `pulumi:"partitionKeyPath"`
	// The name of the resource group in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	Throughput        pulumi.IntOutput    `pulumi:"throughput"`
	// One or more `uniqueKey` blocks as defined below. Changing this forces a new resource to be created.
	UniqueKeys GremlinGraphUniqueKeyArrayOutput `pulumi:"uniqueKeys"`
}

Manages a Gremlin Graph within a Cosmos DB Account.

> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/cosmosdb_gremlin_graph.html.markdown.

func GetGremlinGraph added in v1.11.0

func GetGremlinGraph(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GremlinGraphState, opts ...pulumi.ResourceOption) (*GremlinGraph, error)

GetGremlinGraph gets an existing GremlinGraph resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewGremlinGraph added in v1.11.0

func NewGremlinGraph(ctx *pulumi.Context,
	name string, args *GremlinGraphArgs, opts ...pulumi.ResourceOption) (*GremlinGraph, error)

NewGremlinGraph registers a new resource with the given unique name, arguments, and options.

type GremlinGraphArgs added in v1.11.0

type GremlinGraphArgs struct {
	// The name of the CosmosDB Account to create the Gremlin Graph within. Changing this forces a new resource to be created.
	AccountName pulumi.StringInput
	// The conflict resolution policy for the graph. One or more `conflictResolutionPolicy` blocks as defined below. Changing this forces a new resource to be created.
	ConflictResolutionPolicies GremlinGraphConflictResolutionPolicyArrayInput
	// The name of the Cosmos DB Graph Database in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
	DatabaseName pulumi.StringInput
	// The configuration of the indexing policy. One or more `indexPolicy` blocks as defined below. Changing this forces a new resource to be created.
	IndexPolicies GremlinGraphIndexPolicyArrayInput
	// Specifies the name of the Cosmos DB Gremlin Graph. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// Define a partition key. Changing this forces a new resource to be created.
	PartitionKeyPath pulumi.StringPtrInput
	// The name of the resource group in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	Throughput        pulumi.IntPtrInput
	// One or more `uniqueKey` blocks as defined below. Changing this forces a new resource to be created.
	UniqueKeys GremlinGraphUniqueKeyArrayInput
}

The set of arguments for constructing a GremlinGraph resource.

func (GremlinGraphArgs) ElementType added in v1.12.0

func (GremlinGraphArgs) ElementType() reflect.Type

type GremlinGraphConflictResolutionPolicy added in v1.12.0

type GremlinGraphConflictResolutionPolicy struct {
	ConflictResolutionPath      *string `pulumi:"conflictResolutionPath"`
	ConflictResolutionProcedure *string `pulumi:"conflictResolutionProcedure"`
	Mode                        string  `pulumi:"mode"`
}

type GremlinGraphConflictResolutionPolicyArgs added in v1.12.0

type GremlinGraphConflictResolutionPolicyArgs struct {
	ConflictResolutionPath      pulumi.StringPtrInput `pulumi:"conflictResolutionPath"`
	ConflictResolutionProcedure pulumi.StringPtrInput `pulumi:"conflictResolutionProcedure"`
	Mode                        pulumi.StringInput    `pulumi:"mode"`
}

func (GremlinGraphConflictResolutionPolicyArgs) ElementType added in v1.12.0

func (GremlinGraphConflictResolutionPolicyArgs) ToGremlinGraphConflictResolutionPolicyOutput added in v1.12.0

func (i GremlinGraphConflictResolutionPolicyArgs) ToGremlinGraphConflictResolutionPolicyOutput() GremlinGraphConflictResolutionPolicyOutput

func (GremlinGraphConflictResolutionPolicyArgs) ToGremlinGraphConflictResolutionPolicyOutputWithContext added in v1.12.0

func (i GremlinGraphConflictResolutionPolicyArgs) ToGremlinGraphConflictResolutionPolicyOutputWithContext(ctx context.Context) GremlinGraphConflictResolutionPolicyOutput

type GremlinGraphConflictResolutionPolicyArray added in v1.12.0

type GremlinGraphConflictResolutionPolicyArray []GremlinGraphConflictResolutionPolicyInput

func (GremlinGraphConflictResolutionPolicyArray) ElementType added in v1.12.0

func (GremlinGraphConflictResolutionPolicyArray) ToGremlinGraphConflictResolutionPolicyArrayOutput added in v1.12.0

func (i GremlinGraphConflictResolutionPolicyArray) ToGremlinGraphConflictResolutionPolicyArrayOutput() GremlinGraphConflictResolutionPolicyArrayOutput

func (GremlinGraphConflictResolutionPolicyArray) ToGremlinGraphConflictResolutionPolicyArrayOutputWithContext added in v1.12.0

func (i GremlinGraphConflictResolutionPolicyArray) ToGremlinGraphConflictResolutionPolicyArrayOutputWithContext(ctx context.Context) GremlinGraphConflictResolutionPolicyArrayOutput

type GremlinGraphConflictResolutionPolicyArrayInput added in v1.12.0

type GremlinGraphConflictResolutionPolicyArrayInput interface {
	pulumi.Input

	ToGremlinGraphConflictResolutionPolicyArrayOutput() GremlinGraphConflictResolutionPolicyArrayOutput
	ToGremlinGraphConflictResolutionPolicyArrayOutputWithContext(context.Context) GremlinGraphConflictResolutionPolicyArrayOutput
}

type GremlinGraphConflictResolutionPolicyArrayOutput added in v1.12.0

type GremlinGraphConflictResolutionPolicyArrayOutput struct{ *pulumi.OutputState }

func (GremlinGraphConflictResolutionPolicyArrayOutput) ElementType added in v1.12.0

func (GremlinGraphConflictResolutionPolicyArrayOutput) Index added in v1.12.0

func (GremlinGraphConflictResolutionPolicyArrayOutput) ToGremlinGraphConflictResolutionPolicyArrayOutput added in v1.12.0

func (o GremlinGraphConflictResolutionPolicyArrayOutput) ToGremlinGraphConflictResolutionPolicyArrayOutput() GremlinGraphConflictResolutionPolicyArrayOutput

func (GremlinGraphConflictResolutionPolicyArrayOutput) ToGremlinGraphConflictResolutionPolicyArrayOutputWithContext added in v1.12.0

func (o GremlinGraphConflictResolutionPolicyArrayOutput) ToGremlinGraphConflictResolutionPolicyArrayOutputWithContext(ctx context.Context) GremlinGraphConflictResolutionPolicyArrayOutput

type GremlinGraphConflictResolutionPolicyInput added in v1.12.0

type GremlinGraphConflictResolutionPolicyInput interface {
	pulumi.Input

	ToGremlinGraphConflictResolutionPolicyOutput() GremlinGraphConflictResolutionPolicyOutput
	ToGremlinGraphConflictResolutionPolicyOutputWithContext(context.Context) GremlinGraphConflictResolutionPolicyOutput
}

type GremlinGraphConflictResolutionPolicyOutput added in v1.12.0

type GremlinGraphConflictResolutionPolicyOutput struct{ *pulumi.OutputState }

func (GremlinGraphConflictResolutionPolicyOutput) ConflictResolutionPath added in v1.12.0

func (GremlinGraphConflictResolutionPolicyOutput) ConflictResolutionProcedure added in v1.12.0

func (o GremlinGraphConflictResolutionPolicyOutput) ConflictResolutionProcedure() pulumi.StringPtrOutput

func (GremlinGraphConflictResolutionPolicyOutput) ElementType added in v1.12.0

func (GremlinGraphConflictResolutionPolicyOutput) Mode added in v1.12.0

func (GremlinGraphConflictResolutionPolicyOutput) ToGremlinGraphConflictResolutionPolicyOutput added in v1.12.0

func (o GremlinGraphConflictResolutionPolicyOutput) ToGremlinGraphConflictResolutionPolicyOutput() GremlinGraphConflictResolutionPolicyOutput

func (GremlinGraphConflictResolutionPolicyOutput) ToGremlinGraphConflictResolutionPolicyOutputWithContext added in v1.12.0

func (o GremlinGraphConflictResolutionPolicyOutput) ToGremlinGraphConflictResolutionPolicyOutputWithContext(ctx context.Context) GremlinGraphConflictResolutionPolicyOutput

type GremlinGraphIndexPolicy added in v1.12.0

type GremlinGraphIndexPolicy struct {
	Automatic     *bool    `pulumi:"automatic"`
	ExcludedPaths []string `pulumi:"excludedPaths"`
	IncludedPaths []string `pulumi:"includedPaths"`
	IndexingMode  string   `pulumi:"indexingMode"`
}

type GremlinGraphIndexPolicyArgs added in v1.12.0

type GremlinGraphIndexPolicyArgs struct {
	Automatic     pulumi.BoolPtrInput     `pulumi:"automatic"`
	ExcludedPaths pulumi.StringArrayInput `pulumi:"excludedPaths"`
	IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"`
	IndexingMode  pulumi.StringInput      `pulumi:"indexingMode"`
}

func (GremlinGraphIndexPolicyArgs) ElementType added in v1.12.0

func (GremlinGraphIndexPolicyArgs) ToGremlinGraphIndexPolicyOutput added in v1.12.0

func (i GremlinGraphIndexPolicyArgs) ToGremlinGraphIndexPolicyOutput() GremlinGraphIndexPolicyOutput

func (GremlinGraphIndexPolicyArgs) ToGremlinGraphIndexPolicyOutputWithContext added in v1.12.0

func (i GremlinGraphIndexPolicyArgs) ToGremlinGraphIndexPolicyOutputWithContext(ctx context.Context) GremlinGraphIndexPolicyOutput

type GremlinGraphIndexPolicyArray added in v1.12.0

type GremlinGraphIndexPolicyArray []GremlinGraphIndexPolicyInput

func (GremlinGraphIndexPolicyArray) ElementType added in v1.12.0

func (GremlinGraphIndexPolicyArray) ToGremlinGraphIndexPolicyArrayOutput added in v1.12.0

func (i GremlinGraphIndexPolicyArray) ToGremlinGraphIndexPolicyArrayOutput() GremlinGraphIndexPolicyArrayOutput

func (GremlinGraphIndexPolicyArray) ToGremlinGraphIndexPolicyArrayOutputWithContext added in v1.12.0

func (i GremlinGraphIndexPolicyArray) ToGremlinGraphIndexPolicyArrayOutputWithContext(ctx context.Context) GremlinGraphIndexPolicyArrayOutput

type GremlinGraphIndexPolicyArrayInput added in v1.12.0

type GremlinGraphIndexPolicyArrayInput interface {
	pulumi.Input

	ToGremlinGraphIndexPolicyArrayOutput() GremlinGraphIndexPolicyArrayOutput
	ToGremlinGraphIndexPolicyArrayOutputWithContext(context.Context) GremlinGraphIndexPolicyArrayOutput
}

type GremlinGraphIndexPolicyArrayOutput added in v1.12.0

type GremlinGraphIndexPolicyArrayOutput struct{ *pulumi.OutputState }

func (GremlinGraphIndexPolicyArrayOutput) ElementType added in v1.12.0

func (GremlinGraphIndexPolicyArrayOutput) Index added in v1.12.0

func (GremlinGraphIndexPolicyArrayOutput) ToGremlinGraphIndexPolicyArrayOutput added in v1.12.0

func (o GremlinGraphIndexPolicyArrayOutput) ToGremlinGraphIndexPolicyArrayOutput() GremlinGraphIndexPolicyArrayOutput

func (GremlinGraphIndexPolicyArrayOutput) ToGremlinGraphIndexPolicyArrayOutputWithContext added in v1.12.0

func (o GremlinGraphIndexPolicyArrayOutput) ToGremlinGraphIndexPolicyArrayOutputWithContext(ctx context.Context) GremlinGraphIndexPolicyArrayOutput

type GremlinGraphIndexPolicyInput added in v1.12.0

type GremlinGraphIndexPolicyInput interface {
	pulumi.Input

	ToGremlinGraphIndexPolicyOutput() GremlinGraphIndexPolicyOutput
	ToGremlinGraphIndexPolicyOutputWithContext(context.Context) GremlinGraphIndexPolicyOutput
}

type GremlinGraphIndexPolicyOutput added in v1.12.0

type GremlinGraphIndexPolicyOutput struct{ *pulumi.OutputState }

func (GremlinGraphIndexPolicyOutput) Automatic added in v1.12.0

func (GremlinGraphIndexPolicyOutput) ElementType added in v1.12.0

func (GremlinGraphIndexPolicyOutput) ExcludedPaths added in v1.12.0

func (GremlinGraphIndexPolicyOutput) IncludedPaths added in v1.12.0

func (GremlinGraphIndexPolicyOutput) IndexingMode added in v1.12.0

func (GremlinGraphIndexPolicyOutput) ToGremlinGraphIndexPolicyOutput added in v1.12.0

func (o GremlinGraphIndexPolicyOutput) ToGremlinGraphIndexPolicyOutput() GremlinGraphIndexPolicyOutput

func (GremlinGraphIndexPolicyOutput) ToGremlinGraphIndexPolicyOutputWithContext added in v1.12.0

func (o GremlinGraphIndexPolicyOutput) ToGremlinGraphIndexPolicyOutputWithContext(ctx context.Context) GremlinGraphIndexPolicyOutput

type GremlinGraphState added in v1.11.0

type GremlinGraphState struct {
	// The name of the CosmosDB Account to create the Gremlin Graph within. Changing this forces a new resource to be created.
	AccountName pulumi.StringPtrInput
	// The conflict resolution policy for the graph. One or more `conflictResolutionPolicy` blocks as defined below. Changing this forces a new resource to be created.
	ConflictResolutionPolicies GremlinGraphConflictResolutionPolicyArrayInput
	// The name of the Cosmos DB Graph Database in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
	DatabaseName pulumi.StringPtrInput
	// The configuration of the indexing policy. One or more `indexPolicy` blocks as defined below. Changing this forces a new resource to be created.
	IndexPolicies GremlinGraphIndexPolicyArrayInput
	// Specifies the name of the Cosmos DB Gremlin Graph. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// Define a partition key. Changing this forces a new resource to be created.
	PartitionKeyPath pulumi.StringPtrInput
	// The name of the resource group in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	Throughput        pulumi.IntPtrInput
	// One or more `uniqueKey` blocks as defined below. Changing this forces a new resource to be created.
	UniqueKeys GremlinGraphUniqueKeyArrayInput
}

func (GremlinGraphState) ElementType added in v1.12.0

func (GremlinGraphState) ElementType() reflect.Type

type GremlinGraphUniqueKey added in v1.12.0

type GremlinGraphUniqueKey struct {
	Paths []string `pulumi:"paths"`
}

type GremlinGraphUniqueKeyArgs added in v1.12.0

type GremlinGraphUniqueKeyArgs struct {
	Paths pulumi.StringArrayInput `pulumi:"paths"`
}

func (GremlinGraphUniqueKeyArgs) ElementType added in v1.12.0

func (GremlinGraphUniqueKeyArgs) ElementType() reflect.Type

func (GremlinGraphUniqueKeyArgs) ToGremlinGraphUniqueKeyOutput added in v1.12.0

func (i GremlinGraphUniqueKeyArgs) ToGremlinGraphUniqueKeyOutput() GremlinGraphUniqueKeyOutput

func (GremlinGraphUniqueKeyArgs) ToGremlinGraphUniqueKeyOutputWithContext added in v1.12.0

func (i GremlinGraphUniqueKeyArgs) ToGremlinGraphUniqueKeyOutputWithContext(ctx context.Context) GremlinGraphUniqueKeyOutput

type GremlinGraphUniqueKeyArray added in v1.12.0

type GremlinGraphUniqueKeyArray []GremlinGraphUniqueKeyInput

func (GremlinGraphUniqueKeyArray) ElementType added in v1.12.0

func (GremlinGraphUniqueKeyArray) ElementType() reflect.Type

func (GremlinGraphUniqueKeyArray) ToGremlinGraphUniqueKeyArrayOutput added in v1.12.0

func (i GremlinGraphUniqueKeyArray) ToGremlinGraphUniqueKeyArrayOutput() GremlinGraphUniqueKeyArrayOutput

func (GremlinGraphUniqueKeyArray) ToGremlinGraphUniqueKeyArrayOutputWithContext added in v1.12.0

func (i GremlinGraphUniqueKeyArray) ToGremlinGraphUniqueKeyArrayOutputWithContext(ctx context.Context) GremlinGraphUniqueKeyArrayOutput

type GremlinGraphUniqueKeyArrayInput added in v1.12.0

type GremlinGraphUniqueKeyArrayInput interface {
	pulumi.Input

	ToGremlinGraphUniqueKeyArrayOutput() GremlinGraphUniqueKeyArrayOutput
	ToGremlinGraphUniqueKeyArrayOutputWithContext(context.Context) GremlinGraphUniqueKeyArrayOutput
}

type GremlinGraphUniqueKeyArrayOutput added in v1.12.0

type GremlinGraphUniqueKeyArrayOutput struct{ *pulumi.OutputState }

func (GremlinGraphUniqueKeyArrayOutput) ElementType added in v1.12.0

func (GremlinGraphUniqueKeyArrayOutput) Index added in v1.12.0

func (GremlinGraphUniqueKeyArrayOutput) ToGremlinGraphUniqueKeyArrayOutput added in v1.12.0

func (o GremlinGraphUniqueKeyArrayOutput) ToGremlinGraphUniqueKeyArrayOutput() GremlinGraphUniqueKeyArrayOutput

func (GremlinGraphUniqueKeyArrayOutput) ToGremlinGraphUniqueKeyArrayOutputWithContext added in v1.12.0

func (o GremlinGraphUniqueKeyArrayOutput) ToGremlinGraphUniqueKeyArrayOutputWithContext(ctx context.Context) GremlinGraphUniqueKeyArrayOutput

type GremlinGraphUniqueKeyInput added in v1.12.0

type GremlinGraphUniqueKeyInput interface {
	pulumi.Input

	ToGremlinGraphUniqueKeyOutput() GremlinGraphUniqueKeyOutput
	ToGremlinGraphUniqueKeyOutputWithContext(context.Context) GremlinGraphUniqueKeyOutput
}

type GremlinGraphUniqueKeyOutput added in v1.12.0

type GremlinGraphUniqueKeyOutput struct{ *pulumi.OutputState }

func (GremlinGraphUniqueKeyOutput) ElementType added in v1.12.0

func (GremlinGraphUniqueKeyOutput) Paths added in v1.12.0

func (GremlinGraphUniqueKeyOutput) ToGremlinGraphUniqueKeyOutput added in v1.12.0

func (o GremlinGraphUniqueKeyOutput) ToGremlinGraphUniqueKeyOutput() GremlinGraphUniqueKeyOutput

func (GremlinGraphUniqueKeyOutput) ToGremlinGraphUniqueKeyOutputWithContext added in v1.12.0

func (o GremlinGraphUniqueKeyOutput) ToGremlinGraphUniqueKeyOutputWithContext(ctx context.Context) GremlinGraphUniqueKeyOutput

type LookupAccountArgs added in v1.12.0

type LookupAccountArgs struct {
	// Specifies the name of the CosmosDB Account.
	Name string `pulumi:"name"`
	// Specifies the name of the resource group in which the CosmosDB Account resides.
	ResourceGroupName string `pulumi:"resourceGroupName"`
}

A collection of arguments for invoking getAccount.

type LookupAccountResult added in v1.12.0

type LookupAccountResult struct {
	// Capabilities enabled on this Cosmos DB account.
	Capabilities        []GetAccountCapability        `pulumi:"capabilities"`
	ConsistencyPolicies []GetAccountConsistencyPolicy `pulumi:"consistencyPolicies"`
	// If automatic failover is enabled for this CosmosDB Account.
	EnableAutomaticFailover bool `pulumi:"enableAutomaticFailover"`
	// If multi-master is enabled for this Cosmos DB account.
	EnableMultipleWriteLocations bool `pulumi:"enableMultipleWriteLocations"`
	// The endpoint used to connect to the CosmosDB account.
	Endpoint     string                  `pulumi:"endpoint"`
	GeoLocations []GetAccountGeoLocation `pulumi:"geoLocations"`
	// id is the provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The current IP Filter for this CosmosDB account
	IpRangeFilter string `pulumi:"ipRangeFilter"`
	// If virtual network filtering is enabled for this Cosmos DB account.
	IsVirtualNetworkFilterEnabled bool `pulumi:"isVirtualNetworkFilterEnabled"`
	// The Kind of the CosmosDB account.
	Kind string `pulumi:"kind"`
	// The name of the Azure region hosting replicated data.
	Location string `pulumi:"location"`
	Name     string `pulumi:"name"`
	// The Offer Type to used by this CosmosDB Account.
	OfferType string `pulumi:"offerType"`
	// The Primary master key for the CosmosDB Account.
	PrimaryMasterKey string `pulumi:"primaryMasterKey"`
	// The Primary read-only master Key for the CosmosDB Account.
	PrimaryReadonlyMasterKey string `pulumi:"primaryReadonlyMasterKey"`
	// A list of read endpoints available for this CosmosDB account.
	ReadEndpoints     []string `pulumi:"readEndpoints"`
	ResourceGroupName string   `pulumi:"resourceGroupName"`
	// The Secondary master key for the CosmosDB Account.
	SecondaryMasterKey string `pulumi:"secondaryMasterKey"`
	// The Secondary read-only master key for the CosmosDB Account.
	SecondaryReadonlyMasterKey string `pulumi:"secondaryReadonlyMasterKey"`
	// A mapping of tags assigned to the resource.
	Tags map[string]string `pulumi:"tags"`
	// Subnets that are allowed to access this CosmosDB account.
	VirtualNetworkRules []GetAccountVirtualNetworkRule `pulumi:"virtualNetworkRules"`
	// A list of write endpoints available for this CosmosDB account.
	WriteEndpoints []string `pulumi:"writeEndpoints"`
}

A collection of values returned by getAccount.

func LookupAccount

func LookupAccount(ctx *pulumi.Context, args *LookupAccountArgs, opts ...pulumi.InvokeOption) (*LookupAccountResult, error)

Use this data source to access information about an existing CosmosDB (formally DocumentDB) Account.

> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/d/cosmosdb_account.html.markdown.

type MongoCollection added in v0.18.3

type MongoCollection struct {
	pulumi.CustomResourceState

	AccountName pulumi.StringOutput `pulumi:"accountName"`
	// The name of the Cosmos DB Mongo Database in which the Cosmos DB Mongo Collection is created. Changing this forces a new resource to be created.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// The default Time To Live in seconds. If the value is `-1` items are not automatically expired.
	DefaultTtlSeconds pulumi.IntPtrOutput `pulumi:"defaultTtlSeconds"`
	// One or more `indexes` blocks as defined below.
	Indexes MongoCollectionIndexArrayOutput `pulumi:"indexes"`
	// Specifies the name of the Cosmos DB Mongo Collection. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the resource group in which the Cosmos DB Mongo Collection is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// The name of the key to partition on for sharding. There must not be any other unique index keys.
	ShardKey   pulumi.StringPtrOutput `pulumi:"shardKey"`
	Throughput pulumi.IntOutput       `pulumi:"throughput"`
}

Manages a Mongo Collection within a Cosmos DB Account.

> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/cosmosdb_mongo_collection.html.markdown.

func GetMongoCollection added in v0.18.3

func GetMongoCollection(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MongoCollectionState, opts ...pulumi.ResourceOption) (*MongoCollection, error)

GetMongoCollection gets an existing MongoCollection resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewMongoCollection added in v0.18.3

func NewMongoCollection(ctx *pulumi.Context,
	name string, args *MongoCollectionArgs, opts ...pulumi.ResourceOption) (*MongoCollection, error)

NewMongoCollection registers a new resource with the given unique name, arguments, and options.

type MongoCollectionArgs added in v0.18.3

type MongoCollectionArgs struct {
	AccountName pulumi.StringInput
	// The name of the Cosmos DB Mongo Database in which the Cosmos DB Mongo Collection is created. Changing this forces a new resource to be created.
	DatabaseName pulumi.StringInput
	// The default Time To Live in seconds. If the value is `-1` items are not automatically expired.
	DefaultTtlSeconds pulumi.IntPtrInput
	// One or more `indexes` blocks as defined below.
	Indexes MongoCollectionIndexArrayInput
	// Specifies the name of the Cosmos DB Mongo Collection. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the resource group in which the Cosmos DB Mongo Collection is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// The name of the key to partition on for sharding. There must not be any other unique index keys.
	ShardKey   pulumi.StringPtrInput
	Throughput pulumi.IntPtrInput
}

The set of arguments for constructing a MongoCollection resource.

func (MongoCollectionArgs) ElementType added in v1.12.0

func (MongoCollectionArgs) ElementType() reflect.Type

type MongoCollectionIndex added in v1.12.0

type MongoCollectionIndex struct {
	Key    string `pulumi:"key"`
	Unique *bool  `pulumi:"unique"`
}

type MongoCollectionIndexArgs added in v1.12.0

type MongoCollectionIndexArgs struct {
	Key    pulumi.StringInput  `pulumi:"key"`
	Unique pulumi.BoolPtrInput `pulumi:"unique"`
}

func (MongoCollectionIndexArgs) ElementType added in v1.12.0

func (MongoCollectionIndexArgs) ElementType() reflect.Type

func (MongoCollectionIndexArgs) ToMongoCollectionIndexOutput added in v1.12.0

func (i MongoCollectionIndexArgs) ToMongoCollectionIndexOutput() MongoCollectionIndexOutput

func (MongoCollectionIndexArgs) ToMongoCollectionIndexOutputWithContext added in v1.12.0

func (i MongoCollectionIndexArgs) ToMongoCollectionIndexOutputWithContext(ctx context.Context) MongoCollectionIndexOutput

type MongoCollectionIndexArray added in v1.12.0

type MongoCollectionIndexArray []MongoCollectionIndexInput

func (MongoCollectionIndexArray) ElementType added in v1.12.0

func (MongoCollectionIndexArray) ElementType() reflect.Type

func (MongoCollectionIndexArray) ToMongoCollectionIndexArrayOutput added in v1.12.0

func (i MongoCollectionIndexArray) ToMongoCollectionIndexArrayOutput() MongoCollectionIndexArrayOutput

func (MongoCollectionIndexArray) ToMongoCollectionIndexArrayOutputWithContext added in v1.12.0

func (i MongoCollectionIndexArray) ToMongoCollectionIndexArrayOutputWithContext(ctx context.Context) MongoCollectionIndexArrayOutput

type MongoCollectionIndexArrayInput added in v1.12.0

type MongoCollectionIndexArrayInput interface {
	pulumi.Input

	ToMongoCollectionIndexArrayOutput() MongoCollectionIndexArrayOutput
	ToMongoCollectionIndexArrayOutputWithContext(context.Context) MongoCollectionIndexArrayOutput
}

type MongoCollectionIndexArrayOutput added in v1.12.0

type MongoCollectionIndexArrayOutput struct{ *pulumi.OutputState }

func (MongoCollectionIndexArrayOutput) ElementType added in v1.12.0

func (MongoCollectionIndexArrayOutput) Index added in v1.12.0

func (MongoCollectionIndexArrayOutput) ToMongoCollectionIndexArrayOutput added in v1.12.0

func (o MongoCollectionIndexArrayOutput) ToMongoCollectionIndexArrayOutput() MongoCollectionIndexArrayOutput

func (MongoCollectionIndexArrayOutput) ToMongoCollectionIndexArrayOutputWithContext added in v1.12.0

func (o MongoCollectionIndexArrayOutput) ToMongoCollectionIndexArrayOutputWithContext(ctx context.Context) MongoCollectionIndexArrayOutput

type MongoCollectionIndexInput added in v1.12.0

type MongoCollectionIndexInput interface {
	pulumi.Input

	ToMongoCollectionIndexOutput() MongoCollectionIndexOutput
	ToMongoCollectionIndexOutputWithContext(context.Context) MongoCollectionIndexOutput
}

type MongoCollectionIndexOutput added in v1.12.0

type MongoCollectionIndexOutput struct{ *pulumi.OutputState }

func (MongoCollectionIndexOutput) ElementType added in v1.12.0

func (MongoCollectionIndexOutput) ElementType() reflect.Type

func (MongoCollectionIndexOutput) Key added in v1.12.0

func (MongoCollectionIndexOutput) ToMongoCollectionIndexOutput added in v1.12.0

func (o MongoCollectionIndexOutput) ToMongoCollectionIndexOutput() MongoCollectionIndexOutput

func (MongoCollectionIndexOutput) ToMongoCollectionIndexOutputWithContext added in v1.12.0

func (o MongoCollectionIndexOutput) ToMongoCollectionIndexOutputWithContext(ctx context.Context) MongoCollectionIndexOutput

func (MongoCollectionIndexOutput) Unique added in v1.12.0

type MongoCollectionState added in v0.18.3

type MongoCollectionState struct {
	AccountName pulumi.StringPtrInput
	// The name of the Cosmos DB Mongo Database in which the Cosmos DB Mongo Collection is created. Changing this forces a new resource to be created.
	DatabaseName pulumi.StringPtrInput
	// The default Time To Live in seconds. If the value is `-1` items are not automatically expired.
	DefaultTtlSeconds pulumi.IntPtrInput
	// One or more `indexes` blocks as defined below.
	Indexes MongoCollectionIndexArrayInput
	// Specifies the name of the Cosmos DB Mongo Collection. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the resource group in which the Cosmos DB Mongo Collection is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// The name of the key to partition on for sharding. There must not be any other unique index keys.
	ShardKey   pulumi.StringPtrInput
	Throughput pulumi.IntPtrInput
}

func (MongoCollectionState) ElementType added in v1.12.0

func (MongoCollectionState) ElementType() reflect.Type

type MongoDatabase added in v0.18.3

type MongoDatabase struct {
	pulumi.CustomResourceState

	// The name of the Cosmos DB Mongo Database to create the table within. Changing this forces a new resource to be created.
	AccountName pulumi.StringOutput `pulumi:"accountName"`
	// Specifies the name of the Cosmos DB Mongo Database. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the resource group in which the Cosmos DB Mongo Database is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	Throughput        pulumi.IntOutput    `pulumi:"throughput"`
}

Manages a Mongo Database within a Cosmos DB Account.

> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/cosmosdb_mongo_database.html.markdown.

func GetMongoDatabase added in v0.18.3

func GetMongoDatabase(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MongoDatabaseState, opts ...pulumi.ResourceOption) (*MongoDatabase, error)

GetMongoDatabase gets an existing MongoDatabase resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewMongoDatabase added in v0.18.3

func NewMongoDatabase(ctx *pulumi.Context,
	name string, args *MongoDatabaseArgs, opts ...pulumi.ResourceOption) (*MongoDatabase, error)

NewMongoDatabase registers a new resource with the given unique name, arguments, and options.

type MongoDatabaseArgs added in v0.18.3

type MongoDatabaseArgs struct {
	// The name of the Cosmos DB Mongo Database to create the table within. Changing this forces a new resource to be created.
	AccountName pulumi.StringInput
	// Specifies the name of the Cosmos DB Mongo Database. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the resource group in which the Cosmos DB Mongo Database is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	Throughput        pulumi.IntPtrInput
}

The set of arguments for constructing a MongoDatabase resource.

func (MongoDatabaseArgs) ElementType added in v1.12.0

func (MongoDatabaseArgs) ElementType() reflect.Type

type MongoDatabaseState added in v0.18.3

type MongoDatabaseState struct {
	// The name of the Cosmos DB Mongo Database to create the table within. Changing this forces a new resource to be created.
	AccountName pulumi.StringPtrInput
	// Specifies the name of the Cosmos DB Mongo Database. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the resource group in which the Cosmos DB Mongo Database is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	Throughput        pulumi.IntPtrInput
}

func (MongoDatabaseState) ElementType added in v1.12.0

func (MongoDatabaseState) ElementType() reflect.Type

type SqlContainer added in v1.0.0

type SqlContainer struct {
	pulumi.CustomResourceState

	// The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
	AccountName pulumi.StringOutput `pulumi:"accountName"`
	// The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// 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 number `n` – items will expire `n` seconds after their last modified time.
	DefaultTtl pulumi.IntOutput `pulumi:"defaultTtl"`
	// Specifies the name of the Cosmos DB SQL Database. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Define a partition key. Changing this forces a new resource to be created.
	PartitionKeyPath pulumi.StringPtrOutput `pulumi:"partitionKeyPath"`
	// The name of the resource group in which the Cosmos DB SQL Database is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	Throughput        pulumi.IntOutput    `pulumi:"throughput"`
	// One or more `uniqueKey` blocks as defined below. Changing this forces a new resource to be created.
	UniqueKeys SqlContainerUniqueKeyArrayOutput `pulumi:"uniqueKeys"`
}

Manages a SQL Container within a Cosmos DB Account.

> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/cosmosdb_sql_container.html.markdown.

func GetSqlContainer added in v1.0.0

func GetSqlContainer(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SqlContainerState, opts ...pulumi.ResourceOption) (*SqlContainer, error)

GetSqlContainer gets an existing SqlContainer resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSqlContainer added in v1.0.0

func NewSqlContainer(ctx *pulumi.Context,
	name string, args *SqlContainerArgs, opts ...pulumi.ResourceOption) (*SqlContainer, error)

NewSqlContainer registers a new resource with the given unique name, arguments, and options.

type SqlContainerArgs added in v1.0.0

type SqlContainerArgs struct {
	// The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
	AccountName pulumi.StringInput
	// The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
	DatabaseName pulumi.StringInput
	// 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 number `n` – items will expire `n` seconds after their last modified time.
	DefaultTtl pulumi.IntPtrInput
	// Specifies the name of the Cosmos DB SQL Database. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// Define a partition key. Changing this forces a new resource to be created.
	PartitionKeyPath pulumi.StringPtrInput
	// The name of the resource group in which the Cosmos DB SQL Database is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	Throughput        pulumi.IntPtrInput
	// One or more `uniqueKey` blocks as defined below. Changing this forces a new resource to be created.
	UniqueKeys SqlContainerUniqueKeyArrayInput
}

The set of arguments for constructing a SqlContainer resource.

func (SqlContainerArgs) ElementType added in v1.12.0

func (SqlContainerArgs) ElementType() reflect.Type

type SqlContainerState added in v1.0.0

type SqlContainerState struct {
	// The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
	AccountName pulumi.StringPtrInput
	// The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
	DatabaseName pulumi.StringPtrInput
	// 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 number `n` – items will expire `n` seconds after their last modified time.
	DefaultTtl pulumi.IntPtrInput
	// Specifies the name of the Cosmos DB SQL Database. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// Define a partition key. Changing this forces a new resource to be created.
	PartitionKeyPath pulumi.StringPtrInput
	// The name of the resource group in which the Cosmos DB SQL Database is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	Throughput        pulumi.IntPtrInput
	// One or more `uniqueKey` blocks as defined below. Changing this forces a new resource to be created.
	UniqueKeys SqlContainerUniqueKeyArrayInput
}

func (SqlContainerState) ElementType added in v1.12.0

func (SqlContainerState) ElementType() reflect.Type

type SqlContainerUniqueKey added in v1.12.0

type SqlContainerUniqueKey struct {
	Paths []string `pulumi:"paths"`
}

type SqlContainerUniqueKeyArgs added in v1.12.0

type SqlContainerUniqueKeyArgs struct {
	Paths pulumi.StringArrayInput `pulumi:"paths"`
}

func (SqlContainerUniqueKeyArgs) ElementType added in v1.12.0

func (SqlContainerUniqueKeyArgs) ElementType() reflect.Type

func (SqlContainerUniqueKeyArgs) ToSqlContainerUniqueKeyOutput added in v1.12.0

func (i SqlContainerUniqueKeyArgs) ToSqlContainerUniqueKeyOutput() SqlContainerUniqueKeyOutput

func (SqlContainerUniqueKeyArgs) ToSqlContainerUniqueKeyOutputWithContext added in v1.12.0

func (i SqlContainerUniqueKeyArgs) ToSqlContainerUniqueKeyOutputWithContext(ctx context.Context) SqlContainerUniqueKeyOutput

type SqlContainerUniqueKeyArray added in v1.12.0

type SqlContainerUniqueKeyArray []SqlContainerUniqueKeyInput

func (SqlContainerUniqueKeyArray) ElementType added in v1.12.0

func (SqlContainerUniqueKeyArray) ElementType() reflect.Type

func (SqlContainerUniqueKeyArray) ToSqlContainerUniqueKeyArrayOutput added in v1.12.0

func (i SqlContainerUniqueKeyArray) ToSqlContainerUniqueKeyArrayOutput() SqlContainerUniqueKeyArrayOutput

func (SqlContainerUniqueKeyArray) ToSqlContainerUniqueKeyArrayOutputWithContext added in v1.12.0

func (i SqlContainerUniqueKeyArray) ToSqlContainerUniqueKeyArrayOutputWithContext(ctx context.Context) SqlContainerUniqueKeyArrayOutput

type SqlContainerUniqueKeyArrayInput added in v1.12.0

type SqlContainerUniqueKeyArrayInput interface {
	pulumi.Input

	ToSqlContainerUniqueKeyArrayOutput() SqlContainerUniqueKeyArrayOutput
	ToSqlContainerUniqueKeyArrayOutputWithContext(context.Context) SqlContainerUniqueKeyArrayOutput
}

type SqlContainerUniqueKeyArrayOutput added in v1.12.0

type SqlContainerUniqueKeyArrayOutput struct{ *pulumi.OutputState }

func (SqlContainerUniqueKeyArrayOutput) ElementType added in v1.12.0

func (SqlContainerUniqueKeyArrayOutput) Index added in v1.12.0

func (SqlContainerUniqueKeyArrayOutput) ToSqlContainerUniqueKeyArrayOutput added in v1.12.0

func (o SqlContainerUniqueKeyArrayOutput) ToSqlContainerUniqueKeyArrayOutput() SqlContainerUniqueKeyArrayOutput

func (SqlContainerUniqueKeyArrayOutput) ToSqlContainerUniqueKeyArrayOutputWithContext added in v1.12.0

func (o SqlContainerUniqueKeyArrayOutput) ToSqlContainerUniqueKeyArrayOutputWithContext(ctx context.Context) SqlContainerUniqueKeyArrayOutput

type SqlContainerUniqueKeyInput added in v1.12.0

type SqlContainerUniqueKeyInput interface {
	pulumi.Input

	ToSqlContainerUniqueKeyOutput() SqlContainerUniqueKeyOutput
	ToSqlContainerUniqueKeyOutputWithContext(context.Context) SqlContainerUniqueKeyOutput
}

type SqlContainerUniqueKeyOutput added in v1.12.0

type SqlContainerUniqueKeyOutput struct{ *pulumi.OutputState }

func (SqlContainerUniqueKeyOutput) ElementType added in v1.12.0

func (SqlContainerUniqueKeyOutput) Paths added in v1.12.0

func (SqlContainerUniqueKeyOutput) ToSqlContainerUniqueKeyOutput added in v1.12.0

func (o SqlContainerUniqueKeyOutput) ToSqlContainerUniqueKeyOutput() SqlContainerUniqueKeyOutput

func (SqlContainerUniqueKeyOutput) ToSqlContainerUniqueKeyOutputWithContext added in v1.12.0

func (o SqlContainerUniqueKeyOutput) ToSqlContainerUniqueKeyOutputWithContext(ctx context.Context) SqlContainerUniqueKeyOutput

type SqlDatabase added in v0.18.3

type SqlDatabase struct {
	pulumi.CustomResourceState

	// The name of the Cosmos DB SQL Database to create the table within. Changing this forces a new resource to be created.
	AccountName pulumi.StringOutput `pulumi:"accountName"`
	// Specifies the name of the Cosmos DB SQL Database. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the resource group in which the Cosmos DB SQL Database is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	Throughput        pulumi.IntOutput    `pulumi:"throughput"`
}

Manages a SQL Database within a Cosmos DB Account.

> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/cosmosdb_sql_database.html.markdown.

func GetSqlDatabase added in v0.18.3

func GetSqlDatabase(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SqlDatabaseState, opts ...pulumi.ResourceOption) (*SqlDatabase, error)

GetSqlDatabase gets an existing SqlDatabase resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSqlDatabase added in v0.18.3

func NewSqlDatabase(ctx *pulumi.Context,
	name string, args *SqlDatabaseArgs, opts ...pulumi.ResourceOption) (*SqlDatabase, error)

NewSqlDatabase registers a new resource with the given unique name, arguments, and options.

type SqlDatabaseArgs added in v0.18.3

type SqlDatabaseArgs struct {
	// The name of the Cosmos DB SQL Database to create the table within. Changing this forces a new resource to be created.
	AccountName pulumi.StringInput
	// Specifies the name of the Cosmos DB SQL Database. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the resource group in which the Cosmos DB SQL Database is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	Throughput        pulumi.IntPtrInput
}

The set of arguments for constructing a SqlDatabase resource.

func (SqlDatabaseArgs) ElementType added in v1.12.0

func (SqlDatabaseArgs) ElementType() reflect.Type

type SqlDatabaseState added in v0.18.3

type SqlDatabaseState struct {
	// The name of the Cosmos DB SQL Database to create the table within. Changing this forces a new resource to be created.
	AccountName pulumi.StringPtrInput
	// Specifies the name of the Cosmos DB SQL Database. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the resource group in which the Cosmos DB SQL Database is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	Throughput        pulumi.IntPtrInput
}

func (SqlDatabaseState) ElementType added in v1.12.0

func (SqlDatabaseState) ElementType() reflect.Type

type Table added in v0.18.3

type Table struct {
	pulumi.CustomResourceState

	// The name of the Cosmos DB Table to create the table within. Changing this forces a new resource to be created.
	AccountName pulumi.StringOutput `pulumi:"accountName"`
	// Specifies the name of the Cosmos DB Table. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the resource group in which the Cosmos DB Table is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	Throughput        pulumi.IntOutput    `pulumi:"throughput"`
}

Manages a Table within a Cosmos DB Account.

> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/cosmosdb_table.html.markdown.

func GetTable added in v0.18.3

func GetTable(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TableState, opts ...pulumi.ResourceOption) (*Table, error)

GetTable gets an existing Table resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTable added in v0.18.3

func NewTable(ctx *pulumi.Context,
	name string, args *TableArgs, opts ...pulumi.ResourceOption) (*Table, error)

NewTable registers a new resource with the given unique name, arguments, and options.

type TableArgs added in v0.18.3

type TableArgs struct {
	// The name of the Cosmos DB Table to create the table within. Changing this forces a new resource to be created.
	AccountName pulumi.StringInput
	// Specifies the name of the Cosmos DB Table. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the resource group in which the Cosmos DB Table is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	Throughput        pulumi.IntPtrInput
}

The set of arguments for constructing a Table resource.

func (TableArgs) ElementType added in v1.12.0

func (TableArgs) ElementType() reflect.Type

type TableState added in v0.18.3

type TableState struct {
	// The name of the Cosmos DB Table to create the table within. Changing this forces a new resource to be created.
	AccountName pulumi.StringPtrInput
	// Specifies the name of the Cosmos DB Table. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the resource group in which the Cosmos DB Table is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	Throughput        pulumi.IntPtrInput
}

func (TableState) ElementType added in v1.12.0

func (TableState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL