cosmosdb

package
v3.56.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	pulumi.CustomResourceState

	// Enable Analytical Storage option for this Cosmos DB account. Defaults to `false`. Changing this forces a new resource to be created.
	AnalyticalStorageEnabled pulumi.BoolPtrOutput `pulumi:"analyticalStorageEnabled"`
	// The capabilities which should be enabled for this Cosmos DB account. Value is a `capabilities` block as defined below.
	Capabilities AccountCapabilityArrayOutput `pulumi:"capabilities"`
	// A list of connection strings available for this CosmosDB account.
	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 Free Tier pricing option for this Cosmos DB account. Defaults to `false`. Changing this forces a new resource to be created.
	EnableFreeTier pulumi.BoolPtrOutput `pulumi:"enableFreeTier"`
	// 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"`
	// Specifies a `geoLocation` resource, used to define where data should be replicated with the `failoverPriority` 0 specifying the primary location. Value is a `geoLocation` block as defined below.
	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"`
	// A versionless Key Vault Key ID for CMK encryption. Changing this forces a new resource to be created.
	KeyVaultKeyId pulumi.StringPtrOutput `pulumi:"keyVaultKeyId"`
	// 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"`
	// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
	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.
	PrimaryKey pulumi.StringOutput `pulumi:"primaryKey"`
	// Deprecated: This property has been renamed to `primary_key` and will be removed in v3.0 of the provider in support of HashiCorp's inclusive language policy which can be found here: https://discuss.hashicorp.com/t/inclusive-language-changes
	PrimaryMasterKey pulumi.StringOutput `pulumi:"primaryMasterKey"`
	// The Primary read-only master Key for the CosmosDB Account.
	PrimaryReadonlyKey pulumi.StringOutput `pulumi:"primaryReadonlyKey"`
	// Deprecated: This property has been renamed to `primary_readonly_key` and will be removed in v3.0 of the provider in support of HashiCorp's inclusive language policy which can be found here: https://discuss.hashicorp.com/t/inclusive-language-changes
	PrimaryReadonlyMasterKey pulumi.StringOutput `pulumi:"primaryReadonlyMasterKey"`
	// Whether or not public network access is allowed for this CosmosDB account.
	PublicNetworkAccessEnabled pulumi.BoolPtrOutput `pulumi:"publicNetworkAccessEnabled"`
	// 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.
	SecondaryKey pulumi.StringOutput `pulumi:"secondaryKey"`
	// Deprecated: This property has been renamed to `secondary_key` and will be removed in v3.0 of the provider in support of HashiCorp's inclusive language policy which can be found here: https://discuss.hashicorp.com/t/inclusive-language-changes
	SecondaryMasterKey pulumi.StringOutput `pulumi:"secondaryMasterKey"`
	// The Secondary read-only master key for the CosmosDB Account.
	SecondaryReadonlyKey pulumi.StringOutput `pulumi:"secondaryReadonlyKey"`
	// Deprecated: This property has been renamed to `secondary_readonly_key` and will be removed in v3.0 of the provider in support of HashiCorp's inclusive language policy which can be found here: https://discuss.hashicorp.com/t/inclusive-language-changes
	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.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/cosmosdb"
"github.com/pulumi/pulumi-random/sdk/v2/go/random"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		rg, err := core.NewResourceGroup(ctx, "rg", &core.ResourceGroupArgs{
			Location: pulumi.String("westus"),
		})
		if err != nil {
			return err
		}
		_, err = random.NewRandomInteger(ctx, "ri", &random.RandomIntegerArgs{
			Min: pulumi.Int(10000),
			Max: pulumi.Int(99999),
		})
		if err != nil {
			return err
		}
		_, err = cosmosdb.NewAccount(ctx, "db", &cosmosdb.AccountArgs{
			Location:                rg.Location,
			ResourceGroupName:       rg.Name,
			OfferType:               pulumi.String("Standard"),
			Kind:                    pulumi.String("GlobalDocumentDB"),
			EnableAutomaticFailover: pulumi.Bool(true),
			Capabilities: cosmosdb.AccountCapabilityArray{
				&cosmosdb.AccountCapabilityArgs{
					Name: pulumi.String("EnableAggregationPipeline"),
				},
				&cosmosdb.AccountCapabilityArgs{
					Name: pulumi.String("mongoEnableDocLevelTTL"),
				},
				&cosmosdb.AccountCapabilityArgs{
					Name: pulumi.String("MongoDBv3.4"),
				},
			},
			ConsistencyPolicy: &cosmosdb.AccountConsistencyPolicyArgs{
				ConsistencyLevel:     pulumi.String("BoundedStaleness"),
				MaxIntervalInSeconds: pulumi.Int(10),
				MaxStalenessPrefix:   pulumi.Int(200),
			},
			GeoLocations: cosmosdb.AccountGeoLocationArray{
				&cosmosdb.AccountGeoLocationArgs{
					Location:         pulumi.Any(_var.Failover_location),
					FailoverPriority: pulumi.Int(1),
				},
				&cosmosdb.AccountGeoLocationArgs{
					Location:         rg.Location,
					FailoverPriority: pulumi.Int(0),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CosmosDB Accounts can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:cosmosdb/account:Account account1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DocumentDB/databaseAccounts/account1

```

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.

func (*Account) ElementType added in v3.31.1

func (*Account) ElementType() reflect.Type

func (*Account) ToAccountOutput added in v3.31.1

func (i *Account) ToAccountOutput() AccountOutput

func (*Account) ToAccountOutputWithContext added in v3.31.1

func (i *Account) ToAccountOutputWithContext(ctx context.Context) AccountOutput

func (*Account) ToAccountPtrOutput added in v3.47.1

func (i *Account) ToAccountPtrOutput() AccountPtrOutput

func (*Account) ToAccountPtrOutputWithContext added in v3.47.1

func (i *Account) ToAccountPtrOutputWithContext(ctx context.Context) AccountPtrOutput

type AccountArgs

type AccountArgs struct {
	// Enable Analytical Storage option for this Cosmos DB account. Defaults to `false`. Changing this forces a new resource to be created.
	AnalyticalStorageEnabled pulumi.BoolPtrInput
	// The capabilities which should be enabled for this Cosmos DB account. Value is a `capabilities` block as defined below.
	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 Free Tier pricing option for this Cosmos DB account. Defaults to `false`. Changing this forces a new resource to be created.
	EnableFreeTier pulumi.BoolPtrInput
	// Enable multi-master support for this Cosmos DB account.
	EnableMultipleWriteLocations pulumi.BoolPtrInput
	// Specifies a `geoLocation` resource, used to define where data should be replicated with the `failoverPriority` 0 specifying the primary location. Value is a `geoLocation` block as defined below.
	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
	// A versionless Key Vault Key ID for CMK encryption. Changing this forces a new resource to be created.
	KeyVaultKeyId pulumi.StringPtrInput
	// 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
	// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// Specifies the Offer Type to use for this CosmosDB Account - currently this can only be set to `Standard`.
	OfferType pulumi.StringInput
	// Whether or not public network access is allowed for this CosmosDB account.
	PublicNetworkAccessEnabled pulumi.BoolPtrInput
	// 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

func (AccountArgs) ElementType() reflect.Type

type AccountArray added in v3.47.1

type AccountArray []AccountInput

func (AccountArray) ElementType added in v3.47.1

func (AccountArray) ElementType() reflect.Type

func (AccountArray) ToAccountArrayOutput added in v3.47.1

func (i AccountArray) ToAccountArrayOutput() AccountArrayOutput

func (AccountArray) ToAccountArrayOutputWithContext added in v3.47.1

func (i AccountArray) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput

type AccountArrayInput added in v3.47.1

type AccountArrayInput interface {
	pulumi.Input

	ToAccountArrayOutput() AccountArrayOutput
	ToAccountArrayOutputWithContext(context.Context) AccountArrayOutput
}

AccountArrayInput is an input type that accepts AccountArray and AccountArrayOutput values. You can construct a concrete instance of `AccountArrayInput` via:

AccountArray{ AccountArgs{...} }

type AccountArrayOutput added in v3.47.1

type AccountArrayOutput struct{ *pulumi.OutputState }

func (AccountArrayOutput) ElementType added in v3.47.1

func (AccountArrayOutput) ElementType() reflect.Type

func (AccountArrayOutput) Index added in v3.47.1

func (AccountArrayOutput) ToAccountArrayOutput added in v3.47.1

func (o AccountArrayOutput) ToAccountArrayOutput() AccountArrayOutput

func (AccountArrayOutput) ToAccountArrayOutputWithContext added in v3.47.1

func (o AccountArrayOutput) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput

type AccountCapability

type AccountCapability struct {
	// Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
	Name string `pulumi:"name"`
}

type AccountCapabilityArgs

type AccountCapabilityArgs struct {
	// Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
	Name pulumi.StringInput `pulumi:"name"`
}

func (AccountCapabilityArgs) ElementType

func (AccountCapabilityArgs) ElementType() reflect.Type

func (AccountCapabilityArgs) ToAccountCapabilityOutput

func (i AccountCapabilityArgs) ToAccountCapabilityOutput() AccountCapabilityOutput

func (AccountCapabilityArgs) ToAccountCapabilityOutputWithContext

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

type AccountCapabilityArray

type AccountCapabilityArray []AccountCapabilityInput

func (AccountCapabilityArray) ElementType

func (AccountCapabilityArray) ElementType() reflect.Type

func (AccountCapabilityArray) ToAccountCapabilityArrayOutput

func (i AccountCapabilityArray) ToAccountCapabilityArrayOutput() AccountCapabilityArrayOutput

func (AccountCapabilityArray) ToAccountCapabilityArrayOutputWithContext

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

type AccountCapabilityArrayInput

type AccountCapabilityArrayInput interface {
	pulumi.Input

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

AccountCapabilityArrayInput is an input type that accepts AccountCapabilityArray and AccountCapabilityArrayOutput values. You can construct a concrete instance of `AccountCapabilityArrayInput` via:

AccountCapabilityArray{ AccountCapabilityArgs{...} }

type AccountCapabilityArrayOutput

type AccountCapabilityArrayOutput struct{ *pulumi.OutputState }

func (AccountCapabilityArrayOutput) ElementType

func (AccountCapabilityArrayOutput) Index

func (AccountCapabilityArrayOutput) ToAccountCapabilityArrayOutput

func (o AccountCapabilityArrayOutput) ToAccountCapabilityArrayOutput() AccountCapabilityArrayOutput

func (AccountCapabilityArrayOutput) ToAccountCapabilityArrayOutputWithContext

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

type AccountCapabilityInput

type AccountCapabilityInput interface {
	pulumi.Input

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

AccountCapabilityInput is an input type that accepts AccountCapabilityArgs and AccountCapabilityOutput values. You can construct a concrete instance of `AccountCapabilityInput` via:

AccountCapabilityArgs{...}

type AccountCapabilityOutput

type AccountCapabilityOutput struct{ *pulumi.OutputState }

func (AccountCapabilityOutput) ElementType

func (AccountCapabilityOutput) ElementType() reflect.Type

func (AccountCapabilityOutput) Name

Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.

func (AccountCapabilityOutput) ToAccountCapabilityOutput

func (o AccountCapabilityOutput) ToAccountCapabilityOutput() AccountCapabilityOutput

func (AccountCapabilityOutput) ToAccountCapabilityOutputWithContext

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

type AccountConsistencyPolicy

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

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

func (AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyOutput

func (i AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyOutput() AccountConsistencyPolicyOutput

func (AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyOutputWithContext

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

func (AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyPtrOutput

func (i AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyPtrOutput() AccountConsistencyPolicyPtrOutput

func (AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyPtrOutputWithContext

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

type AccountConsistencyPolicyInput

type AccountConsistencyPolicyInput interface {
	pulumi.Input

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

AccountConsistencyPolicyInput is an input type that accepts AccountConsistencyPolicyArgs and AccountConsistencyPolicyOutput values. You can construct a concrete instance of `AccountConsistencyPolicyInput` via:

AccountConsistencyPolicyArgs{...}

type AccountConsistencyPolicyOutput

type AccountConsistencyPolicyOutput struct{ *pulumi.OutputState }

func (AccountConsistencyPolicyOutput) ConsistencyLevel

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

func (AccountConsistencyPolicyOutput) MaxIntervalInSeconds

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

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

func (o AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyOutput() AccountConsistencyPolicyOutput

func (AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyOutputWithContext

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

func (AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyPtrOutput

func (o AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyPtrOutput() AccountConsistencyPolicyPtrOutput

func (AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyPtrOutputWithContext

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

type AccountConsistencyPolicyPtrInput

type AccountConsistencyPolicyPtrInput interface {
	pulumi.Input

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

AccountConsistencyPolicyPtrInput is an input type that accepts AccountConsistencyPolicyArgs, AccountConsistencyPolicyPtr and AccountConsistencyPolicyPtrOutput values. You can construct a concrete instance of `AccountConsistencyPolicyPtrInput` via:

        AccountConsistencyPolicyArgs{...}

or:

        nil

type AccountConsistencyPolicyPtrOutput

type AccountConsistencyPolicyPtrOutput struct{ *pulumi.OutputState }

func (AccountConsistencyPolicyPtrOutput) ConsistencyLevel

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

func (AccountConsistencyPolicyPtrOutput) Elem

func (AccountConsistencyPolicyPtrOutput) ElementType

func (AccountConsistencyPolicyPtrOutput) MaxIntervalInSeconds

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

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

func (o AccountConsistencyPolicyPtrOutput) ToAccountConsistencyPolicyPtrOutput() AccountConsistencyPolicyPtrOutput

func (AccountConsistencyPolicyPtrOutput) ToAccountConsistencyPolicyPtrOutputWithContext

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

type AccountGeoLocation

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`.
	//
	// Deprecated: This is deprecated because the service no longer accepts this as an input since Apr 25, 2019
	Prefix *string `pulumi:"prefix"`
	// Should zone redundancy be enabled for this region? Defaults to `false`.
	ZoneRedundant *bool `pulumi:"zoneRedundant"`
}

type AccountGeoLocationArgs

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`.
	//
	// Deprecated: This is deprecated because the service no longer accepts this as an input since Apr 25, 2019
	Prefix pulumi.StringPtrInput `pulumi:"prefix"`
	// Should zone redundancy be enabled for this region? Defaults to `false`.
	ZoneRedundant pulumi.BoolPtrInput `pulumi:"zoneRedundant"`
}

func (AccountGeoLocationArgs) ElementType

func (AccountGeoLocationArgs) ElementType() reflect.Type

func (AccountGeoLocationArgs) ToAccountGeoLocationOutput

func (i AccountGeoLocationArgs) ToAccountGeoLocationOutput() AccountGeoLocationOutput

func (AccountGeoLocationArgs) ToAccountGeoLocationOutputWithContext

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

type AccountGeoLocationArray

type AccountGeoLocationArray []AccountGeoLocationInput

func (AccountGeoLocationArray) ElementType

func (AccountGeoLocationArray) ElementType() reflect.Type

func (AccountGeoLocationArray) ToAccountGeoLocationArrayOutput

func (i AccountGeoLocationArray) ToAccountGeoLocationArrayOutput() AccountGeoLocationArrayOutput

func (AccountGeoLocationArray) ToAccountGeoLocationArrayOutputWithContext

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

type AccountGeoLocationArrayInput

type AccountGeoLocationArrayInput interface {
	pulumi.Input

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

AccountGeoLocationArrayInput is an input type that accepts AccountGeoLocationArray and AccountGeoLocationArrayOutput values. You can construct a concrete instance of `AccountGeoLocationArrayInput` via:

AccountGeoLocationArray{ AccountGeoLocationArgs{...} }

type AccountGeoLocationArrayOutput

type AccountGeoLocationArrayOutput struct{ *pulumi.OutputState }

func (AccountGeoLocationArrayOutput) ElementType

func (AccountGeoLocationArrayOutput) Index

func (AccountGeoLocationArrayOutput) ToAccountGeoLocationArrayOutput

func (o AccountGeoLocationArrayOutput) ToAccountGeoLocationArrayOutput() AccountGeoLocationArrayOutput

func (AccountGeoLocationArrayOutput) ToAccountGeoLocationArrayOutputWithContext

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

type AccountGeoLocationInput

type AccountGeoLocationInput interface {
	pulumi.Input

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

AccountGeoLocationInput is an input type that accepts AccountGeoLocationArgs and AccountGeoLocationOutput values. You can construct a concrete instance of `AccountGeoLocationInput` via:

AccountGeoLocationArgs{...}

type AccountGeoLocationOutput

type AccountGeoLocationOutput struct{ *pulumi.OutputState }

func (AccountGeoLocationOutput) ElementType

func (AccountGeoLocationOutput) ElementType() reflect.Type

func (AccountGeoLocationOutput) FailoverPriority

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

The ID of the virtual network subnet.

func (AccountGeoLocationOutput) Location

The name of the Azure region to host replicated data.

func (AccountGeoLocationOutput) Prefix deprecated

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

Deprecated: This is deprecated because the service no longer accepts this as an input since Apr 25, 2019

func (AccountGeoLocationOutput) ToAccountGeoLocationOutput

func (o AccountGeoLocationOutput) ToAccountGeoLocationOutput() AccountGeoLocationOutput

func (AccountGeoLocationOutput) ToAccountGeoLocationOutputWithContext

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

func (AccountGeoLocationOutput) ZoneRedundant added in v3.24.0

func (o AccountGeoLocationOutput) ZoneRedundant() pulumi.BoolPtrOutput

Should zone redundancy be enabled for this region? Defaults to `false`.

type AccountInput added in v3.31.1

type AccountInput interface {
	pulumi.Input

	ToAccountOutput() AccountOutput
	ToAccountOutputWithContext(ctx context.Context) AccountOutput
}

type AccountMap added in v3.47.1

type AccountMap map[string]AccountInput

func (AccountMap) ElementType added in v3.47.1

func (AccountMap) ElementType() reflect.Type

func (AccountMap) ToAccountMapOutput added in v3.47.1

func (i AccountMap) ToAccountMapOutput() AccountMapOutput

func (AccountMap) ToAccountMapOutputWithContext added in v3.47.1

func (i AccountMap) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput

type AccountMapInput added in v3.47.1

type AccountMapInput interface {
	pulumi.Input

	ToAccountMapOutput() AccountMapOutput
	ToAccountMapOutputWithContext(context.Context) AccountMapOutput
}

AccountMapInput is an input type that accepts AccountMap and AccountMapOutput values. You can construct a concrete instance of `AccountMapInput` via:

AccountMap{ "key": AccountArgs{...} }

type AccountMapOutput added in v3.47.1

type AccountMapOutput struct{ *pulumi.OutputState }

func (AccountMapOutput) ElementType added in v3.47.1

func (AccountMapOutput) ElementType() reflect.Type

func (AccountMapOutput) MapIndex added in v3.47.1

func (AccountMapOutput) ToAccountMapOutput added in v3.47.1

func (o AccountMapOutput) ToAccountMapOutput() AccountMapOutput

func (AccountMapOutput) ToAccountMapOutputWithContext added in v3.47.1

func (o AccountMapOutput) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput

type AccountOutput added in v3.31.1

type AccountOutput struct {
	*pulumi.OutputState
}

func (AccountOutput) ElementType added in v3.31.1

func (AccountOutput) ElementType() reflect.Type

func (AccountOutput) ToAccountOutput added in v3.31.1

func (o AccountOutput) ToAccountOutput() AccountOutput

func (AccountOutput) ToAccountOutputWithContext added in v3.31.1

func (o AccountOutput) ToAccountOutputWithContext(ctx context.Context) AccountOutput

func (AccountOutput) ToAccountPtrOutput added in v3.47.1

func (o AccountOutput) ToAccountPtrOutput() AccountPtrOutput

func (AccountOutput) ToAccountPtrOutputWithContext added in v3.47.1

func (o AccountOutput) ToAccountPtrOutputWithContext(ctx context.Context) AccountPtrOutput

type AccountPtrInput added in v3.47.1

type AccountPtrInput interface {
	pulumi.Input

	ToAccountPtrOutput() AccountPtrOutput
	ToAccountPtrOutputWithContext(ctx context.Context) AccountPtrOutput
}

type AccountPtrOutput added in v3.47.1

type AccountPtrOutput struct {
	*pulumi.OutputState
}

func (AccountPtrOutput) ElementType added in v3.47.1

func (AccountPtrOutput) ElementType() reflect.Type

func (AccountPtrOutput) ToAccountPtrOutput added in v3.47.1

func (o AccountPtrOutput) ToAccountPtrOutput() AccountPtrOutput

func (AccountPtrOutput) ToAccountPtrOutputWithContext added in v3.47.1

func (o AccountPtrOutput) ToAccountPtrOutputWithContext(ctx context.Context) AccountPtrOutput

type AccountState

type AccountState struct {
	// Enable Analytical Storage option for this Cosmos DB account. Defaults to `false`. Changing this forces a new resource to be created.
	AnalyticalStorageEnabled pulumi.BoolPtrInput
	// The capabilities which should be enabled for this Cosmos DB account. Value is a `capabilities` block as defined below.
	Capabilities AccountCapabilityArrayInput
	// A list of connection strings available for this CosmosDB account.
	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 Free Tier pricing option for this Cosmos DB account. Defaults to `false`. Changing this forces a new resource to be created.
	EnableFreeTier 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
	// Specifies a `geoLocation` resource, used to define where data should be replicated with the `failoverPriority` 0 specifying the primary location. Value is a `geoLocation` block as defined below.
	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
	// A versionless Key Vault Key ID for CMK encryption. Changing this forces a new resource to be created.
	KeyVaultKeyId pulumi.StringPtrInput
	// 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
	// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
	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.
	PrimaryKey pulumi.StringPtrInput
	// Deprecated: This property has been renamed to `primary_key` and will be removed in v3.0 of the provider in support of HashiCorp's inclusive language policy which can be found here: https://discuss.hashicorp.com/t/inclusive-language-changes
	PrimaryMasterKey pulumi.StringPtrInput
	// The Primary read-only master Key for the CosmosDB Account.
	PrimaryReadonlyKey pulumi.StringPtrInput
	// Deprecated: This property has been renamed to `primary_readonly_key` and will be removed in v3.0 of the provider in support of HashiCorp's inclusive language policy which can be found here: https://discuss.hashicorp.com/t/inclusive-language-changes
	PrimaryReadonlyMasterKey pulumi.StringPtrInput
	// Whether or not public network access is allowed for this CosmosDB account.
	PublicNetworkAccessEnabled pulumi.BoolPtrInput
	// 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.
	SecondaryKey pulumi.StringPtrInput
	// Deprecated: This property has been renamed to `secondary_key` and will be removed in v3.0 of the provider in support of HashiCorp's inclusive language policy which can be found here: https://discuss.hashicorp.com/t/inclusive-language-changes
	SecondaryMasterKey pulumi.StringPtrInput
	// The Secondary read-only master key for the CosmosDB Account.
	SecondaryReadonlyKey pulumi.StringPtrInput
	// Deprecated: This property has been renamed to `secondary_readonly_key` and will be removed in v3.0 of the provider in support of HashiCorp's inclusive language policy which can be found here: https://discuss.hashicorp.com/t/inclusive-language-changes
	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

func (AccountState) ElementType() reflect.Type

type AccountVirtualNetworkRule

type AccountVirtualNetworkRule struct {
	// The ID of the virtual network subnet.
	Id string `pulumi:"id"`
	// If set to true, the specified subnet will be added as a virtual network rule even if its CosmosDB service endpoint is not active. Defaults to `false`.
	IgnoreMissingVnetServiceEndpoint *bool `pulumi:"ignoreMissingVnetServiceEndpoint"`
}

type AccountVirtualNetworkRuleArgs

type AccountVirtualNetworkRuleArgs struct {
	// The ID of the virtual network subnet.
	Id pulumi.StringInput `pulumi:"id"`
	// If set to true, the specified subnet will be added as a virtual network rule even if its CosmosDB service endpoint is not active. Defaults to `false`.
	IgnoreMissingVnetServiceEndpoint pulumi.BoolPtrInput `pulumi:"ignoreMissingVnetServiceEndpoint"`
}

func (AccountVirtualNetworkRuleArgs) ElementType

func (AccountVirtualNetworkRuleArgs) ToAccountVirtualNetworkRuleOutput

func (i AccountVirtualNetworkRuleArgs) ToAccountVirtualNetworkRuleOutput() AccountVirtualNetworkRuleOutput

func (AccountVirtualNetworkRuleArgs) ToAccountVirtualNetworkRuleOutputWithContext

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

type AccountVirtualNetworkRuleArray

type AccountVirtualNetworkRuleArray []AccountVirtualNetworkRuleInput

func (AccountVirtualNetworkRuleArray) ElementType

func (AccountVirtualNetworkRuleArray) ToAccountVirtualNetworkRuleArrayOutput

func (i AccountVirtualNetworkRuleArray) ToAccountVirtualNetworkRuleArrayOutput() AccountVirtualNetworkRuleArrayOutput

func (AccountVirtualNetworkRuleArray) ToAccountVirtualNetworkRuleArrayOutputWithContext

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

type AccountVirtualNetworkRuleArrayInput

type AccountVirtualNetworkRuleArrayInput interface {
	pulumi.Input

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

AccountVirtualNetworkRuleArrayInput is an input type that accepts AccountVirtualNetworkRuleArray and AccountVirtualNetworkRuleArrayOutput values. You can construct a concrete instance of `AccountVirtualNetworkRuleArrayInput` via:

AccountVirtualNetworkRuleArray{ AccountVirtualNetworkRuleArgs{...} }

type AccountVirtualNetworkRuleArrayOutput

type AccountVirtualNetworkRuleArrayOutput struct{ *pulumi.OutputState }

func (AccountVirtualNetworkRuleArrayOutput) ElementType

func (AccountVirtualNetworkRuleArrayOutput) Index

func (AccountVirtualNetworkRuleArrayOutput) ToAccountVirtualNetworkRuleArrayOutput

func (o AccountVirtualNetworkRuleArrayOutput) ToAccountVirtualNetworkRuleArrayOutput() AccountVirtualNetworkRuleArrayOutput

func (AccountVirtualNetworkRuleArrayOutput) ToAccountVirtualNetworkRuleArrayOutputWithContext

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

type AccountVirtualNetworkRuleInput

type AccountVirtualNetworkRuleInput interface {
	pulumi.Input

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

AccountVirtualNetworkRuleInput is an input type that accepts AccountVirtualNetworkRuleArgs and AccountVirtualNetworkRuleOutput values. You can construct a concrete instance of `AccountVirtualNetworkRuleInput` via:

AccountVirtualNetworkRuleArgs{...}

type AccountVirtualNetworkRuleOutput

type AccountVirtualNetworkRuleOutput struct{ *pulumi.OutputState }

func (AccountVirtualNetworkRuleOutput) ElementType

func (AccountVirtualNetworkRuleOutput) Id

The ID of the virtual network subnet.

func (AccountVirtualNetworkRuleOutput) IgnoreMissingVnetServiceEndpoint added in v3.12.0

func (o AccountVirtualNetworkRuleOutput) IgnoreMissingVnetServiceEndpoint() pulumi.BoolPtrOutput

If set to true, the specified subnet will be added as a virtual network rule even if its CosmosDB service endpoint is not active. Defaults to `false`.

func (AccountVirtualNetworkRuleOutput) ToAccountVirtualNetworkRuleOutput

func (o AccountVirtualNetworkRuleOutput) ToAccountVirtualNetworkRuleOutput() AccountVirtualNetworkRuleOutput

func (AccountVirtualNetworkRuleOutput) ToAccountVirtualNetworkRuleOutputWithContext

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

type CassandraKeyspace

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"`
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply.
	AutoscaleSettings CassandraKeyspaceAutoscaleSettingsPtrOutput `pulumi:"autoscaleSettings"`
	// 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"`
	// The throughput of Cassandra KeySpace (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply.
	Throughput pulumi.IntOutput `pulumi:"throughput"`
}

Manages a Cassandra KeySpace within a Cosmos DB Account.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/cosmosdb"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.LookupResourceGroup(ctx, &core.LookupResourceGroupArgs{
			Name: "tflex-cosmosdb-account-rg",
		}, nil)
		if err != nil {
			return err
		}
		exampleAccount, err := cosmosdb.NewAccount(ctx, "exampleAccount", &cosmosdb.AccountArgs{
			ResourceGroupName: pulumi.String(exampleResourceGroup.Name),
			Location:          pulumi.String(exampleResourceGroup.Location),
			OfferType:         pulumi.String("Standard"),
			Capabilities: cosmosdb.AccountCapabilityArray{
				&cosmosdb.AccountCapabilityArgs{
					Name: pulumi.String("EnableCassandra"),
				},
			},
			ConsistencyPolicy: &cosmosdb.AccountConsistencyPolicyArgs{
				ConsistencyLevel: pulumi.String("Strong"),
			},
			GeoLocations: cosmosdb.AccountGeoLocationArray{
				&cosmosdb.AccountGeoLocationArgs{
					Location:         pulumi.String("West US"),
					FailoverPriority: pulumi.Int(0),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = cosmosdb.NewCassandraKeyspace(ctx, "exampleCassandraKeyspace", &cosmosdb.CassandraKeyspaceArgs{
			ResourceGroupName: exampleAccount.ResourceGroupName,
			AccountName:       exampleAccount.Name,
			Throughput:        pulumi.Int(400),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cosmos Cassandra KeySpace can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:cosmosdb/cassandraKeyspace:CassandraKeyspace ks1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/account1/cassandraKeyspaces/ks1

```

func GetCassandraKeyspace

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

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.

func (*CassandraKeyspace) ElementType added in v3.31.1

func (*CassandraKeyspace) ElementType() reflect.Type

func (*CassandraKeyspace) ToCassandraKeyspaceOutput added in v3.31.1

func (i *CassandraKeyspace) ToCassandraKeyspaceOutput() CassandraKeyspaceOutput

func (*CassandraKeyspace) ToCassandraKeyspaceOutputWithContext added in v3.31.1

func (i *CassandraKeyspace) ToCassandraKeyspaceOutputWithContext(ctx context.Context) CassandraKeyspaceOutput

func (*CassandraKeyspace) ToCassandraKeyspacePtrOutput added in v3.47.1

func (i *CassandraKeyspace) ToCassandraKeyspacePtrOutput() CassandraKeyspacePtrOutput

func (*CassandraKeyspace) ToCassandraKeyspacePtrOutputWithContext added in v3.47.1

func (i *CassandraKeyspace) ToCassandraKeyspacePtrOutputWithContext(ctx context.Context) CassandraKeyspacePtrOutput

type CassandraKeyspaceArgs

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
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply.
	AutoscaleSettings CassandraKeyspaceAutoscaleSettingsPtrInput
	// 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
	// The throughput of Cassandra KeySpace (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply.
	Throughput pulumi.IntPtrInput
}

The set of arguments for constructing a CassandraKeyspace resource.

func (CassandraKeyspaceArgs) ElementType

func (CassandraKeyspaceArgs) ElementType() reflect.Type

type CassandraKeyspaceArray added in v3.47.1

type CassandraKeyspaceArray []CassandraKeyspaceInput

func (CassandraKeyspaceArray) ElementType added in v3.47.1

func (CassandraKeyspaceArray) ElementType() reflect.Type

func (CassandraKeyspaceArray) ToCassandraKeyspaceArrayOutput added in v3.47.1

func (i CassandraKeyspaceArray) ToCassandraKeyspaceArrayOutput() CassandraKeyspaceArrayOutput

func (CassandraKeyspaceArray) ToCassandraKeyspaceArrayOutputWithContext added in v3.47.1

func (i CassandraKeyspaceArray) ToCassandraKeyspaceArrayOutputWithContext(ctx context.Context) CassandraKeyspaceArrayOutput

type CassandraKeyspaceArrayInput added in v3.47.1

type CassandraKeyspaceArrayInput interface {
	pulumi.Input

	ToCassandraKeyspaceArrayOutput() CassandraKeyspaceArrayOutput
	ToCassandraKeyspaceArrayOutputWithContext(context.Context) CassandraKeyspaceArrayOutput
}

CassandraKeyspaceArrayInput is an input type that accepts CassandraKeyspaceArray and CassandraKeyspaceArrayOutput values. You can construct a concrete instance of `CassandraKeyspaceArrayInput` via:

CassandraKeyspaceArray{ CassandraKeyspaceArgs{...} }

type CassandraKeyspaceArrayOutput added in v3.47.1

type CassandraKeyspaceArrayOutput struct{ *pulumi.OutputState }

func (CassandraKeyspaceArrayOutput) ElementType added in v3.47.1

func (CassandraKeyspaceArrayOutput) Index added in v3.47.1

func (CassandraKeyspaceArrayOutput) ToCassandraKeyspaceArrayOutput added in v3.47.1

func (o CassandraKeyspaceArrayOutput) ToCassandraKeyspaceArrayOutput() CassandraKeyspaceArrayOutput

func (CassandraKeyspaceArrayOutput) ToCassandraKeyspaceArrayOutputWithContext added in v3.47.1

func (o CassandraKeyspaceArrayOutput) ToCassandraKeyspaceArrayOutputWithContext(ctx context.Context) CassandraKeyspaceArrayOutput

type CassandraKeyspaceAutoscaleSettings added in v3.22.0

type CassandraKeyspaceAutoscaleSettings struct {
	// The maximum throughput of the Cassandra KeySpace (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
	MaxThroughput *int `pulumi:"maxThroughput"`
}

type CassandraKeyspaceAutoscaleSettingsArgs added in v3.22.0

type CassandraKeyspaceAutoscaleSettingsArgs struct {
	// The maximum throughput of the Cassandra KeySpace (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
	MaxThroughput pulumi.IntPtrInput `pulumi:"maxThroughput"`
}

func (CassandraKeyspaceAutoscaleSettingsArgs) ElementType added in v3.22.0

func (CassandraKeyspaceAutoscaleSettingsArgs) ToCassandraKeyspaceAutoscaleSettingsOutput added in v3.22.0

func (i CassandraKeyspaceAutoscaleSettingsArgs) ToCassandraKeyspaceAutoscaleSettingsOutput() CassandraKeyspaceAutoscaleSettingsOutput

func (CassandraKeyspaceAutoscaleSettingsArgs) ToCassandraKeyspaceAutoscaleSettingsOutputWithContext added in v3.22.0

func (i CassandraKeyspaceAutoscaleSettingsArgs) ToCassandraKeyspaceAutoscaleSettingsOutputWithContext(ctx context.Context) CassandraKeyspaceAutoscaleSettingsOutput

func (CassandraKeyspaceAutoscaleSettingsArgs) ToCassandraKeyspaceAutoscaleSettingsPtrOutput added in v3.22.0

func (i CassandraKeyspaceAutoscaleSettingsArgs) ToCassandraKeyspaceAutoscaleSettingsPtrOutput() CassandraKeyspaceAutoscaleSettingsPtrOutput

func (CassandraKeyspaceAutoscaleSettingsArgs) ToCassandraKeyspaceAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (i CassandraKeyspaceAutoscaleSettingsArgs) ToCassandraKeyspaceAutoscaleSettingsPtrOutputWithContext(ctx context.Context) CassandraKeyspaceAutoscaleSettingsPtrOutput

type CassandraKeyspaceAutoscaleSettingsInput added in v3.22.0

type CassandraKeyspaceAutoscaleSettingsInput interface {
	pulumi.Input

	ToCassandraKeyspaceAutoscaleSettingsOutput() CassandraKeyspaceAutoscaleSettingsOutput
	ToCassandraKeyspaceAutoscaleSettingsOutputWithContext(context.Context) CassandraKeyspaceAutoscaleSettingsOutput
}

CassandraKeyspaceAutoscaleSettingsInput is an input type that accepts CassandraKeyspaceAutoscaleSettingsArgs and CassandraKeyspaceAutoscaleSettingsOutput values. You can construct a concrete instance of `CassandraKeyspaceAutoscaleSettingsInput` via:

CassandraKeyspaceAutoscaleSettingsArgs{...}

type CassandraKeyspaceAutoscaleSettingsOutput added in v3.22.0

type CassandraKeyspaceAutoscaleSettingsOutput struct{ *pulumi.OutputState }

func (CassandraKeyspaceAutoscaleSettingsOutput) ElementType added in v3.22.0

func (CassandraKeyspaceAutoscaleSettingsOutput) MaxThroughput added in v3.22.0

The maximum throughput of the Cassandra KeySpace (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.

func (CassandraKeyspaceAutoscaleSettingsOutput) ToCassandraKeyspaceAutoscaleSettingsOutput added in v3.22.0

func (o CassandraKeyspaceAutoscaleSettingsOutput) ToCassandraKeyspaceAutoscaleSettingsOutput() CassandraKeyspaceAutoscaleSettingsOutput

func (CassandraKeyspaceAutoscaleSettingsOutput) ToCassandraKeyspaceAutoscaleSettingsOutputWithContext added in v3.22.0

func (o CassandraKeyspaceAutoscaleSettingsOutput) ToCassandraKeyspaceAutoscaleSettingsOutputWithContext(ctx context.Context) CassandraKeyspaceAutoscaleSettingsOutput

func (CassandraKeyspaceAutoscaleSettingsOutput) ToCassandraKeyspaceAutoscaleSettingsPtrOutput added in v3.22.0

func (o CassandraKeyspaceAutoscaleSettingsOutput) ToCassandraKeyspaceAutoscaleSettingsPtrOutput() CassandraKeyspaceAutoscaleSettingsPtrOutput

func (CassandraKeyspaceAutoscaleSettingsOutput) ToCassandraKeyspaceAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (o CassandraKeyspaceAutoscaleSettingsOutput) ToCassandraKeyspaceAutoscaleSettingsPtrOutputWithContext(ctx context.Context) CassandraKeyspaceAutoscaleSettingsPtrOutput

type CassandraKeyspaceAutoscaleSettingsPtrInput added in v3.22.0

type CassandraKeyspaceAutoscaleSettingsPtrInput interface {
	pulumi.Input

	ToCassandraKeyspaceAutoscaleSettingsPtrOutput() CassandraKeyspaceAutoscaleSettingsPtrOutput
	ToCassandraKeyspaceAutoscaleSettingsPtrOutputWithContext(context.Context) CassandraKeyspaceAutoscaleSettingsPtrOutput
}

CassandraKeyspaceAutoscaleSettingsPtrInput is an input type that accepts CassandraKeyspaceAutoscaleSettingsArgs, CassandraKeyspaceAutoscaleSettingsPtr and CassandraKeyspaceAutoscaleSettingsPtrOutput values. You can construct a concrete instance of `CassandraKeyspaceAutoscaleSettingsPtrInput` via:

        CassandraKeyspaceAutoscaleSettingsArgs{...}

or:

        nil

type CassandraKeyspaceAutoscaleSettingsPtrOutput added in v3.22.0

type CassandraKeyspaceAutoscaleSettingsPtrOutput struct{ *pulumi.OutputState }

func (CassandraKeyspaceAutoscaleSettingsPtrOutput) Elem added in v3.22.0

func (CassandraKeyspaceAutoscaleSettingsPtrOutput) ElementType added in v3.22.0

func (CassandraKeyspaceAutoscaleSettingsPtrOutput) MaxThroughput added in v3.22.0

The maximum throughput of the Cassandra KeySpace (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.

func (CassandraKeyspaceAutoscaleSettingsPtrOutput) ToCassandraKeyspaceAutoscaleSettingsPtrOutput added in v3.22.0

func (o CassandraKeyspaceAutoscaleSettingsPtrOutput) ToCassandraKeyspaceAutoscaleSettingsPtrOutput() CassandraKeyspaceAutoscaleSettingsPtrOutput

func (CassandraKeyspaceAutoscaleSettingsPtrOutput) ToCassandraKeyspaceAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (o CassandraKeyspaceAutoscaleSettingsPtrOutput) ToCassandraKeyspaceAutoscaleSettingsPtrOutputWithContext(ctx context.Context) CassandraKeyspaceAutoscaleSettingsPtrOutput

type CassandraKeyspaceInput added in v3.31.1

type CassandraKeyspaceInput interface {
	pulumi.Input

	ToCassandraKeyspaceOutput() CassandraKeyspaceOutput
	ToCassandraKeyspaceOutputWithContext(ctx context.Context) CassandraKeyspaceOutput
}

type CassandraKeyspaceMap added in v3.47.1

type CassandraKeyspaceMap map[string]CassandraKeyspaceInput

func (CassandraKeyspaceMap) ElementType added in v3.47.1

func (CassandraKeyspaceMap) ElementType() reflect.Type

func (CassandraKeyspaceMap) ToCassandraKeyspaceMapOutput added in v3.47.1

func (i CassandraKeyspaceMap) ToCassandraKeyspaceMapOutput() CassandraKeyspaceMapOutput

func (CassandraKeyspaceMap) ToCassandraKeyspaceMapOutputWithContext added in v3.47.1

func (i CassandraKeyspaceMap) ToCassandraKeyspaceMapOutputWithContext(ctx context.Context) CassandraKeyspaceMapOutput

type CassandraKeyspaceMapInput added in v3.47.1

type CassandraKeyspaceMapInput interface {
	pulumi.Input

	ToCassandraKeyspaceMapOutput() CassandraKeyspaceMapOutput
	ToCassandraKeyspaceMapOutputWithContext(context.Context) CassandraKeyspaceMapOutput
}

CassandraKeyspaceMapInput is an input type that accepts CassandraKeyspaceMap and CassandraKeyspaceMapOutput values. You can construct a concrete instance of `CassandraKeyspaceMapInput` via:

CassandraKeyspaceMap{ "key": CassandraKeyspaceArgs{...} }

type CassandraKeyspaceMapOutput added in v3.47.1

type CassandraKeyspaceMapOutput struct{ *pulumi.OutputState }

func (CassandraKeyspaceMapOutput) ElementType added in v3.47.1

func (CassandraKeyspaceMapOutput) ElementType() reflect.Type

func (CassandraKeyspaceMapOutput) MapIndex added in v3.47.1

func (CassandraKeyspaceMapOutput) ToCassandraKeyspaceMapOutput added in v3.47.1

func (o CassandraKeyspaceMapOutput) ToCassandraKeyspaceMapOutput() CassandraKeyspaceMapOutput

func (CassandraKeyspaceMapOutput) ToCassandraKeyspaceMapOutputWithContext added in v3.47.1

func (o CassandraKeyspaceMapOutput) ToCassandraKeyspaceMapOutputWithContext(ctx context.Context) CassandraKeyspaceMapOutput

type CassandraKeyspaceOutput added in v3.31.1

type CassandraKeyspaceOutput struct {
	*pulumi.OutputState
}

func (CassandraKeyspaceOutput) ElementType added in v3.31.1

func (CassandraKeyspaceOutput) ElementType() reflect.Type

func (CassandraKeyspaceOutput) ToCassandraKeyspaceOutput added in v3.31.1

func (o CassandraKeyspaceOutput) ToCassandraKeyspaceOutput() CassandraKeyspaceOutput

func (CassandraKeyspaceOutput) ToCassandraKeyspaceOutputWithContext added in v3.31.1

func (o CassandraKeyspaceOutput) ToCassandraKeyspaceOutputWithContext(ctx context.Context) CassandraKeyspaceOutput

func (CassandraKeyspaceOutput) ToCassandraKeyspacePtrOutput added in v3.47.1

func (o CassandraKeyspaceOutput) ToCassandraKeyspacePtrOutput() CassandraKeyspacePtrOutput

func (CassandraKeyspaceOutput) ToCassandraKeyspacePtrOutputWithContext added in v3.47.1

func (o CassandraKeyspaceOutput) ToCassandraKeyspacePtrOutputWithContext(ctx context.Context) CassandraKeyspacePtrOutput

type CassandraKeyspacePtrInput added in v3.47.1

type CassandraKeyspacePtrInput interface {
	pulumi.Input

	ToCassandraKeyspacePtrOutput() CassandraKeyspacePtrOutput
	ToCassandraKeyspacePtrOutputWithContext(ctx context.Context) CassandraKeyspacePtrOutput
}

type CassandraKeyspacePtrOutput added in v3.47.1

type CassandraKeyspacePtrOutput struct {
	*pulumi.OutputState
}

func (CassandraKeyspacePtrOutput) ElementType added in v3.47.1

func (CassandraKeyspacePtrOutput) ElementType() reflect.Type

func (CassandraKeyspacePtrOutput) ToCassandraKeyspacePtrOutput added in v3.47.1

func (o CassandraKeyspacePtrOutput) ToCassandraKeyspacePtrOutput() CassandraKeyspacePtrOutput

func (CassandraKeyspacePtrOutput) ToCassandraKeyspacePtrOutputWithContext added in v3.47.1

func (o CassandraKeyspacePtrOutput) ToCassandraKeyspacePtrOutputWithContext(ctx context.Context) CassandraKeyspacePtrOutput

type CassandraKeyspaceState

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
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply.
	AutoscaleSettings CassandraKeyspaceAutoscaleSettingsPtrInput
	// 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
	// The throughput of Cassandra KeySpace (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply.
	Throughput pulumi.IntPtrInput
}

func (CassandraKeyspaceState) ElementType

func (CassandraKeyspaceState) ElementType() reflect.Type

type CassandraTable added in v3.46.0

type CassandraTable struct {
	pulumi.CustomResourceState

	AutoscaleSettings CassandraTableAutoscaleSettingsPtrOutput `pulumi:"autoscaleSettings"`
	// The ID of the Cosmos DB Cassandra Keyspace to create the table within. Changing this forces a new resource to be created.
	CassandraKeyspaceId pulumi.StringOutput `pulumi:"cassandraKeyspaceId"`
	DefaultTtl          pulumi.IntOutput    `pulumi:"defaultTtl"`
	// Specifies the name of the Cosmos DB Cassandra Table. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// A `schema` block as defined below. Changing this forces a new resource to be created.
	Schema     CassandraTableSchemaOutput `pulumi:"schema"`
	Throughput pulumi.IntOutput           `pulumi:"throughput"`
}

Manages a Cassandra Table within a Cosmos DB Cassandra Keyspace.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/cosmosdb"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.LookupResourceGroup(ctx, &core.LookupResourceGroupArgs{
			Name: "tflex-cosmosdb-account-rg",
		}, nil)
		if err != nil {
			return err
		}
		exampleAccount, err := cosmosdb.NewAccount(ctx, "exampleAccount", &cosmosdb.AccountArgs{
			ResourceGroupName: pulumi.String(exampleResourceGroup.Name),
			Location:          pulumi.String(exampleResourceGroup.Location),
			OfferType:         pulumi.String("Standard"),
			Capabilities: cosmosdb.AccountCapabilityArray{
				&cosmosdb.AccountCapabilityArgs{
					Name: pulumi.String("EnableCassandra"),
				},
			},
			ConsistencyPolicy: &cosmosdb.AccountConsistencyPolicyArgs{
				ConsistencyLevel: pulumi.String("Strong"),
			},
			GeoLocations: cosmosdb.AccountGeoLocationArray{
				&cosmosdb.AccountGeoLocationArgs{
					Location:         pulumi.String("West US"),
					FailoverPriority: pulumi.Int(0),
				},
			},
		})
		if err != nil {
			return err
		}
		exampleCassandraKeyspace, err := cosmosdb.NewCassandraKeyspace(ctx, "exampleCassandraKeyspace", &cosmosdb.CassandraKeyspaceArgs{
			ResourceGroupName: exampleAccount.ResourceGroupName,
			AccountName:       exampleAccount.Name,
			Throughput:        pulumi.Int(400),
		})
		if err != nil {
			return err
		}
		_, err = cosmosdb.NewCassandraTable(ctx, "exampleCassandraTable", &cosmosdb.CassandraTableArgs{
			CassandraKeyspaceId: exampleCassandraKeyspace.ID(),
			Schema: &cosmosdb.CassandraTableSchemaArgs{
				Columns: cosmosdb.CassandraTableSchemaColumnArray{
					&cosmosdb.CassandraTableSchemaColumnArgs{
						Name: pulumi.String("test1"),
						Type: pulumi.String("ascii"),
					},
					&cosmosdb.CassandraTableSchemaColumnArgs{
						Name: pulumi.String("test2"),
						Type: pulumi.String("int"),
					},
				},
				PartitionKeys: cosmosdb.CassandraTableSchemaPartitionKeyArray{
					&cosmosdb.CassandraTableSchemaPartitionKeyArgs{
						Name: pulumi.String("test1"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cosmos Cassandra Table can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:cosmosdb/cassandraTable:CassandraTable ks1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/account1/cassandraKeyspaces/ks1/tables/table1

```

func GetCassandraTable added in v3.46.0

func GetCassandraTable(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CassandraTableState, opts ...pulumi.ResourceOption) (*CassandraTable, error)

GetCassandraTable gets an existing CassandraTable 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 NewCassandraTable added in v3.46.0

func NewCassandraTable(ctx *pulumi.Context,
	name string, args *CassandraTableArgs, opts ...pulumi.ResourceOption) (*CassandraTable, error)

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

func (*CassandraTable) ElementType added in v3.46.0

func (*CassandraTable) ElementType() reflect.Type

func (*CassandraTable) ToCassandraTableOutput added in v3.46.0

func (i *CassandraTable) ToCassandraTableOutput() CassandraTableOutput

func (*CassandraTable) ToCassandraTableOutputWithContext added in v3.46.0

func (i *CassandraTable) ToCassandraTableOutputWithContext(ctx context.Context) CassandraTableOutput

func (*CassandraTable) ToCassandraTablePtrOutput added in v3.47.1

func (i *CassandraTable) ToCassandraTablePtrOutput() CassandraTablePtrOutput

func (*CassandraTable) ToCassandraTablePtrOutputWithContext added in v3.47.1

func (i *CassandraTable) ToCassandraTablePtrOutputWithContext(ctx context.Context) CassandraTablePtrOutput

type CassandraTableArgs added in v3.46.0

type CassandraTableArgs struct {
	AutoscaleSettings CassandraTableAutoscaleSettingsPtrInput
	// The ID of the Cosmos DB Cassandra Keyspace to create the table within. Changing this forces a new resource to be created.
	CassandraKeyspaceId pulumi.StringInput
	DefaultTtl          pulumi.IntPtrInput
	// Specifies the name of the Cosmos DB Cassandra Table. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// A `schema` block as defined below. Changing this forces a new resource to be created.
	Schema     CassandraTableSchemaInput
	Throughput pulumi.IntPtrInput
}

The set of arguments for constructing a CassandraTable resource.

func (CassandraTableArgs) ElementType added in v3.46.0

func (CassandraTableArgs) ElementType() reflect.Type

type CassandraTableArray added in v3.47.1

type CassandraTableArray []CassandraTableInput

func (CassandraTableArray) ElementType added in v3.47.1

func (CassandraTableArray) ElementType() reflect.Type

func (CassandraTableArray) ToCassandraTableArrayOutput added in v3.47.1

func (i CassandraTableArray) ToCassandraTableArrayOutput() CassandraTableArrayOutput

func (CassandraTableArray) ToCassandraTableArrayOutputWithContext added in v3.47.1

func (i CassandraTableArray) ToCassandraTableArrayOutputWithContext(ctx context.Context) CassandraTableArrayOutput

type CassandraTableArrayInput added in v3.47.1

type CassandraTableArrayInput interface {
	pulumi.Input

	ToCassandraTableArrayOutput() CassandraTableArrayOutput
	ToCassandraTableArrayOutputWithContext(context.Context) CassandraTableArrayOutput
}

CassandraTableArrayInput is an input type that accepts CassandraTableArray and CassandraTableArrayOutput values. You can construct a concrete instance of `CassandraTableArrayInput` via:

CassandraTableArray{ CassandraTableArgs{...} }

type CassandraTableArrayOutput added in v3.47.1

type CassandraTableArrayOutput struct{ *pulumi.OutputState }

func (CassandraTableArrayOutput) ElementType added in v3.47.1

func (CassandraTableArrayOutput) ElementType() reflect.Type

func (CassandraTableArrayOutput) Index added in v3.47.1

func (CassandraTableArrayOutput) ToCassandraTableArrayOutput added in v3.47.1

func (o CassandraTableArrayOutput) ToCassandraTableArrayOutput() CassandraTableArrayOutput

func (CassandraTableArrayOutput) ToCassandraTableArrayOutputWithContext added in v3.47.1

func (o CassandraTableArrayOutput) ToCassandraTableArrayOutputWithContext(ctx context.Context) CassandraTableArrayOutput

type CassandraTableAutoscaleSettings added in v3.46.0

type CassandraTableAutoscaleSettings struct {
	// The maximum throughput of the Cassandra Table (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
	MaxThroughput *int `pulumi:"maxThroughput"`
}

type CassandraTableAutoscaleSettingsArgs added in v3.46.0

type CassandraTableAutoscaleSettingsArgs struct {
	// The maximum throughput of the Cassandra Table (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
	MaxThroughput pulumi.IntPtrInput `pulumi:"maxThroughput"`
}

func (CassandraTableAutoscaleSettingsArgs) ElementType added in v3.46.0

func (CassandraTableAutoscaleSettingsArgs) ToCassandraTableAutoscaleSettingsOutput added in v3.46.0

func (i CassandraTableAutoscaleSettingsArgs) ToCassandraTableAutoscaleSettingsOutput() CassandraTableAutoscaleSettingsOutput

func (CassandraTableAutoscaleSettingsArgs) ToCassandraTableAutoscaleSettingsOutputWithContext added in v3.46.0

func (i CassandraTableAutoscaleSettingsArgs) ToCassandraTableAutoscaleSettingsOutputWithContext(ctx context.Context) CassandraTableAutoscaleSettingsOutput

func (CassandraTableAutoscaleSettingsArgs) ToCassandraTableAutoscaleSettingsPtrOutput added in v3.46.0

func (i CassandraTableAutoscaleSettingsArgs) ToCassandraTableAutoscaleSettingsPtrOutput() CassandraTableAutoscaleSettingsPtrOutput

func (CassandraTableAutoscaleSettingsArgs) ToCassandraTableAutoscaleSettingsPtrOutputWithContext added in v3.46.0

func (i CassandraTableAutoscaleSettingsArgs) ToCassandraTableAutoscaleSettingsPtrOutputWithContext(ctx context.Context) CassandraTableAutoscaleSettingsPtrOutput

type CassandraTableAutoscaleSettingsInput added in v3.46.0

type CassandraTableAutoscaleSettingsInput interface {
	pulumi.Input

	ToCassandraTableAutoscaleSettingsOutput() CassandraTableAutoscaleSettingsOutput
	ToCassandraTableAutoscaleSettingsOutputWithContext(context.Context) CassandraTableAutoscaleSettingsOutput
}

CassandraTableAutoscaleSettingsInput is an input type that accepts CassandraTableAutoscaleSettingsArgs and CassandraTableAutoscaleSettingsOutput values. You can construct a concrete instance of `CassandraTableAutoscaleSettingsInput` via:

CassandraTableAutoscaleSettingsArgs{...}

type CassandraTableAutoscaleSettingsOutput added in v3.46.0

type CassandraTableAutoscaleSettingsOutput struct{ *pulumi.OutputState }

func (CassandraTableAutoscaleSettingsOutput) ElementType added in v3.46.0

func (CassandraTableAutoscaleSettingsOutput) MaxThroughput added in v3.46.0

The maximum throughput of the Cassandra Table (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.

func (CassandraTableAutoscaleSettingsOutput) ToCassandraTableAutoscaleSettingsOutput added in v3.46.0

func (o CassandraTableAutoscaleSettingsOutput) ToCassandraTableAutoscaleSettingsOutput() CassandraTableAutoscaleSettingsOutput

func (CassandraTableAutoscaleSettingsOutput) ToCassandraTableAutoscaleSettingsOutputWithContext added in v3.46.0

func (o CassandraTableAutoscaleSettingsOutput) ToCassandraTableAutoscaleSettingsOutputWithContext(ctx context.Context) CassandraTableAutoscaleSettingsOutput

func (CassandraTableAutoscaleSettingsOutput) ToCassandraTableAutoscaleSettingsPtrOutput added in v3.46.0

func (o CassandraTableAutoscaleSettingsOutput) ToCassandraTableAutoscaleSettingsPtrOutput() CassandraTableAutoscaleSettingsPtrOutput

func (CassandraTableAutoscaleSettingsOutput) ToCassandraTableAutoscaleSettingsPtrOutputWithContext added in v3.46.0

func (o CassandraTableAutoscaleSettingsOutput) ToCassandraTableAutoscaleSettingsPtrOutputWithContext(ctx context.Context) CassandraTableAutoscaleSettingsPtrOutput

type CassandraTableAutoscaleSettingsPtrInput added in v3.46.0

type CassandraTableAutoscaleSettingsPtrInput interface {
	pulumi.Input

	ToCassandraTableAutoscaleSettingsPtrOutput() CassandraTableAutoscaleSettingsPtrOutput
	ToCassandraTableAutoscaleSettingsPtrOutputWithContext(context.Context) CassandraTableAutoscaleSettingsPtrOutput
}

CassandraTableAutoscaleSettingsPtrInput is an input type that accepts CassandraTableAutoscaleSettingsArgs, CassandraTableAutoscaleSettingsPtr and CassandraTableAutoscaleSettingsPtrOutput values. You can construct a concrete instance of `CassandraTableAutoscaleSettingsPtrInput` via:

        CassandraTableAutoscaleSettingsArgs{...}

or:

        nil

type CassandraTableAutoscaleSettingsPtrOutput added in v3.46.0

type CassandraTableAutoscaleSettingsPtrOutput struct{ *pulumi.OutputState }

func (CassandraTableAutoscaleSettingsPtrOutput) Elem added in v3.46.0

func (CassandraTableAutoscaleSettingsPtrOutput) ElementType added in v3.46.0

func (CassandraTableAutoscaleSettingsPtrOutput) MaxThroughput added in v3.46.0

The maximum throughput of the Cassandra Table (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.

func (CassandraTableAutoscaleSettingsPtrOutput) ToCassandraTableAutoscaleSettingsPtrOutput added in v3.46.0

func (o CassandraTableAutoscaleSettingsPtrOutput) ToCassandraTableAutoscaleSettingsPtrOutput() CassandraTableAutoscaleSettingsPtrOutput

func (CassandraTableAutoscaleSettingsPtrOutput) ToCassandraTableAutoscaleSettingsPtrOutputWithContext added in v3.46.0

func (o CassandraTableAutoscaleSettingsPtrOutput) ToCassandraTableAutoscaleSettingsPtrOutputWithContext(ctx context.Context) CassandraTableAutoscaleSettingsPtrOutput

type CassandraTableInput added in v3.46.0

type CassandraTableInput interface {
	pulumi.Input

	ToCassandraTableOutput() CassandraTableOutput
	ToCassandraTableOutputWithContext(ctx context.Context) CassandraTableOutput
}

type CassandraTableMap added in v3.47.1

type CassandraTableMap map[string]CassandraTableInput

func (CassandraTableMap) ElementType added in v3.47.1

func (CassandraTableMap) ElementType() reflect.Type

func (CassandraTableMap) ToCassandraTableMapOutput added in v3.47.1

func (i CassandraTableMap) ToCassandraTableMapOutput() CassandraTableMapOutput

func (CassandraTableMap) ToCassandraTableMapOutputWithContext added in v3.47.1

func (i CassandraTableMap) ToCassandraTableMapOutputWithContext(ctx context.Context) CassandraTableMapOutput

type CassandraTableMapInput added in v3.47.1

type CassandraTableMapInput interface {
	pulumi.Input

	ToCassandraTableMapOutput() CassandraTableMapOutput
	ToCassandraTableMapOutputWithContext(context.Context) CassandraTableMapOutput
}

CassandraTableMapInput is an input type that accepts CassandraTableMap and CassandraTableMapOutput values. You can construct a concrete instance of `CassandraTableMapInput` via:

CassandraTableMap{ "key": CassandraTableArgs{...} }

type CassandraTableMapOutput added in v3.47.1

type CassandraTableMapOutput struct{ *pulumi.OutputState }

func (CassandraTableMapOutput) ElementType added in v3.47.1

func (CassandraTableMapOutput) ElementType() reflect.Type

func (CassandraTableMapOutput) MapIndex added in v3.47.1

func (CassandraTableMapOutput) ToCassandraTableMapOutput added in v3.47.1

func (o CassandraTableMapOutput) ToCassandraTableMapOutput() CassandraTableMapOutput

func (CassandraTableMapOutput) ToCassandraTableMapOutputWithContext added in v3.47.1

func (o CassandraTableMapOutput) ToCassandraTableMapOutputWithContext(ctx context.Context) CassandraTableMapOutput

type CassandraTableOutput added in v3.46.0

type CassandraTableOutput struct {
	*pulumi.OutputState
}

func (CassandraTableOutput) ElementType added in v3.46.0

func (CassandraTableOutput) ElementType() reflect.Type

func (CassandraTableOutput) ToCassandraTableOutput added in v3.46.0

func (o CassandraTableOutput) ToCassandraTableOutput() CassandraTableOutput

func (CassandraTableOutput) ToCassandraTableOutputWithContext added in v3.46.0

func (o CassandraTableOutput) ToCassandraTableOutputWithContext(ctx context.Context) CassandraTableOutput

func (CassandraTableOutput) ToCassandraTablePtrOutput added in v3.47.1

func (o CassandraTableOutput) ToCassandraTablePtrOutput() CassandraTablePtrOutput

func (CassandraTableOutput) ToCassandraTablePtrOutputWithContext added in v3.47.1

func (o CassandraTableOutput) ToCassandraTablePtrOutputWithContext(ctx context.Context) CassandraTablePtrOutput

type CassandraTablePtrInput added in v3.47.1

type CassandraTablePtrInput interface {
	pulumi.Input

	ToCassandraTablePtrOutput() CassandraTablePtrOutput
	ToCassandraTablePtrOutputWithContext(ctx context.Context) CassandraTablePtrOutput
}

type CassandraTablePtrOutput added in v3.47.1

type CassandraTablePtrOutput struct {
	*pulumi.OutputState
}

func (CassandraTablePtrOutput) ElementType added in v3.47.1

func (CassandraTablePtrOutput) ElementType() reflect.Type

func (CassandraTablePtrOutput) ToCassandraTablePtrOutput added in v3.47.1

func (o CassandraTablePtrOutput) ToCassandraTablePtrOutput() CassandraTablePtrOutput

func (CassandraTablePtrOutput) ToCassandraTablePtrOutputWithContext added in v3.47.1

func (o CassandraTablePtrOutput) ToCassandraTablePtrOutputWithContext(ctx context.Context) CassandraTablePtrOutput

type CassandraTableSchema added in v3.46.0

type CassandraTableSchema struct {
	// One or more `clusterKey` blocks as defined below.
	ClusterKeys []CassandraTableSchemaClusterKey `pulumi:"clusterKeys"`
	// One or more `column` blocks as defined below.
	Columns []CassandraTableSchemaColumn `pulumi:"columns"`
	// One or more `partitionKey` blocks as defined below.
	PartitionKeys []CassandraTableSchemaPartitionKey `pulumi:"partitionKeys"`
}

type CassandraTableSchemaArgs added in v3.46.0

type CassandraTableSchemaArgs struct {
	// One or more `clusterKey` blocks as defined below.
	ClusterKeys CassandraTableSchemaClusterKeyArrayInput `pulumi:"clusterKeys"`
	// One or more `column` blocks as defined below.
	Columns CassandraTableSchemaColumnArrayInput `pulumi:"columns"`
	// One or more `partitionKey` blocks as defined below.
	PartitionKeys CassandraTableSchemaPartitionKeyArrayInput `pulumi:"partitionKeys"`
}

func (CassandraTableSchemaArgs) ElementType added in v3.46.0

func (CassandraTableSchemaArgs) ElementType() reflect.Type

func (CassandraTableSchemaArgs) ToCassandraTableSchemaOutput added in v3.46.0

func (i CassandraTableSchemaArgs) ToCassandraTableSchemaOutput() CassandraTableSchemaOutput

func (CassandraTableSchemaArgs) ToCassandraTableSchemaOutputWithContext added in v3.46.0

func (i CassandraTableSchemaArgs) ToCassandraTableSchemaOutputWithContext(ctx context.Context) CassandraTableSchemaOutput

func (CassandraTableSchemaArgs) ToCassandraTableSchemaPtrOutput added in v3.46.0

func (i CassandraTableSchemaArgs) ToCassandraTableSchemaPtrOutput() CassandraTableSchemaPtrOutput

func (CassandraTableSchemaArgs) ToCassandraTableSchemaPtrOutputWithContext added in v3.46.0

func (i CassandraTableSchemaArgs) ToCassandraTableSchemaPtrOutputWithContext(ctx context.Context) CassandraTableSchemaPtrOutput

type CassandraTableSchemaClusterKey added in v3.46.0

type CassandraTableSchemaClusterKey struct {
	// Name of the cluster key to be created.
	Name string `pulumi:"name"`
	// Order of the key. Currently supported values are `Asc` and `Desc`.
	OrderBy string `pulumi:"orderBy"`
}

type CassandraTableSchemaClusterKeyArgs added in v3.46.0

type CassandraTableSchemaClusterKeyArgs struct {
	// Name of the cluster key to be created.
	Name pulumi.StringInput `pulumi:"name"`
	// Order of the key. Currently supported values are `Asc` and `Desc`.
	OrderBy pulumi.StringInput `pulumi:"orderBy"`
}

func (CassandraTableSchemaClusterKeyArgs) ElementType added in v3.46.0

func (CassandraTableSchemaClusterKeyArgs) ToCassandraTableSchemaClusterKeyOutput added in v3.46.0

func (i CassandraTableSchemaClusterKeyArgs) ToCassandraTableSchemaClusterKeyOutput() CassandraTableSchemaClusterKeyOutput

func (CassandraTableSchemaClusterKeyArgs) ToCassandraTableSchemaClusterKeyOutputWithContext added in v3.46.0

func (i CassandraTableSchemaClusterKeyArgs) ToCassandraTableSchemaClusterKeyOutputWithContext(ctx context.Context) CassandraTableSchemaClusterKeyOutput

type CassandraTableSchemaClusterKeyArray added in v3.46.0

type CassandraTableSchemaClusterKeyArray []CassandraTableSchemaClusterKeyInput

func (CassandraTableSchemaClusterKeyArray) ElementType added in v3.46.0

func (CassandraTableSchemaClusterKeyArray) ToCassandraTableSchemaClusterKeyArrayOutput added in v3.46.0

func (i CassandraTableSchemaClusterKeyArray) ToCassandraTableSchemaClusterKeyArrayOutput() CassandraTableSchemaClusterKeyArrayOutput

func (CassandraTableSchemaClusterKeyArray) ToCassandraTableSchemaClusterKeyArrayOutputWithContext added in v3.46.0

func (i CassandraTableSchemaClusterKeyArray) ToCassandraTableSchemaClusterKeyArrayOutputWithContext(ctx context.Context) CassandraTableSchemaClusterKeyArrayOutput

type CassandraTableSchemaClusterKeyArrayInput added in v3.46.0

type CassandraTableSchemaClusterKeyArrayInput interface {
	pulumi.Input

	ToCassandraTableSchemaClusterKeyArrayOutput() CassandraTableSchemaClusterKeyArrayOutput
	ToCassandraTableSchemaClusterKeyArrayOutputWithContext(context.Context) CassandraTableSchemaClusterKeyArrayOutput
}

CassandraTableSchemaClusterKeyArrayInput is an input type that accepts CassandraTableSchemaClusterKeyArray and CassandraTableSchemaClusterKeyArrayOutput values. You can construct a concrete instance of `CassandraTableSchemaClusterKeyArrayInput` via:

CassandraTableSchemaClusterKeyArray{ CassandraTableSchemaClusterKeyArgs{...} }

type CassandraTableSchemaClusterKeyArrayOutput added in v3.46.0

type CassandraTableSchemaClusterKeyArrayOutput struct{ *pulumi.OutputState }

func (CassandraTableSchemaClusterKeyArrayOutput) ElementType added in v3.46.0

func (CassandraTableSchemaClusterKeyArrayOutput) Index added in v3.46.0

func (CassandraTableSchemaClusterKeyArrayOutput) ToCassandraTableSchemaClusterKeyArrayOutput added in v3.46.0

func (o CassandraTableSchemaClusterKeyArrayOutput) ToCassandraTableSchemaClusterKeyArrayOutput() CassandraTableSchemaClusterKeyArrayOutput

func (CassandraTableSchemaClusterKeyArrayOutput) ToCassandraTableSchemaClusterKeyArrayOutputWithContext added in v3.46.0

func (o CassandraTableSchemaClusterKeyArrayOutput) ToCassandraTableSchemaClusterKeyArrayOutputWithContext(ctx context.Context) CassandraTableSchemaClusterKeyArrayOutput

type CassandraTableSchemaClusterKeyInput added in v3.46.0

type CassandraTableSchemaClusterKeyInput interface {
	pulumi.Input

	ToCassandraTableSchemaClusterKeyOutput() CassandraTableSchemaClusterKeyOutput
	ToCassandraTableSchemaClusterKeyOutputWithContext(context.Context) CassandraTableSchemaClusterKeyOutput
}

CassandraTableSchemaClusterKeyInput is an input type that accepts CassandraTableSchemaClusterKeyArgs and CassandraTableSchemaClusterKeyOutput values. You can construct a concrete instance of `CassandraTableSchemaClusterKeyInput` via:

CassandraTableSchemaClusterKeyArgs{...}

type CassandraTableSchemaClusterKeyOutput added in v3.46.0

type CassandraTableSchemaClusterKeyOutput struct{ *pulumi.OutputState }

func (CassandraTableSchemaClusterKeyOutput) ElementType added in v3.46.0

func (CassandraTableSchemaClusterKeyOutput) Name added in v3.46.0

Name of the cluster key to be created.

func (CassandraTableSchemaClusterKeyOutput) OrderBy added in v3.46.0

Order of the key. Currently supported values are `Asc` and `Desc`.

func (CassandraTableSchemaClusterKeyOutput) ToCassandraTableSchemaClusterKeyOutput added in v3.46.0

func (o CassandraTableSchemaClusterKeyOutput) ToCassandraTableSchemaClusterKeyOutput() CassandraTableSchemaClusterKeyOutput

func (CassandraTableSchemaClusterKeyOutput) ToCassandraTableSchemaClusterKeyOutputWithContext added in v3.46.0

func (o CassandraTableSchemaClusterKeyOutput) ToCassandraTableSchemaClusterKeyOutputWithContext(ctx context.Context) CassandraTableSchemaClusterKeyOutput

type CassandraTableSchemaColumn added in v3.46.0

type CassandraTableSchemaColumn struct {
	// Name of the column to be created.
	Name string `pulumi:"name"`
	// Type of the column to be created.
	Type string `pulumi:"type"`
}

type CassandraTableSchemaColumnArgs added in v3.46.0

type CassandraTableSchemaColumnArgs struct {
	// Name of the column to be created.
	Name pulumi.StringInput `pulumi:"name"`
	// Type of the column to be created.
	Type pulumi.StringInput `pulumi:"type"`
}

func (CassandraTableSchemaColumnArgs) ElementType added in v3.46.0

func (CassandraTableSchemaColumnArgs) ToCassandraTableSchemaColumnOutput added in v3.46.0

func (i CassandraTableSchemaColumnArgs) ToCassandraTableSchemaColumnOutput() CassandraTableSchemaColumnOutput

func (CassandraTableSchemaColumnArgs) ToCassandraTableSchemaColumnOutputWithContext added in v3.46.0

func (i CassandraTableSchemaColumnArgs) ToCassandraTableSchemaColumnOutputWithContext(ctx context.Context) CassandraTableSchemaColumnOutput

type CassandraTableSchemaColumnArray added in v3.46.0

type CassandraTableSchemaColumnArray []CassandraTableSchemaColumnInput

func (CassandraTableSchemaColumnArray) ElementType added in v3.46.0

func (CassandraTableSchemaColumnArray) ToCassandraTableSchemaColumnArrayOutput added in v3.46.0

func (i CassandraTableSchemaColumnArray) ToCassandraTableSchemaColumnArrayOutput() CassandraTableSchemaColumnArrayOutput

func (CassandraTableSchemaColumnArray) ToCassandraTableSchemaColumnArrayOutputWithContext added in v3.46.0

func (i CassandraTableSchemaColumnArray) ToCassandraTableSchemaColumnArrayOutputWithContext(ctx context.Context) CassandraTableSchemaColumnArrayOutput

type CassandraTableSchemaColumnArrayInput added in v3.46.0

type CassandraTableSchemaColumnArrayInput interface {
	pulumi.Input

	ToCassandraTableSchemaColumnArrayOutput() CassandraTableSchemaColumnArrayOutput
	ToCassandraTableSchemaColumnArrayOutputWithContext(context.Context) CassandraTableSchemaColumnArrayOutput
}

CassandraTableSchemaColumnArrayInput is an input type that accepts CassandraTableSchemaColumnArray and CassandraTableSchemaColumnArrayOutput values. You can construct a concrete instance of `CassandraTableSchemaColumnArrayInput` via:

CassandraTableSchemaColumnArray{ CassandraTableSchemaColumnArgs{...} }

type CassandraTableSchemaColumnArrayOutput added in v3.46.0

type CassandraTableSchemaColumnArrayOutput struct{ *pulumi.OutputState }

func (CassandraTableSchemaColumnArrayOutput) ElementType added in v3.46.0

func (CassandraTableSchemaColumnArrayOutput) Index added in v3.46.0

func (CassandraTableSchemaColumnArrayOutput) ToCassandraTableSchemaColumnArrayOutput added in v3.46.0

func (o CassandraTableSchemaColumnArrayOutput) ToCassandraTableSchemaColumnArrayOutput() CassandraTableSchemaColumnArrayOutput

func (CassandraTableSchemaColumnArrayOutput) ToCassandraTableSchemaColumnArrayOutputWithContext added in v3.46.0

func (o CassandraTableSchemaColumnArrayOutput) ToCassandraTableSchemaColumnArrayOutputWithContext(ctx context.Context) CassandraTableSchemaColumnArrayOutput

type CassandraTableSchemaColumnInput added in v3.46.0

type CassandraTableSchemaColumnInput interface {
	pulumi.Input

	ToCassandraTableSchemaColumnOutput() CassandraTableSchemaColumnOutput
	ToCassandraTableSchemaColumnOutputWithContext(context.Context) CassandraTableSchemaColumnOutput
}

CassandraTableSchemaColumnInput is an input type that accepts CassandraTableSchemaColumnArgs and CassandraTableSchemaColumnOutput values. You can construct a concrete instance of `CassandraTableSchemaColumnInput` via:

CassandraTableSchemaColumnArgs{...}

type CassandraTableSchemaColumnOutput added in v3.46.0

type CassandraTableSchemaColumnOutput struct{ *pulumi.OutputState }

func (CassandraTableSchemaColumnOutput) ElementType added in v3.46.0

func (CassandraTableSchemaColumnOutput) Name added in v3.46.0

Name of the column to be created.

func (CassandraTableSchemaColumnOutput) ToCassandraTableSchemaColumnOutput added in v3.46.0

func (o CassandraTableSchemaColumnOutput) ToCassandraTableSchemaColumnOutput() CassandraTableSchemaColumnOutput

func (CassandraTableSchemaColumnOutput) ToCassandraTableSchemaColumnOutputWithContext added in v3.46.0

func (o CassandraTableSchemaColumnOutput) ToCassandraTableSchemaColumnOutputWithContext(ctx context.Context) CassandraTableSchemaColumnOutput

func (CassandraTableSchemaColumnOutput) Type added in v3.46.0

Type of the column to be created.

type CassandraTableSchemaInput added in v3.46.0

type CassandraTableSchemaInput interface {
	pulumi.Input

	ToCassandraTableSchemaOutput() CassandraTableSchemaOutput
	ToCassandraTableSchemaOutputWithContext(context.Context) CassandraTableSchemaOutput
}

CassandraTableSchemaInput is an input type that accepts CassandraTableSchemaArgs and CassandraTableSchemaOutput values. You can construct a concrete instance of `CassandraTableSchemaInput` via:

CassandraTableSchemaArgs{...}

type CassandraTableSchemaOutput added in v3.46.0

type CassandraTableSchemaOutput struct{ *pulumi.OutputState }

func (CassandraTableSchemaOutput) ClusterKeys added in v3.46.0

One or more `clusterKey` blocks as defined below.

func (CassandraTableSchemaOutput) Columns added in v3.46.0

One or more `column` blocks as defined below.

func (CassandraTableSchemaOutput) ElementType added in v3.46.0

func (CassandraTableSchemaOutput) ElementType() reflect.Type

func (CassandraTableSchemaOutput) PartitionKeys added in v3.46.0

One or more `partitionKey` blocks as defined below.

func (CassandraTableSchemaOutput) ToCassandraTableSchemaOutput added in v3.46.0

func (o CassandraTableSchemaOutput) ToCassandraTableSchemaOutput() CassandraTableSchemaOutput

func (CassandraTableSchemaOutput) ToCassandraTableSchemaOutputWithContext added in v3.46.0

func (o CassandraTableSchemaOutput) ToCassandraTableSchemaOutputWithContext(ctx context.Context) CassandraTableSchemaOutput

func (CassandraTableSchemaOutput) ToCassandraTableSchemaPtrOutput added in v3.46.0

func (o CassandraTableSchemaOutput) ToCassandraTableSchemaPtrOutput() CassandraTableSchemaPtrOutput

func (CassandraTableSchemaOutput) ToCassandraTableSchemaPtrOutputWithContext added in v3.46.0

func (o CassandraTableSchemaOutput) ToCassandraTableSchemaPtrOutputWithContext(ctx context.Context) CassandraTableSchemaPtrOutput

type CassandraTableSchemaPartitionKey added in v3.46.0

type CassandraTableSchemaPartitionKey struct {
	// Name of the column to partition by.
	Name string `pulumi:"name"`
}

type CassandraTableSchemaPartitionKeyArgs added in v3.46.0

type CassandraTableSchemaPartitionKeyArgs struct {
	// Name of the column to partition by.
	Name pulumi.StringInput `pulumi:"name"`
}

func (CassandraTableSchemaPartitionKeyArgs) ElementType added in v3.46.0

func (CassandraTableSchemaPartitionKeyArgs) ToCassandraTableSchemaPartitionKeyOutput added in v3.46.0

func (i CassandraTableSchemaPartitionKeyArgs) ToCassandraTableSchemaPartitionKeyOutput() CassandraTableSchemaPartitionKeyOutput

func (CassandraTableSchemaPartitionKeyArgs) ToCassandraTableSchemaPartitionKeyOutputWithContext added in v3.46.0

func (i CassandraTableSchemaPartitionKeyArgs) ToCassandraTableSchemaPartitionKeyOutputWithContext(ctx context.Context) CassandraTableSchemaPartitionKeyOutput

type CassandraTableSchemaPartitionKeyArray added in v3.46.0

type CassandraTableSchemaPartitionKeyArray []CassandraTableSchemaPartitionKeyInput

func (CassandraTableSchemaPartitionKeyArray) ElementType added in v3.46.0

func (CassandraTableSchemaPartitionKeyArray) ToCassandraTableSchemaPartitionKeyArrayOutput added in v3.46.0

func (i CassandraTableSchemaPartitionKeyArray) ToCassandraTableSchemaPartitionKeyArrayOutput() CassandraTableSchemaPartitionKeyArrayOutput

func (CassandraTableSchemaPartitionKeyArray) ToCassandraTableSchemaPartitionKeyArrayOutputWithContext added in v3.46.0

func (i CassandraTableSchemaPartitionKeyArray) ToCassandraTableSchemaPartitionKeyArrayOutputWithContext(ctx context.Context) CassandraTableSchemaPartitionKeyArrayOutput

type CassandraTableSchemaPartitionKeyArrayInput added in v3.46.0

type CassandraTableSchemaPartitionKeyArrayInput interface {
	pulumi.Input

	ToCassandraTableSchemaPartitionKeyArrayOutput() CassandraTableSchemaPartitionKeyArrayOutput
	ToCassandraTableSchemaPartitionKeyArrayOutputWithContext(context.Context) CassandraTableSchemaPartitionKeyArrayOutput
}

CassandraTableSchemaPartitionKeyArrayInput is an input type that accepts CassandraTableSchemaPartitionKeyArray and CassandraTableSchemaPartitionKeyArrayOutput values. You can construct a concrete instance of `CassandraTableSchemaPartitionKeyArrayInput` via:

CassandraTableSchemaPartitionKeyArray{ CassandraTableSchemaPartitionKeyArgs{...} }

type CassandraTableSchemaPartitionKeyArrayOutput added in v3.46.0

type CassandraTableSchemaPartitionKeyArrayOutput struct{ *pulumi.OutputState }

func (CassandraTableSchemaPartitionKeyArrayOutput) ElementType added in v3.46.0

func (CassandraTableSchemaPartitionKeyArrayOutput) Index added in v3.46.0

func (CassandraTableSchemaPartitionKeyArrayOutput) ToCassandraTableSchemaPartitionKeyArrayOutput added in v3.46.0

func (o CassandraTableSchemaPartitionKeyArrayOutput) ToCassandraTableSchemaPartitionKeyArrayOutput() CassandraTableSchemaPartitionKeyArrayOutput

func (CassandraTableSchemaPartitionKeyArrayOutput) ToCassandraTableSchemaPartitionKeyArrayOutputWithContext added in v3.46.0

func (o CassandraTableSchemaPartitionKeyArrayOutput) ToCassandraTableSchemaPartitionKeyArrayOutputWithContext(ctx context.Context) CassandraTableSchemaPartitionKeyArrayOutput

type CassandraTableSchemaPartitionKeyInput added in v3.46.0

type CassandraTableSchemaPartitionKeyInput interface {
	pulumi.Input

	ToCassandraTableSchemaPartitionKeyOutput() CassandraTableSchemaPartitionKeyOutput
	ToCassandraTableSchemaPartitionKeyOutputWithContext(context.Context) CassandraTableSchemaPartitionKeyOutput
}

CassandraTableSchemaPartitionKeyInput is an input type that accepts CassandraTableSchemaPartitionKeyArgs and CassandraTableSchemaPartitionKeyOutput values. You can construct a concrete instance of `CassandraTableSchemaPartitionKeyInput` via:

CassandraTableSchemaPartitionKeyArgs{...}

type CassandraTableSchemaPartitionKeyOutput added in v3.46.0

type CassandraTableSchemaPartitionKeyOutput struct{ *pulumi.OutputState }

func (CassandraTableSchemaPartitionKeyOutput) ElementType added in v3.46.0

func (CassandraTableSchemaPartitionKeyOutput) Name added in v3.46.0

Name of the column to partition by.

func (CassandraTableSchemaPartitionKeyOutput) ToCassandraTableSchemaPartitionKeyOutput added in v3.46.0

func (o CassandraTableSchemaPartitionKeyOutput) ToCassandraTableSchemaPartitionKeyOutput() CassandraTableSchemaPartitionKeyOutput

func (CassandraTableSchemaPartitionKeyOutput) ToCassandraTableSchemaPartitionKeyOutputWithContext added in v3.46.0

func (o CassandraTableSchemaPartitionKeyOutput) ToCassandraTableSchemaPartitionKeyOutputWithContext(ctx context.Context) CassandraTableSchemaPartitionKeyOutput

type CassandraTableSchemaPtrInput added in v3.46.0

type CassandraTableSchemaPtrInput interface {
	pulumi.Input

	ToCassandraTableSchemaPtrOutput() CassandraTableSchemaPtrOutput
	ToCassandraTableSchemaPtrOutputWithContext(context.Context) CassandraTableSchemaPtrOutput
}

CassandraTableSchemaPtrInput is an input type that accepts CassandraTableSchemaArgs, CassandraTableSchemaPtr and CassandraTableSchemaPtrOutput values. You can construct a concrete instance of `CassandraTableSchemaPtrInput` via:

        CassandraTableSchemaArgs{...}

or:

        nil

func CassandraTableSchemaPtr added in v3.46.0

func CassandraTableSchemaPtr(v *CassandraTableSchemaArgs) CassandraTableSchemaPtrInput

type CassandraTableSchemaPtrOutput added in v3.46.0

type CassandraTableSchemaPtrOutput struct{ *pulumi.OutputState }

func (CassandraTableSchemaPtrOutput) ClusterKeys added in v3.46.0

One or more `clusterKey` blocks as defined below.

func (CassandraTableSchemaPtrOutput) Columns added in v3.46.0

One or more `column` blocks as defined below.

func (CassandraTableSchemaPtrOutput) Elem added in v3.46.0

func (CassandraTableSchemaPtrOutput) ElementType added in v3.46.0

func (CassandraTableSchemaPtrOutput) PartitionKeys added in v3.46.0

One or more `partitionKey` blocks as defined below.

func (CassandraTableSchemaPtrOutput) ToCassandraTableSchemaPtrOutput added in v3.46.0

func (o CassandraTableSchemaPtrOutput) ToCassandraTableSchemaPtrOutput() CassandraTableSchemaPtrOutput

func (CassandraTableSchemaPtrOutput) ToCassandraTableSchemaPtrOutputWithContext added in v3.46.0

func (o CassandraTableSchemaPtrOutput) ToCassandraTableSchemaPtrOutputWithContext(ctx context.Context) CassandraTableSchemaPtrOutput

type CassandraTableState added in v3.46.0

type CassandraTableState struct {
	AutoscaleSettings CassandraTableAutoscaleSettingsPtrInput
	// The ID of the Cosmos DB Cassandra Keyspace to create the table within. Changing this forces a new resource to be created.
	CassandraKeyspaceId pulumi.StringPtrInput
	DefaultTtl          pulumi.IntPtrInput
	// Specifies the name of the Cosmos DB Cassandra Table. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// A `schema` block as defined below. Changing this forces a new resource to be created.
	Schema     CassandraTableSchemaPtrInput
	Throughput pulumi.IntPtrInput
}

func (CassandraTableState) ElementType added in v3.46.0

func (CassandraTableState) ElementType() reflect.Type

type GetAccountCapability

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

type GetAccountCapabilityArgs

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

func (GetAccountCapabilityArgs) ElementType

func (GetAccountCapabilityArgs) ElementType() reflect.Type

func (GetAccountCapabilityArgs) ToGetAccountCapabilityOutput

func (i GetAccountCapabilityArgs) ToGetAccountCapabilityOutput() GetAccountCapabilityOutput

func (GetAccountCapabilityArgs) ToGetAccountCapabilityOutputWithContext

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

type GetAccountCapabilityArray

type GetAccountCapabilityArray []GetAccountCapabilityInput

func (GetAccountCapabilityArray) ElementType

func (GetAccountCapabilityArray) ElementType() reflect.Type

func (GetAccountCapabilityArray) ToGetAccountCapabilityArrayOutput

func (i GetAccountCapabilityArray) ToGetAccountCapabilityArrayOutput() GetAccountCapabilityArrayOutput

func (GetAccountCapabilityArray) ToGetAccountCapabilityArrayOutputWithContext

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

type GetAccountCapabilityArrayInput

type GetAccountCapabilityArrayInput interface {
	pulumi.Input

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

GetAccountCapabilityArrayInput is an input type that accepts GetAccountCapabilityArray and GetAccountCapabilityArrayOutput values. You can construct a concrete instance of `GetAccountCapabilityArrayInput` via:

GetAccountCapabilityArray{ GetAccountCapabilityArgs{...} }

type GetAccountCapabilityArrayOutput

type GetAccountCapabilityArrayOutput struct{ *pulumi.OutputState }

func (GetAccountCapabilityArrayOutput) ElementType

func (GetAccountCapabilityArrayOutput) Index

func (GetAccountCapabilityArrayOutput) ToGetAccountCapabilityArrayOutput

func (o GetAccountCapabilityArrayOutput) ToGetAccountCapabilityArrayOutput() GetAccountCapabilityArrayOutput

func (GetAccountCapabilityArrayOutput) ToGetAccountCapabilityArrayOutputWithContext

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

type GetAccountCapabilityInput

type GetAccountCapabilityInput interface {
	pulumi.Input

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

GetAccountCapabilityInput is an input type that accepts GetAccountCapabilityArgs and GetAccountCapabilityOutput values. You can construct a concrete instance of `GetAccountCapabilityInput` via:

GetAccountCapabilityArgs{...}

type GetAccountCapabilityOutput

type GetAccountCapabilityOutput struct{ *pulumi.OutputState }

func (GetAccountCapabilityOutput) ElementType

func (GetAccountCapabilityOutput) ElementType() reflect.Type

func (GetAccountCapabilityOutput) Name

Specifies the name of the CosmosDB Account.

func (GetAccountCapabilityOutput) ToGetAccountCapabilityOutput

func (o GetAccountCapabilityOutput) ToGetAccountCapabilityOutput() GetAccountCapabilityOutput

func (GetAccountCapabilityOutput) ToGetAccountCapabilityOutputWithContext

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

type GetAccountConsistencyPolicy

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

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

func (GetAccountConsistencyPolicyArgs) ToGetAccountConsistencyPolicyOutput

func (i GetAccountConsistencyPolicyArgs) ToGetAccountConsistencyPolicyOutput() GetAccountConsistencyPolicyOutput

func (GetAccountConsistencyPolicyArgs) ToGetAccountConsistencyPolicyOutputWithContext

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

type GetAccountConsistencyPolicyArray

type GetAccountConsistencyPolicyArray []GetAccountConsistencyPolicyInput

func (GetAccountConsistencyPolicyArray) ElementType

func (GetAccountConsistencyPolicyArray) ToGetAccountConsistencyPolicyArrayOutput

func (i GetAccountConsistencyPolicyArray) ToGetAccountConsistencyPolicyArrayOutput() GetAccountConsistencyPolicyArrayOutput

func (GetAccountConsistencyPolicyArray) ToGetAccountConsistencyPolicyArrayOutputWithContext

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

type GetAccountConsistencyPolicyArrayInput

type GetAccountConsistencyPolicyArrayInput interface {
	pulumi.Input

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

GetAccountConsistencyPolicyArrayInput is an input type that accepts GetAccountConsistencyPolicyArray and GetAccountConsistencyPolicyArrayOutput values. You can construct a concrete instance of `GetAccountConsistencyPolicyArrayInput` via:

GetAccountConsistencyPolicyArray{ GetAccountConsistencyPolicyArgs{...} }

type GetAccountConsistencyPolicyArrayOutput

type GetAccountConsistencyPolicyArrayOutput struct{ *pulumi.OutputState }

func (GetAccountConsistencyPolicyArrayOutput) ElementType

func (GetAccountConsistencyPolicyArrayOutput) Index

func (GetAccountConsistencyPolicyArrayOutput) ToGetAccountConsistencyPolicyArrayOutput

func (o GetAccountConsistencyPolicyArrayOutput) ToGetAccountConsistencyPolicyArrayOutput() GetAccountConsistencyPolicyArrayOutput

func (GetAccountConsistencyPolicyArrayOutput) ToGetAccountConsistencyPolicyArrayOutputWithContext

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

type GetAccountConsistencyPolicyInput

type GetAccountConsistencyPolicyInput interface {
	pulumi.Input

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

GetAccountConsistencyPolicyInput is an input type that accepts GetAccountConsistencyPolicyArgs and GetAccountConsistencyPolicyOutput values. You can construct a concrete instance of `GetAccountConsistencyPolicyInput` via:

GetAccountConsistencyPolicyArgs{...}

type GetAccountConsistencyPolicyOutput

type GetAccountConsistencyPolicyOutput struct{ *pulumi.OutputState }

func (GetAccountConsistencyPolicyOutput) ConsistencyLevel

The Consistency Level used by this CosmosDB Account.

func (GetAccountConsistencyPolicyOutput) ElementType

func (GetAccountConsistencyPolicyOutput) MaxIntervalInSeconds

func (o GetAccountConsistencyPolicyOutput) MaxIntervalInSeconds() pulumi.IntOutput

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

func (GetAccountConsistencyPolicyOutput) MaxStalenessPrefix

func (o GetAccountConsistencyPolicyOutput) MaxStalenessPrefix() pulumi.IntOutput

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

func (GetAccountConsistencyPolicyOutput) ToGetAccountConsistencyPolicyOutput

func (o GetAccountConsistencyPolicyOutput) ToGetAccountConsistencyPolicyOutput() GetAccountConsistencyPolicyOutput

func (GetAccountConsistencyPolicyOutput) ToGetAccountConsistencyPolicyOutputWithContext

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

type GetAccountGeoLocation

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

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

func (GetAccountGeoLocationArgs) ElementType() reflect.Type

func (GetAccountGeoLocationArgs) ToGetAccountGeoLocationOutput

func (i GetAccountGeoLocationArgs) ToGetAccountGeoLocationOutput() GetAccountGeoLocationOutput

func (GetAccountGeoLocationArgs) ToGetAccountGeoLocationOutputWithContext

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

type GetAccountGeoLocationArray

type GetAccountGeoLocationArray []GetAccountGeoLocationInput

func (GetAccountGeoLocationArray) ElementType

func (GetAccountGeoLocationArray) ElementType() reflect.Type

func (GetAccountGeoLocationArray) ToGetAccountGeoLocationArrayOutput

func (i GetAccountGeoLocationArray) ToGetAccountGeoLocationArrayOutput() GetAccountGeoLocationArrayOutput

func (GetAccountGeoLocationArray) ToGetAccountGeoLocationArrayOutputWithContext

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

type GetAccountGeoLocationArrayInput

type GetAccountGeoLocationArrayInput interface {
	pulumi.Input

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

GetAccountGeoLocationArrayInput is an input type that accepts GetAccountGeoLocationArray and GetAccountGeoLocationArrayOutput values. You can construct a concrete instance of `GetAccountGeoLocationArrayInput` via:

GetAccountGeoLocationArray{ GetAccountGeoLocationArgs{...} }

type GetAccountGeoLocationArrayOutput

type GetAccountGeoLocationArrayOutput struct{ *pulumi.OutputState }

func (GetAccountGeoLocationArrayOutput) ElementType

func (GetAccountGeoLocationArrayOutput) Index

func (GetAccountGeoLocationArrayOutput) ToGetAccountGeoLocationArrayOutput

func (o GetAccountGeoLocationArrayOutput) ToGetAccountGeoLocationArrayOutput() GetAccountGeoLocationArrayOutput

func (GetAccountGeoLocationArrayOutput) ToGetAccountGeoLocationArrayOutputWithContext

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

type GetAccountGeoLocationInput

type GetAccountGeoLocationInput interface {
	pulumi.Input

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

GetAccountGeoLocationInput is an input type that accepts GetAccountGeoLocationArgs and GetAccountGeoLocationOutput values. You can construct a concrete instance of `GetAccountGeoLocationInput` via:

GetAccountGeoLocationArgs{...}

type GetAccountGeoLocationOutput

type GetAccountGeoLocationOutput struct{ *pulumi.OutputState }

func (GetAccountGeoLocationOutput) ElementType

func (GetAccountGeoLocationOutput) FailoverPriority

func (o GetAccountGeoLocationOutput) FailoverPriority() pulumi.IntOutput

func (GetAccountGeoLocationOutput) Id

The ID of the virtual network subnet.

func (GetAccountGeoLocationOutput) Location

The name of the Azure region hosting replicated data.

func (GetAccountGeoLocationOutput) ToGetAccountGeoLocationOutput

func (o GetAccountGeoLocationOutput) ToGetAccountGeoLocationOutput() GetAccountGeoLocationOutput

func (GetAccountGeoLocationOutput) ToGetAccountGeoLocationOutputWithContext

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

type GetAccountVirtualNetworkRule

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

type GetAccountVirtualNetworkRuleArgs

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

func (GetAccountVirtualNetworkRuleArgs) ElementType

func (GetAccountVirtualNetworkRuleArgs) ToGetAccountVirtualNetworkRuleOutput

func (i GetAccountVirtualNetworkRuleArgs) ToGetAccountVirtualNetworkRuleOutput() GetAccountVirtualNetworkRuleOutput

func (GetAccountVirtualNetworkRuleArgs) ToGetAccountVirtualNetworkRuleOutputWithContext

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

type GetAccountVirtualNetworkRuleArray

type GetAccountVirtualNetworkRuleArray []GetAccountVirtualNetworkRuleInput

func (GetAccountVirtualNetworkRuleArray) ElementType

func (GetAccountVirtualNetworkRuleArray) ToGetAccountVirtualNetworkRuleArrayOutput

func (i GetAccountVirtualNetworkRuleArray) ToGetAccountVirtualNetworkRuleArrayOutput() GetAccountVirtualNetworkRuleArrayOutput

func (GetAccountVirtualNetworkRuleArray) ToGetAccountVirtualNetworkRuleArrayOutputWithContext

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

type GetAccountVirtualNetworkRuleArrayInput

type GetAccountVirtualNetworkRuleArrayInput interface {
	pulumi.Input

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

GetAccountVirtualNetworkRuleArrayInput is an input type that accepts GetAccountVirtualNetworkRuleArray and GetAccountVirtualNetworkRuleArrayOutput values. You can construct a concrete instance of `GetAccountVirtualNetworkRuleArrayInput` via:

GetAccountVirtualNetworkRuleArray{ GetAccountVirtualNetworkRuleArgs{...} }

type GetAccountVirtualNetworkRuleArrayOutput

type GetAccountVirtualNetworkRuleArrayOutput struct{ *pulumi.OutputState }

func (GetAccountVirtualNetworkRuleArrayOutput) ElementType

func (GetAccountVirtualNetworkRuleArrayOutput) Index

func (GetAccountVirtualNetworkRuleArrayOutput) ToGetAccountVirtualNetworkRuleArrayOutput

func (o GetAccountVirtualNetworkRuleArrayOutput) ToGetAccountVirtualNetworkRuleArrayOutput() GetAccountVirtualNetworkRuleArrayOutput

func (GetAccountVirtualNetworkRuleArrayOutput) ToGetAccountVirtualNetworkRuleArrayOutputWithContext

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

type GetAccountVirtualNetworkRuleInput

type GetAccountVirtualNetworkRuleInput interface {
	pulumi.Input

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

GetAccountVirtualNetworkRuleInput is an input type that accepts GetAccountVirtualNetworkRuleArgs and GetAccountVirtualNetworkRuleOutput values. You can construct a concrete instance of `GetAccountVirtualNetworkRuleInput` via:

GetAccountVirtualNetworkRuleArgs{...}

type GetAccountVirtualNetworkRuleOutput

type GetAccountVirtualNetworkRuleOutput struct{ *pulumi.OutputState }

func (GetAccountVirtualNetworkRuleOutput) ElementType

func (GetAccountVirtualNetworkRuleOutput) Id

The ID of the virtual network subnet.

func (GetAccountVirtualNetworkRuleOutput) ToGetAccountVirtualNetworkRuleOutput

func (o GetAccountVirtualNetworkRuleOutput) ToGetAccountVirtualNetworkRuleOutput() GetAccountVirtualNetworkRuleOutput

func (GetAccountVirtualNetworkRuleOutput) ToGetAccountVirtualNetworkRuleOutputWithContext

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

type GremlinDatabase

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"`
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.
	AutoscaleSettings GremlinDatabaseAutoscaleSettingsPtrOutput `pulumi:"autoscaleSettings"`
	// 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"`
	// The throughput of the Gremlin database (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply.
	Throughput pulumi.IntOutput `pulumi:"throughput"`
}

Manages a Gremlin Database within a Cosmos DB Account.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/cosmosdb"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleAccount, err := cosmosdb.LookupAccount(ctx, &cosmosdb.LookupAccountArgs{
			Name:              "tfex-cosmosdb-account",
			ResourceGroupName: "tfex-cosmosdb-account-rg",
		}, nil)
		if err != nil {
			return err
		}
		_, err = cosmosdb.NewGremlinDatabase(ctx, "exampleGremlinDatabase", &cosmosdb.GremlinDatabaseArgs{
			ResourceGroupName: pulumi.String(exampleAccount.ResourceGroupName),
			AccountName:       pulumi.String(exampleAccount.Name),
			Throughput:        pulumi.Int(400),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CosmosDB Gremlin Databases can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:cosmosdb/gremlinDatabase:GremlinDatabase db1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/account1/gremlinDatabases/db1

```

func GetGremlinDatabase

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

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.

func (*GremlinDatabase) ElementType added in v3.31.1

func (*GremlinDatabase) ElementType() reflect.Type

func (*GremlinDatabase) ToGremlinDatabaseOutput added in v3.31.1

func (i *GremlinDatabase) ToGremlinDatabaseOutput() GremlinDatabaseOutput

func (*GremlinDatabase) ToGremlinDatabaseOutputWithContext added in v3.31.1

func (i *GremlinDatabase) ToGremlinDatabaseOutputWithContext(ctx context.Context) GremlinDatabaseOutput

func (*GremlinDatabase) ToGremlinDatabasePtrOutput added in v3.47.1

func (i *GremlinDatabase) ToGremlinDatabasePtrOutput() GremlinDatabasePtrOutput

func (*GremlinDatabase) ToGremlinDatabasePtrOutputWithContext added in v3.47.1

func (i *GremlinDatabase) ToGremlinDatabasePtrOutputWithContext(ctx context.Context) GremlinDatabasePtrOutput

type GremlinDatabaseArgs

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
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.
	AutoscaleSettings GremlinDatabaseAutoscaleSettingsPtrInput
	// 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
	// The throughput of the Gremlin database (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply.
	Throughput pulumi.IntPtrInput
}

The set of arguments for constructing a GremlinDatabase resource.

func (GremlinDatabaseArgs) ElementType

func (GremlinDatabaseArgs) ElementType() reflect.Type

type GremlinDatabaseArray added in v3.47.1

type GremlinDatabaseArray []GremlinDatabaseInput

func (GremlinDatabaseArray) ElementType added in v3.47.1

func (GremlinDatabaseArray) ElementType() reflect.Type

func (GremlinDatabaseArray) ToGremlinDatabaseArrayOutput added in v3.47.1

func (i GremlinDatabaseArray) ToGremlinDatabaseArrayOutput() GremlinDatabaseArrayOutput

func (GremlinDatabaseArray) ToGremlinDatabaseArrayOutputWithContext added in v3.47.1

func (i GremlinDatabaseArray) ToGremlinDatabaseArrayOutputWithContext(ctx context.Context) GremlinDatabaseArrayOutput

type GremlinDatabaseArrayInput added in v3.47.1

type GremlinDatabaseArrayInput interface {
	pulumi.Input

	ToGremlinDatabaseArrayOutput() GremlinDatabaseArrayOutput
	ToGremlinDatabaseArrayOutputWithContext(context.Context) GremlinDatabaseArrayOutput
}

GremlinDatabaseArrayInput is an input type that accepts GremlinDatabaseArray and GremlinDatabaseArrayOutput values. You can construct a concrete instance of `GremlinDatabaseArrayInput` via:

GremlinDatabaseArray{ GremlinDatabaseArgs{...} }

type GremlinDatabaseArrayOutput added in v3.47.1

type GremlinDatabaseArrayOutput struct{ *pulumi.OutputState }

func (GremlinDatabaseArrayOutput) ElementType added in v3.47.1

func (GremlinDatabaseArrayOutput) ElementType() reflect.Type

func (GremlinDatabaseArrayOutput) Index added in v3.47.1

func (GremlinDatabaseArrayOutput) ToGremlinDatabaseArrayOutput added in v3.47.1

func (o GremlinDatabaseArrayOutput) ToGremlinDatabaseArrayOutput() GremlinDatabaseArrayOutput

func (GremlinDatabaseArrayOutput) ToGremlinDatabaseArrayOutputWithContext added in v3.47.1

func (o GremlinDatabaseArrayOutput) ToGremlinDatabaseArrayOutputWithContext(ctx context.Context) GremlinDatabaseArrayOutput

type GremlinDatabaseAutoscaleSettings added in v3.22.0

type GremlinDatabaseAutoscaleSettings struct {
	// The maximum throughput of the Gremlin database (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
	MaxThroughput *int `pulumi:"maxThroughput"`
}

type GremlinDatabaseAutoscaleSettingsArgs added in v3.22.0

type GremlinDatabaseAutoscaleSettingsArgs struct {
	// The maximum throughput of the Gremlin database (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
	MaxThroughput pulumi.IntPtrInput `pulumi:"maxThroughput"`
}

func (GremlinDatabaseAutoscaleSettingsArgs) ElementType added in v3.22.0

func (GremlinDatabaseAutoscaleSettingsArgs) ToGremlinDatabaseAutoscaleSettingsOutput added in v3.22.0

func (i GremlinDatabaseAutoscaleSettingsArgs) ToGremlinDatabaseAutoscaleSettingsOutput() GremlinDatabaseAutoscaleSettingsOutput

func (GremlinDatabaseAutoscaleSettingsArgs) ToGremlinDatabaseAutoscaleSettingsOutputWithContext added in v3.22.0

func (i GremlinDatabaseAutoscaleSettingsArgs) ToGremlinDatabaseAutoscaleSettingsOutputWithContext(ctx context.Context) GremlinDatabaseAutoscaleSettingsOutput

func (GremlinDatabaseAutoscaleSettingsArgs) ToGremlinDatabaseAutoscaleSettingsPtrOutput added in v3.22.0

func (i GremlinDatabaseAutoscaleSettingsArgs) ToGremlinDatabaseAutoscaleSettingsPtrOutput() GremlinDatabaseAutoscaleSettingsPtrOutput

func (GremlinDatabaseAutoscaleSettingsArgs) ToGremlinDatabaseAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (i GremlinDatabaseAutoscaleSettingsArgs) ToGremlinDatabaseAutoscaleSettingsPtrOutputWithContext(ctx context.Context) GremlinDatabaseAutoscaleSettingsPtrOutput

type GremlinDatabaseAutoscaleSettingsInput added in v3.22.0

type GremlinDatabaseAutoscaleSettingsInput interface {
	pulumi.Input

	ToGremlinDatabaseAutoscaleSettingsOutput() GremlinDatabaseAutoscaleSettingsOutput
	ToGremlinDatabaseAutoscaleSettingsOutputWithContext(context.Context) GremlinDatabaseAutoscaleSettingsOutput
}

GremlinDatabaseAutoscaleSettingsInput is an input type that accepts GremlinDatabaseAutoscaleSettingsArgs and GremlinDatabaseAutoscaleSettingsOutput values. You can construct a concrete instance of `GremlinDatabaseAutoscaleSettingsInput` via:

GremlinDatabaseAutoscaleSettingsArgs{...}

type GremlinDatabaseAutoscaleSettingsOutput added in v3.22.0

type GremlinDatabaseAutoscaleSettingsOutput struct{ *pulumi.OutputState }

func (GremlinDatabaseAutoscaleSettingsOutput) ElementType added in v3.22.0

func (GremlinDatabaseAutoscaleSettingsOutput) MaxThroughput added in v3.22.0

The maximum throughput of the Gremlin database (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.

func (GremlinDatabaseAutoscaleSettingsOutput) ToGremlinDatabaseAutoscaleSettingsOutput added in v3.22.0

func (o GremlinDatabaseAutoscaleSettingsOutput) ToGremlinDatabaseAutoscaleSettingsOutput() GremlinDatabaseAutoscaleSettingsOutput

func (GremlinDatabaseAutoscaleSettingsOutput) ToGremlinDatabaseAutoscaleSettingsOutputWithContext added in v3.22.0

func (o GremlinDatabaseAutoscaleSettingsOutput) ToGremlinDatabaseAutoscaleSettingsOutputWithContext(ctx context.Context) GremlinDatabaseAutoscaleSettingsOutput

func (GremlinDatabaseAutoscaleSettingsOutput) ToGremlinDatabaseAutoscaleSettingsPtrOutput added in v3.22.0

func (o GremlinDatabaseAutoscaleSettingsOutput) ToGremlinDatabaseAutoscaleSettingsPtrOutput() GremlinDatabaseAutoscaleSettingsPtrOutput

func (GremlinDatabaseAutoscaleSettingsOutput) ToGremlinDatabaseAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (o GremlinDatabaseAutoscaleSettingsOutput) ToGremlinDatabaseAutoscaleSettingsPtrOutputWithContext(ctx context.Context) GremlinDatabaseAutoscaleSettingsPtrOutput

type GremlinDatabaseAutoscaleSettingsPtrInput added in v3.22.0

type GremlinDatabaseAutoscaleSettingsPtrInput interface {
	pulumi.Input

	ToGremlinDatabaseAutoscaleSettingsPtrOutput() GremlinDatabaseAutoscaleSettingsPtrOutput
	ToGremlinDatabaseAutoscaleSettingsPtrOutputWithContext(context.Context) GremlinDatabaseAutoscaleSettingsPtrOutput
}

GremlinDatabaseAutoscaleSettingsPtrInput is an input type that accepts GremlinDatabaseAutoscaleSettingsArgs, GremlinDatabaseAutoscaleSettingsPtr and GremlinDatabaseAutoscaleSettingsPtrOutput values. You can construct a concrete instance of `GremlinDatabaseAutoscaleSettingsPtrInput` via:

        GremlinDatabaseAutoscaleSettingsArgs{...}

or:

        nil

type GremlinDatabaseAutoscaleSettingsPtrOutput added in v3.22.0

type GremlinDatabaseAutoscaleSettingsPtrOutput struct{ *pulumi.OutputState }

func (GremlinDatabaseAutoscaleSettingsPtrOutput) Elem added in v3.22.0

func (GremlinDatabaseAutoscaleSettingsPtrOutput) ElementType added in v3.22.0

func (GremlinDatabaseAutoscaleSettingsPtrOutput) MaxThroughput added in v3.22.0

The maximum throughput of the Gremlin database (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.

func (GremlinDatabaseAutoscaleSettingsPtrOutput) ToGremlinDatabaseAutoscaleSettingsPtrOutput added in v3.22.0

func (o GremlinDatabaseAutoscaleSettingsPtrOutput) ToGremlinDatabaseAutoscaleSettingsPtrOutput() GremlinDatabaseAutoscaleSettingsPtrOutput

func (GremlinDatabaseAutoscaleSettingsPtrOutput) ToGremlinDatabaseAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (o GremlinDatabaseAutoscaleSettingsPtrOutput) ToGremlinDatabaseAutoscaleSettingsPtrOutputWithContext(ctx context.Context) GremlinDatabaseAutoscaleSettingsPtrOutput

type GremlinDatabaseInput added in v3.31.1

type GremlinDatabaseInput interface {
	pulumi.Input

	ToGremlinDatabaseOutput() GremlinDatabaseOutput
	ToGremlinDatabaseOutputWithContext(ctx context.Context) GremlinDatabaseOutput
}

type GremlinDatabaseMap added in v3.47.1

type GremlinDatabaseMap map[string]GremlinDatabaseInput

func (GremlinDatabaseMap) ElementType added in v3.47.1

func (GremlinDatabaseMap) ElementType() reflect.Type

func (GremlinDatabaseMap) ToGremlinDatabaseMapOutput added in v3.47.1

func (i GremlinDatabaseMap) ToGremlinDatabaseMapOutput() GremlinDatabaseMapOutput

func (GremlinDatabaseMap) ToGremlinDatabaseMapOutputWithContext added in v3.47.1

func (i GremlinDatabaseMap) ToGremlinDatabaseMapOutputWithContext(ctx context.Context) GremlinDatabaseMapOutput

type GremlinDatabaseMapInput added in v3.47.1

type GremlinDatabaseMapInput interface {
	pulumi.Input

	ToGremlinDatabaseMapOutput() GremlinDatabaseMapOutput
	ToGremlinDatabaseMapOutputWithContext(context.Context) GremlinDatabaseMapOutput
}

GremlinDatabaseMapInput is an input type that accepts GremlinDatabaseMap and GremlinDatabaseMapOutput values. You can construct a concrete instance of `GremlinDatabaseMapInput` via:

GremlinDatabaseMap{ "key": GremlinDatabaseArgs{...} }

type GremlinDatabaseMapOutput added in v3.47.1

type GremlinDatabaseMapOutput struct{ *pulumi.OutputState }

func (GremlinDatabaseMapOutput) ElementType added in v3.47.1

func (GremlinDatabaseMapOutput) ElementType() reflect.Type

func (GremlinDatabaseMapOutput) MapIndex added in v3.47.1

func (GremlinDatabaseMapOutput) ToGremlinDatabaseMapOutput added in v3.47.1

func (o GremlinDatabaseMapOutput) ToGremlinDatabaseMapOutput() GremlinDatabaseMapOutput

func (GremlinDatabaseMapOutput) ToGremlinDatabaseMapOutputWithContext added in v3.47.1

func (o GremlinDatabaseMapOutput) ToGremlinDatabaseMapOutputWithContext(ctx context.Context) GremlinDatabaseMapOutput

type GremlinDatabaseOutput added in v3.31.1

type GremlinDatabaseOutput struct {
	*pulumi.OutputState
}

func (GremlinDatabaseOutput) ElementType added in v3.31.1

func (GremlinDatabaseOutput) ElementType() reflect.Type

func (GremlinDatabaseOutput) ToGremlinDatabaseOutput added in v3.31.1

func (o GremlinDatabaseOutput) ToGremlinDatabaseOutput() GremlinDatabaseOutput

func (GremlinDatabaseOutput) ToGremlinDatabaseOutputWithContext added in v3.31.1

func (o GremlinDatabaseOutput) ToGremlinDatabaseOutputWithContext(ctx context.Context) GremlinDatabaseOutput

func (GremlinDatabaseOutput) ToGremlinDatabasePtrOutput added in v3.47.1

func (o GremlinDatabaseOutput) ToGremlinDatabasePtrOutput() GremlinDatabasePtrOutput

func (GremlinDatabaseOutput) ToGremlinDatabasePtrOutputWithContext added in v3.47.1

func (o GremlinDatabaseOutput) ToGremlinDatabasePtrOutputWithContext(ctx context.Context) GremlinDatabasePtrOutput

type GremlinDatabasePtrInput added in v3.47.1

type GremlinDatabasePtrInput interface {
	pulumi.Input

	ToGremlinDatabasePtrOutput() GremlinDatabasePtrOutput
	ToGremlinDatabasePtrOutputWithContext(ctx context.Context) GremlinDatabasePtrOutput
}

type GremlinDatabasePtrOutput added in v3.47.1

type GremlinDatabasePtrOutput struct {
	*pulumi.OutputState
}

func (GremlinDatabasePtrOutput) ElementType added in v3.47.1

func (GremlinDatabasePtrOutput) ElementType() reflect.Type

func (GremlinDatabasePtrOutput) ToGremlinDatabasePtrOutput added in v3.47.1

func (o GremlinDatabasePtrOutput) ToGremlinDatabasePtrOutput() GremlinDatabasePtrOutput

func (GremlinDatabasePtrOutput) ToGremlinDatabasePtrOutputWithContext added in v3.47.1

func (o GremlinDatabasePtrOutput) ToGremlinDatabasePtrOutputWithContext(ctx context.Context) GremlinDatabasePtrOutput

type GremlinDatabaseState

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
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.
	AutoscaleSettings GremlinDatabaseAutoscaleSettingsPtrInput
	// 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
	// The throughput of the Gremlin database (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply.
	Throughput pulumi.IntPtrInput
}

func (GremlinDatabaseState) ElementType

func (GremlinDatabaseState) ElementType() reflect.Type

type GremlinGraph

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"`
	AutoscaleSettings GremlinGraphAutoscaleSettingsPtrOutput `pulumi:"autoscaleSettings"`
	// 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 default time to live (TTL) of the Gremlin graph. If the value is missing or set to "-1", items don’t expire.
	DefaultTtl pulumi.IntOutput `pulumi:"defaultTtl"`
	// 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"`
	// The throughput of the Gremlin graph (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual manual destroy-apply.
	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.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/cosmosdb"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleAccount, err := cosmosdb.LookupAccount(ctx, &cosmosdb.LookupAccountArgs{
			Name:              "tfex-cosmosdb-account",
			ResourceGroupName: "tfex-cosmosdb-account-rg",
		}, nil)
		if err != nil {
			return err
		}
		exampleGremlinDatabase, err := cosmosdb.NewGremlinDatabase(ctx, "exampleGremlinDatabase", &cosmosdb.GremlinDatabaseArgs{
			ResourceGroupName: pulumi.String(exampleAccount.ResourceGroupName),
			AccountName:       pulumi.String(exampleAccount.Name),
		})
		if err != nil {
			return err
		}
		_, err = cosmosdb.NewGremlinGraph(ctx, "exampleGremlinGraph", &cosmosdb.GremlinGraphArgs{
			ResourceGroupName: pulumi.Any(azurerm_cosmosdb_account.Example.Resource_group_name),
			AccountName:       pulumi.Any(azurerm_cosmosdb_account.Example.Name),
			DatabaseName:      exampleGremlinDatabase.Name,
			PartitionKeyPath:  pulumi.String("/Example"),
			Throughput:        pulumi.Int(400),
			IndexPolicies: cosmosdb.GremlinGraphIndexPolicyArray{
				&cosmosdb.GremlinGraphIndexPolicyArgs{
					Automatic:    pulumi.Bool(true),
					IndexingMode: pulumi.String("Consistent"),
					IncludedPaths: pulumi.StringArray{
						pulumi.String("/*"),
					},
					ExcludedPaths: pulumi.StringArray{
						pulumi.String("/\"_etag\"/?"),
					},
				},
			},
			ConflictResolutionPolicies: cosmosdb.GremlinGraphConflictResolutionPolicyArray{
				&cosmosdb.GremlinGraphConflictResolutionPolicyArgs{
					Mode:                   pulumi.String("LastWriterWins"),
					ConflictResolutionPath: pulumi.String("/_ts"),
				},
			},
			UniqueKeys: cosmosdb.GremlinGraphUniqueKeyArray{
				&cosmosdb.GremlinGraphUniqueKeyArgs{
					Paths: pulumi.StringArray{
						pulumi.String("/definition/id1"),
						pulumi.String("/definition/id2"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

> **NOTE:** The CosmosDB Account needs to have the `EnableGremlin` capability enabled to use this resource - which can be done by adding this to the `capabilities` list within the `cosmosdb.Account` resource.

## Import

Cosmos Gremlin Graphs can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:cosmosdb/gremlinGraph:GremlinGraph example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/account1/gremlinDatabases/db1/graphs/graphs1

```

func GetGremlinGraph

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

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.

func (*GremlinGraph) ElementType added in v3.31.1

func (*GremlinGraph) ElementType() reflect.Type

func (*GremlinGraph) ToGremlinGraphOutput added in v3.31.1

func (i *GremlinGraph) ToGremlinGraphOutput() GremlinGraphOutput

func (*GremlinGraph) ToGremlinGraphOutputWithContext added in v3.31.1

func (i *GremlinGraph) ToGremlinGraphOutputWithContext(ctx context.Context) GremlinGraphOutput

func (*GremlinGraph) ToGremlinGraphPtrOutput added in v3.47.1

func (i *GremlinGraph) ToGremlinGraphPtrOutput() GremlinGraphPtrOutput

func (*GremlinGraph) ToGremlinGraphPtrOutputWithContext added in v3.47.1

func (i *GremlinGraph) ToGremlinGraphPtrOutputWithContext(ctx context.Context) GremlinGraphPtrOutput

type GremlinGraphArgs

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
	AutoscaleSettings GremlinGraphAutoscaleSettingsPtrInput
	// 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 default time to live (TTL) of the Gremlin graph. If the value is missing or set to "-1", items don’t expire.
	DefaultTtl pulumi.IntPtrInput
	// 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
	// The throughput of the Gremlin graph (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual manual destroy-apply.
	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

func (GremlinGraphArgs) ElementType() reflect.Type

type GremlinGraphArray added in v3.47.1

type GremlinGraphArray []GremlinGraphInput

func (GremlinGraphArray) ElementType added in v3.47.1

func (GremlinGraphArray) ElementType() reflect.Type

func (GremlinGraphArray) ToGremlinGraphArrayOutput added in v3.47.1

func (i GremlinGraphArray) ToGremlinGraphArrayOutput() GremlinGraphArrayOutput

func (GremlinGraphArray) ToGremlinGraphArrayOutputWithContext added in v3.47.1

func (i GremlinGraphArray) ToGremlinGraphArrayOutputWithContext(ctx context.Context) GremlinGraphArrayOutput

type GremlinGraphArrayInput added in v3.47.1

type GremlinGraphArrayInput interface {
	pulumi.Input

	ToGremlinGraphArrayOutput() GremlinGraphArrayOutput
	ToGremlinGraphArrayOutputWithContext(context.Context) GremlinGraphArrayOutput
}

GremlinGraphArrayInput is an input type that accepts GremlinGraphArray and GremlinGraphArrayOutput values. You can construct a concrete instance of `GremlinGraphArrayInput` via:

GremlinGraphArray{ GremlinGraphArgs{...} }

type GremlinGraphArrayOutput added in v3.47.1

type GremlinGraphArrayOutput struct{ *pulumi.OutputState }

func (GremlinGraphArrayOutput) ElementType added in v3.47.1

func (GremlinGraphArrayOutput) ElementType() reflect.Type

func (GremlinGraphArrayOutput) Index added in v3.47.1

func (GremlinGraphArrayOutput) ToGremlinGraphArrayOutput added in v3.47.1

func (o GremlinGraphArrayOutput) ToGremlinGraphArrayOutput() GremlinGraphArrayOutput

func (GremlinGraphArrayOutput) ToGremlinGraphArrayOutputWithContext added in v3.47.1

func (o GremlinGraphArrayOutput) ToGremlinGraphArrayOutputWithContext(ctx context.Context) GremlinGraphArrayOutput

type GremlinGraphAutoscaleSettings added in v3.22.0

type GremlinGraphAutoscaleSettings struct {
	// The maximum throughput of the Gremlin graph (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
	MaxThroughput *int `pulumi:"maxThroughput"`
}

type GremlinGraphAutoscaleSettingsArgs added in v3.22.0

type GremlinGraphAutoscaleSettingsArgs struct {
	// The maximum throughput of the Gremlin graph (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
	MaxThroughput pulumi.IntPtrInput `pulumi:"maxThroughput"`
}

func (GremlinGraphAutoscaleSettingsArgs) ElementType added in v3.22.0

func (GremlinGraphAutoscaleSettingsArgs) ToGremlinGraphAutoscaleSettingsOutput added in v3.22.0

func (i GremlinGraphAutoscaleSettingsArgs) ToGremlinGraphAutoscaleSettingsOutput() GremlinGraphAutoscaleSettingsOutput

func (GremlinGraphAutoscaleSettingsArgs) ToGremlinGraphAutoscaleSettingsOutputWithContext added in v3.22.0

func (i GremlinGraphAutoscaleSettingsArgs) ToGremlinGraphAutoscaleSettingsOutputWithContext(ctx context.Context) GremlinGraphAutoscaleSettingsOutput

func (GremlinGraphAutoscaleSettingsArgs) ToGremlinGraphAutoscaleSettingsPtrOutput added in v3.22.0

func (i GremlinGraphAutoscaleSettingsArgs) ToGremlinGraphAutoscaleSettingsPtrOutput() GremlinGraphAutoscaleSettingsPtrOutput

func (GremlinGraphAutoscaleSettingsArgs) ToGremlinGraphAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (i GremlinGraphAutoscaleSettingsArgs) ToGremlinGraphAutoscaleSettingsPtrOutputWithContext(ctx context.Context) GremlinGraphAutoscaleSettingsPtrOutput

type GremlinGraphAutoscaleSettingsInput added in v3.22.0

type GremlinGraphAutoscaleSettingsInput interface {
	pulumi.Input

	ToGremlinGraphAutoscaleSettingsOutput() GremlinGraphAutoscaleSettingsOutput
	ToGremlinGraphAutoscaleSettingsOutputWithContext(context.Context) GremlinGraphAutoscaleSettingsOutput
}

GremlinGraphAutoscaleSettingsInput is an input type that accepts GremlinGraphAutoscaleSettingsArgs and GremlinGraphAutoscaleSettingsOutput values. You can construct a concrete instance of `GremlinGraphAutoscaleSettingsInput` via:

GremlinGraphAutoscaleSettingsArgs{...}

type GremlinGraphAutoscaleSettingsOutput added in v3.22.0

type GremlinGraphAutoscaleSettingsOutput struct{ *pulumi.OutputState }

func (GremlinGraphAutoscaleSettingsOutput) ElementType added in v3.22.0

func (GremlinGraphAutoscaleSettingsOutput) MaxThroughput added in v3.22.0

The maximum throughput of the Gremlin graph (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.

func (GremlinGraphAutoscaleSettingsOutput) ToGremlinGraphAutoscaleSettingsOutput added in v3.22.0

func (o GremlinGraphAutoscaleSettingsOutput) ToGremlinGraphAutoscaleSettingsOutput() GremlinGraphAutoscaleSettingsOutput

func (GremlinGraphAutoscaleSettingsOutput) ToGremlinGraphAutoscaleSettingsOutputWithContext added in v3.22.0

func (o GremlinGraphAutoscaleSettingsOutput) ToGremlinGraphAutoscaleSettingsOutputWithContext(ctx context.Context) GremlinGraphAutoscaleSettingsOutput

func (GremlinGraphAutoscaleSettingsOutput) ToGremlinGraphAutoscaleSettingsPtrOutput added in v3.22.0

func (o GremlinGraphAutoscaleSettingsOutput) ToGremlinGraphAutoscaleSettingsPtrOutput() GremlinGraphAutoscaleSettingsPtrOutput

func (GremlinGraphAutoscaleSettingsOutput) ToGremlinGraphAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (o GremlinGraphAutoscaleSettingsOutput) ToGremlinGraphAutoscaleSettingsPtrOutputWithContext(ctx context.Context) GremlinGraphAutoscaleSettingsPtrOutput

type GremlinGraphAutoscaleSettingsPtrInput added in v3.22.0

type GremlinGraphAutoscaleSettingsPtrInput interface {
	pulumi.Input

	ToGremlinGraphAutoscaleSettingsPtrOutput() GremlinGraphAutoscaleSettingsPtrOutput
	ToGremlinGraphAutoscaleSettingsPtrOutputWithContext(context.Context) GremlinGraphAutoscaleSettingsPtrOutput
}

GremlinGraphAutoscaleSettingsPtrInput is an input type that accepts GremlinGraphAutoscaleSettingsArgs, GremlinGraphAutoscaleSettingsPtr and GremlinGraphAutoscaleSettingsPtrOutput values. You can construct a concrete instance of `GremlinGraphAutoscaleSettingsPtrInput` via:

        GremlinGraphAutoscaleSettingsArgs{...}

or:

        nil

type GremlinGraphAutoscaleSettingsPtrOutput added in v3.22.0

type GremlinGraphAutoscaleSettingsPtrOutput struct{ *pulumi.OutputState }

func (GremlinGraphAutoscaleSettingsPtrOutput) Elem added in v3.22.0

func (GremlinGraphAutoscaleSettingsPtrOutput) ElementType added in v3.22.0

func (GremlinGraphAutoscaleSettingsPtrOutput) MaxThroughput added in v3.22.0

The maximum throughput of the Gremlin graph (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.

func (GremlinGraphAutoscaleSettingsPtrOutput) ToGremlinGraphAutoscaleSettingsPtrOutput added in v3.22.0

func (o GremlinGraphAutoscaleSettingsPtrOutput) ToGremlinGraphAutoscaleSettingsPtrOutput() GremlinGraphAutoscaleSettingsPtrOutput

func (GremlinGraphAutoscaleSettingsPtrOutput) ToGremlinGraphAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (o GremlinGraphAutoscaleSettingsPtrOutput) ToGremlinGraphAutoscaleSettingsPtrOutputWithContext(ctx context.Context) GremlinGraphAutoscaleSettingsPtrOutput

type GremlinGraphConflictResolutionPolicy

type GremlinGraphConflictResolutionPolicy struct {
	// The conflict resolution path in the case of LastWriterWins mode.
	ConflictResolutionPath *string `pulumi:"conflictResolutionPath"`
	// The procedure to resolve conflicts in the case of custom mode.
	ConflictResolutionProcedure *string `pulumi:"conflictResolutionProcedure"`
	// Indicates the conflict resolution mode. Possible values include: `LastWriterWins`, `Custom`.
	Mode string `pulumi:"mode"`
}

type GremlinGraphConflictResolutionPolicyArgs

type GremlinGraphConflictResolutionPolicyArgs struct {
	// The conflict resolution path in the case of LastWriterWins mode.
	ConflictResolutionPath pulumi.StringPtrInput `pulumi:"conflictResolutionPath"`
	// The procedure to resolve conflicts in the case of custom mode.
	ConflictResolutionProcedure pulumi.StringPtrInput `pulumi:"conflictResolutionProcedure"`
	// Indicates the conflict resolution mode. Possible values include: `LastWriterWins`, `Custom`.
	Mode pulumi.StringInput `pulumi:"mode"`
}

func (GremlinGraphConflictResolutionPolicyArgs) ElementType

func (GremlinGraphConflictResolutionPolicyArgs) ToGremlinGraphConflictResolutionPolicyOutput

func (i GremlinGraphConflictResolutionPolicyArgs) ToGremlinGraphConflictResolutionPolicyOutput() GremlinGraphConflictResolutionPolicyOutput

func (GremlinGraphConflictResolutionPolicyArgs) ToGremlinGraphConflictResolutionPolicyOutputWithContext

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

type GremlinGraphConflictResolutionPolicyArray

type GremlinGraphConflictResolutionPolicyArray []GremlinGraphConflictResolutionPolicyInput

func (GremlinGraphConflictResolutionPolicyArray) ElementType

func (GremlinGraphConflictResolutionPolicyArray) ToGremlinGraphConflictResolutionPolicyArrayOutput

func (i GremlinGraphConflictResolutionPolicyArray) ToGremlinGraphConflictResolutionPolicyArrayOutput() GremlinGraphConflictResolutionPolicyArrayOutput

func (GremlinGraphConflictResolutionPolicyArray) ToGremlinGraphConflictResolutionPolicyArrayOutputWithContext

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

type GremlinGraphConflictResolutionPolicyArrayInput

type GremlinGraphConflictResolutionPolicyArrayInput interface {
	pulumi.Input

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

GremlinGraphConflictResolutionPolicyArrayInput is an input type that accepts GremlinGraphConflictResolutionPolicyArray and GremlinGraphConflictResolutionPolicyArrayOutput values. You can construct a concrete instance of `GremlinGraphConflictResolutionPolicyArrayInput` via:

GremlinGraphConflictResolutionPolicyArray{ GremlinGraphConflictResolutionPolicyArgs{...} }

type GremlinGraphConflictResolutionPolicyArrayOutput

type GremlinGraphConflictResolutionPolicyArrayOutput struct{ *pulumi.OutputState }

func (GremlinGraphConflictResolutionPolicyArrayOutput) ElementType

func (GremlinGraphConflictResolutionPolicyArrayOutput) Index

func (GremlinGraphConflictResolutionPolicyArrayOutput) ToGremlinGraphConflictResolutionPolicyArrayOutput

func (o GremlinGraphConflictResolutionPolicyArrayOutput) ToGremlinGraphConflictResolutionPolicyArrayOutput() GremlinGraphConflictResolutionPolicyArrayOutput

func (GremlinGraphConflictResolutionPolicyArrayOutput) ToGremlinGraphConflictResolutionPolicyArrayOutputWithContext

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

type GremlinGraphConflictResolutionPolicyInput

type GremlinGraphConflictResolutionPolicyInput interface {
	pulumi.Input

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

GremlinGraphConflictResolutionPolicyInput is an input type that accepts GremlinGraphConflictResolutionPolicyArgs and GremlinGraphConflictResolutionPolicyOutput values. You can construct a concrete instance of `GremlinGraphConflictResolutionPolicyInput` via:

GremlinGraphConflictResolutionPolicyArgs{...}

type GremlinGraphConflictResolutionPolicyOutput

type GremlinGraphConflictResolutionPolicyOutput struct{ *pulumi.OutputState }

func (GremlinGraphConflictResolutionPolicyOutput) ConflictResolutionPath

The conflict resolution path in the case of LastWriterWins mode.

func (GremlinGraphConflictResolutionPolicyOutput) ConflictResolutionProcedure

func (o GremlinGraphConflictResolutionPolicyOutput) ConflictResolutionProcedure() pulumi.StringPtrOutput

The procedure to resolve conflicts in the case of custom mode.

func (GremlinGraphConflictResolutionPolicyOutput) ElementType

func (GremlinGraphConflictResolutionPolicyOutput) Mode

Indicates the conflict resolution mode. Possible values include: `LastWriterWins`, `Custom`.

func (GremlinGraphConflictResolutionPolicyOutput) ToGremlinGraphConflictResolutionPolicyOutput

func (o GremlinGraphConflictResolutionPolicyOutput) ToGremlinGraphConflictResolutionPolicyOutput() GremlinGraphConflictResolutionPolicyOutput

func (GremlinGraphConflictResolutionPolicyOutput) ToGremlinGraphConflictResolutionPolicyOutputWithContext

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

type GremlinGraphIndexPolicy

type GremlinGraphIndexPolicy struct {
	// Indicates if the indexing policy is automatic. Defaults to `true`.
	Automatic *bool `pulumi:"automatic"`
	// List of paths to exclude from indexing. Required if `indexingMode` is `Consistent` or `Lazy`.
	ExcludedPaths []string `pulumi:"excludedPaths"`
	// List of paths to include in the indexing. Required if `indexingMode` is `Consistent` or `Lazy`.
	IncludedPaths []string `pulumi:"includedPaths"`
	// Indicates the indexing mode. Possible values include: `Consistent`, `Lazy`, `None`.
	IndexingMode string `pulumi:"indexingMode"`
}

type GremlinGraphIndexPolicyArgs

type GremlinGraphIndexPolicyArgs struct {
	// Indicates if the indexing policy is automatic. Defaults to `true`.
	Automatic pulumi.BoolPtrInput `pulumi:"automatic"`
	// List of paths to exclude from indexing. Required if `indexingMode` is `Consistent` or `Lazy`.
	ExcludedPaths pulumi.StringArrayInput `pulumi:"excludedPaths"`
	// List of paths to include in the indexing. Required if `indexingMode` is `Consistent` or `Lazy`.
	IncludedPaths pulumi.StringArrayInput `pulumi:"includedPaths"`
	// Indicates the indexing mode. Possible values include: `Consistent`, `Lazy`, `None`.
	IndexingMode pulumi.StringInput `pulumi:"indexingMode"`
}

func (GremlinGraphIndexPolicyArgs) ElementType

func (GremlinGraphIndexPolicyArgs) ToGremlinGraphIndexPolicyOutput

func (i GremlinGraphIndexPolicyArgs) ToGremlinGraphIndexPolicyOutput() GremlinGraphIndexPolicyOutput

func (GremlinGraphIndexPolicyArgs) ToGremlinGraphIndexPolicyOutputWithContext

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

type GremlinGraphIndexPolicyArray

type GremlinGraphIndexPolicyArray []GremlinGraphIndexPolicyInput

func (GremlinGraphIndexPolicyArray) ElementType

func (GremlinGraphIndexPolicyArray) ToGremlinGraphIndexPolicyArrayOutput

func (i GremlinGraphIndexPolicyArray) ToGremlinGraphIndexPolicyArrayOutput() GremlinGraphIndexPolicyArrayOutput

func (GremlinGraphIndexPolicyArray) ToGremlinGraphIndexPolicyArrayOutputWithContext

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

type GremlinGraphIndexPolicyArrayInput

type GremlinGraphIndexPolicyArrayInput interface {
	pulumi.Input

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

GremlinGraphIndexPolicyArrayInput is an input type that accepts GremlinGraphIndexPolicyArray and GremlinGraphIndexPolicyArrayOutput values. You can construct a concrete instance of `GremlinGraphIndexPolicyArrayInput` via:

GremlinGraphIndexPolicyArray{ GremlinGraphIndexPolicyArgs{...} }

type GremlinGraphIndexPolicyArrayOutput

type GremlinGraphIndexPolicyArrayOutput struct{ *pulumi.OutputState }

func (GremlinGraphIndexPolicyArrayOutput) ElementType

func (GremlinGraphIndexPolicyArrayOutput) Index

func (GremlinGraphIndexPolicyArrayOutput) ToGremlinGraphIndexPolicyArrayOutput

func (o GremlinGraphIndexPolicyArrayOutput) ToGremlinGraphIndexPolicyArrayOutput() GremlinGraphIndexPolicyArrayOutput

func (GremlinGraphIndexPolicyArrayOutput) ToGremlinGraphIndexPolicyArrayOutputWithContext

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

type GremlinGraphIndexPolicyInput

type GremlinGraphIndexPolicyInput interface {
	pulumi.Input

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

GremlinGraphIndexPolicyInput is an input type that accepts GremlinGraphIndexPolicyArgs and GremlinGraphIndexPolicyOutput values. You can construct a concrete instance of `GremlinGraphIndexPolicyInput` via:

GremlinGraphIndexPolicyArgs{...}

type GremlinGraphIndexPolicyOutput

type GremlinGraphIndexPolicyOutput struct{ *pulumi.OutputState }

func (GremlinGraphIndexPolicyOutput) Automatic

Indicates if the indexing policy is automatic. Defaults to `true`.

func (GremlinGraphIndexPolicyOutput) ElementType

func (GremlinGraphIndexPolicyOutput) ExcludedPaths

List of paths to exclude from indexing. Required if `indexingMode` is `Consistent` or `Lazy`.

func (GremlinGraphIndexPolicyOutput) IncludedPaths

List of paths to include in the indexing. Required if `indexingMode` is `Consistent` or `Lazy`.

func (GremlinGraphIndexPolicyOutput) IndexingMode

Indicates the indexing mode. Possible values include: `Consistent`, `Lazy`, `None`.

func (GremlinGraphIndexPolicyOutput) ToGremlinGraphIndexPolicyOutput

func (o GremlinGraphIndexPolicyOutput) ToGremlinGraphIndexPolicyOutput() GremlinGraphIndexPolicyOutput

func (GremlinGraphIndexPolicyOutput) ToGremlinGraphIndexPolicyOutputWithContext

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

type GremlinGraphInput added in v3.31.1

type GremlinGraphInput interface {
	pulumi.Input

	ToGremlinGraphOutput() GremlinGraphOutput
	ToGremlinGraphOutputWithContext(ctx context.Context) GremlinGraphOutput
}

type GremlinGraphMap added in v3.47.1

type GremlinGraphMap map[string]GremlinGraphInput

func (GremlinGraphMap) ElementType added in v3.47.1

func (GremlinGraphMap) ElementType() reflect.Type

func (GremlinGraphMap) ToGremlinGraphMapOutput added in v3.47.1

func (i GremlinGraphMap) ToGremlinGraphMapOutput() GremlinGraphMapOutput

func (GremlinGraphMap) ToGremlinGraphMapOutputWithContext added in v3.47.1

func (i GremlinGraphMap) ToGremlinGraphMapOutputWithContext(ctx context.Context) GremlinGraphMapOutput

type GremlinGraphMapInput added in v3.47.1

type GremlinGraphMapInput interface {
	pulumi.Input

	ToGremlinGraphMapOutput() GremlinGraphMapOutput
	ToGremlinGraphMapOutputWithContext(context.Context) GremlinGraphMapOutput
}

GremlinGraphMapInput is an input type that accepts GremlinGraphMap and GremlinGraphMapOutput values. You can construct a concrete instance of `GremlinGraphMapInput` via:

GremlinGraphMap{ "key": GremlinGraphArgs{...} }

type GremlinGraphMapOutput added in v3.47.1

type GremlinGraphMapOutput struct{ *pulumi.OutputState }

func (GremlinGraphMapOutput) ElementType added in v3.47.1

func (GremlinGraphMapOutput) ElementType() reflect.Type

func (GremlinGraphMapOutput) MapIndex added in v3.47.1

func (GremlinGraphMapOutput) ToGremlinGraphMapOutput added in v3.47.1

func (o GremlinGraphMapOutput) ToGremlinGraphMapOutput() GremlinGraphMapOutput

func (GremlinGraphMapOutput) ToGremlinGraphMapOutputWithContext added in v3.47.1

func (o GremlinGraphMapOutput) ToGremlinGraphMapOutputWithContext(ctx context.Context) GremlinGraphMapOutput

type GremlinGraphOutput added in v3.31.1

type GremlinGraphOutput struct {
	*pulumi.OutputState
}

func (GremlinGraphOutput) ElementType added in v3.31.1

func (GremlinGraphOutput) ElementType() reflect.Type

func (GremlinGraphOutput) ToGremlinGraphOutput added in v3.31.1

func (o GremlinGraphOutput) ToGremlinGraphOutput() GremlinGraphOutput

func (GremlinGraphOutput) ToGremlinGraphOutputWithContext added in v3.31.1

func (o GremlinGraphOutput) ToGremlinGraphOutputWithContext(ctx context.Context) GremlinGraphOutput

func (GremlinGraphOutput) ToGremlinGraphPtrOutput added in v3.47.1

func (o GremlinGraphOutput) ToGremlinGraphPtrOutput() GremlinGraphPtrOutput

func (GremlinGraphOutput) ToGremlinGraphPtrOutputWithContext added in v3.47.1

func (o GremlinGraphOutput) ToGremlinGraphPtrOutputWithContext(ctx context.Context) GremlinGraphPtrOutput

type GremlinGraphPtrInput added in v3.47.1

type GremlinGraphPtrInput interface {
	pulumi.Input

	ToGremlinGraphPtrOutput() GremlinGraphPtrOutput
	ToGremlinGraphPtrOutputWithContext(ctx context.Context) GremlinGraphPtrOutput
}

type GremlinGraphPtrOutput added in v3.47.1

type GremlinGraphPtrOutput struct {
	*pulumi.OutputState
}

func (GremlinGraphPtrOutput) ElementType added in v3.47.1

func (GremlinGraphPtrOutput) ElementType() reflect.Type

func (GremlinGraphPtrOutput) ToGremlinGraphPtrOutput added in v3.47.1

func (o GremlinGraphPtrOutput) ToGremlinGraphPtrOutput() GremlinGraphPtrOutput

func (GremlinGraphPtrOutput) ToGremlinGraphPtrOutputWithContext added in v3.47.1

func (o GremlinGraphPtrOutput) ToGremlinGraphPtrOutputWithContext(ctx context.Context) GremlinGraphPtrOutput

type GremlinGraphState

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
	AutoscaleSettings GremlinGraphAutoscaleSettingsPtrInput
	// 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 default time to live (TTL) of the Gremlin graph. If the value is missing or set to "-1", items don’t expire.
	DefaultTtl pulumi.IntPtrInput
	// 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
	// The throughput of the Gremlin graph (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual manual destroy-apply.
	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

func (GremlinGraphState) ElementType() reflect.Type

type GremlinGraphUniqueKey

type GremlinGraphUniqueKey struct {
	// A list of paths to use for this unique key.
	Paths []string `pulumi:"paths"`
}

type GremlinGraphUniqueKeyArgs

type GremlinGraphUniqueKeyArgs struct {
	// A list of paths to use for this unique key.
	Paths pulumi.StringArrayInput `pulumi:"paths"`
}

func (GremlinGraphUniqueKeyArgs) ElementType

func (GremlinGraphUniqueKeyArgs) ElementType() reflect.Type

func (GremlinGraphUniqueKeyArgs) ToGremlinGraphUniqueKeyOutput

func (i GremlinGraphUniqueKeyArgs) ToGremlinGraphUniqueKeyOutput() GremlinGraphUniqueKeyOutput

func (GremlinGraphUniqueKeyArgs) ToGremlinGraphUniqueKeyOutputWithContext

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

type GremlinGraphUniqueKeyArray

type GremlinGraphUniqueKeyArray []GremlinGraphUniqueKeyInput

func (GremlinGraphUniqueKeyArray) ElementType

func (GremlinGraphUniqueKeyArray) ElementType() reflect.Type

func (GremlinGraphUniqueKeyArray) ToGremlinGraphUniqueKeyArrayOutput

func (i GremlinGraphUniqueKeyArray) ToGremlinGraphUniqueKeyArrayOutput() GremlinGraphUniqueKeyArrayOutput

func (GremlinGraphUniqueKeyArray) ToGremlinGraphUniqueKeyArrayOutputWithContext

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

type GremlinGraphUniqueKeyArrayInput

type GremlinGraphUniqueKeyArrayInput interface {
	pulumi.Input

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

GremlinGraphUniqueKeyArrayInput is an input type that accepts GremlinGraphUniqueKeyArray and GremlinGraphUniqueKeyArrayOutput values. You can construct a concrete instance of `GremlinGraphUniqueKeyArrayInput` via:

GremlinGraphUniqueKeyArray{ GremlinGraphUniqueKeyArgs{...} }

type GremlinGraphUniqueKeyArrayOutput

type GremlinGraphUniqueKeyArrayOutput struct{ *pulumi.OutputState }

func (GremlinGraphUniqueKeyArrayOutput) ElementType

func (GremlinGraphUniqueKeyArrayOutput) Index

func (GremlinGraphUniqueKeyArrayOutput) ToGremlinGraphUniqueKeyArrayOutput

func (o GremlinGraphUniqueKeyArrayOutput) ToGremlinGraphUniqueKeyArrayOutput() GremlinGraphUniqueKeyArrayOutput

func (GremlinGraphUniqueKeyArrayOutput) ToGremlinGraphUniqueKeyArrayOutputWithContext

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

type GremlinGraphUniqueKeyInput

type GremlinGraphUniqueKeyInput interface {
	pulumi.Input

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

GremlinGraphUniqueKeyInput is an input type that accepts GremlinGraphUniqueKeyArgs and GremlinGraphUniqueKeyOutput values. You can construct a concrete instance of `GremlinGraphUniqueKeyInput` via:

GremlinGraphUniqueKeyArgs{...}

type GremlinGraphUniqueKeyOutput

type GremlinGraphUniqueKeyOutput struct{ *pulumi.OutputState }

func (GremlinGraphUniqueKeyOutput) ElementType

func (GremlinGraphUniqueKeyOutput) Paths

A list of paths to use for this unique key.

func (GremlinGraphUniqueKeyOutput) ToGremlinGraphUniqueKeyOutput

func (o GremlinGraphUniqueKeyOutput) ToGremlinGraphUniqueKeyOutput() GremlinGraphUniqueKeyOutput

func (GremlinGraphUniqueKeyOutput) ToGremlinGraphUniqueKeyOutputWithContext

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

type LookupAccountArgs

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

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 Free Tier pricing option is enabled for this CosmosDB Account.
	EnableFreeTier bool `pulumi:"enableFreeTier"`
	// 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"`
	// 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 Key Vault key URI for CMK encryption.
	KeyVaultKeyId string `pulumi:"keyVaultKeyId"`
	// 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.
	PrimaryKey string `pulumi:"primaryKey"`
	// Deprecated: This property has been renamed to `primary_key` and will be removed in v3.0 of the provider in support of HashiCorp's inclusive language policy which can be found here: https://discuss.hashicorp.com/t/inclusive-language-changes
	PrimaryMasterKey string `pulumi:"primaryMasterKey"`
	// The Primary read-only master Key for the CosmosDB Account.
	PrimaryReadonlyKey string `pulumi:"primaryReadonlyKey"`
	// Deprecated: This property has been renamed to `primary_readonly_key` and will be removed in v3.0 of the provider in support of HashiCorp's inclusive language policy which can be found here: https://discuss.hashicorp.com/t/inclusive-language-changes
	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.
	SecondaryKey string `pulumi:"secondaryKey"`
	// Deprecated: This property has been renamed to `secondary_key` and will be removed in v3.0 of the provider in support of HashiCorp's inclusive language policy which can be found here: https://discuss.hashicorp.com/t/inclusive-language-changes
	SecondaryMasterKey string `pulumi:"secondaryMasterKey"`
	// The Secondary read-only master key for the CosmosDB Account.
	SecondaryReadonlyKey string `pulumi:"secondaryReadonlyKey"`
	// Deprecated: This property has been renamed to `secondary_readonly_key` and will be removed in v3.0 of the provider in support of HashiCorp's inclusive language policy which can be found here: https://discuss.hashicorp.com/t/inclusive-language-changes
	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.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/cosmosdb"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cosmosdb.LookupAccount(ctx, &cosmosdb.LookupAccountArgs{
			Name:              "tfex-cosmosdb-account",
			ResourceGroupName: "tfex-cosmosdb-account-rg",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cosmosdbAccountEndpoint", data.Azurerm_cosmosdb_account.Jobs.Endpoint)
		return nil
	})
}

```

type MongoCollection

type MongoCollection struct {
	pulumi.CustomResourceState

	AccountName pulumi.StringOutput `pulumi:"accountName"`
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual manual destroy-apply. Requires `shardKey` to be set.
	AutoscaleSettings MongoCollectionAutoscaleSettingsPtrOutput `pulumi:"autoscaleSettings"`
	// 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` or `0`, items are not automatically expired.
	DefaultTtlSeconds pulumi.IntPtrOutput `pulumi:"defaultTtlSeconds"`
	// One or more `index` blocks as defined below.
	Indices MongoCollectionIndexArrayOutput `pulumi:"indices"`
	// 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"`
	// One or more `systemIndexes` blocks as defined below.
	SystemIndexes MongoCollectionSystemIndexArrayOutput `pulumi:"systemIndexes"`
	// The throughput of the MongoDB collection (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual manual destroy-apply.
	Throughput pulumi.IntOutput `pulumi:"throughput"`
}

Manages a Mongo Collection within a Cosmos DB Account.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/cosmosdb"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleAccount, err := cosmosdb.LookupAccount(ctx, &cosmosdb.LookupAccountArgs{
			Name:              "tfex-cosmosdb-account",
			ResourceGroupName: "tfex-cosmosdb-account-rg",
		}, nil)
		if err != nil {
			return err
		}
		exampleMongoDatabase, err := cosmosdb.NewMongoDatabase(ctx, "exampleMongoDatabase", &cosmosdb.MongoDatabaseArgs{
			ResourceGroupName: pulumi.String(exampleAccount.ResourceGroupName),
			AccountName:       pulumi.String(exampleAccount.Name),
		})
		if err != nil {
			return err
		}
		_, err = cosmosdb.NewMongoCollection(ctx, "exampleMongoCollection", &cosmosdb.MongoCollectionArgs{
			ResourceGroupName: pulumi.String(exampleAccount.ResourceGroupName),
			AccountName:       pulumi.String(exampleAccount.Name),
			DatabaseName:      exampleMongoDatabase.Name,
			DefaultTtlSeconds: pulumi.Int(777),
			ShardKey:          pulumi.String("uniqueKey"),
			Throughput:        pulumi.Int(400),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CosmosDB Mongo Collection can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:cosmosdb/mongoCollection:MongoCollection collection1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/account1/mongodbDatabases/db1/collections/collection1

```

func GetMongoCollection

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

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.

func (*MongoCollection) ElementType added in v3.31.1

func (*MongoCollection) ElementType() reflect.Type

func (*MongoCollection) ToMongoCollectionOutput added in v3.31.1

func (i *MongoCollection) ToMongoCollectionOutput() MongoCollectionOutput

func (*MongoCollection) ToMongoCollectionOutputWithContext added in v3.31.1

func (i *MongoCollection) ToMongoCollectionOutputWithContext(ctx context.Context) MongoCollectionOutput

func (*MongoCollection) ToMongoCollectionPtrOutput added in v3.47.1

func (i *MongoCollection) ToMongoCollectionPtrOutput() MongoCollectionPtrOutput

func (*MongoCollection) ToMongoCollectionPtrOutputWithContext added in v3.47.1

func (i *MongoCollection) ToMongoCollectionPtrOutputWithContext(ctx context.Context) MongoCollectionPtrOutput

type MongoCollectionArgs

type MongoCollectionArgs struct {
	AccountName pulumi.StringInput
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual manual destroy-apply. Requires `shardKey` to be set.
	AutoscaleSettings MongoCollectionAutoscaleSettingsPtrInput
	// 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` or `0`, items are not automatically expired.
	DefaultTtlSeconds pulumi.IntPtrInput
	// One or more `index` blocks as defined below.
	Indices 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
	// The throughput of the MongoDB collection (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual manual destroy-apply.
	Throughput pulumi.IntPtrInput
}

The set of arguments for constructing a MongoCollection resource.

func (MongoCollectionArgs) ElementType

func (MongoCollectionArgs) ElementType() reflect.Type

type MongoCollectionArray added in v3.47.1

type MongoCollectionArray []MongoCollectionInput

func (MongoCollectionArray) ElementType added in v3.47.1

func (MongoCollectionArray) ElementType() reflect.Type

func (MongoCollectionArray) ToMongoCollectionArrayOutput added in v3.47.1

func (i MongoCollectionArray) ToMongoCollectionArrayOutput() MongoCollectionArrayOutput

func (MongoCollectionArray) ToMongoCollectionArrayOutputWithContext added in v3.47.1

func (i MongoCollectionArray) ToMongoCollectionArrayOutputWithContext(ctx context.Context) MongoCollectionArrayOutput

type MongoCollectionArrayInput added in v3.47.1

type MongoCollectionArrayInput interface {
	pulumi.Input

	ToMongoCollectionArrayOutput() MongoCollectionArrayOutput
	ToMongoCollectionArrayOutputWithContext(context.Context) MongoCollectionArrayOutput
}

MongoCollectionArrayInput is an input type that accepts MongoCollectionArray and MongoCollectionArrayOutput values. You can construct a concrete instance of `MongoCollectionArrayInput` via:

MongoCollectionArray{ MongoCollectionArgs{...} }

type MongoCollectionArrayOutput added in v3.47.1

type MongoCollectionArrayOutput struct{ *pulumi.OutputState }

func (MongoCollectionArrayOutput) ElementType added in v3.47.1

func (MongoCollectionArrayOutput) ElementType() reflect.Type

func (MongoCollectionArrayOutput) Index added in v3.47.1

func (MongoCollectionArrayOutput) ToMongoCollectionArrayOutput added in v3.47.1

func (o MongoCollectionArrayOutput) ToMongoCollectionArrayOutput() MongoCollectionArrayOutput

func (MongoCollectionArrayOutput) ToMongoCollectionArrayOutputWithContext added in v3.47.1

func (o MongoCollectionArrayOutput) ToMongoCollectionArrayOutputWithContext(ctx context.Context) MongoCollectionArrayOutput

type MongoCollectionAutoscaleSettings added in v3.22.0

type MongoCollectionAutoscaleSettings struct {
	// The maximum throughput of the MongoDB collection (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
	MaxThroughput *int `pulumi:"maxThroughput"`
}

type MongoCollectionAutoscaleSettingsArgs added in v3.22.0

type MongoCollectionAutoscaleSettingsArgs struct {
	// The maximum throughput of the MongoDB collection (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
	MaxThroughput pulumi.IntPtrInput `pulumi:"maxThroughput"`
}

func (MongoCollectionAutoscaleSettingsArgs) ElementType added in v3.22.0

func (MongoCollectionAutoscaleSettingsArgs) ToMongoCollectionAutoscaleSettingsOutput added in v3.22.0

func (i MongoCollectionAutoscaleSettingsArgs) ToMongoCollectionAutoscaleSettingsOutput() MongoCollectionAutoscaleSettingsOutput

func (MongoCollectionAutoscaleSettingsArgs) ToMongoCollectionAutoscaleSettingsOutputWithContext added in v3.22.0

func (i MongoCollectionAutoscaleSettingsArgs) ToMongoCollectionAutoscaleSettingsOutputWithContext(ctx context.Context) MongoCollectionAutoscaleSettingsOutput

func (MongoCollectionAutoscaleSettingsArgs) ToMongoCollectionAutoscaleSettingsPtrOutput added in v3.22.0

func (i MongoCollectionAutoscaleSettingsArgs) ToMongoCollectionAutoscaleSettingsPtrOutput() MongoCollectionAutoscaleSettingsPtrOutput

func (MongoCollectionAutoscaleSettingsArgs) ToMongoCollectionAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (i MongoCollectionAutoscaleSettingsArgs) ToMongoCollectionAutoscaleSettingsPtrOutputWithContext(ctx context.Context) MongoCollectionAutoscaleSettingsPtrOutput

type MongoCollectionAutoscaleSettingsInput added in v3.22.0

type MongoCollectionAutoscaleSettingsInput interface {
	pulumi.Input

	ToMongoCollectionAutoscaleSettingsOutput() MongoCollectionAutoscaleSettingsOutput
	ToMongoCollectionAutoscaleSettingsOutputWithContext(context.Context) MongoCollectionAutoscaleSettingsOutput
}

MongoCollectionAutoscaleSettingsInput is an input type that accepts MongoCollectionAutoscaleSettingsArgs and MongoCollectionAutoscaleSettingsOutput values. You can construct a concrete instance of `MongoCollectionAutoscaleSettingsInput` via:

MongoCollectionAutoscaleSettingsArgs{...}

type MongoCollectionAutoscaleSettingsOutput added in v3.22.0

type MongoCollectionAutoscaleSettingsOutput struct{ *pulumi.OutputState }

func (MongoCollectionAutoscaleSettingsOutput) ElementType added in v3.22.0

func (MongoCollectionAutoscaleSettingsOutput) MaxThroughput added in v3.22.0

The maximum throughput of the MongoDB collection (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.

func (MongoCollectionAutoscaleSettingsOutput) ToMongoCollectionAutoscaleSettingsOutput added in v3.22.0

func (o MongoCollectionAutoscaleSettingsOutput) ToMongoCollectionAutoscaleSettingsOutput() MongoCollectionAutoscaleSettingsOutput

func (MongoCollectionAutoscaleSettingsOutput) ToMongoCollectionAutoscaleSettingsOutputWithContext added in v3.22.0

func (o MongoCollectionAutoscaleSettingsOutput) ToMongoCollectionAutoscaleSettingsOutputWithContext(ctx context.Context) MongoCollectionAutoscaleSettingsOutput

func (MongoCollectionAutoscaleSettingsOutput) ToMongoCollectionAutoscaleSettingsPtrOutput added in v3.22.0

func (o MongoCollectionAutoscaleSettingsOutput) ToMongoCollectionAutoscaleSettingsPtrOutput() MongoCollectionAutoscaleSettingsPtrOutput

func (MongoCollectionAutoscaleSettingsOutput) ToMongoCollectionAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (o MongoCollectionAutoscaleSettingsOutput) ToMongoCollectionAutoscaleSettingsPtrOutputWithContext(ctx context.Context) MongoCollectionAutoscaleSettingsPtrOutput

type MongoCollectionAutoscaleSettingsPtrInput added in v3.22.0

type MongoCollectionAutoscaleSettingsPtrInput interface {
	pulumi.Input

	ToMongoCollectionAutoscaleSettingsPtrOutput() MongoCollectionAutoscaleSettingsPtrOutput
	ToMongoCollectionAutoscaleSettingsPtrOutputWithContext(context.Context) MongoCollectionAutoscaleSettingsPtrOutput
}

MongoCollectionAutoscaleSettingsPtrInput is an input type that accepts MongoCollectionAutoscaleSettingsArgs, MongoCollectionAutoscaleSettingsPtr and MongoCollectionAutoscaleSettingsPtrOutput values. You can construct a concrete instance of `MongoCollectionAutoscaleSettingsPtrInput` via:

        MongoCollectionAutoscaleSettingsArgs{...}

or:

        nil

type MongoCollectionAutoscaleSettingsPtrOutput added in v3.22.0

type MongoCollectionAutoscaleSettingsPtrOutput struct{ *pulumi.OutputState }

func (MongoCollectionAutoscaleSettingsPtrOutput) Elem added in v3.22.0

func (MongoCollectionAutoscaleSettingsPtrOutput) ElementType added in v3.22.0

func (MongoCollectionAutoscaleSettingsPtrOutput) MaxThroughput added in v3.22.0

The maximum throughput of the MongoDB collection (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.

func (MongoCollectionAutoscaleSettingsPtrOutput) ToMongoCollectionAutoscaleSettingsPtrOutput added in v3.22.0

func (o MongoCollectionAutoscaleSettingsPtrOutput) ToMongoCollectionAutoscaleSettingsPtrOutput() MongoCollectionAutoscaleSettingsPtrOutput

func (MongoCollectionAutoscaleSettingsPtrOutput) ToMongoCollectionAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (o MongoCollectionAutoscaleSettingsPtrOutput) ToMongoCollectionAutoscaleSettingsPtrOutputWithContext(ctx context.Context) MongoCollectionAutoscaleSettingsPtrOutput

type MongoCollectionIndex added in v3.2.0

type MongoCollectionIndex struct {
	// Specifies the list of user settable keys for each Cosmos DB Mongo Collection.
	Keys []string `pulumi:"keys"`
	// Is the index unique or not? Defaults to `false`.
	Unique *bool `pulumi:"unique"`
}

type MongoCollectionIndexArgs added in v3.2.0

type MongoCollectionIndexArgs struct {
	// Specifies the list of user settable keys for each Cosmos DB Mongo Collection.
	Keys pulumi.StringArrayInput `pulumi:"keys"`
	// Is the index unique or not? Defaults to `false`.
	Unique pulumi.BoolPtrInput `pulumi:"unique"`
}

func (MongoCollectionIndexArgs) ElementType added in v3.2.0

func (MongoCollectionIndexArgs) ElementType() reflect.Type

func (MongoCollectionIndexArgs) ToMongoCollectionIndexOutput added in v3.2.0

func (i MongoCollectionIndexArgs) ToMongoCollectionIndexOutput() MongoCollectionIndexOutput

func (MongoCollectionIndexArgs) ToMongoCollectionIndexOutputWithContext added in v3.2.0

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

type MongoCollectionIndexArray added in v3.2.0

type MongoCollectionIndexArray []MongoCollectionIndexInput

func (MongoCollectionIndexArray) ElementType added in v3.2.0

func (MongoCollectionIndexArray) ElementType() reflect.Type

func (MongoCollectionIndexArray) ToMongoCollectionIndexArrayOutput added in v3.2.0

func (i MongoCollectionIndexArray) ToMongoCollectionIndexArrayOutput() MongoCollectionIndexArrayOutput

func (MongoCollectionIndexArray) ToMongoCollectionIndexArrayOutputWithContext added in v3.2.0

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

type MongoCollectionIndexArrayInput added in v3.2.0

type MongoCollectionIndexArrayInput interface {
	pulumi.Input

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

MongoCollectionIndexArrayInput is an input type that accepts MongoCollectionIndexArray and MongoCollectionIndexArrayOutput values. You can construct a concrete instance of `MongoCollectionIndexArrayInput` via:

MongoCollectionIndexArray{ MongoCollectionIndexArgs{...} }

type MongoCollectionIndexArrayOutput added in v3.2.0

type MongoCollectionIndexArrayOutput struct{ *pulumi.OutputState }

func (MongoCollectionIndexArrayOutput) ElementType added in v3.2.0

func (MongoCollectionIndexArrayOutput) Index added in v3.2.0

func (MongoCollectionIndexArrayOutput) ToMongoCollectionIndexArrayOutput added in v3.2.0

func (o MongoCollectionIndexArrayOutput) ToMongoCollectionIndexArrayOutput() MongoCollectionIndexArrayOutput

func (MongoCollectionIndexArrayOutput) ToMongoCollectionIndexArrayOutputWithContext added in v3.2.0

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

type MongoCollectionIndexInput added in v3.2.0

type MongoCollectionIndexInput interface {
	pulumi.Input

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

MongoCollectionIndexInput is an input type that accepts MongoCollectionIndexArgs and MongoCollectionIndexOutput values. You can construct a concrete instance of `MongoCollectionIndexInput` via:

MongoCollectionIndexArgs{...}

type MongoCollectionIndexOutput added in v3.2.0

type MongoCollectionIndexOutput struct{ *pulumi.OutputState }

func (MongoCollectionIndexOutput) ElementType added in v3.2.0

func (MongoCollectionIndexOutput) ElementType() reflect.Type

func (MongoCollectionIndexOutput) Keys added in v3.2.0

Specifies the list of user settable keys for each Cosmos DB Mongo Collection.

func (MongoCollectionIndexOutput) ToMongoCollectionIndexOutput added in v3.2.0

func (o MongoCollectionIndexOutput) ToMongoCollectionIndexOutput() MongoCollectionIndexOutput

func (MongoCollectionIndexOutput) ToMongoCollectionIndexOutputWithContext added in v3.2.0

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

func (MongoCollectionIndexOutput) Unique added in v3.2.0

Is the index unique or not? Defaults to `false`.

type MongoCollectionInput added in v3.31.1

type MongoCollectionInput interface {
	pulumi.Input

	ToMongoCollectionOutput() MongoCollectionOutput
	ToMongoCollectionOutputWithContext(ctx context.Context) MongoCollectionOutput
}

type MongoCollectionMap added in v3.47.1

type MongoCollectionMap map[string]MongoCollectionInput

func (MongoCollectionMap) ElementType added in v3.47.1

func (MongoCollectionMap) ElementType() reflect.Type

func (MongoCollectionMap) ToMongoCollectionMapOutput added in v3.47.1

func (i MongoCollectionMap) ToMongoCollectionMapOutput() MongoCollectionMapOutput

func (MongoCollectionMap) ToMongoCollectionMapOutputWithContext added in v3.47.1

func (i MongoCollectionMap) ToMongoCollectionMapOutputWithContext(ctx context.Context) MongoCollectionMapOutput

type MongoCollectionMapInput added in v3.47.1

type MongoCollectionMapInput interface {
	pulumi.Input

	ToMongoCollectionMapOutput() MongoCollectionMapOutput
	ToMongoCollectionMapOutputWithContext(context.Context) MongoCollectionMapOutput
}

MongoCollectionMapInput is an input type that accepts MongoCollectionMap and MongoCollectionMapOutput values. You can construct a concrete instance of `MongoCollectionMapInput` via:

MongoCollectionMap{ "key": MongoCollectionArgs{...} }

type MongoCollectionMapOutput added in v3.47.1

type MongoCollectionMapOutput struct{ *pulumi.OutputState }

func (MongoCollectionMapOutput) ElementType added in v3.47.1

func (MongoCollectionMapOutput) ElementType() reflect.Type

func (MongoCollectionMapOutput) MapIndex added in v3.47.1

func (MongoCollectionMapOutput) ToMongoCollectionMapOutput added in v3.47.1

func (o MongoCollectionMapOutput) ToMongoCollectionMapOutput() MongoCollectionMapOutput

func (MongoCollectionMapOutput) ToMongoCollectionMapOutputWithContext added in v3.47.1

func (o MongoCollectionMapOutput) ToMongoCollectionMapOutputWithContext(ctx context.Context) MongoCollectionMapOutput

type MongoCollectionOutput added in v3.31.1

type MongoCollectionOutput struct {
	*pulumi.OutputState
}

func (MongoCollectionOutput) ElementType added in v3.31.1

func (MongoCollectionOutput) ElementType() reflect.Type

func (MongoCollectionOutput) ToMongoCollectionOutput added in v3.31.1

func (o MongoCollectionOutput) ToMongoCollectionOutput() MongoCollectionOutput

func (MongoCollectionOutput) ToMongoCollectionOutputWithContext added in v3.31.1

func (o MongoCollectionOutput) ToMongoCollectionOutputWithContext(ctx context.Context) MongoCollectionOutput

func (MongoCollectionOutput) ToMongoCollectionPtrOutput added in v3.47.1

func (o MongoCollectionOutput) ToMongoCollectionPtrOutput() MongoCollectionPtrOutput

func (MongoCollectionOutput) ToMongoCollectionPtrOutputWithContext added in v3.47.1

func (o MongoCollectionOutput) ToMongoCollectionPtrOutputWithContext(ctx context.Context) MongoCollectionPtrOutput

type MongoCollectionPtrInput added in v3.47.1

type MongoCollectionPtrInput interface {
	pulumi.Input

	ToMongoCollectionPtrOutput() MongoCollectionPtrOutput
	ToMongoCollectionPtrOutputWithContext(ctx context.Context) MongoCollectionPtrOutput
}

type MongoCollectionPtrOutput added in v3.47.1

type MongoCollectionPtrOutput struct {
	*pulumi.OutputState
}

func (MongoCollectionPtrOutput) ElementType added in v3.47.1

func (MongoCollectionPtrOutput) ElementType() reflect.Type

func (MongoCollectionPtrOutput) ToMongoCollectionPtrOutput added in v3.47.1

func (o MongoCollectionPtrOutput) ToMongoCollectionPtrOutput() MongoCollectionPtrOutput

func (MongoCollectionPtrOutput) ToMongoCollectionPtrOutputWithContext added in v3.47.1

func (o MongoCollectionPtrOutput) ToMongoCollectionPtrOutputWithContext(ctx context.Context) MongoCollectionPtrOutput

type MongoCollectionState

type MongoCollectionState struct {
	AccountName pulumi.StringPtrInput
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual manual destroy-apply. Requires `shardKey` to be set.
	AutoscaleSettings MongoCollectionAutoscaleSettingsPtrInput
	// 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` or `0`, items are not automatically expired.
	DefaultTtlSeconds pulumi.IntPtrInput
	// One or more `index` blocks as defined below.
	Indices 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
	// One or more `systemIndexes` blocks as defined below.
	SystemIndexes MongoCollectionSystemIndexArrayInput
	// The throughput of the MongoDB collection (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual manual destroy-apply.
	Throughput pulumi.IntPtrInput
}

func (MongoCollectionState) ElementType

func (MongoCollectionState) ElementType() reflect.Type

type MongoCollectionSystemIndex added in v3.2.0

type MongoCollectionSystemIndex struct {
	// Specifies the list of user settable keys for each Cosmos DB Mongo Collection.
	Keys []string `pulumi:"keys"`
	// Is the index unique or not? Defaults to `false`.
	Unique *bool `pulumi:"unique"`
}

type MongoCollectionSystemIndexArgs added in v3.2.0

type MongoCollectionSystemIndexArgs struct {
	// Specifies the list of user settable keys for each Cosmos DB Mongo Collection.
	Keys pulumi.StringArrayInput `pulumi:"keys"`
	// Is the index unique or not? Defaults to `false`.
	Unique pulumi.BoolPtrInput `pulumi:"unique"`
}

func (MongoCollectionSystemIndexArgs) ElementType added in v3.2.0

func (MongoCollectionSystemIndexArgs) ToMongoCollectionSystemIndexOutput added in v3.2.0

func (i MongoCollectionSystemIndexArgs) ToMongoCollectionSystemIndexOutput() MongoCollectionSystemIndexOutput

func (MongoCollectionSystemIndexArgs) ToMongoCollectionSystemIndexOutputWithContext added in v3.2.0

func (i MongoCollectionSystemIndexArgs) ToMongoCollectionSystemIndexOutputWithContext(ctx context.Context) MongoCollectionSystemIndexOutput

type MongoCollectionSystemIndexArray added in v3.2.0

type MongoCollectionSystemIndexArray []MongoCollectionSystemIndexInput

func (MongoCollectionSystemIndexArray) ElementType added in v3.2.0

func (MongoCollectionSystemIndexArray) ToMongoCollectionSystemIndexArrayOutput added in v3.2.0

func (i MongoCollectionSystemIndexArray) ToMongoCollectionSystemIndexArrayOutput() MongoCollectionSystemIndexArrayOutput

func (MongoCollectionSystemIndexArray) ToMongoCollectionSystemIndexArrayOutputWithContext added in v3.2.0

func (i MongoCollectionSystemIndexArray) ToMongoCollectionSystemIndexArrayOutputWithContext(ctx context.Context) MongoCollectionSystemIndexArrayOutput

type MongoCollectionSystemIndexArrayInput added in v3.2.0

type MongoCollectionSystemIndexArrayInput interface {
	pulumi.Input

	ToMongoCollectionSystemIndexArrayOutput() MongoCollectionSystemIndexArrayOutput
	ToMongoCollectionSystemIndexArrayOutputWithContext(context.Context) MongoCollectionSystemIndexArrayOutput
}

MongoCollectionSystemIndexArrayInput is an input type that accepts MongoCollectionSystemIndexArray and MongoCollectionSystemIndexArrayOutput values. You can construct a concrete instance of `MongoCollectionSystemIndexArrayInput` via:

MongoCollectionSystemIndexArray{ MongoCollectionSystemIndexArgs{...} }

type MongoCollectionSystemIndexArrayOutput added in v3.2.0

type MongoCollectionSystemIndexArrayOutput struct{ *pulumi.OutputState }

func (MongoCollectionSystemIndexArrayOutput) ElementType added in v3.2.0

func (MongoCollectionSystemIndexArrayOutput) Index added in v3.2.0

func (MongoCollectionSystemIndexArrayOutput) ToMongoCollectionSystemIndexArrayOutput added in v3.2.0

func (o MongoCollectionSystemIndexArrayOutput) ToMongoCollectionSystemIndexArrayOutput() MongoCollectionSystemIndexArrayOutput

func (MongoCollectionSystemIndexArrayOutput) ToMongoCollectionSystemIndexArrayOutputWithContext added in v3.2.0

func (o MongoCollectionSystemIndexArrayOutput) ToMongoCollectionSystemIndexArrayOutputWithContext(ctx context.Context) MongoCollectionSystemIndexArrayOutput

type MongoCollectionSystemIndexInput added in v3.2.0

type MongoCollectionSystemIndexInput interface {
	pulumi.Input

	ToMongoCollectionSystemIndexOutput() MongoCollectionSystemIndexOutput
	ToMongoCollectionSystemIndexOutputWithContext(context.Context) MongoCollectionSystemIndexOutput
}

MongoCollectionSystemIndexInput is an input type that accepts MongoCollectionSystemIndexArgs and MongoCollectionSystemIndexOutput values. You can construct a concrete instance of `MongoCollectionSystemIndexInput` via:

MongoCollectionSystemIndexArgs{...}

type MongoCollectionSystemIndexOutput added in v3.2.0

type MongoCollectionSystemIndexOutput struct{ *pulumi.OutputState }

func (MongoCollectionSystemIndexOutput) ElementType added in v3.2.0

func (MongoCollectionSystemIndexOutput) Keys added in v3.2.0

Specifies the list of user settable keys for each Cosmos DB Mongo Collection.

func (MongoCollectionSystemIndexOutput) ToMongoCollectionSystemIndexOutput added in v3.2.0

func (o MongoCollectionSystemIndexOutput) ToMongoCollectionSystemIndexOutput() MongoCollectionSystemIndexOutput

func (MongoCollectionSystemIndexOutput) ToMongoCollectionSystemIndexOutputWithContext added in v3.2.0

func (o MongoCollectionSystemIndexOutput) ToMongoCollectionSystemIndexOutputWithContext(ctx context.Context) MongoCollectionSystemIndexOutput

func (MongoCollectionSystemIndexOutput) Unique added in v3.2.0

Is the index unique or not? Defaults to `false`.

type MongoDatabase

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"`
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.
	AutoscaleSettings MongoDatabaseAutoscaleSettingsPtrOutput `pulumi:"autoscaleSettings"`
	// 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"`
	// The throughput of the MongoDB collection (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply.
	Throughput pulumi.IntOutput `pulumi:"throughput"`
}

Manages a Mongo Database within a Cosmos DB Account.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/cosmosdb"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleAccount, err := cosmosdb.LookupAccount(ctx, &cosmosdb.LookupAccountArgs{
			Name:              "tfex-cosmosdb-account",
			ResourceGroupName: "tfex-cosmosdb-account-rg",
		}, nil)
		if err != nil {
			return err
		}
		_, err = cosmosdb.NewMongoDatabase(ctx, "exampleMongoDatabase", &cosmosdb.MongoDatabaseArgs{
			ResourceGroupName: pulumi.String(exampleAccount.ResourceGroupName),
			AccountName:       pulumi.String(exampleAccount.Name),
			Throughput:        pulumi.Int(400),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cosmos Mongo Database can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:cosmosdb/mongoDatabase:MongoDatabase db1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/account1/mongodbDatabases/db1

```

func GetMongoDatabase

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

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.

func (*MongoDatabase) ElementType added in v3.31.1

func (*MongoDatabase) ElementType() reflect.Type

func (*MongoDatabase) ToMongoDatabaseOutput added in v3.31.1

func (i *MongoDatabase) ToMongoDatabaseOutput() MongoDatabaseOutput

func (*MongoDatabase) ToMongoDatabaseOutputWithContext added in v3.31.1

func (i *MongoDatabase) ToMongoDatabaseOutputWithContext(ctx context.Context) MongoDatabaseOutput

func (*MongoDatabase) ToMongoDatabasePtrOutput added in v3.47.1

func (i *MongoDatabase) ToMongoDatabasePtrOutput() MongoDatabasePtrOutput

func (*MongoDatabase) ToMongoDatabasePtrOutputWithContext added in v3.47.1

func (i *MongoDatabase) ToMongoDatabasePtrOutputWithContext(ctx context.Context) MongoDatabasePtrOutput

type MongoDatabaseArgs

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
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.
	AutoscaleSettings MongoDatabaseAutoscaleSettingsPtrInput
	// 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
	// The throughput of the MongoDB collection (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply.
	Throughput pulumi.IntPtrInput
}

The set of arguments for constructing a MongoDatabase resource.

func (MongoDatabaseArgs) ElementType

func (MongoDatabaseArgs) ElementType() reflect.Type

type MongoDatabaseArray added in v3.47.1

type MongoDatabaseArray []MongoDatabaseInput

func (MongoDatabaseArray) ElementType added in v3.47.1

func (MongoDatabaseArray) ElementType() reflect.Type

func (MongoDatabaseArray) ToMongoDatabaseArrayOutput added in v3.47.1

func (i MongoDatabaseArray) ToMongoDatabaseArrayOutput() MongoDatabaseArrayOutput

func (MongoDatabaseArray) ToMongoDatabaseArrayOutputWithContext added in v3.47.1

func (i MongoDatabaseArray) ToMongoDatabaseArrayOutputWithContext(ctx context.Context) MongoDatabaseArrayOutput

type MongoDatabaseArrayInput added in v3.47.1

type MongoDatabaseArrayInput interface {
	pulumi.Input

	ToMongoDatabaseArrayOutput() MongoDatabaseArrayOutput
	ToMongoDatabaseArrayOutputWithContext(context.Context) MongoDatabaseArrayOutput
}

MongoDatabaseArrayInput is an input type that accepts MongoDatabaseArray and MongoDatabaseArrayOutput values. You can construct a concrete instance of `MongoDatabaseArrayInput` via:

MongoDatabaseArray{ MongoDatabaseArgs{...} }

type MongoDatabaseArrayOutput added in v3.47.1

type MongoDatabaseArrayOutput struct{ *pulumi.OutputState }

func (MongoDatabaseArrayOutput) ElementType added in v3.47.1

func (MongoDatabaseArrayOutput) ElementType() reflect.Type

func (MongoDatabaseArrayOutput) Index added in v3.47.1

func (MongoDatabaseArrayOutput) ToMongoDatabaseArrayOutput added in v3.47.1

func (o MongoDatabaseArrayOutput) ToMongoDatabaseArrayOutput() MongoDatabaseArrayOutput

func (MongoDatabaseArrayOutput) ToMongoDatabaseArrayOutputWithContext added in v3.47.1

func (o MongoDatabaseArrayOutput) ToMongoDatabaseArrayOutputWithContext(ctx context.Context) MongoDatabaseArrayOutput

type MongoDatabaseAutoscaleSettings added in v3.22.0

type MongoDatabaseAutoscaleSettings struct {
	// The maximum throughput of the MongoDB database (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
	MaxThroughput *int `pulumi:"maxThroughput"`
}

type MongoDatabaseAutoscaleSettingsArgs added in v3.22.0

type MongoDatabaseAutoscaleSettingsArgs struct {
	// The maximum throughput of the MongoDB database (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
	MaxThroughput pulumi.IntPtrInput `pulumi:"maxThroughput"`
}

func (MongoDatabaseAutoscaleSettingsArgs) ElementType added in v3.22.0

func (MongoDatabaseAutoscaleSettingsArgs) ToMongoDatabaseAutoscaleSettingsOutput added in v3.22.0

func (i MongoDatabaseAutoscaleSettingsArgs) ToMongoDatabaseAutoscaleSettingsOutput() MongoDatabaseAutoscaleSettingsOutput

func (MongoDatabaseAutoscaleSettingsArgs) ToMongoDatabaseAutoscaleSettingsOutputWithContext added in v3.22.0

func (i MongoDatabaseAutoscaleSettingsArgs) ToMongoDatabaseAutoscaleSettingsOutputWithContext(ctx context.Context) MongoDatabaseAutoscaleSettingsOutput

func (MongoDatabaseAutoscaleSettingsArgs) ToMongoDatabaseAutoscaleSettingsPtrOutput added in v3.22.0

func (i MongoDatabaseAutoscaleSettingsArgs) ToMongoDatabaseAutoscaleSettingsPtrOutput() MongoDatabaseAutoscaleSettingsPtrOutput

func (MongoDatabaseAutoscaleSettingsArgs) ToMongoDatabaseAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (i MongoDatabaseAutoscaleSettingsArgs) ToMongoDatabaseAutoscaleSettingsPtrOutputWithContext(ctx context.Context) MongoDatabaseAutoscaleSettingsPtrOutput

type MongoDatabaseAutoscaleSettingsInput added in v3.22.0

type MongoDatabaseAutoscaleSettingsInput interface {
	pulumi.Input

	ToMongoDatabaseAutoscaleSettingsOutput() MongoDatabaseAutoscaleSettingsOutput
	ToMongoDatabaseAutoscaleSettingsOutputWithContext(context.Context) MongoDatabaseAutoscaleSettingsOutput
}

MongoDatabaseAutoscaleSettingsInput is an input type that accepts MongoDatabaseAutoscaleSettingsArgs and MongoDatabaseAutoscaleSettingsOutput values. You can construct a concrete instance of `MongoDatabaseAutoscaleSettingsInput` via:

MongoDatabaseAutoscaleSettingsArgs{...}

type MongoDatabaseAutoscaleSettingsOutput added in v3.22.0

type MongoDatabaseAutoscaleSettingsOutput struct{ *pulumi.OutputState }

func (MongoDatabaseAutoscaleSettingsOutput) ElementType added in v3.22.0

func (MongoDatabaseAutoscaleSettingsOutput) MaxThroughput added in v3.22.0

The maximum throughput of the MongoDB database (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.

func (MongoDatabaseAutoscaleSettingsOutput) ToMongoDatabaseAutoscaleSettingsOutput added in v3.22.0

func (o MongoDatabaseAutoscaleSettingsOutput) ToMongoDatabaseAutoscaleSettingsOutput() MongoDatabaseAutoscaleSettingsOutput

func (MongoDatabaseAutoscaleSettingsOutput) ToMongoDatabaseAutoscaleSettingsOutputWithContext added in v3.22.0

func (o MongoDatabaseAutoscaleSettingsOutput) ToMongoDatabaseAutoscaleSettingsOutputWithContext(ctx context.Context) MongoDatabaseAutoscaleSettingsOutput

func (MongoDatabaseAutoscaleSettingsOutput) ToMongoDatabaseAutoscaleSettingsPtrOutput added in v3.22.0

func (o MongoDatabaseAutoscaleSettingsOutput) ToMongoDatabaseAutoscaleSettingsPtrOutput() MongoDatabaseAutoscaleSettingsPtrOutput

func (MongoDatabaseAutoscaleSettingsOutput) ToMongoDatabaseAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (o MongoDatabaseAutoscaleSettingsOutput) ToMongoDatabaseAutoscaleSettingsPtrOutputWithContext(ctx context.Context) MongoDatabaseAutoscaleSettingsPtrOutput

type MongoDatabaseAutoscaleSettingsPtrInput added in v3.22.0

type MongoDatabaseAutoscaleSettingsPtrInput interface {
	pulumi.Input

	ToMongoDatabaseAutoscaleSettingsPtrOutput() MongoDatabaseAutoscaleSettingsPtrOutput
	ToMongoDatabaseAutoscaleSettingsPtrOutputWithContext(context.Context) MongoDatabaseAutoscaleSettingsPtrOutput
}

MongoDatabaseAutoscaleSettingsPtrInput is an input type that accepts MongoDatabaseAutoscaleSettingsArgs, MongoDatabaseAutoscaleSettingsPtr and MongoDatabaseAutoscaleSettingsPtrOutput values. You can construct a concrete instance of `MongoDatabaseAutoscaleSettingsPtrInput` via:

        MongoDatabaseAutoscaleSettingsArgs{...}

or:

        nil

type MongoDatabaseAutoscaleSettingsPtrOutput added in v3.22.0

type MongoDatabaseAutoscaleSettingsPtrOutput struct{ *pulumi.OutputState }

func (MongoDatabaseAutoscaleSettingsPtrOutput) Elem added in v3.22.0

func (MongoDatabaseAutoscaleSettingsPtrOutput) ElementType added in v3.22.0

func (MongoDatabaseAutoscaleSettingsPtrOutput) MaxThroughput added in v3.22.0

The maximum throughput of the MongoDB database (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.

func (MongoDatabaseAutoscaleSettingsPtrOutput) ToMongoDatabaseAutoscaleSettingsPtrOutput added in v3.22.0

func (o MongoDatabaseAutoscaleSettingsPtrOutput) ToMongoDatabaseAutoscaleSettingsPtrOutput() MongoDatabaseAutoscaleSettingsPtrOutput

func (MongoDatabaseAutoscaleSettingsPtrOutput) ToMongoDatabaseAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (o MongoDatabaseAutoscaleSettingsPtrOutput) ToMongoDatabaseAutoscaleSettingsPtrOutputWithContext(ctx context.Context) MongoDatabaseAutoscaleSettingsPtrOutput

type MongoDatabaseInput added in v3.31.1

type MongoDatabaseInput interface {
	pulumi.Input

	ToMongoDatabaseOutput() MongoDatabaseOutput
	ToMongoDatabaseOutputWithContext(ctx context.Context) MongoDatabaseOutput
}

type MongoDatabaseMap added in v3.47.1

type MongoDatabaseMap map[string]MongoDatabaseInput

func (MongoDatabaseMap) ElementType added in v3.47.1

func (MongoDatabaseMap) ElementType() reflect.Type

func (MongoDatabaseMap) ToMongoDatabaseMapOutput added in v3.47.1

func (i MongoDatabaseMap) ToMongoDatabaseMapOutput() MongoDatabaseMapOutput

func (MongoDatabaseMap) ToMongoDatabaseMapOutputWithContext added in v3.47.1

func (i MongoDatabaseMap) ToMongoDatabaseMapOutputWithContext(ctx context.Context) MongoDatabaseMapOutput

type MongoDatabaseMapInput added in v3.47.1

type MongoDatabaseMapInput interface {
	pulumi.Input

	ToMongoDatabaseMapOutput() MongoDatabaseMapOutput
	ToMongoDatabaseMapOutputWithContext(context.Context) MongoDatabaseMapOutput
}

MongoDatabaseMapInput is an input type that accepts MongoDatabaseMap and MongoDatabaseMapOutput values. You can construct a concrete instance of `MongoDatabaseMapInput` via:

MongoDatabaseMap{ "key": MongoDatabaseArgs{...} }

type MongoDatabaseMapOutput added in v3.47.1

type MongoDatabaseMapOutput struct{ *pulumi.OutputState }

func (MongoDatabaseMapOutput) ElementType added in v3.47.1

func (MongoDatabaseMapOutput) ElementType() reflect.Type

func (MongoDatabaseMapOutput) MapIndex added in v3.47.1

func (MongoDatabaseMapOutput) ToMongoDatabaseMapOutput added in v3.47.1

func (o MongoDatabaseMapOutput) ToMongoDatabaseMapOutput() MongoDatabaseMapOutput

func (MongoDatabaseMapOutput) ToMongoDatabaseMapOutputWithContext added in v3.47.1

func (o MongoDatabaseMapOutput) ToMongoDatabaseMapOutputWithContext(ctx context.Context) MongoDatabaseMapOutput

type MongoDatabaseOutput added in v3.31.1

type MongoDatabaseOutput struct {
	*pulumi.OutputState
}

func (MongoDatabaseOutput) ElementType added in v3.31.1

func (MongoDatabaseOutput) ElementType() reflect.Type

func (MongoDatabaseOutput) ToMongoDatabaseOutput added in v3.31.1

func (o MongoDatabaseOutput) ToMongoDatabaseOutput() MongoDatabaseOutput

func (MongoDatabaseOutput) ToMongoDatabaseOutputWithContext added in v3.31.1

func (o MongoDatabaseOutput) ToMongoDatabaseOutputWithContext(ctx context.Context) MongoDatabaseOutput

func (MongoDatabaseOutput) ToMongoDatabasePtrOutput added in v3.47.1

func (o MongoDatabaseOutput) ToMongoDatabasePtrOutput() MongoDatabasePtrOutput

func (MongoDatabaseOutput) ToMongoDatabasePtrOutputWithContext added in v3.47.1

func (o MongoDatabaseOutput) ToMongoDatabasePtrOutputWithContext(ctx context.Context) MongoDatabasePtrOutput

type MongoDatabasePtrInput added in v3.47.1

type MongoDatabasePtrInput interface {
	pulumi.Input

	ToMongoDatabasePtrOutput() MongoDatabasePtrOutput
	ToMongoDatabasePtrOutputWithContext(ctx context.Context) MongoDatabasePtrOutput
}

type MongoDatabasePtrOutput added in v3.47.1

type MongoDatabasePtrOutput struct {
	*pulumi.OutputState
}

func (MongoDatabasePtrOutput) ElementType added in v3.47.1

func (MongoDatabasePtrOutput) ElementType() reflect.Type

func (MongoDatabasePtrOutput) ToMongoDatabasePtrOutput added in v3.47.1

func (o MongoDatabasePtrOutput) ToMongoDatabasePtrOutput() MongoDatabasePtrOutput

func (MongoDatabasePtrOutput) ToMongoDatabasePtrOutputWithContext added in v3.47.1

func (o MongoDatabasePtrOutput) ToMongoDatabasePtrOutputWithContext(ctx context.Context) MongoDatabasePtrOutput

type MongoDatabaseState

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
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.
	AutoscaleSettings MongoDatabaseAutoscaleSettingsPtrInput
	// 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
	// The throughput of the MongoDB collection (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply.
	Throughput pulumi.IntPtrInput
}

func (MongoDatabaseState) ElementType

func (MongoDatabaseState) ElementType() reflect.Type

type SqlContainer

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"`
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply. Requires `partitionKeyPath` to be set.
	AutoscaleSettings SqlContainerAutoscaleSettingsPtrOutput `pulumi:"autoscaleSettings"`
	// 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"`
	// An `indexingPolicy` block as defined below.
	IndexingPolicy SqlContainerIndexingPolicyOutput `pulumi:"indexingPolicy"`
	// Specifies the name of the Cosmos DB SQL Container. 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"`
	// Define a partition key version. Changing this forces a new resource to be created. Possible values are ` 1  `and `2`. This should be set to `2` in order to use large partition keys.
	PartitionKeyVersion pulumi.IntPtrOutput `pulumi:"partitionKeyVersion"`
	// The name of the resource group in which the Cosmos DB SQL Container is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// The throughput of SQL container (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.
	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.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/cosmosdb"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cosmosdb.NewSqlContainer(ctx, "example", &cosmosdb.SqlContainerArgs{
			ResourceGroupName:   pulumi.Any(azurerm_cosmosdb_account.Example.Resource_group_name),
			AccountName:         pulumi.Any(azurerm_cosmosdb_account.Example.Name),
			DatabaseName:        pulumi.Any(azurerm_cosmosdb_sql_database.Example.Name),
			PartitionKeyPath:    pulumi.String("/definition/id"),
			PartitionKeyVersion: pulumi.Int(1),
			Throughput:          pulumi.Int(400),
			IndexingPolicy: &cosmosdb.SqlContainerIndexingPolicyArgs{
				IndexingMode: pulumi.String("Consistent"),
				IncludedPaths: cosmosdb.SqlContainerIndexingPolicyIncludedPathArray{
					&cosmosdb.SqlContainerIndexingPolicyIncludedPathArgs{
						Path: pulumi.String("/*"),
					},
					&cosmosdb.SqlContainerIndexingPolicyIncludedPathArgs{
						Path: pulumi.String("/included/?"),
					},
				},
				ExcludedPaths: cosmosdb.SqlContainerIndexingPolicyExcludedPathArray{
					&cosmosdb.SqlContainerIndexingPolicyExcludedPathArgs{
						Path: pulumi.String("/excluded/?"),
					},
				},
			},
			UniqueKeys: cosmosdb.SqlContainerUniqueKeyArray{
				&cosmosdb.SqlContainerUniqueKeyArgs{
					Paths: pulumi.StringArray{
						pulumi.String("/definition/idlong"),
						pulumi.String("/definition/idshort"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cosmos SQL Containers can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:cosmosdb/sqlContainer:SqlContainer example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DocumentDB/databaseAccounts/account1/sqlDatabases/database1/containers/container1

```

func GetSqlContainer

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

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.

func (*SqlContainer) ElementType added in v3.31.1

func (*SqlContainer) ElementType() reflect.Type

func (*SqlContainer) ToSqlContainerOutput added in v3.31.1

func (i *SqlContainer) ToSqlContainerOutput() SqlContainerOutput

func (*SqlContainer) ToSqlContainerOutputWithContext added in v3.31.1

func (i *SqlContainer) ToSqlContainerOutputWithContext(ctx context.Context) SqlContainerOutput

func (*SqlContainer) ToSqlContainerPtrOutput added in v3.47.1

func (i *SqlContainer) ToSqlContainerPtrOutput() SqlContainerPtrOutput

func (*SqlContainer) ToSqlContainerPtrOutputWithContext added in v3.47.1

func (i *SqlContainer) ToSqlContainerPtrOutputWithContext(ctx context.Context) SqlContainerPtrOutput

type SqlContainerArgs

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
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply. Requires `partitionKeyPath` to be set.
	AutoscaleSettings SqlContainerAutoscaleSettingsPtrInput
	// 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
	// An `indexingPolicy` block as defined below.
	IndexingPolicy SqlContainerIndexingPolicyPtrInput
	// Specifies the name of the Cosmos DB SQL Container. 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
	// Define a partition key version. Changing this forces a new resource to be created. Possible values are ` 1  `and `2`. This should be set to `2` in order to use large partition keys.
	PartitionKeyVersion pulumi.IntPtrInput
	// The name of the resource group in which the Cosmos DB SQL Container is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// The throughput of SQL container (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.
	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

func (SqlContainerArgs) ElementType() reflect.Type

type SqlContainerArray added in v3.47.1

type SqlContainerArray []SqlContainerInput

func (SqlContainerArray) ElementType added in v3.47.1

func (SqlContainerArray) ElementType() reflect.Type

func (SqlContainerArray) ToSqlContainerArrayOutput added in v3.47.1

func (i SqlContainerArray) ToSqlContainerArrayOutput() SqlContainerArrayOutput

func (SqlContainerArray) ToSqlContainerArrayOutputWithContext added in v3.47.1

func (i SqlContainerArray) ToSqlContainerArrayOutputWithContext(ctx context.Context) SqlContainerArrayOutput

type SqlContainerArrayInput added in v3.47.1

type SqlContainerArrayInput interface {
	pulumi.Input

	ToSqlContainerArrayOutput() SqlContainerArrayOutput
	ToSqlContainerArrayOutputWithContext(context.Context) SqlContainerArrayOutput
}

SqlContainerArrayInput is an input type that accepts SqlContainerArray and SqlContainerArrayOutput values. You can construct a concrete instance of `SqlContainerArrayInput` via:

SqlContainerArray{ SqlContainerArgs{...} }

type SqlContainerArrayOutput added in v3.47.1

type SqlContainerArrayOutput struct{ *pulumi.OutputState }

func (SqlContainerArrayOutput) ElementType added in v3.47.1

func (SqlContainerArrayOutput) ElementType() reflect.Type

func (SqlContainerArrayOutput) Index added in v3.47.1

func (SqlContainerArrayOutput) ToSqlContainerArrayOutput added in v3.47.1

func (o SqlContainerArrayOutput) ToSqlContainerArrayOutput() SqlContainerArrayOutput

func (SqlContainerArrayOutput) ToSqlContainerArrayOutputWithContext added in v3.47.1

func (o SqlContainerArrayOutput) ToSqlContainerArrayOutputWithContext(ctx context.Context) SqlContainerArrayOutput

type SqlContainerAutoscaleSettings added in v3.22.0

type SqlContainerAutoscaleSettings struct {
	// The maximum throughput of the SQL container (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
	MaxThroughput *int `pulumi:"maxThroughput"`
}

type SqlContainerAutoscaleSettingsArgs added in v3.22.0

type SqlContainerAutoscaleSettingsArgs struct {
	// The maximum throughput of the SQL container (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
	MaxThroughput pulumi.IntPtrInput `pulumi:"maxThroughput"`
}

func (SqlContainerAutoscaleSettingsArgs) ElementType added in v3.22.0

func (SqlContainerAutoscaleSettingsArgs) ToSqlContainerAutoscaleSettingsOutput added in v3.22.0

func (i SqlContainerAutoscaleSettingsArgs) ToSqlContainerAutoscaleSettingsOutput() SqlContainerAutoscaleSettingsOutput

func (SqlContainerAutoscaleSettingsArgs) ToSqlContainerAutoscaleSettingsOutputWithContext added in v3.22.0

func (i SqlContainerAutoscaleSettingsArgs) ToSqlContainerAutoscaleSettingsOutputWithContext(ctx context.Context) SqlContainerAutoscaleSettingsOutput

func (SqlContainerAutoscaleSettingsArgs) ToSqlContainerAutoscaleSettingsPtrOutput added in v3.22.0

func (i SqlContainerAutoscaleSettingsArgs) ToSqlContainerAutoscaleSettingsPtrOutput() SqlContainerAutoscaleSettingsPtrOutput

func (SqlContainerAutoscaleSettingsArgs) ToSqlContainerAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (i SqlContainerAutoscaleSettingsArgs) ToSqlContainerAutoscaleSettingsPtrOutputWithContext(ctx context.Context) SqlContainerAutoscaleSettingsPtrOutput

type SqlContainerAutoscaleSettingsInput added in v3.22.0

type SqlContainerAutoscaleSettingsInput interface {
	pulumi.Input

	ToSqlContainerAutoscaleSettingsOutput() SqlContainerAutoscaleSettingsOutput
	ToSqlContainerAutoscaleSettingsOutputWithContext(context.Context) SqlContainerAutoscaleSettingsOutput
}

SqlContainerAutoscaleSettingsInput is an input type that accepts SqlContainerAutoscaleSettingsArgs and SqlContainerAutoscaleSettingsOutput values. You can construct a concrete instance of `SqlContainerAutoscaleSettingsInput` via:

SqlContainerAutoscaleSettingsArgs{...}

type SqlContainerAutoscaleSettingsOutput added in v3.22.0

type SqlContainerAutoscaleSettingsOutput struct{ *pulumi.OutputState }

func (SqlContainerAutoscaleSettingsOutput) ElementType added in v3.22.0

func (SqlContainerAutoscaleSettingsOutput) MaxThroughput added in v3.22.0

The maximum throughput of the SQL container (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.

func (SqlContainerAutoscaleSettingsOutput) ToSqlContainerAutoscaleSettingsOutput added in v3.22.0

func (o SqlContainerAutoscaleSettingsOutput) ToSqlContainerAutoscaleSettingsOutput() SqlContainerAutoscaleSettingsOutput

func (SqlContainerAutoscaleSettingsOutput) ToSqlContainerAutoscaleSettingsOutputWithContext added in v3.22.0

func (o SqlContainerAutoscaleSettingsOutput) ToSqlContainerAutoscaleSettingsOutputWithContext(ctx context.Context) SqlContainerAutoscaleSettingsOutput

func (SqlContainerAutoscaleSettingsOutput) ToSqlContainerAutoscaleSettingsPtrOutput added in v3.22.0

func (o SqlContainerAutoscaleSettingsOutput) ToSqlContainerAutoscaleSettingsPtrOutput() SqlContainerAutoscaleSettingsPtrOutput

func (SqlContainerAutoscaleSettingsOutput) ToSqlContainerAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (o SqlContainerAutoscaleSettingsOutput) ToSqlContainerAutoscaleSettingsPtrOutputWithContext(ctx context.Context) SqlContainerAutoscaleSettingsPtrOutput

type SqlContainerAutoscaleSettingsPtrInput added in v3.22.0

type SqlContainerAutoscaleSettingsPtrInput interface {
	pulumi.Input

	ToSqlContainerAutoscaleSettingsPtrOutput() SqlContainerAutoscaleSettingsPtrOutput
	ToSqlContainerAutoscaleSettingsPtrOutputWithContext(context.Context) SqlContainerAutoscaleSettingsPtrOutput
}

SqlContainerAutoscaleSettingsPtrInput is an input type that accepts SqlContainerAutoscaleSettingsArgs, SqlContainerAutoscaleSettingsPtr and SqlContainerAutoscaleSettingsPtrOutput values. You can construct a concrete instance of `SqlContainerAutoscaleSettingsPtrInput` via:

        SqlContainerAutoscaleSettingsArgs{...}

or:

        nil

type SqlContainerAutoscaleSettingsPtrOutput added in v3.22.0

type SqlContainerAutoscaleSettingsPtrOutput struct{ *pulumi.OutputState }

func (SqlContainerAutoscaleSettingsPtrOutput) Elem added in v3.22.0

func (SqlContainerAutoscaleSettingsPtrOutput) ElementType added in v3.22.0

func (SqlContainerAutoscaleSettingsPtrOutput) MaxThroughput added in v3.22.0

The maximum throughput of the SQL container (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.

func (SqlContainerAutoscaleSettingsPtrOutput) ToSqlContainerAutoscaleSettingsPtrOutput added in v3.22.0

func (o SqlContainerAutoscaleSettingsPtrOutput) ToSqlContainerAutoscaleSettingsPtrOutput() SqlContainerAutoscaleSettingsPtrOutput

func (SqlContainerAutoscaleSettingsPtrOutput) ToSqlContainerAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (o SqlContainerAutoscaleSettingsPtrOutput) ToSqlContainerAutoscaleSettingsPtrOutputWithContext(ctx context.Context) SqlContainerAutoscaleSettingsPtrOutput

type SqlContainerIndexingPolicy added in v3.23.0

type SqlContainerIndexingPolicy struct {
	// One or more `compositeIndex` blocks as defined below.
	CompositeIndices []SqlContainerIndexingPolicyCompositeIndex `pulumi:"compositeIndices"`
	// One or more `excludedPath` blocks as defined below. Either `includedPath` or `excludedPath` must contain the `path` `/*`
	ExcludedPaths []SqlContainerIndexingPolicyExcludedPath `pulumi:"excludedPaths"`
	// One or more `includedPath` blocks as defined below. Either `includedPath` or `excludedPath` must contain the `path` `/*`
	IncludedPaths []SqlContainerIndexingPolicyIncludedPath `pulumi:"includedPaths"`
	// Indicates the indexing mode. Possible values include: `Consistent` and `None`. Defaults to `Consistent`.
	IndexingMode *string `pulumi:"indexingMode"`
}

type SqlContainerIndexingPolicyArgs added in v3.23.0

type SqlContainerIndexingPolicyArgs struct {
	// One or more `compositeIndex` blocks as defined below.
	CompositeIndices SqlContainerIndexingPolicyCompositeIndexArrayInput `pulumi:"compositeIndices"`
	// One or more `excludedPath` blocks as defined below. Either `includedPath` or `excludedPath` must contain the `path` `/*`
	ExcludedPaths SqlContainerIndexingPolicyExcludedPathArrayInput `pulumi:"excludedPaths"`
	// One or more `includedPath` blocks as defined below. Either `includedPath` or `excludedPath` must contain the `path` `/*`
	IncludedPaths SqlContainerIndexingPolicyIncludedPathArrayInput `pulumi:"includedPaths"`
	// Indicates the indexing mode. Possible values include: `Consistent` and `None`. Defaults to `Consistent`.
	IndexingMode pulumi.StringPtrInput `pulumi:"indexingMode"`
}

func (SqlContainerIndexingPolicyArgs) ElementType added in v3.23.0

func (SqlContainerIndexingPolicyArgs) ToSqlContainerIndexingPolicyOutput added in v3.23.0

func (i SqlContainerIndexingPolicyArgs) ToSqlContainerIndexingPolicyOutput() SqlContainerIndexingPolicyOutput

func (SqlContainerIndexingPolicyArgs) ToSqlContainerIndexingPolicyOutputWithContext added in v3.23.0

func (i SqlContainerIndexingPolicyArgs) ToSqlContainerIndexingPolicyOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyOutput

func (SqlContainerIndexingPolicyArgs) ToSqlContainerIndexingPolicyPtrOutput added in v3.23.0

func (i SqlContainerIndexingPolicyArgs) ToSqlContainerIndexingPolicyPtrOutput() SqlContainerIndexingPolicyPtrOutput

func (SqlContainerIndexingPolicyArgs) ToSqlContainerIndexingPolicyPtrOutputWithContext added in v3.23.0

func (i SqlContainerIndexingPolicyArgs) ToSqlContainerIndexingPolicyPtrOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyPtrOutput

type SqlContainerIndexingPolicyCompositeIndex added in v3.28.0

type SqlContainerIndexingPolicyCompositeIndex struct {
	// One or more `index` blocks as defined below.
	Indices []SqlContainerIndexingPolicyCompositeIndexIndex `pulumi:"indices"`
}

type SqlContainerIndexingPolicyCompositeIndexArgs added in v3.28.0

type SqlContainerIndexingPolicyCompositeIndexArgs struct {
	// One or more `index` blocks as defined below.
	Indices SqlContainerIndexingPolicyCompositeIndexIndexArrayInput `pulumi:"indices"`
}

func (SqlContainerIndexingPolicyCompositeIndexArgs) ElementType added in v3.28.0

func (SqlContainerIndexingPolicyCompositeIndexArgs) ToSqlContainerIndexingPolicyCompositeIndexOutput added in v3.28.0

func (i SqlContainerIndexingPolicyCompositeIndexArgs) ToSqlContainerIndexingPolicyCompositeIndexOutput() SqlContainerIndexingPolicyCompositeIndexOutput

func (SqlContainerIndexingPolicyCompositeIndexArgs) ToSqlContainerIndexingPolicyCompositeIndexOutputWithContext added in v3.28.0

func (i SqlContainerIndexingPolicyCompositeIndexArgs) ToSqlContainerIndexingPolicyCompositeIndexOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyCompositeIndexOutput

type SqlContainerIndexingPolicyCompositeIndexArray added in v3.28.0

type SqlContainerIndexingPolicyCompositeIndexArray []SqlContainerIndexingPolicyCompositeIndexInput

func (SqlContainerIndexingPolicyCompositeIndexArray) ElementType added in v3.28.0

func (SqlContainerIndexingPolicyCompositeIndexArray) ToSqlContainerIndexingPolicyCompositeIndexArrayOutput added in v3.28.0

func (i SqlContainerIndexingPolicyCompositeIndexArray) ToSqlContainerIndexingPolicyCompositeIndexArrayOutput() SqlContainerIndexingPolicyCompositeIndexArrayOutput

func (SqlContainerIndexingPolicyCompositeIndexArray) ToSqlContainerIndexingPolicyCompositeIndexArrayOutputWithContext added in v3.28.0

func (i SqlContainerIndexingPolicyCompositeIndexArray) ToSqlContainerIndexingPolicyCompositeIndexArrayOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyCompositeIndexArrayOutput

type SqlContainerIndexingPolicyCompositeIndexArrayInput added in v3.28.0

type SqlContainerIndexingPolicyCompositeIndexArrayInput interface {
	pulumi.Input

	ToSqlContainerIndexingPolicyCompositeIndexArrayOutput() SqlContainerIndexingPolicyCompositeIndexArrayOutput
	ToSqlContainerIndexingPolicyCompositeIndexArrayOutputWithContext(context.Context) SqlContainerIndexingPolicyCompositeIndexArrayOutput
}

SqlContainerIndexingPolicyCompositeIndexArrayInput is an input type that accepts SqlContainerIndexingPolicyCompositeIndexArray and SqlContainerIndexingPolicyCompositeIndexArrayOutput values. You can construct a concrete instance of `SqlContainerIndexingPolicyCompositeIndexArrayInput` via:

SqlContainerIndexingPolicyCompositeIndexArray{ SqlContainerIndexingPolicyCompositeIndexArgs{...} }

type SqlContainerIndexingPolicyCompositeIndexArrayOutput added in v3.28.0

type SqlContainerIndexingPolicyCompositeIndexArrayOutput struct{ *pulumi.OutputState }

func (SqlContainerIndexingPolicyCompositeIndexArrayOutput) ElementType added in v3.28.0

func (SqlContainerIndexingPolicyCompositeIndexArrayOutput) Index added in v3.28.0

func (SqlContainerIndexingPolicyCompositeIndexArrayOutput) ToSqlContainerIndexingPolicyCompositeIndexArrayOutput added in v3.28.0

func (o SqlContainerIndexingPolicyCompositeIndexArrayOutput) ToSqlContainerIndexingPolicyCompositeIndexArrayOutput() SqlContainerIndexingPolicyCompositeIndexArrayOutput

func (SqlContainerIndexingPolicyCompositeIndexArrayOutput) ToSqlContainerIndexingPolicyCompositeIndexArrayOutputWithContext added in v3.28.0

func (o SqlContainerIndexingPolicyCompositeIndexArrayOutput) ToSqlContainerIndexingPolicyCompositeIndexArrayOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyCompositeIndexArrayOutput

type SqlContainerIndexingPolicyCompositeIndexIndex added in v3.28.0

type SqlContainerIndexingPolicyCompositeIndexIndex struct {
	// Order of the index. Possible values are `Ascending` or `Descending`.
	Order string `pulumi:"order"`
	// Path for which the indexing behaviour applies to.
	Path string `pulumi:"path"`
}

type SqlContainerIndexingPolicyCompositeIndexIndexArgs added in v3.28.0

type SqlContainerIndexingPolicyCompositeIndexIndexArgs struct {
	// Order of the index. Possible values are `Ascending` or `Descending`.
	Order pulumi.StringInput `pulumi:"order"`
	// Path for which the indexing behaviour applies to.
	Path pulumi.StringInput `pulumi:"path"`
}

func (SqlContainerIndexingPolicyCompositeIndexIndexArgs) ElementType added in v3.28.0

func (SqlContainerIndexingPolicyCompositeIndexIndexArgs) ToSqlContainerIndexingPolicyCompositeIndexIndexOutput added in v3.28.0

func (i SqlContainerIndexingPolicyCompositeIndexIndexArgs) ToSqlContainerIndexingPolicyCompositeIndexIndexOutput() SqlContainerIndexingPolicyCompositeIndexIndexOutput

func (SqlContainerIndexingPolicyCompositeIndexIndexArgs) ToSqlContainerIndexingPolicyCompositeIndexIndexOutputWithContext added in v3.28.0

func (i SqlContainerIndexingPolicyCompositeIndexIndexArgs) ToSqlContainerIndexingPolicyCompositeIndexIndexOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyCompositeIndexIndexOutput

type SqlContainerIndexingPolicyCompositeIndexIndexArray added in v3.28.0

type SqlContainerIndexingPolicyCompositeIndexIndexArray []SqlContainerIndexingPolicyCompositeIndexIndexInput

func (SqlContainerIndexingPolicyCompositeIndexIndexArray) ElementType added in v3.28.0

func (SqlContainerIndexingPolicyCompositeIndexIndexArray) ToSqlContainerIndexingPolicyCompositeIndexIndexArrayOutput added in v3.28.0

func (i SqlContainerIndexingPolicyCompositeIndexIndexArray) ToSqlContainerIndexingPolicyCompositeIndexIndexArrayOutput() SqlContainerIndexingPolicyCompositeIndexIndexArrayOutput

func (SqlContainerIndexingPolicyCompositeIndexIndexArray) ToSqlContainerIndexingPolicyCompositeIndexIndexArrayOutputWithContext added in v3.28.0

func (i SqlContainerIndexingPolicyCompositeIndexIndexArray) ToSqlContainerIndexingPolicyCompositeIndexIndexArrayOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyCompositeIndexIndexArrayOutput

type SqlContainerIndexingPolicyCompositeIndexIndexArrayInput added in v3.28.0

type SqlContainerIndexingPolicyCompositeIndexIndexArrayInput interface {
	pulumi.Input

	ToSqlContainerIndexingPolicyCompositeIndexIndexArrayOutput() SqlContainerIndexingPolicyCompositeIndexIndexArrayOutput
	ToSqlContainerIndexingPolicyCompositeIndexIndexArrayOutputWithContext(context.Context) SqlContainerIndexingPolicyCompositeIndexIndexArrayOutput
}

SqlContainerIndexingPolicyCompositeIndexIndexArrayInput is an input type that accepts SqlContainerIndexingPolicyCompositeIndexIndexArray and SqlContainerIndexingPolicyCompositeIndexIndexArrayOutput values. You can construct a concrete instance of `SqlContainerIndexingPolicyCompositeIndexIndexArrayInput` via:

SqlContainerIndexingPolicyCompositeIndexIndexArray{ SqlContainerIndexingPolicyCompositeIndexIndexArgs{...} }

type SqlContainerIndexingPolicyCompositeIndexIndexArrayOutput added in v3.28.0

type SqlContainerIndexingPolicyCompositeIndexIndexArrayOutput struct{ *pulumi.OutputState }

func (SqlContainerIndexingPolicyCompositeIndexIndexArrayOutput) ElementType added in v3.28.0

func (SqlContainerIndexingPolicyCompositeIndexIndexArrayOutput) Index added in v3.28.0

func (SqlContainerIndexingPolicyCompositeIndexIndexArrayOutput) ToSqlContainerIndexingPolicyCompositeIndexIndexArrayOutput added in v3.28.0

func (SqlContainerIndexingPolicyCompositeIndexIndexArrayOutput) ToSqlContainerIndexingPolicyCompositeIndexIndexArrayOutputWithContext added in v3.28.0

func (o SqlContainerIndexingPolicyCompositeIndexIndexArrayOutput) ToSqlContainerIndexingPolicyCompositeIndexIndexArrayOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyCompositeIndexIndexArrayOutput

type SqlContainerIndexingPolicyCompositeIndexIndexInput added in v3.28.0

type SqlContainerIndexingPolicyCompositeIndexIndexInput interface {
	pulumi.Input

	ToSqlContainerIndexingPolicyCompositeIndexIndexOutput() SqlContainerIndexingPolicyCompositeIndexIndexOutput
	ToSqlContainerIndexingPolicyCompositeIndexIndexOutputWithContext(context.Context) SqlContainerIndexingPolicyCompositeIndexIndexOutput
}

SqlContainerIndexingPolicyCompositeIndexIndexInput is an input type that accepts SqlContainerIndexingPolicyCompositeIndexIndexArgs and SqlContainerIndexingPolicyCompositeIndexIndexOutput values. You can construct a concrete instance of `SqlContainerIndexingPolicyCompositeIndexIndexInput` via:

SqlContainerIndexingPolicyCompositeIndexIndexArgs{...}

type SqlContainerIndexingPolicyCompositeIndexIndexOutput added in v3.28.0

type SqlContainerIndexingPolicyCompositeIndexIndexOutput struct{ *pulumi.OutputState }

func (SqlContainerIndexingPolicyCompositeIndexIndexOutput) ElementType added in v3.28.0

func (SqlContainerIndexingPolicyCompositeIndexIndexOutput) Order added in v3.28.0

Order of the index. Possible values are `Ascending` or `Descending`.

func (SqlContainerIndexingPolicyCompositeIndexIndexOutput) Path added in v3.28.0

Path for which the indexing behaviour applies to.

func (SqlContainerIndexingPolicyCompositeIndexIndexOutput) ToSqlContainerIndexingPolicyCompositeIndexIndexOutput added in v3.28.0

func (o SqlContainerIndexingPolicyCompositeIndexIndexOutput) ToSqlContainerIndexingPolicyCompositeIndexIndexOutput() SqlContainerIndexingPolicyCompositeIndexIndexOutput

func (SqlContainerIndexingPolicyCompositeIndexIndexOutput) ToSqlContainerIndexingPolicyCompositeIndexIndexOutputWithContext added in v3.28.0

func (o SqlContainerIndexingPolicyCompositeIndexIndexOutput) ToSqlContainerIndexingPolicyCompositeIndexIndexOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyCompositeIndexIndexOutput

type SqlContainerIndexingPolicyCompositeIndexInput added in v3.28.0

type SqlContainerIndexingPolicyCompositeIndexInput interface {
	pulumi.Input

	ToSqlContainerIndexingPolicyCompositeIndexOutput() SqlContainerIndexingPolicyCompositeIndexOutput
	ToSqlContainerIndexingPolicyCompositeIndexOutputWithContext(context.Context) SqlContainerIndexingPolicyCompositeIndexOutput
}

SqlContainerIndexingPolicyCompositeIndexInput is an input type that accepts SqlContainerIndexingPolicyCompositeIndexArgs and SqlContainerIndexingPolicyCompositeIndexOutput values. You can construct a concrete instance of `SqlContainerIndexingPolicyCompositeIndexInput` via:

SqlContainerIndexingPolicyCompositeIndexArgs{...}

type SqlContainerIndexingPolicyCompositeIndexOutput added in v3.28.0

type SqlContainerIndexingPolicyCompositeIndexOutput struct{ *pulumi.OutputState }

func (SqlContainerIndexingPolicyCompositeIndexOutput) ElementType added in v3.28.0

func (SqlContainerIndexingPolicyCompositeIndexOutput) Indices added in v3.28.0

One or more `index` blocks as defined below.

func (SqlContainerIndexingPolicyCompositeIndexOutput) ToSqlContainerIndexingPolicyCompositeIndexOutput added in v3.28.0

func (o SqlContainerIndexingPolicyCompositeIndexOutput) ToSqlContainerIndexingPolicyCompositeIndexOutput() SqlContainerIndexingPolicyCompositeIndexOutput

func (SqlContainerIndexingPolicyCompositeIndexOutput) ToSqlContainerIndexingPolicyCompositeIndexOutputWithContext added in v3.28.0

func (o SqlContainerIndexingPolicyCompositeIndexOutput) ToSqlContainerIndexingPolicyCompositeIndexOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyCompositeIndexOutput

type SqlContainerIndexingPolicyExcludedPath added in v3.23.0

type SqlContainerIndexingPolicyExcludedPath struct {
	// Path that is excluded from indexing.
	Path string `pulumi:"path"`
}

type SqlContainerIndexingPolicyExcludedPathArgs added in v3.23.0

type SqlContainerIndexingPolicyExcludedPathArgs struct {
	// Path that is excluded from indexing.
	Path pulumi.StringInput `pulumi:"path"`
}

func (SqlContainerIndexingPolicyExcludedPathArgs) ElementType added in v3.23.0

func (SqlContainerIndexingPolicyExcludedPathArgs) ToSqlContainerIndexingPolicyExcludedPathOutput added in v3.23.0

func (i SqlContainerIndexingPolicyExcludedPathArgs) ToSqlContainerIndexingPolicyExcludedPathOutput() SqlContainerIndexingPolicyExcludedPathOutput

func (SqlContainerIndexingPolicyExcludedPathArgs) ToSqlContainerIndexingPolicyExcludedPathOutputWithContext added in v3.23.0

func (i SqlContainerIndexingPolicyExcludedPathArgs) ToSqlContainerIndexingPolicyExcludedPathOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyExcludedPathOutput

type SqlContainerIndexingPolicyExcludedPathArray added in v3.23.0

type SqlContainerIndexingPolicyExcludedPathArray []SqlContainerIndexingPolicyExcludedPathInput

func (SqlContainerIndexingPolicyExcludedPathArray) ElementType added in v3.23.0

func (SqlContainerIndexingPolicyExcludedPathArray) ToSqlContainerIndexingPolicyExcludedPathArrayOutput added in v3.23.0

func (i SqlContainerIndexingPolicyExcludedPathArray) ToSqlContainerIndexingPolicyExcludedPathArrayOutput() SqlContainerIndexingPolicyExcludedPathArrayOutput

func (SqlContainerIndexingPolicyExcludedPathArray) ToSqlContainerIndexingPolicyExcludedPathArrayOutputWithContext added in v3.23.0

func (i SqlContainerIndexingPolicyExcludedPathArray) ToSqlContainerIndexingPolicyExcludedPathArrayOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyExcludedPathArrayOutput

type SqlContainerIndexingPolicyExcludedPathArrayInput added in v3.23.0

type SqlContainerIndexingPolicyExcludedPathArrayInput interface {
	pulumi.Input

	ToSqlContainerIndexingPolicyExcludedPathArrayOutput() SqlContainerIndexingPolicyExcludedPathArrayOutput
	ToSqlContainerIndexingPolicyExcludedPathArrayOutputWithContext(context.Context) SqlContainerIndexingPolicyExcludedPathArrayOutput
}

SqlContainerIndexingPolicyExcludedPathArrayInput is an input type that accepts SqlContainerIndexingPolicyExcludedPathArray and SqlContainerIndexingPolicyExcludedPathArrayOutput values. You can construct a concrete instance of `SqlContainerIndexingPolicyExcludedPathArrayInput` via:

SqlContainerIndexingPolicyExcludedPathArray{ SqlContainerIndexingPolicyExcludedPathArgs{...} }

type SqlContainerIndexingPolicyExcludedPathArrayOutput added in v3.23.0

type SqlContainerIndexingPolicyExcludedPathArrayOutput struct{ *pulumi.OutputState }

func (SqlContainerIndexingPolicyExcludedPathArrayOutput) ElementType added in v3.23.0

func (SqlContainerIndexingPolicyExcludedPathArrayOutput) Index added in v3.23.0

func (SqlContainerIndexingPolicyExcludedPathArrayOutput) ToSqlContainerIndexingPolicyExcludedPathArrayOutput added in v3.23.0

func (o SqlContainerIndexingPolicyExcludedPathArrayOutput) ToSqlContainerIndexingPolicyExcludedPathArrayOutput() SqlContainerIndexingPolicyExcludedPathArrayOutput

func (SqlContainerIndexingPolicyExcludedPathArrayOutput) ToSqlContainerIndexingPolicyExcludedPathArrayOutputWithContext added in v3.23.0

func (o SqlContainerIndexingPolicyExcludedPathArrayOutput) ToSqlContainerIndexingPolicyExcludedPathArrayOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyExcludedPathArrayOutput

type SqlContainerIndexingPolicyExcludedPathInput added in v3.23.0

type SqlContainerIndexingPolicyExcludedPathInput interface {
	pulumi.Input

	ToSqlContainerIndexingPolicyExcludedPathOutput() SqlContainerIndexingPolicyExcludedPathOutput
	ToSqlContainerIndexingPolicyExcludedPathOutputWithContext(context.Context) SqlContainerIndexingPolicyExcludedPathOutput
}

SqlContainerIndexingPolicyExcludedPathInput is an input type that accepts SqlContainerIndexingPolicyExcludedPathArgs and SqlContainerIndexingPolicyExcludedPathOutput values. You can construct a concrete instance of `SqlContainerIndexingPolicyExcludedPathInput` via:

SqlContainerIndexingPolicyExcludedPathArgs{...}

type SqlContainerIndexingPolicyExcludedPathOutput added in v3.23.0

type SqlContainerIndexingPolicyExcludedPathOutput struct{ *pulumi.OutputState }

func (SqlContainerIndexingPolicyExcludedPathOutput) ElementType added in v3.23.0

func (SqlContainerIndexingPolicyExcludedPathOutput) Path added in v3.23.0

Path that is excluded from indexing.

func (SqlContainerIndexingPolicyExcludedPathOutput) ToSqlContainerIndexingPolicyExcludedPathOutput added in v3.23.0

func (o SqlContainerIndexingPolicyExcludedPathOutput) ToSqlContainerIndexingPolicyExcludedPathOutput() SqlContainerIndexingPolicyExcludedPathOutput

func (SqlContainerIndexingPolicyExcludedPathOutput) ToSqlContainerIndexingPolicyExcludedPathOutputWithContext added in v3.23.0

func (o SqlContainerIndexingPolicyExcludedPathOutput) ToSqlContainerIndexingPolicyExcludedPathOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyExcludedPathOutput

type SqlContainerIndexingPolicyIncludedPath added in v3.23.0

type SqlContainerIndexingPolicyIncludedPath struct {
	// Path for which the indexing behaviour applies to.
	Path string `pulumi:"path"`
}

type SqlContainerIndexingPolicyIncludedPathArgs added in v3.23.0

type SqlContainerIndexingPolicyIncludedPathArgs struct {
	// Path for which the indexing behaviour applies to.
	Path pulumi.StringInput `pulumi:"path"`
}

func (SqlContainerIndexingPolicyIncludedPathArgs) ElementType added in v3.23.0

func (SqlContainerIndexingPolicyIncludedPathArgs) ToSqlContainerIndexingPolicyIncludedPathOutput added in v3.23.0

func (i SqlContainerIndexingPolicyIncludedPathArgs) ToSqlContainerIndexingPolicyIncludedPathOutput() SqlContainerIndexingPolicyIncludedPathOutput

func (SqlContainerIndexingPolicyIncludedPathArgs) ToSqlContainerIndexingPolicyIncludedPathOutputWithContext added in v3.23.0

func (i SqlContainerIndexingPolicyIncludedPathArgs) ToSqlContainerIndexingPolicyIncludedPathOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyIncludedPathOutput

type SqlContainerIndexingPolicyIncludedPathArray added in v3.23.0

type SqlContainerIndexingPolicyIncludedPathArray []SqlContainerIndexingPolicyIncludedPathInput

func (SqlContainerIndexingPolicyIncludedPathArray) ElementType added in v3.23.0

func (SqlContainerIndexingPolicyIncludedPathArray) ToSqlContainerIndexingPolicyIncludedPathArrayOutput added in v3.23.0

func (i SqlContainerIndexingPolicyIncludedPathArray) ToSqlContainerIndexingPolicyIncludedPathArrayOutput() SqlContainerIndexingPolicyIncludedPathArrayOutput

func (SqlContainerIndexingPolicyIncludedPathArray) ToSqlContainerIndexingPolicyIncludedPathArrayOutputWithContext added in v3.23.0

func (i SqlContainerIndexingPolicyIncludedPathArray) ToSqlContainerIndexingPolicyIncludedPathArrayOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyIncludedPathArrayOutput

type SqlContainerIndexingPolicyIncludedPathArrayInput added in v3.23.0

type SqlContainerIndexingPolicyIncludedPathArrayInput interface {
	pulumi.Input

	ToSqlContainerIndexingPolicyIncludedPathArrayOutput() SqlContainerIndexingPolicyIncludedPathArrayOutput
	ToSqlContainerIndexingPolicyIncludedPathArrayOutputWithContext(context.Context) SqlContainerIndexingPolicyIncludedPathArrayOutput
}

SqlContainerIndexingPolicyIncludedPathArrayInput is an input type that accepts SqlContainerIndexingPolicyIncludedPathArray and SqlContainerIndexingPolicyIncludedPathArrayOutput values. You can construct a concrete instance of `SqlContainerIndexingPolicyIncludedPathArrayInput` via:

SqlContainerIndexingPolicyIncludedPathArray{ SqlContainerIndexingPolicyIncludedPathArgs{...} }

type SqlContainerIndexingPolicyIncludedPathArrayOutput added in v3.23.0

type SqlContainerIndexingPolicyIncludedPathArrayOutput struct{ *pulumi.OutputState }

func (SqlContainerIndexingPolicyIncludedPathArrayOutput) ElementType added in v3.23.0

func (SqlContainerIndexingPolicyIncludedPathArrayOutput) Index added in v3.23.0

func (SqlContainerIndexingPolicyIncludedPathArrayOutput) ToSqlContainerIndexingPolicyIncludedPathArrayOutput added in v3.23.0

func (o SqlContainerIndexingPolicyIncludedPathArrayOutput) ToSqlContainerIndexingPolicyIncludedPathArrayOutput() SqlContainerIndexingPolicyIncludedPathArrayOutput

func (SqlContainerIndexingPolicyIncludedPathArrayOutput) ToSqlContainerIndexingPolicyIncludedPathArrayOutputWithContext added in v3.23.0

func (o SqlContainerIndexingPolicyIncludedPathArrayOutput) ToSqlContainerIndexingPolicyIncludedPathArrayOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyIncludedPathArrayOutput

type SqlContainerIndexingPolicyIncludedPathInput added in v3.23.0

type SqlContainerIndexingPolicyIncludedPathInput interface {
	pulumi.Input

	ToSqlContainerIndexingPolicyIncludedPathOutput() SqlContainerIndexingPolicyIncludedPathOutput
	ToSqlContainerIndexingPolicyIncludedPathOutputWithContext(context.Context) SqlContainerIndexingPolicyIncludedPathOutput
}

SqlContainerIndexingPolicyIncludedPathInput is an input type that accepts SqlContainerIndexingPolicyIncludedPathArgs and SqlContainerIndexingPolicyIncludedPathOutput values. You can construct a concrete instance of `SqlContainerIndexingPolicyIncludedPathInput` via:

SqlContainerIndexingPolicyIncludedPathArgs{...}

type SqlContainerIndexingPolicyIncludedPathOutput added in v3.23.0

type SqlContainerIndexingPolicyIncludedPathOutput struct{ *pulumi.OutputState }

func (SqlContainerIndexingPolicyIncludedPathOutput) ElementType added in v3.23.0

func (SqlContainerIndexingPolicyIncludedPathOutput) Path added in v3.23.0

Path for which the indexing behaviour applies to.

func (SqlContainerIndexingPolicyIncludedPathOutput) ToSqlContainerIndexingPolicyIncludedPathOutput added in v3.23.0

func (o SqlContainerIndexingPolicyIncludedPathOutput) ToSqlContainerIndexingPolicyIncludedPathOutput() SqlContainerIndexingPolicyIncludedPathOutput

func (SqlContainerIndexingPolicyIncludedPathOutput) ToSqlContainerIndexingPolicyIncludedPathOutputWithContext added in v3.23.0

func (o SqlContainerIndexingPolicyIncludedPathOutput) ToSqlContainerIndexingPolicyIncludedPathOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyIncludedPathOutput

type SqlContainerIndexingPolicyInput added in v3.23.0

type SqlContainerIndexingPolicyInput interface {
	pulumi.Input

	ToSqlContainerIndexingPolicyOutput() SqlContainerIndexingPolicyOutput
	ToSqlContainerIndexingPolicyOutputWithContext(context.Context) SqlContainerIndexingPolicyOutput
}

SqlContainerIndexingPolicyInput is an input type that accepts SqlContainerIndexingPolicyArgs and SqlContainerIndexingPolicyOutput values. You can construct a concrete instance of `SqlContainerIndexingPolicyInput` via:

SqlContainerIndexingPolicyArgs{...}

type SqlContainerIndexingPolicyOutput added in v3.23.0

type SqlContainerIndexingPolicyOutput struct{ *pulumi.OutputState }

func (SqlContainerIndexingPolicyOutput) CompositeIndices added in v3.28.0

One or more `compositeIndex` blocks as defined below.

func (SqlContainerIndexingPolicyOutput) ElementType added in v3.23.0

func (SqlContainerIndexingPolicyOutput) ExcludedPaths added in v3.23.0

One or more `excludedPath` blocks as defined below. Either `includedPath` or `excludedPath` must contain the `path` `/*`

func (SqlContainerIndexingPolicyOutput) IncludedPaths added in v3.23.0

One or more `includedPath` blocks as defined below. Either `includedPath` or `excludedPath` must contain the `path` `/*`

func (SqlContainerIndexingPolicyOutput) IndexingMode added in v3.23.0

Indicates the indexing mode. Possible values include: `Consistent` and `None`. Defaults to `Consistent`.

func (SqlContainerIndexingPolicyOutput) ToSqlContainerIndexingPolicyOutput added in v3.23.0

func (o SqlContainerIndexingPolicyOutput) ToSqlContainerIndexingPolicyOutput() SqlContainerIndexingPolicyOutput

func (SqlContainerIndexingPolicyOutput) ToSqlContainerIndexingPolicyOutputWithContext added in v3.23.0

func (o SqlContainerIndexingPolicyOutput) ToSqlContainerIndexingPolicyOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyOutput

func (SqlContainerIndexingPolicyOutput) ToSqlContainerIndexingPolicyPtrOutput added in v3.23.0

func (o SqlContainerIndexingPolicyOutput) ToSqlContainerIndexingPolicyPtrOutput() SqlContainerIndexingPolicyPtrOutput

func (SqlContainerIndexingPolicyOutput) ToSqlContainerIndexingPolicyPtrOutputWithContext added in v3.23.0

func (o SqlContainerIndexingPolicyOutput) ToSqlContainerIndexingPolicyPtrOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyPtrOutput

type SqlContainerIndexingPolicyPtrInput added in v3.23.0

type SqlContainerIndexingPolicyPtrInput interface {
	pulumi.Input

	ToSqlContainerIndexingPolicyPtrOutput() SqlContainerIndexingPolicyPtrOutput
	ToSqlContainerIndexingPolicyPtrOutputWithContext(context.Context) SqlContainerIndexingPolicyPtrOutput
}

SqlContainerIndexingPolicyPtrInput is an input type that accepts SqlContainerIndexingPolicyArgs, SqlContainerIndexingPolicyPtr and SqlContainerIndexingPolicyPtrOutput values. You can construct a concrete instance of `SqlContainerIndexingPolicyPtrInput` via:

        SqlContainerIndexingPolicyArgs{...}

or:

        nil

func SqlContainerIndexingPolicyPtr added in v3.23.0

type SqlContainerIndexingPolicyPtrOutput added in v3.23.0

type SqlContainerIndexingPolicyPtrOutput struct{ *pulumi.OutputState }

func (SqlContainerIndexingPolicyPtrOutput) CompositeIndices added in v3.28.0

One or more `compositeIndex` blocks as defined below.

func (SqlContainerIndexingPolicyPtrOutput) Elem added in v3.23.0

func (SqlContainerIndexingPolicyPtrOutput) ElementType added in v3.23.0

func (SqlContainerIndexingPolicyPtrOutput) ExcludedPaths added in v3.23.0

One or more `excludedPath` blocks as defined below. Either `includedPath` or `excludedPath` must contain the `path` `/*`

func (SqlContainerIndexingPolicyPtrOutput) IncludedPaths added in v3.23.0

One or more `includedPath` blocks as defined below. Either `includedPath` or `excludedPath` must contain the `path` `/*`

func (SqlContainerIndexingPolicyPtrOutput) IndexingMode added in v3.23.0

Indicates the indexing mode. Possible values include: `Consistent` and `None`. Defaults to `Consistent`.

func (SqlContainerIndexingPolicyPtrOutput) ToSqlContainerIndexingPolicyPtrOutput added in v3.23.0

func (o SqlContainerIndexingPolicyPtrOutput) ToSqlContainerIndexingPolicyPtrOutput() SqlContainerIndexingPolicyPtrOutput

func (SqlContainerIndexingPolicyPtrOutput) ToSqlContainerIndexingPolicyPtrOutputWithContext added in v3.23.0

func (o SqlContainerIndexingPolicyPtrOutput) ToSqlContainerIndexingPolicyPtrOutputWithContext(ctx context.Context) SqlContainerIndexingPolicyPtrOutput

type SqlContainerInput added in v3.31.1

type SqlContainerInput interface {
	pulumi.Input

	ToSqlContainerOutput() SqlContainerOutput
	ToSqlContainerOutputWithContext(ctx context.Context) SqlContainerOutput
}

type SqlContainerMap added in v3.47.1

type SqlContainerMap map[string]SqlContainerInput

func (SqlContainerMap) ElementType added in v3.47.1

func (SqlContainerMap) ElementType() reflect.Type

func (SqlContainerMap) ToSqlContainerMapOutput added in v3.47.1

func (i SqlContainerMap) ToSqlContainerMapOutput() SqlContainerMapOutput

func (SqlContainerMap) ToSqlContainerMapOutputWithContext added in v3.47.1

func (i SqlContainerMap) ToSqlContainerMapOutputWithContext(ctx context.Context) SqlContainerMapOutput

type SqlContainerMapInput added in v3.47.1

type SqlContainerMapInput interface {
	pulumi.Input

	ToSqlContainerMapOutput() SqlContainerMapOutput
	ToSqlContainerMapOutputWithContext(context.Context) SqlContainerMapOutput
}

SqlContainerMapInput is an input type that accepts SqlContainerMap and SqlContainerMapOutput values. You can construct a concrete instance of `SqlContainerMapInput` via:

SqlContainerMap{ "key": SqlContainerArgs{...} }

type SqlContainerMapOutput added in v3.47.1

type SqlContainerMapOutput struct{ *pulumi.OutputState }

func (SqlContainerMapOutput) ElementType added in v3.47.1

func (SqlContainerMapOutput) ElementType() reflect.Type

func (SqlContainerMapOutput) MapIndex added in v3.47.1

func (SqlContainerMapOutput) ToSqlContainerMapOutput added in v3.47.1

func (o SqlContainerMapOutput) ToSqlContainerMapOutput() SqlContainerMapOutput

func (SqlContainerMapOutput) ToSqlContainerMapOutputWithContext added in v3.47.1

func (o SqlContainerMapOutput) ToSqlContainerMapOutputWithContext(ctx context.Context) SqlContainerMapOutput

type SqlContainerOutput added in v3.31.1

type SqlContainerOutput struct {
	*pulumi.OutputState
}

func (SqlContainerOutput) ElementType added in v3.31.1

func (SqlContainerOutput) ElementType() reflect.Type

func (SqlContainerOutput) ToSqlContainerOutput added in v3.31.1

func (o SqlContainerOutput) ToSqlContainerOutput() SqlContainerOutput

func (SqlContainerOutput) ToSqlContainerOutputWithContext added in v3.31.1

func (o SqlContainerOutput) ToSqlContainerOutputWithContext(ctx context.Context) SqlContainerOutput

func (SqlContainerOutput) ToSqlContainerPtrOutput added in v3.47.1

func (o SqlContainerOutput) ToSqlContainerPtrOutput() SqlContainerPtrOutput

func (SqlContainerOutput) ToSqlContainerPtrOutputWithContext added in v3.47.1

func (o SqlContainerOutput) ToSqlContainerPtrOutputWithContext(ctx context.Context) SqlContainerPtrOutput

type SqlContainerPtrInput added in v3.47.1

type SqlContainerPtrInput interface {
	pulumi.Input

	ToSqlContainerPtrOutput() SqlContainerPtrOutput
	ToSqlContainerPtrOutputWithContext(ctx context.Context) SqlContainerPtrOutput
}

type SqlContainerPtrOutput added in v3.47.1

type SqlContainerPtrOutput struct {
	*pulumi.OutputState
}

func (SqlContainerPtrOutput) ElementType added in v3.47.1

func (SqlContainerPtrOutput) ElementType() reflect.Type

func (SqlContainerPtrOutput) ToSqlContainerPtrOutput added in v3.47.1

func (o SqlContainerPtrOutput) ToSqlContainerPtrOutput() SqlContainerPtrOutput

func (SqlContainerPtrOutput) ToSqlContainerPtrOutputWithContext added in v3.47.1

func (o SqlContainerPtrOutput) ToSqlContainerPtrOutputWithContext(ctx context.Context) SqlContainerPtrOutput

type SqlContainerState

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
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply. Requires `partitionKeyPath` to be set.
	AutoscaleSettings SqlContainerAutoscaleSettingsPtrInput
	// 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
	// An `indexingPolicy` block as defined below.
	IndexingPolicy SqlContainerIndexingPolicyPtrInput
	// Specifies the name of the Cosmos DB SQL Container. 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
	// Define a partition key version. Changing this forces a new resource to be created. Possible values are ` 1  `and `2`. This should be set to `2` in order to use large partition keys.
	PartitionKeyVersion pulumi.IntPtrInput
	// The name of the resource group in which the Cosmos DB SQL Container is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// The throughput of SQL container (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.
	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

func (SqlContainerState) ElementType() reflect.Type

type SqlContainerUniqueKey

type SqlContainerUniqueKey struct {
	// A list of paths to use for this unique key.
	Paths []string `pulumi:"paths"`
}

type SqlContainerUniqueKeyArgs

type SqlContainerUniqueKeyArgs struct {
	// A list of paths to use for this unique key.
	Paths pulumi.StringArrayInput `pulumi:"paths"`
}

func (SqlContainerUniqueKeyArgs) ElementType

func (SqlContainerUniqueKeyArgs) ElementType() reflect.Type

func (SqlContainerUniqueKeyArgs) ToSqlContainerUniqueKeyOutput

func (i SqlContainerUniqueKeyArgs) ToSqlContainerUniqueKeyOutput() SqlContainerUniqueKeyOutput

func (SqlContainerUniqueKeyArgs) ToSqlContainerUniqueKeyOutputWithContext

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

type SqlContainerUniqueKeyArray

type SqlContainerUniqueKeyArray []SqlContainerUniqueKeyInput

func (SqlContainerUniqueKeyArray) ElementType

func (SqlContainerUniqueKeyArray) ElementType() reflect.Type

func (SqlContainerUniqueKeyArray) ToSqlContainerUniqueKeyArrayOutput

func (i SqlContainerUniqueKeyArray) ToSqlContainerUniqueKeyArrayOutput() SqlContainerUniqueKeyArrayOutput

func (SqlContainerUniqueKeyArray) ToSqlContainerUniqueKeyArrayOutputWithContext

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

type SqlContainerUniqueKeyArrayInput

type SqlContainerUniqueKeyArrayInput interface {
	pulumi.Input

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

SqlContainerUniqueKeyArrayInput is an input type that accepts SqlContainerUniqueKeyArray and SqlContainerUniqueKeyArrayOutput values. You can construct a concrete instance of `SqlContainerUniqueKeyArrayInput` via:

SqlContainerUniqueKeyArray{ SqlContainerUniqueKeyArgs{...} }

type SqlContainerUniqueKeyArrayOutput

type SqlContainerUniqueKeyArrayOutput struct{ *pulumi.OutputState }

func (SqlContainerUniqueKeyArrayOutput) ElementType

func (SqlContainerUniqueKeyArrayOutput) Index

func (SqlContainerUniqueKeyArrayOutput) ToSqlContainerUniqueKeyArrayOutput

func (o SqlContainerUniqueKeyArrayOutput) ToSqlContainerUniqueKeyArrayOutput() SqlContainerUniqueKeyArrayOutput

func (SqlContainerUniqueKeyArrayOutput) ToSqlContainerUniqueKeyArrayOutputWithContext

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

type SqlContainerUniqueKeyInput

type SqlContainerUniqueKeyInput interface {
	pulumi.Input

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

SqlContainerUniqueKeyInput is an input type that accepts SqlContainerUniqueKeyArgs and SqlContainerUniqueKeyOutput values. You can construct a concrete instance of `SqlContainerUniqueKeyInput` via:

SqlContainerUniqueKeyArgs{...}

type SqlContainerUniqueKeyOutput

type SqlContainerUniqueKeyOutput struct{ *pulumi.OutputState }

func (SqlContainerUniqueKeyOutput) ElementType

func (SqlContainerUniqueKeyOutput) Paths

A list of paths to use for this unique key.

func (SqlContainerUniqueKeyOutput) ToSqlContainerUniqueKeyOutput

func (o SqlContainerUniqueKeyOutput) ToSqlContainerUniqueKeyOutput() SqlContainerUniqueKeyOutput

func (SqlContainerUniqueKeyOutput) ToSqlContainerUniqueKeyOutputWithContext

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

type SqlDatabase

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"`
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.
	AutoscaleSettings SqlDatabaseAutoscaleSettingsPtrOutput `pulumi:"autoscaleSettings"`
	// 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.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/cosmosdb"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleAccount, err := cosmosdb.LookupAccount(ctx, &cosmosdb.LookupAccountArgs{
			Name:              "tfex-cosmosdb-account",
			ResourceGroupName: "tfex-cosmosdb-account-rg",
		}, nil)
		if err != nil {
			return err
		}
		_, err = cosmosdb.NewSqlDatabase(ctx, "exampleSqlDatabase", &cosmosdb.SqlDatabaseArgs{
			ResourceGroupName: pulumi.String(exampleAccount.ResourceGroupName),
			AccountName:       pulumi.String(exampleAccount.Name),
			Throughput:        pulumi.Int(400),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cosmos SQL Database can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:cosmosdb/sqlDatabase:SqlDatabase db1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/account1/sqlDatabases/db1

```

func GetSqlDatabase

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

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.

func (*SqlDatabase) ElementType added in v3.31.1

func (*SqlDatabase) ElementType() reflect.Type

func (*SqlDatabase) ToSqlDatabaseOutput added in v3.31.1

func (i *SqlDatabase) ToSqlDatabaseOutput() SqlDatabaseOutput

func (*SqlDatabase) ToSqlDatabaseOutputWithContext added in v3.31.1

func (i *SqlDatabase) ToSqlDatabaseOutputWithContext(ctx context.Context) SqlDatabaseOutput

func (*SqlDatabase) ToSqlDatabasePtrOutput added in v3.47.1

func (i *SqlDatabase) ToSqlDatabasePtrOutput() SqlDatabasePtrOutput

func (*SqlDatabase) ToSqlDatabasePtrOutputWithContext added in v3.47.1

func (i *SqlDatabase) ToSqlDatabasePtrOutputWithContext(ctx context.Context) SqlDatabasePtrOutput

type SqlDatabaseArgs

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
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.
	AutoscaleSettings SqlDatabaseAutoscaleSettingsPtrInput
	// 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

func (SqlDatabaseArgs) ElementType() reflect.Type

type SqlDatabaseArray added in v3.47.1

type SqlDatabaseArray []SqlDatabaseInput

func (SqlDatabaseArray) ElementType added in v3.47.1

func (SqlDatabaseArray) ElementType() reflect.Type

func (SqlDatabaseArray) ToSqlDatabaseArrayOutput added in v3.47.1

func (i SqlDatabaseArray) ToSqlDatabaseArrayOutput() SqlDatabaseArrayOutput

func (SqlDatabaseArray) ToSqlDatabaseArrayOutputWithContext added in v3.47.1

func (i SqlDatabaseArray) ToSqlDatabaseArrayOutputWithContext(ctx context.Context) SqlDatabaseArrayOutput

type SqlDatabaseArrayInput added in v3.47.1

type SqlDatabaseArrayInput interface {
	pulumi.Input

	ToSqlDatabaseArrayOutput() SqlDatabaseArrayOutput
	ToSqlDatabaseArrayOutputWithContext(context.Context) SqlDatabaseArrayOutput
}

SqlDatabaseArrayInput is an input type that accepts SqlDatabaseArray and SqlDatabaseArrayOutput values. You can construct a concrete instance of `SqlDatabaseArrayInput` via:

SqlDatabaseArray{ SqlDatabaseArgs{...} }

type SqlDatabaseArrayOutput added in v3.47.1

type SqlDatabaseArrayOutput struct{ *pulumi.OutputState }

func (SqlDatabaseArrayOutput) ElementType added in v3.47.1

func (SqlDatabaseArrayOutput) ElementType() reflect.Type

func (SqlDatabaseArrayOutput) Index added in v3.47.1

func (SqlDatabaseArrayOutput) ToSqlDatabaseArrayOutput added in v3.47.1

func (o SqlDatabaseArrayOutput) ToSqlDatabaseArrayOutput() SqlDatabaseArrayOutput

func (SqlDatabaseArrayOutput) ToSqlDatabaseArrayOutputWithContext added in v3.47.1

func (o SqlDatabaseArrayOutput) ToSqlDatabaseArrayOutputWithContext(ctx context.Context) SqlDatabaseArrayOutput

type SqlDatabaseAutoscaleSettings added in v3.22.0

type SqlDatabaseAutoscaleSettings struct {
	// The maximum throughput of the SQL database (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
	MaxThroughput *int `pulumi:"maxThroughput"`
}

type SqlDatabaseAutoscaleSettingsArgs added in v3.22.0

type SqlDatabaseAutoscaleSettingsArgs struct {
	// The maximum throughput of the SQL database (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
	MaxThroughput pulumi.IntPtrInput `pulumi:"maxThroughput"`
}

func (SqlDatabaseAutoscaleSettingsArgs) ElementType added in v3.22.0

func (SqlDatabaseAutoscaleSettingsArgs) ToSqlDatabaseAutoscaleSettingsOutput added in v3.22.0

func (i SqlDatabaseAutoscaleSettingsArgs) ToSqlDatabaseAutoscaleSettingsOutput() SqlDatabaseAutoscaleSettingsOutput

func (SqlDatabaseAutoscaleSettingsArgs) ToSqlDatabaseAutoscaleSettingsOutputWithContext added in v3.22.0

func (i SqlDatabaseAutoscaleSettingsArgs) ToSqlDatabaseAutoscaleSettingsOutputWithContext(ctx context.Context) SqlDatabaseAutoscaleSettingsOutput

func (SqlDatabaseAutoscaleSettingsArgs) ToSqlDatabaseAutoscaleSettingsPtrOutput added in v3.22.0

func (i SqlDatabaseAutoscaleSettingsArgs) ToSqlDatabaseAutoscaleSettingsPtrOutput() SqlDatabaseAutoscaleSettingsPtrOutput

func (SqlDatabaseAutoscaleSettingsArgs) ToSqlDatabaseAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (i SqlDatabaseAutoscaleSettingsArgs) ToSqlDatabaseAutoscaleSettingsPtrOutputWithContext(ctx context.Context) SqlDatabaseAutoscaleSettingsPtrOutput

type SqlDatabaseAutoscaleSettingsInput added in v3.22.0

type SqlDatabaseAutoscaleSettingsInput interface {
	pulumi.Input

	ToSqlDatabaseAutoscaleSettingsOutput() SqlDatabaseAutoscaleSettingsOutput
	ToSqlDatabaseAutoscaleSettingsOutputWithContext(context.Context) SqlDatabaseAutoscaleSettingsOutput
}

SqlDatabaseAutoscaleSettingsInput is an input type that accepts SqlDatabaseAutoscaleSettingsArgs and SqlDatabaseAutoscaleSettingsOutput values. You can construct a concrete instance of `SqlDatabaseAutoscaleSettingsInput` via:

SqlDatabaseAutoscaleSettingsArgs{...}

type SqlDatabaseAutoscaleSettingsOutput added in v3.22.0

type SqlDatabaseAutoscaleSettingsOutput struct{ *pulumi.OutputState }

func (SqlDatabaseAutoscaleSettingsOutput) ElementType added in v3.22.0

func (SqlDatabaseAutoscaleSettingsOutput) MaxThroughput added in v3.22.0

The maximum throughput of the SQL database (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.

func (SqlDatabaseAutoscaleSettingsOutput) ToSqlDatabaseAutoscaleSettingsOutput added in v3.22.0

func (o SqlDatabaseAutoscaleSettingsOutput) ToSqlDatabaseAutoscaleSettingsOutput() SqlDatabaseAutoscaleSettingsOutput

func (SqlDatabaseAutoscaleSettingsOutput) ToSqlDatabaseAutoscaleSettingsOutputWithContext added in v3.22.0

func (o SqlDatabaseAutoscaleSettingsOutput) ToSqlDatabaseAutoscaleSettingsOutputWithContext(ctx context.Context) SqlDatabaseAutoscaleSettingsOutput

func (SqlDatabaseAutoscaleSettingsOutput) ToSqlDatabaseAutoscaleSettingsPtrOutput added in v3.22.0

func (o SqlDatabaseAutoscaleSettingsOutput) ToSqlDatabaseAutoscaleSettingsPtrOutput() SqlDatabaseAutoscaleSettingsPtrOutput

func (SqlDatabaseAutoscaleSettingsOutput) ToSqlDatabaseAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (o SqlDatabaseAutoscaleSettingsOutput) ToSqlDatabaseAutoscaleSettingsPtrOutputWithContext(ctx context.Context) SqlDatabaseAutoscaleSettingsPtrOutput

type SqlDatabaseAutoscaleSettingsPtrInput added in v3.22.0

type SqlDatabaseAutoscaleSettingsPtrInput interface {
	pulumi.Input

	ToSqlDatabaseAutoscaleSettingsPtrOutput() SqlDatabaseAutoscaleSettingsPtrOutput
	ToSqlDatabaseAutoscaleSettingsPtrOutputWithContext(context.Context) SqlDatabaseAutoscaleSettingsPtrOutput
}

SqlDatabaseAutoscaleSettingsPtrInput is an input type that accepts SqlDatabaseAutoscaleSettingsArgs, SqlDatabaseAutoscaleSettingsPtr and SqlDatabaseAutoscaleSettingsPtrOutput values. You can construct a concrete instance of `SqlDatabaseAutoscaleSettingsPtrInput` via:

        SqlDatabaseAutoscaleSettingsArgs{...}

or:

        nil

func SqlDatabaseAutoscaleSettingsPtr added in v3.22.0

type SqlDatabaseAutoscaleSettingsPtrOutput added in v3.22.0

type SqlDatabaseAutoscaleSettingsPtrOutput struct{ *pulumi.OutputState }

func (SqlDatabaseAutoscaleSettingsPtrOutput) Elem added in v3.22.0

func (SqlDatabaseAutoscaleSettingsPtrOutput) ElementType added in v3.22.0

func (SqlDatabaseAutoscaleSettingsPtrOutput) MaxThroughput added in v3.22.0

The maximum throughput of the SQL database (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.

func (SqlDatabaseAutoscaleSettingsPtrOutput) ToSqlDatabaseAutoscaleSettingsPtrOutput added in v3.22.0

func (o SqlDatabaseAutoscaleSettingsPtrOutput) ToSqlDatabaseAutoscaleSettingsPtrOutput() SqlDatabaseAutoscaleSettingsPtrOutput

func (SqlDatabaseAutoscaleSettingsPtrOutput) ToSqlDatabaseAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (o SqlDatabaseAutoscaleSettingsPtrOutput) ToSqlDatabaseAutoscaleSettingsPtrOutputWithContext(ctx context.Context) SqlDatabaseAutoscaleSettingsPtrOutput

type SqlDatabaseInput added in v3.31.1

type SqlDatabaseInput interface {
	pulumi.Input

	ToSqlDatabaseOutput() SqlDatabaseOutput
	ToSqlDatabaseOutputWithContext(ctx context.Context) SqlDatabaseOutput
}

type SqlDatabaseMap added in v3.47.1

type SqlDatabaseMap map[string]SqlDatabaseInput

func (SqlDatabaseMap) ElementType added in v3.47.1

func (SqlDatabaseMap) ElementType() reflect.Type

func (SqlDatabaseMap) ToSqlDatabaseMapOutput added in v3.47.1

func (i SqlDatabaseMap) ToSqlDatabaseMapOutput() SqlDatabaseMapOutput

func (SqlDatabaseMap) ToSqlDatabaseMapOutputWithContext added in v3.47.1

func (i SqlDatabaseMap) ToSqlDatabaseMapOutputWithContext(ctx context.Context) SqlDatabaseMapOutput

type SqlDatabaseMapInput added in v3.47.1

type SqlDatabaseMapInput interface {
	pulumi.Input

	ToSqlDatabaseMapOutput() SqlDatabaseMapOutput
	ToSqlDatabaseMapOutputWithContext(context.Context) SqlDatabaseMapOutput
}

SqlDatabaseMapInput is an input type that accepts SqlDatabaseMap and SqlDatabaseMapOutput values. You can construct a concrete instance of `SqlDatabaseMapInput` via:

SqlDatabaseMap{ "key": SqlDatabaseArgs{...} }

type SqlDatabaseMapOutput added in v3.47.1

type SqlDatabaseMapOutput struct{ *pulumi.OutputState }

func (SqlDatabaseMapOutput) ElementType added in v3.47.1

func (SqlDatabaseMapOutput) ElementType() reflect.Type

func (SqlDatabaseMapOutput) MapIndex added in v3.47.1

func (SqlDatabaseMapOutput) ToSqlDatabaseMapOutput added in v3.47.1

func (o SqlDatabaseMapOutput) ToSqlDatabaseMapOutput() SqlDatabaseMapOutput

func (SqlDatabaseMapOutput) ToSqlDatabaseMapOutputWithContext added in v3.47.1

func (o SqlDatabaseMapOutput) ToSqlDatabaseMapOutputWithContext(ctx context.Context) SqlDatabaseMapOutput

type SqlDatabaseOutput added in v3.31.1

type SqlDatabaseOutput struct {
	*pulumi.OutputState
}

func (SqlDatabaseOutput) ElementType added in v3.31.1

func (SqlDatabaseOutput) ElementType() reflect.Type

func (SqlDatabaseOutput) ToSqlDatabaseOutput added in v3.31.1

func (o SqlDatabaseOutput) ToSqlDatabaseOutput() SqlDatabaseOutput

func (SqlDatabaseOutput) ToSqlDatabaseOutputWithContext added in v3.31.1

func (o SqlDatabaseOutput) ToSqlDatabaseOutputWithContext(ctx context.Context) SqlDatabaseOutput

func (SqlDatabaseOutput) ToSqlDatabasePtrOutput added in v3.47.1

func (o SqlDatabaseOutput) ToSqlDatabasePtrOutput() SqlDatabasePtrOutput

func (SqlDatabaseOutput) ToSqlDatabasePtrOutputWithContext added in v3.47.1

func (o SqlDatabaseOutput) ToSqlDatabasePtrOutputWithContext(ctx context.Context) SqlDatabasePtrOutput

type SqlDatabasePtrInput added in v3.47.1

type SqlDatabasePtrInput interface {
	pulumi.Input

	ToSqlDatabasePtrOutput() SqlDatabasePtrOutput
	ToSqlDatabasePtrOutputWithContext(ctx context.Context) SqlDatabasePtrOutput
}

type SqlDatabasePtrOutput added in v3.47.1

type SqlDatabasePtrOutput struct {
	*pulumi.OutputState
}

func (SqlDatabasePtrOutput) ElementType added in v3.47.1

func (SqlDatabasePtrOutput) ElementType() reflect.Type

func (SqlDatabasePtrOutput) ToSqlDatabasePtrOutput added in v3.47.1

func (o SqlDatabasePtrOutput) ToSqlDatabasePtrOutput() SqlDatabasePtrOutput

func (SqlDatabasePtrOutput) ToSqlDatabasePtrOutputWithContext added in v3.47.1

func (o SqlDatabasePtrOutput) ToSqlDatabasePtrOutputWithContext(ctx context.Context) SqlDatabasePtrOutput

type SqlDatabaseState

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
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.
	AutoscaleSettings SqlDatabaseAutoscaleSettingsPtrInput
	// 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

func (SqlDatabaseState) ElementType() reflect.Type

type SqlStoredProcedure added in v3.24.0

type SqlStoredProcedure struct {
	pulumi.CustomResourceState

	// The name of the Cosmos DB Account to create the stored procedure within. Changing this forces a new resource to be created.
	AccountName pulumi.StringOutput `pulumi:"accountName"`
	// The body of the stored procedure.
	Body pulumi.StringOutput `pulumi:"body"`
	// The name of the Cosmos DB SQL Container to create the stored procedure within. Changing this forces a new resource to be created.
	ContainerName pulumi.StringOutput `pulumi:"containerName"`
	// The name of the Cosmos DB SQL Database to create the stored procedure within. Changing this forces a new resource to be created.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// Specifies the name of the Cosmos DB SQL Stored Procedure. 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"`
}

Manages a SQL Stored Procedure within a Cosmos DB Account SQL Database.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/cosmosdb"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleAccount, err := cosmosdb.LookupAccount(ctx, &cosmosdb.LookupAccountArgs{
			Name:              "tfex-cosmosdb-account",
			ResourceGroupName: "tfex-cosmosdb-account-rg",
		}, nil)
		if err != nil {
			return err
		}
		exampleSqlDatabase, err := cosmosdb.NewSqlDatabase(ctx, "exampleSqlDatabase", &cosmosdb.SqlDatabaseArgs{
			ResourceGroupName: pulumi.String(exampleAccount.ResourceGroupName),
			AccountName:       pulumi.String(exampleAccount.Name),
			Throughput:        pulumi.Int(400),
		})
		if err != nil {
			return err
		}
		exampleSqlContainer, err := cosmosdb.NewSqlContainer(ctx, "exampleSqlContainer", &cosmosdb.SqlContainerArgs{
			ResourceGroupName: pulumi.Any(azurerm_cosmosdb_account.Example.Resource_group_name),
			AccountName:       pulumi.Any(azurerm_cosmosdb_account.Example.Name),
			DatabaseName:      exampleSqlDatabase.Name,
			PartitionKeyPath:  pulumi.String("/id"),
		})
		if err != nil {
			return err
		}
		_, err = cosmosdb.NewSqlStoredProcedure(ctx, "exampleSqlStoredProcedure", &cosmosdb.SqlStoredProcedureArgs{
			ResourceGroupName: pulumi.Any(azurerm_cosmosdb_account.Example.Resource_group_name),
			AccountName:       pulumi.Any(azurerm_cosmosdb_account.Example.Name),
			DatabaseName:      exampleSqlDatabase.Name,
			ContainerName:     exampleSqlContainer.Name,
			Body: pulumi.String("  	function () { var context = getContext(); var response = context.getResponse(); response.setBody('Hello, World'); }\n"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CosmosDB SQL Stored Procedures can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:cosmosdb/sqlStoredProcedure:SqlStoredProcedure db1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/account1/sqlDatabases/db1/containers/c1/storedProcedures/sp1

```

func GetSqlStoredProcedure added in v3.24.0

func GetSqlStoredProcedure(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SqlStoredProcedureState, opts ...pulumi.ResourceOption) (*SqlStoredProcedure, error)

GetSqlStoredProcedure gets an existing SqlStoredProcedure 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 NewSqlStoredProcedure added in v3.24.0

func NewSqlStoredProcedure(ctx *pulumi.Context,
	name string, args *SqlStoredProcedureArgs, opts ...pulumi.ResourceOption) (*SqlStoredProcedure, error)

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

func (*SqlStoredProcedure) ElementType added in v3.31.1

func (*SqlStoredProcedure) ElementType() reflect.Type

func (*SqlStoredProcedure) ToSqlStoredProcedureOutput added in v3.31.1

func (i *SqlStoredProcedure) ToSqlStoredProcedureOutput() SqlStoredProcedureOutput

func (*SqlStoredProcedure) ToSqlStoredProcedureOutputWithContext added in v3.31.1

func (i *SqlStoredProcedure) ToSqlStoredProcedureOutputWithContext(ctx context.Context) SqlStoredProcedureOutput

func (*SqlStoredProcedure) ToSqlStoredProcedurePtrOutput added in v3.47.1

func (i *SqlStoredProcedure) ToSqlStoredProcedurePtrOutput() SqlStoredProcedurePtrOutput

func (*SqlStoredProcedure) ToSqlStoredProcedurePtrOutputWithContext added in v3.47.1

func (i *SqlStoredProcedure) ToSqlStoredProcedurePtrOutputWithContext(ctx context.Context) SqlStoredProcedurePtrOutput

type SqlStoredProcedureArgs added in v3.24.0

type SqlStoredProcedureArgs struct {
	// The name of the Cosmos DB Account to create the stored procedure within. Changing this forces a new resource to be created.
	AccountName pulumi.StringInput
	// The body of the stored procedure.
	Body pulumi.StringInput
	// The name of the Cosmos DB SQL Container to create the stored procedure within. Changing this forces a new resource to be created.
	ContainerName pulumi.StringInput
	// The name of the Cosmos DB SQL Database to create the stored procedure within. Changing this forces a new resource to be created.
	DatabaseName pulumi.StringInput
	// Specifies the name of the Cosmos DB SQL Stored Procedure. 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
}

The set of arguments for constructing a SqlStoredProcedure resource.

func (SqlStoredProcedureArgs) ElementType added in v3.24.0

func (SqlStoredProcedureArgs) ElementType() reflect.Type

type SqlStoredProcedureArray added in v3.47.1

type SqlStoredProcedureArray []SqlStoredProcedureInput

func (SqlStoredProcedureArray) ElementType added in v3.47.1

func (SqlStoredProcedureArray) ElementType() reflect.Type

func (SqlStoredProcedureArray) ToSqlStoredProcedureArrayOutput added in v3.47.1

func (i SqlStoredProcedureArray) ToSqlStoredProcedureArrayOutput() SqlStoredProcedureArrayOutput

func (SqlStoredProcedureArray) ToSqlStoredProcedureArrayOutputWithContext added in v3.47.1

func (i SqlStoredProcedureArray) ToSqlStoredProcedureArrayOutputWithContext(ctx context.Context) SqlStoredProcedureArrayOutput

type SqlStoredProcedureArrayInput added in v3.47.1

type SqlStoredProcedureArrayInput interface {
	pulumi.Input

	ToSqlStoredProcedureArrayOutput() SqlStoredProcedureArrayOutput
	ToSqlStoredProcedureArrayOutputWithContext(context.Context) SqlStoredProcedureArrayOutput
}

SqlStoredProcedureArrayInput is an input type that accepts SqlStoredProcedureArray and SqlStoredProcedureArrayOutput values. You can construct a concrete instance of `SqlStoredProcedureArrayInput` via:

SqlStoredProcedureArray{ SqlStoredProcedureArgs{...} }

type SqlStoredProcedureArrayOutput added in v3.47.1

type SqlStoredProcedureArrayOutput struct{ *pulumi.OutputState }

func (SqlStoredProcedureArrayOutput) ElementType added in v3.47.1

func (SqlStoredProcedureArrayOutput) Index added in v3.47.1

func (SqlStoredProcedureArrayOutput) ToSqlStoredProcedureArrayOutput added in v3.47.1

func (o SqlStoredProcedureArrayOutput) ToSqlStoredProcedureArrayOutput() SqlStoredProcedureArrayOutput

func (SqlStoredProcedureArrayOutput) ToSqlStoredProcedureArrayOutputWithContext added in v3.47.1

func (o SqlStoredProcedureArrayOutput) ToSqlStoredProcedureArrayOutputWithContext(ctx context.Context) SqlStoredProcedureArrayOutput

type SqlStoredProcedureInput added in v3.31.1

type SqlStoredProcedureInput interface {
	pulumi.Input

	ToSqlStoredProcedureOutput() SqlStoredProcedureOutput
	ToSqlStoredProcedureOutputWithContext(ctx context.Context) SqlStoredProcedureOutput
}

type SqlStoredProcedureMap added in v3.47.1

type SqlStoredProcedureMap map[string]SqlStoredProcedureInput

func (SqlStoredProcedureMap) ElementType added in v3.47.1

func (SqlStoredProcedureMap) ElementType() reflect.Type

func (SqlStoredProcedureMap) ToSqlStoredProcedureMapOutput added in v3.47.1

func (i SqlStoredProcedureMap) ToSqlStoredProcedureMapOutput() SqlStoredProcedureMapOutput

func (SqlStoredProcedureMap) ToSqlStoredProcedureMapOutputWithContext added in v3.47.1

func (i SqlStoredProcedureMap) ToSqlStoredProcedureMapOutputWithContext(ctx context.Context) SqlStoredProcedureMapOutput

type SqlStoredProcedureMapInput added in v3.47.1

type SqlStoredProcedureMapInput interface {
	pulumi.Input

	ToSqlStoredProcedureMapOutput() SqlStoredProcedureMapOutput
	ToSqlStoredProcedureMapOutputWithContext(context.Context) SqlStoredProcedureMapOutput
}

SqlStoredProcedureMapInput is an input type that accepts SqlStoredProcedureMap and SqlStoredProcedureMapOutput values. You can construct a concrete instance of `SqlStoredProcedureMapInput` via:

SqlStoredProcedureMap{ "key": SqlStoredProcedureArgs{...} }

type SqlStoredProcedureMapOutput added in v3.47.1

type SqlStoredProcedureMapOutput struct{ *pulumi.OutputState }

func (SqlStoredProcedureMapOutput) ElementType added in v3.47.1

func (SqlStoredProcedureMapOutput) MapIndex added in v3.47.1

func (SqlStoredProcedureMapOutput) ToSqlStoredProcedureMapOutput added in v3.47.1

func (o SqlStoredProcedureMapOutput) ToSqlStoredProcedureMapOutput() SqlStoredProcedureMapOutput

func (SqlStoredProcedureMapOutput) ToSqlStoredProcedureMapOutputWithContext added in v3.47.1

func (o SqlStoredProcedureMapOutput) ToSqlStoredProcedureMapOutputWithContext(ctx context.Context) SqlStoredProcedureMapOutput

type SqlStoredProcedureOutput added in v3.31.1

type SqlStoredProcedureOutput struct {
	*pulumi.OutputState
}

func (SqlStoredProcedureOutput) ElementType added in v3.31.1

func (SqlStoredProcedureOutput) ElementType() reflect.Type

func (SqlStoredProcedureOutput) ToSqlStoredProcedureOutput added in v3.31.1

func (o SqlStoredProcedureOutput) ToSqlStoredProcedureOutput() SqlStoredProcedureOutput

func (SqlStoredProcedureOutput) ToSqlStoredProcedureOutputWithContext added in v3.31.1

func (o SqlStoredProcedureOutput) ToSqlStoredProcedureOutputWithContext(ctx context.Context) SqlStoredProcedureOutput

func (SqlStoredProcedureOutput) ToSqlStoredProcedurePtrOutput added in v3.47.1

func (o SqlStoredProcedureOutput) ToSqlStoredProcedurePtrOutput() SqlStoredProcedurePtrOutput

func (SqlStoredProcedureOutput) ToSqlStoredProcedurePtrOutputWithContext added in v3.47.1

func (o SqlStoredProcedureOutput) ToSqlStoredProcedurePtrOutputWithContext(ctx context.Context) SqlStoredProcedurePtrOutput

type SqlStoredProcedurePtrInput added in v3.47.1

type SqlStoredProcedurePtrInput interface {
	pulumi.Input

	ToSqlStoredProcedurePtrOutput() SqlStoredProcedurePtrOutput
	ToSqlStoredProcedurePtrOutputWithContext(ctx context.Context) SqlStoredProcedurePtrOutput
}

type SqlStoredProcedurePtrOutput added in v3.47.1

type SqlStoredProcedurePtrOutput struct {
	*pulumi.OutputState
}

func (SqlStoredProcedurePtrOutput) ElementType added in v3.47.1

func (SqlStoredProcedurePtrOutput) ToSqlStoredProcedurePtrOutput added in v3.47.1

func (o SqlStoredProcedurePtrOutput) ToSqlStoredProcedurePtrOutput() SqlStoredProcedurePtrOutput

func (SqlStoredProcedurePtrOutput) ToSqlStoredProcedurePtrOutputWithContext added in v3.47.1

func (o SqlStoredProcedurePtrOutput) ToSqlStoredProcedurePtrOutputWithContext(ctx context.Context) SqlStoredProcedurePtrOutput

type SqlStoredProcedureState added in v3.24.0

type SqlStoredProcedureState struct {
	// The name of the Cosmos DB Account to create the stored procedure within. Changing this forces a new resource to be created.
	AccountName pulumi.StringPtrInput
	// The body of the stored procedure.
	Body pulumi.StringPtrInput
	// The name of the Cosmos DB SQL Container to create the stored procedure within. Changing this forces a new resource to be created.
	ContainerName pulumi.StringPtrInput
	// The name of the Cosmos DB SQL Database to create the stored procedure within. Changing this forces a new resource to be created.
	DatabaseName pulumi.StringPtrInput
	// Specifies the name of the Cosmos DB SQL Stored Procedure. 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
}

func (SqlStoredProcedureState) ElementType added in v3.24.0

func (SqlStoredProcedureState) ElementType() reflect.Type

type Table

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"`
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.
	AutoscaleSettings TableAutoscaleSettingsPtrOutput `pulumi:"autoscaleSettings"`
	// 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"`
	// The throughput of Table (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply.
	Throughput pulumi.IntOutput `pulumi:"throughput"`
}

Manages a Table within a Cosmos DB Account.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/cosmosdb"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleAccount, err := cosmosdb.LookupAccount(ctx, &cosmosdb.LookupAccountArgs{
			Name:              "tfex-cosmosdb-account",
			ResourceGroupName: "tfex-cosmosdb-account-rg",
		}, nil)
		if err != nil {
			return err
		}
		_, err = cosmosdb.NewTable(ctx, "exampleTable", &cosmosdb.TableArgs{
			ResourceGroupName: pulumi.String(exampleAccount.ResourceGroupName),
			AccountName:       pulumi.String(exampleAccount.Name),
			Throughput:        pulumi.Int(400),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CosmosDB Tables can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:cosmosdb/table:Table table1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/account1/tables/table1

```

func GetTable

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

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.

func (*Table) ElementType added in v3.31.1

func (*Table) ElementType() reflect.Type

func (*Table) ToTableOutput added in v3.31.1

func (i *Table) ToTableOutput() TableOutput

func (*Table) ToTableOutputWithContext added in v3.31.1

func (i *Table) ToTableOutputWithContext(ctx context.Context) TableOutput

func (*Table) ToTablePtrOutput added in v3.47.1

func (i *Table) ToTablePtrOutput() TablePtrOutput

func (*Table) ToTablePtrOutputWithContext added in v3.47.1

func (i *Table) ToTablePtrOutputWithContext(ctx context.Context) TablePtrOutput

type TableArgs

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
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.
	AutoscaleSettings TableAutoscaleSettingsPtrInput
	// 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
	// The throughput of Table (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply.
	Throughput pulumi.IntPtrInput
}

The set of arguments for constructing a Table resource.

func (TableArgs) ElementType

func (TableArgs) ElementType() reflect.Type

type TableArray added in v3.47.1

type TableArray []TableInput

func (TableArray) ElementType added in v3.47.1

func (TableArray) ElementType() reflect.Type

func (TableArray) ToTableArrayOutput added in v3.47.1

func (i TableArray) ToTableArrayOutput() TableArrayOutput

func (TableArray) ToTableArrayOutputWithContext added in v3.47.1

func (i TableArray) ToTableArrayOutputWithContext(ctx context.Context) TableArrayOutput

type TableArrayInput added in v3.47.1

type TableArrayInput interface {
	pulumi.Input

	ToTableArrayOutput() TableArrayOutput
	ToTableArrayOutputWithContext(context.Context) TableArrayOutput
}

TableArrayInput is an input type that accepts TableArray and TableArrayOutput values. You can construct a concrete instance of `TableArrayInput` via:

TableArray{ TableArgs{...} }

type TableArrayOutput added in v3.47.1

type TableArrayOutput struct{ *pulumi.OutputState }

func (TableArrayOutput) ElementType added in v3.47.1

func (TableArrayOutput) ElementType() reflect.Type

func (TableArrayOutput) Index added in v3.47.1

func (TableArrayOutput) ToTableArrayOutput added in v3.47.1

func (o TableArrayOutput) ToTableArrayOutput() TableArrayOutput

func (TableArrayOutput) ToTableArrayOutputWithContext added in v3.47.1

func (o TableArrayOutput) ToTableArrayOutputWithContext(ctx context.Context) TableArrayOutput

type TableAutoscaleSettings added in v3.22.0

type TableAutoscaleSettings struct {
	// The maximum throughput of the Table (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
	MaxThroughput *int `pulumi:"maxThroughput"`
}

type TableAutoscaleSettingsArgs added in v3.22.0

type TableAutoscaleSettingsArgs struct {
	// The maximum throughput of the Table (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
	MaxThroughput pulumi.IntPtrInput `pulumi:"maxThroughput"`
}

func (TableAutoscaleSettingsArgs) ElementType added in v3.22.0

func (TableAutoscaleSettingsArgs) ElementType() reflect.Type

func (TableAutoscaleSettingsArgs) ToTableAutoscaleSettingsOutput added in v3.22.0

func (i TableAutoscaleSettingsArgs) ToTableAutoscaleSettingsOutput() TableAutoscaleSettingsOutput

func (TableAutoscaleSettingsArgs) ToTableAutoscaleSettingsOutputWithContext added in v3.22.0

func (i TableAutoscaleSettingsArgs) ToTableAutoscaleSettingsOutputWithContext(ctx context.Context) TableAutoscaleSettingsOutput

func (TableAutoscaleSettingsArgs) ToTableAutoscaleSettingsPtrOutput added in v3.22.0

func (i TableAutoscaleSettingsArgs) ToTableAutoscaleSettingsPtrOutput() TableAutoscaleSettingsPtrOutput

func (TableAutoscaleSettingsArgs) ToTableAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (i TableAutoscaleSettingsArgs) ToTableAutoscaleSettingsPtrOutputWithContext(ctx context.Context) TableAutoscaleSettingsPtrOutput

type TableAutoscaleSettingsInput added in v3.22.0

type TableAutoscaleSettingsInput interface {
	pulumi.Input

	ToTableAutoscaleSettingsOutput() TableAutoscaleSettingsOutput
	ToTableAutoscaleSettingsOutputWithContext(context.Context) TableAutoscaleSettingsOutput
}

TableAutoscaleSettingsInput is an input type that accepts TableAutoscaleSettingsArgs and TableAutoscaleSettingsOutput values. You can construct a concrete instance of `TableAutoscaleSettingsInput` via:

TableAutoscaleSettingsArgs{...}

type TableAutoscaleSettingsOutput added in v3.22.0

type TableAutoscaleSettingsOutput struct{ *pulumi.OutputState }

func (TableAutoscaleSettingsOutput) ElementType added in v3.22.0

func (TableAutoscaleSettingsOutput) MaxThroughput added in v3.22.0

The maximum throughput of the Table (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.

func (TableAutoscaleSettingsOutput) ToTableAutoscaleSettingsOutput added in v3.22.0

func (o TableAutoscaleSettingsOutput) ToTableAutoscaleSettingsOutput() TableAutoscaleSettingsOutput

func (TableAutoscaleSettingsOutput) ToTableAutoscaleSettingsOutputWithContext added in v3.22.0

func (o TableAutoscaleSettingsOutput) ToTableAutoscaleSettingsOutputWithContext(ctx context.Context) TableAutoscaleSettingsOutput

func (TableAutoscaleSettingsOutput) ToTableAutoscaleSettingsPtrOutput added in v3.22.0

func (o TableAutoscaleSettingsOutput) ToTableAutoscaleSettingsPtrOutput() TableAutoscaleSettingsPtrOutput

func (TableAutoscaleSettingsOutput) ToTableAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (o TableAutoscaleSettingsOutput) ToTableAutoscaleSettingsPtrOutputWithContext(ctx context.Context) TableAutoscaleSettingsPtrOutput

type TableAutoscaleSettingsPtrInput added in v3.22.0

type TableAutoscaleSettingsPtrInput interface {
	pulumi.Input

	ToTableAutoscaleSettingsPtrOutput() TableAutoscaleSettingsPtrOutput
	ToTableAutoscaleSettingsPtrOutputWithContext(context.Context) TableAutoscaleSettingsPtrOutput
}

TableAutoscaleSettingsPtrInput is an input type that accepts TableAutoscaleSettingsArgs, TableAutoscaleSettingsPtr and TableAutoscaleSettingsPtrOutput values. You can construct a concrete instance of `TableAutoscaleSettingsPtrInput` via:

        TableAutoscaleSettingsArgs{...}

or:

        nil

func TableAutoscaleSettingsPtr added in v3.22.0

func TableAutoscaleSettingsPtr(v *TableAutoscaleSettingsArgs) TableAutoscaleSettingsPtrInput

type TableAutoscaleSettingsPtrOutput added in v3.22.0

type TableAutoscaleSettingsPtrOutput struct{ *pulumi.OutputState }

func (TableAutoscaleSettingsPtrOutput) Elem added in v3.22.0

func (TableAutoscaleSettingsPtrOutput) ElementType added in v3.22.0

func (TableAutoscaleSettingsPtrOutput) MaxThroughput added in v3.22.0

The maximum throughput of the Table (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.

func (TableAutoscaleSettingsPtrOutput) ToTableAutoscaleSettingsPtrOutput added in v3.22.0

func (o TableAutoscaleSettingsPtrOutput) ToTableAutoscaleSettingsPtrOutput() TableAutoscaleSettingsPtrOutput

func (TableAutoscaleSettingsPtrOutput) ToTableAutoscaleSettingsPtrOutputWithContext added in v3.22.0

func (o TableAutoscaleSettingsPtrOutput) ToTableAutoscaleSettingsPtrOutputWithContext(ctx context.Context) TableAutoscaleSettingsPtrOutput

type TableInput added in v3.31.1

type TableInput interface {
	pulumi.Input

	ToTableOutput() TableOutput
	ToTableOutputWithContext(ctx context.Context) TableOutput
}

type TableMap added in v3.47.1

type TableMap map[string]TableInput

func (TableMap) ElementType added in v3.47.1

func (TableMap) ElementType() reflect.Type

func (TableMap) ToTableMapOutput added in v3.47.1

func (i TableMap) ToTableMapOutput() TableMapOutput

func (TableMap) ToTableMapOutputWithContext added in v3.47.1

func (i TableMap) ToTableMapOutputWithContext(ctx context.Context) TableMapOutput

type TableMapInput added in v3.47.1

type TableMapInput interface {
	pulumi.Input

	ToTableMapOutput() TableMapOutput
	ToTableMapOutputWithContext(context.Context) TableMapOutput
}

TableMapInput is an input type that accepts TableMap and TableMapOutput values. You can construct a concrete instance of `TableMapInput` via:

TableMap{ "key": TableArgs{...} }

type TableMapOutput added in v3.47.1

type TableMapOutput struct{ *pulumi.OutputState }

func (TableMapOutput) ElementType added in v3.47.1

func (TableMapOutput) ElementType() reflect.Type

func (TableMapOutput) MapIndex added in v3.47.1

func (TableMapOutput) ToTableMapOutput added in v3.47.1

func (o TableMapOutput) ToTableMapOutput() TableMapOutput

func (TableMapOutput) ToTableMapOutputWithContext added in v3.47.1

func (o TableMapOutput) ToTableMapOutputWithContext(ctx context.Context) TableMapOutput

type TableOutput added in v3.31.1

type TableOutput struct {
	*pulumi.OutputState
}

func (TableOutput) ElementType added in v3.31.1

func (TableOutput) ElementType() reflect.Type

func (TableOutput) ToTableOutput added in v3.31.1

func (o TableOutput) ToTableOutput() TableOutput

func (TableOutput) ToTableOutputWithContext added in v3.31.1

func (o TableOutput) ToTableOutputWithContext(ctx context.Context) TableOutput

func (TableOutput) ToTablePtrOutput added in v3.47.1

func (o TableOutput) ToTablePtrOutput() TablePtrOutput

func (TableOutput) ToTablePtrOutputWithContext added in v3.47.1

func (o TableOutput) ToTablePtrOutputWithContext(ctx context.Context) TablePtrOutput

type TablePtrInput added in v3.47.1

type TablePtrInput interface {
	pulumi.Input

	ToTablePtrOutput() TablePtrOutput
	ToTablePtrOutputWithContext(ctx context.Context) TablePtrOutput
}

type TablePtrOutput added in v3.47.1

type TablePtrOutput struct {
	*pulumi.OutputState
}

func (TablePtrOutput) ElementType added in v3.47.1

func (TablePtrOutput) ElementType() reflect.Type

func (TablePtrOutput) ToTablePtrOutput added in v3.47.1

func (o TablePtrOutput) ToTablePtrOutput() TablePtrOutput

func (TablePtrOutput) ToTablePtrOutputWithContext added in v3.47.1

func (o TablePtrOutput) ToTablePtrOutputWithContext(ctx context.Context) TablePtrOutput

type TableState

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
	// An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.
	AutoscaleSettings TableAutoscaleSettingsPtrInput
	// 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
	// The throughput of Table (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply.
	Throughput pulumi.IntPtrInput
}

func (TableState) ElementType

func (TableState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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