Documentation
¶
Index ¶
- type Account
- type AccountArgs
- type AccountCapability
- type AccountCapabilityArgs
- type AccountCapabilityArray
- type AccountCapabilityArrayInput
- type AccountCapabilityArrayOutput
- func (AccountCapabilityArrayOutput) ElementType() reflect.Type
- func (o AccountCapabilityArrayOutput) Index(i pulumi.IntInput) AccountCapabilityOutput
- func (o AccountCapabilityArrayOutput) ToAccountCapabilityArrayOutput() AccountCapabilityArrayOutput
- func (o AccountCapabilityArrayOutput) ToAccountCapabilityArrayOutputWithContext(ctx context.Context) AccountCapabilityArrayOutput
- type AccountCapabilityInput
- type AccountCapabilityOutput
- func (AccountCapabilityOutput) ElementType() reflect.Type
- func (o AccountCapabilityOutput) Name() pulumi.StringOutput
- func (o AccountCapabilityOutput) ToAccountCapabilityOutput() AccountCapabilityOutput
- func (o AccountCapabilityOutput) ToAccountCapabilityOutputWithContext(ctx context.Context) AccountCapabilityOutput
- type AccountConsistencyPolicy
- type AccountConsistencyPolicyArgs
- func (AccountConsistencyPolicyArgs) ElementType() reflect.Type
- func (i AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyOutput() AccountConsistencyPolicyOutput
- func (i AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyOutputWithContext(ctx context.Context) AccountConsistencyPolicyOutput
- func (i AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyPtrOutput() AccountConsistencyPolicyPtrOutput
- func (i AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyPtrOutputWithContext(ctx context.Context) AccountConsistencyPolicyPtrOutput
- type AccountConsistencyPolicyInput
- type AccountConsistencyPolicyOutput
- func (o AccountConsistencyPolicyOutput) ConsistencyLevel() pulumi.StringOutput
- func (AccountConsistencyPolicyOutput) ElementType() reflect.Type
- func (o AccountConsistencyPolicyOutput) MaxIntervalInSeconds() pulumi.IntPtrOutput
- func (o AccountConsistencyPolicyOutput) MaxStalenessPrefix() pulumi.IntPtrOutput
- func (o AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyOutput() AccountConsistencyPolicyOutput
- func (o AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyOutputWithContext(ctx context.Context) AccountConsistencyPolicyOutput
- func (o AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyPtrOutput() AccountConsistencyPolicyPtrOutput
- func (o AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyPtrOutputWithContext(ctx context.Context) AccountConsistencyPolicyPtrOutput
- type AccountConsistencyPolicyPtrInput
- type AccountConsistencyPolicyPtrOutput
- func (o AccountConsistencyPolicyPtrOutput) ConsistencyLevel() pulumi.StringPtrOutput
- func (o AccountConsistencyPolicyPtrOutput) Elem() AccountConsistencyPolicyOutput
- func (AccountConsistencyPolicyPtrOutput) ElementType() reflect.Type
- func (o AccountConsistencyPolicyPtrOutput) MaxIntervalInSeconds() pulumi.IntPtrOutput
- func (o AccountConsistencyPolicyPtrOutput) MaxStalenessPrefix() pulumi.IntPtrOutput
- func (o AccountConsistencyPolicyPtrOutput) ToAccountConsistencyPolicyPtrOutput() AccountConsistencyPolicyPtrOutput
- func (o AccountConsistencyPolicyPtrOutput) ToAccountConsistencyPolicyPtrOutputWithContext(ctx context.Context) AccountConsistencyPolicyPtrOutput
- type AccountGeoLocation
- type AccountGeoLocationArgs
- type AccountGeoLocationArray
- type AccountGeoLocationArrayInput
- type AccountGeoLocationArrayOutput
- func (AccountGeoLocationArrayOutput) ElementType() reflect.Type
- func (o AccountGeoLocationArrayOutput) Index(i pulumi.IntInput) AccountGeoLocationOutput
- func (o AccountGeoLocationArrayOutput) ToAccountGeoLocationArrayOutput() AccountGeoLocationArrayOutput
- func (o AccountGeoLocationArrayOutput) ToAccountGeoLocationArrayOutputWithContext(ctx context.Context) AccountGeoLocationArrayOutput
- type AccountGeoLocationInput
- type AccountGeoLocationOutput
- func (AccountGeoLocationOutput) ElementType() reflect.Type
- func (o AccountGeoLocationOutput) FailoverPriority() pulumi.IntOutput
- func (o AccountGeoLocationOutput) Id() pulumi.StringPtrOutput
- func (o AccountGeoLocationOutput) Location() pulumi.StringOutput
- func (o AccountGeoLocationOutput) Prefix() pulumi.StringPtrOutputdeprecated
- func (o AccountGeoLocationOutput) ToAccountGeoLocationOutput() AccountGeoLocationOutput
- func (o AccountGeoLocationOutput) ToAccountGeoLocationOutputWithContext(ctx context.Context) AccountGeoLocationOutput
- type AccountState
- type AccountVirtualNetworkRule
- type AccountVirtualNetworkRuleArgs
- func (AccountVirtualNetworkRuleArgs) ElementType() reflect.Type
- func (i AccountVirtualNetworkRuleArgs) ToAccountVirtualNetworkRuleOutput() AccountVirtualNetworkRuleOutput
- func (i AccountVirtualNetworkRuleArgs) ToAccountVirtualNetworkRuleOutputWithContext(ctx context.Context) AccountVirtualNetworkRuleOutput
- type AccountVirtualNetworkRuleArray
- func (AccountVirtualNetworkRuleArray) ElementType() reflect.Type
- func (i AccountVirtualNetworkRuleArray) ToAccountVirtualNetworkRuleArrayOutput() AccountVirtualNetworkRuleArrayOutput
- func (i AccountVirtualNetworkRuleArray) ToAccountVirtualNetworkRuleArrayOutputWithContext(ctx context.Context) AccountVirtualNetworkRuleArrayOutput
- type AccountVirtualNetworkRuleArrayInput
- type AccountVirtualNetworkRuleArrayOutput
- func (AccountVirtualNetworkRuleArrayOutput) ElementType() reflect.Type
- func (o AccountVirtualNetworkRuleArrayOutput) Index(i pulumi.IntInput) AccountVirtualNetworkRuleOutput
- func (o AccountVirtualNetworkRuleArrayOutput) ToAccountVirtualNetworkRuleArrayOutput() AccountVirtualNetworkRuleArrayOutput
- func (o AccountVirtualNetworkRuleArrayOutput) ToAccountVirtualNetworkRuleArrayOutputWithContext(ctx context.Context) AccountVirtualNetworkRuleArrayOutput
- type AccountVirtualNetworkRuleInput
- type AccountVirtualNetworkRuleOutput
- func (AccountVirtualNetworkRuleOutput) ElementType() reflect.Type
- func (o AccountVirtualNetworkRuleOutput) Id() pulumi.StringOutput
- func (o AccountVirtualNetworkRuleOutput) IgnoreMissingVnetServiceEndpoint() pulumi.BoolPtrOutput
- func (o AccountVirtualNetworkRuleOutput) ToAccountVirtualNetworkRuleOutput() AccountVirtualNetworkRuleOutput
- func (o AccountVirtualNetworkRuleOutput) ToAccountVirtualNetworkRuleOutputWithContext(ctx context.Context) AccountVirtualNetworkRuleOutput
- type CassandraKeyspace
- type CassandraKeyspaceArgs
- type CassandraKeyspaceState
- type GetAccountCapability
- type GetAccountCapabilityArgs
- type GetAccountCapabilityArray
- type GetAccountCapabilityArrayInput
- type GetAccountCapabilityArrayOutput
- func (GetAccountCapabilityArrayOutput) ElementType() reflect.Type
- func (o GetAccountCapabilityArrayOutput) Index(i pulumi.IntInput) GetAccountCapabilityOutput
- func (o GetAccountCapabilityArrayOutput) ToGetAccountCapabilityArrayOutput() GetAccountCapabilityArrayOutput
- func (o GetAccountCapabilityArrayOutput) ToGetAccountCapabilityArrayOutputWithContext(ctx context.Context) GetAccountCapabilityArrayOutput
- type GetAccountCapabilityInput
- type GetAccountCapabilityOutput
- func (GetAccountCapabilityOutput) ElementType() reflect.Type
- func (o GetAccountCapabilityOutput) Name() pulumi.StringOutput
- func (o GetAccountCapabilityOutput) ToGetAccountCapabilityOutput() GetAccountCapabilityOutput
- func (o GetAccountCapabilityOutput) ToGetAccountCapabilityOutputWithContext(ctx context.Context) GetAccountCapabilityOutput
- type GetAccountConsistencyPolicy
- type GetAccountConsistencyPolicyArgs
- func (GetAccountConsistencyPolicyArgs) ElementType() reflect.Type
- func (i GetAccountConsistencyPolicyArgs) ToGetAccountConsistencyPolicyOutput() GetAccountConsistencyPolicyOutput
- func (i GetAccountConsistencyPolicyArgs) ToGetAccountConsistencyPolicyOutputWithContext(ctx context.Context) GetAccountConsistencyPolicyOutput
- type GetAccountConsistencyPolicyArray
- func (GetAccountConsistencyPolicyArray) ElementType() reflect.Type
- func (i GetAccountConsistencyPolicyArray) ToGetAccountConsistencyPolicyArrayOutput() GetAccountConsistencyPolicyArrayOutput
- func (i GetAccountConsistencyPolicyArray) ToGetAccountConsistencyPolicyArrayOutputWithContext(ctx context.Context) GetAccountConsistencyPolicyArrayOutput
- type GetAccountConsistencyPolicyArrayInput
- type GetAccountConsistencyPolicyArrayOutput
- func (GetAccountConsistencyPolicyArrayOutput) ElementType() reflect.Type
- func (o GetAccountConsistencyPolicyArrayOutput) Index(i pulumi.IntInput) GetAccountConsistencyPolicyOutput
- func (o GetAccountConsistencyPolicyArrayOutput) ToGetAccountConsistencyPolicyArrayOutput() GetAccountConsistencyPolicyArrayOutput
- func (o GetAccountConsistencyPolicyArrayOutput) ToGetAccountConsistencyPolicyArrayOutputWithContext(ctx context.Context) GetAccountConsistencyPolicyArrayOutput
- type GetAccountConsistencyPolicyInput
- type GetAccountConsistencyPolicyOutput
- func (o GetAccountConsistencyPolicyOutput) ConsistencyLevel() pulumi.StringOutput
- func (GetAccountConsistencyPolicyOutput) ElementType() reflect.Type
- func (o GetAccountConsistencyPolicyOutput) MaxIntervalInSeconds() pulumi.IntOutput
- func (o GetAccountConsistencyPolicyOutput) MaxStalenessPrefix() pulumi.IntOutput
- func (o GetAccountConsistencyPolicyOutput) ToGetAccountConsistencyPolicyOutput() GetAccountConsistencyPolicyOutput
- func (o GetAccountConsistencyPolicyOutput) ToGetAccountConsistencyPolicyOutputWithContext(ctx context.Context) GetAccountConsistencyPolicyOutput
- type GetAccountGeoLocation
- type GetAccountGeoLocationArgs
- type GetAccountGeoLocationArray
- func (GetAccountGeoLocationArray) ElementType() reflect.Type
- func (i GetAccountGeoLocationArray) ToGetAccountGeoLocationArrayOutput() GetAccountGeoLocationArrayOutput
- func (i GetAccountGeoLocationArray) ToGetAccountGeoLocationArrayOutputWithContext(ctx context.Context) GetAccountGeoLocationArrayOutput
- type GetAccountGeoLocationArrayInput
- type GetAccountGeoLocationArrayOutput
- func (GetAccountGeoLocationArrayOutput) ElementType() reflect.Type
- func (o GetAccountGeoLocationArrayOutput) Index(i pulumi.IntInput) GetAccountGeoLocationOutput
- func (o GetAccountGeoLocationArrayOutput) ToGetAccountGeoLocationArrayOutput() GetAccountGeoLocationArrayOutput
- func (o GetAccountGeoLocationArrayOutput) ToGetAccountGeoLocationArrayOutputWithContext(ctx context.Context) GetAccountGeoLocationArrayOutput
- type GetAccountGeoLocationInput
- type GetAccountGeoLocationOutput
- func (GetAccountGeoLocationOutput) ElementType() reflect.Type
- func (o GetAccountGeoLocationOutput) FailoverPriority() pulumi.IntOutput
- func (o GetAccountGeoLocationOutput) Id() pulumi.StringOutput
- func (o GetAccountGeoLocationOutput) Location() pulumi.StringOutput
- func (o GetAccountGeoLocationOutput) ToGetAccountGeoLocationOutput() GetAccountGeoLocationOutput
- func (o GetAccountGeoLocationOutput) ToGetAccountGeoLocationOutputWithContext(ctx context.Context) GetAccountGeoLocationOutput
- type GetAccountVirtualNetworkRule
- type GetAccountVirtualNetworkRuleArgs
- func (GetAccountVirtualNetworkRuleArgs) ElementType() reflect.Type
- func (i GetAccountVirtualNetworkRuleArgs) ToGetAccountVirtualNetworkRuleOutput() GetAccountVirtualNetworkRuleOutput
- func (i GetAccountVirtualNetworkRuleArgs) ToGetAccountVirtualNetworkRuleOutputWithContext(ctx context.Context) GetAccountVirtualNetworkRuleOutput
- type GetAccountVirtualNetworkRuleArray
- func (GetAccountVirtualNetworkRuleArray) ElementType() reflect.Type
- func (i GetAccountVirtualNetworkRuleArray) ToGetAccountVirtualNetworkRuleArrayOutput() GetAccountVirtualNetworkRuleArrayOutput
- func (i GetAccountVirtualNetworkRuleArray) ToGetAccountVirtualNetworkRuleArrayOutputWithContext(ctx context.Context) GetAccountVirtualNetworkRuleArrayOutput
- type GetAccountVirtualNetworkRuleArrayInput
- type GetAccountVirtualNetworkRuleArrayOutput
- func (GetAccountVirtualNetworkRuleArrayOutput) ElementType() reflect.Type
- func (o GetAccountVirtualNetworkRuleArrayOutput) Index(i pulumi.IntInput) GetAccountVirtualNetworkRuleOutput
- func (o GetAccountVirtualNetworkRuleArrayOutput) ToGetAccountVirtualNetworkRuleArrayOutput() GetAccountVirtualNetworkRuleArrayOutput
- func (o GetAccountVirtualNetworkRuleArrayOutput) ToGetAccountVirtualNetworkRuleArrayOutputWithContext(ctx context.Context) GetAccountVirtualNetworkRuleArrayOutput
- type GetAccountVirtualNetworkRuleInput
- type GetAccountVirtualNetworkRuleOutput
- func (GetAccountVirtualNetworkRuleOutput) ElementType() reflect.Type
- func (o GetAccountVirtualNetworkRuleOutput) Id() pulumi.StringOutput
- func (o GetAccountVirtualNetworkRuleOutput) ToGetAccountVirtualNetworkRuleOutput() GetAccountVirtualNetworkRuleOutput
- func (o GetAccountVirtualNetworkRuleOutput) ToGetAccountVirtualNetworkRuleOutputWithContext(ctx context.Context) GetAccountVirtualNetworkRuleOutput
- type GremlinDatabase
- type GremlinDatabaseArgs
- type GremlinDatabaseState
- type GremlinGraph
- type GremlinGraphArgs
- type GremlinGraphConflictResolutionPolicy
- type GremlinGraphConflictResolutionPolicyArgs
- func (GremlinGraphConflictResolutionPolicyArgs) ElementType() reflect.Type
- func (i GremlinGraphConflictResolutionPolicyArgs) ToGremlinGraphConflictResolutionPolicyOutput() GremlinGraphConflictResolutionPolicyOutput
- func (i GremlinGraphConflictResolutionPolicyArgs) ToGremlinGraphConflictResolutionPolicyOutputWithContext(ctx context.Context) GremlinGraphConflictResolutionPolicyOutput
- type GremlinGraphConflictResolutionPolicyArray
- func (GremlinGraphConflictResolutionPolicyArray) ElementType() reflect.Type
- func (i GremlinGraphConflictResolutionPolicyArray) ToGremlinGraphConflictResolutionPolicyArrayOutput() GremlinGraphConflictResolutionPolicyArrayOutput
- func (i GremlinGraphConflictResolutionPolicyArray) ToGremlinGraphConflictResolutionPolicyArrayOutputWithContext(ctx context.Context) GremlinGraphConflictResolutionPolicyArrayOutput
- type GremlinGraphConflictResolutionPolicyArrayInput
- type GremlinGraphConflictResolutionPolicyArrayOutput
- func (GremlinGraphConflictResolutionPolicyArrayOutput) ElementType() reflect.Type
- func (o GremlinGraphConflictResolutionPolicyArrayOutput) Index(i pulumi.IntInput) GremlinGraphConflictResolutionPolicyOutput
- func (o GremlinGraphConflictResolutionPolicyArrayOutput) ToGremlinGraphConflictResolutionPolicyArrayOutput() GremlinGraphConflictResolutionPolicyArrayOutput
- func (o GremlinGraphConflictResolutionPolicyArrayOutput) ToGremlinGraphConflictResolutionPolicyArrayOutputWithContext(ctx context.Context) GremlinGraphConflictResolutionPolicyArrayOutput
- type GremlinGraphConflictResolutionPolicyInput
- type GremlinGraphConflictResolutionPolicyOutput
- func (o GremlinGraphConflictResolutionPolicyOutput) ConflictResolutionPath() pulumi.StringPtrOutput
- func (o GremlinGraphConflictResolutionPolicyOutput) ConflictResolutionProcedure() pulumi.StringPtrOutput
- func (GremlinGraphConflictResolutionPolicyOutput) ElementType() reflect.Type
- func (o GremlinGraphConflictResolutionPolicyOutput) Mode() pulumi.StringOutput
- func (o GremlinGraphConflictResolutionPolicyOutput) ToGremlinGraphConflictResolutionPolicyOutput() GremlinGraphConflictResolutionPolicyOutput
- func (o GremlinGraphConflictResolutionPolicyOutput) ToGremlinGraphConflictResolutionPolicyOutputWithContext(ctx context.Context) GremlinGraphConflictResolutionPolicyOutput
- type GremlinGraphIndexPolicy
- type GremlinGraphIndexPolicyArgs
- type GremlinGraphIndexPolicyArray
- func (GremlinGraphIndexPolicyArray) ElementType() reflect.Type
- func (i GremlinGraphIndexPolicyArray) ToGremlinGraphIndexPolicyArrayOutput() GremlinGraphIndexPolicyArrayOutput
- func (i GremlinGraphIndexPolicyArray) ToGremlinGraphIndexPolicyArrayOutputWithContext(ctx context.Context) GremlinGraphIndexPolicyArrayOutput
- type GremlinGraphIndexPolicyArrayInput
- type GremlinGraphIndexPolicyArrayOutput
- func (GremlinGraphIndexPolicyArrayOutput) ElementType() reflect.Type
- func (o GremlinGraphIndexPolicyArrayOutput) Index(i pulumi.IntInput) GremlinGraphIndexPolicyOutput
- func (o GremlinGraphIndexPolicyArrayOutput) ToGremlinGraphIndexPolicyArrayOutput() GremlinGraphIndexPolicyArrayOutput
- func (o GremlinGraphIndexPolicyArrayOutput) ToGremlinGraphIndexPolicyArrayOutputWithContext(ctx context.Context) GremlinGraphIndexPolicyArrayOutput
- type GremlinGraphIndexPolicyInput
- type GremlinGraphIndexPolicyOutput
- func (o GremlinGraphIndexPolicyOutput) Automatic() pulumi.BoolPtrOutput
- func (GremlinGraphIndexPolicyOutput) ElementType() reflect.Type
- func (o GremlinGraphIndexPolicyOutput) ExcludedPaths() pulumi.StringArrayOutput
- func (o GremlinGraphIndexPolicyOutput) IncludedPaths() pulumi.StringArrayOutput
- func (o GremlinGraphIndexPolicyOutput) IndexingMode() pulumi.StringOutput
- func (o GremlinGraphIndexPolicyOutput) ToGremlinGraphIndexPolicyOutput() GremlinGraphIndexPolicyOutput
- func (o GremlinGraphIndexPolicyOutput) ToGremlinGraphIndexPolicyOutputWithContext(ctx context.Context) GremlinGraphIndexPolicyOutput
- type GremlinGraphState
- type GremlinGraphUniqueKey
- type GremlinGraphUniqueKeyArgs
- type GremlinGraphUniqueKeyArray
- func (GremlinGraphUniqueKeyArray) ElementType() reflect.Type
- func (i GremlinGraphUniqueKeyArray) ToGremlinGraphUniqueKeyArrayOutput() GremlinGraphUniqueKeyArrayOutput
- func (i GremlinGraphUniqueKeyArray) ToGremlinGraphUniqueKeyArrayOutputWithContext(ctx context.Context) GremlinGraphUniqueKeyArrayOutput
- type GremlinGraphUniqueKeyArrayInput
- type GremlinGraphUniqueKeyArrayOutput
- func (GremlinGraphUniqueKeyArrayOutput) ElementType() reflect.Type
- func (o GremlinGraphUniqueKeyArrayOutput) Index(i pulumi.IntInput) GremlinGraphUniqueKeyOutput
- func (o GremlinGraphUniqueKeyArrayOutput) ToGremlinGraphUniqueKeyArrayOutput() GremlinGraphUniqueKeyArrayOutput
- func (o GremlinGraphUniqueKeyArrayOutput) ToGremlinGraphUniqueKeyArrayOutputWithContext(ctx context.Context) GremlinGraphUniqueKeyArrayOutput
- type GremlinGraphUniqueKeyInput
- type GremlinGraphUniqueKeyOutput
- func (GremlinGraphUniqueKeyOutput) ElementType() reflect.Type
- func (o GremlinGraphUniqueKeyOutput) Paths() pulumi.StringArrayOutput
- func (o GremlinGraphUniqueKeyOutput) ToGremlinGraphUniqueKeyOutput() GremlinGraphUniqueKeyOutput
- func (o GremlinGraphUniqueKeyOutput) ToGremlinGraphUniqueKeyOutputWithContext(ctx context.Context) GremlinGraphUniqueKeyOutput
- type LookupAccountArgs
- type LookupAccountResult
- type MongoCollection
- type MongoCollectionArgs
- type MongoCollectionIndex
- type MongoCollectionIndexArgs
- type MongoCollectionIndexArray
- type MongoCollectionIndexArrayInput
- type MongoCollectionIndexArrayOutput
- func (MongoCollectionIndexArrayOutput) ElementType() reflect.Type
- func (o MongoCollectionIndexArrayOutput) Index(i pulumi.IntInput) MongoCollectionIndexOutput
- func (o MongoCollectionIndexArrayOutput) ToMongoCollectionIndexArrayOutput() MongoCollectionIndexArrayOutput
- func (o MongoCollectionIndexArrayOutput) ToMongoCollectionIndexArrayOutputWithContext(ctx context.Context) MongoCollectionIndexArrayOutput
- type MongoCollectionIndexInput
- type MongoCollectionIndexOutput
- func (MongoCollectionIndexOutput) ElementType() reflect.Type
- func (o MongoCollectionIndexOutput) Keys() pulumi.StringArrayOutput
- func (o MongoCollectionIndexOutput) ToMongoCollectionIndexOutput() MongoCollectionIndexOutput
- func (o MongoCollectionIndexOutput) ToMongoCollectionIndexOutputWithContext(ctx context.Context) MongoCollectionIndexOutput
- func (o MongoCollectionIndexOutput) Unique() pulumi.BoolPtrOutput
- type MongoCollectionState
- type MongoCollectionSystemIndex
- type MongoCollectionSystemIndexArgs
- func (MongoCollectionSystemIndexArgs) ElementType() reflect.Type
- func (i MongoCollectionSystemIndexArgs) ToMongoCollectionSystemIndexOutput() MongoCollectionSystemIndexOutput
- func (i MongoCollectionSystemIndexArgs) ToMongoCollectionSystemIndexOutputWithContext(ctx context.Context) MongoCollectionSystemIndexOutput
- type MongoCollectionSystemIndexArray
- func (MongoCollectionSystemIndexArray) ElementType() reflect.Type
- func (i MongoCollectionSystemIndexArray) ToMongoCollectionSystemIndexArrayOutput() MongoCollectionSystemIndexArrayOutput
- func (i MongoCollectionSystemIndexArray) ToMongoCollectionSystemIndexArrayOutputWithContext(ctx context.Context) MongoCollectionSystemIndexArrayOutput
- type MongoCollectionSystemIndexArrayInput
- type MongoCollectionSystemIndexArrayOutput
- func (MongoCollectionSystemIndexArrayOutput) ElementType() reflect.Type
- func (o MongoCollectionSystemIndexArrayOutput) Index(i pulumi.IntInput) MongoCollectionSystemIndexOutput
- func (o MongoCollectionSystemIndexArrayOutput) ToMongoCollectionSystemIndexArrayOutput() MongoCollectionSystemIndexArrayOutput
- func (o MongoCollectionSystemIndexArrayOutput) ToMongoCollectionSystemIndexArrayOutputWithContext(ctx context.Context) MongoCollectionSystemIndexArrayOutput
- type MongoCollectionSystemIndexInput
- type MongoCollectionSystemIndexOutput
- func (MongoCollectionSystemIndexOutput) ElementType() reflect.Type
- func (o MongoCollectionSystemIndexOutput) Keys() pulumi.StringArrayOutput
- func (o MongoCollectionSystemIndexOutput) ToMongoCollectionSystemIndexOutput() MongoCollectionSystemIndexOutput
- func (o MongoCollectionSystemIndexOutput) ToMongoCollectionSystemIndexOutputWithContext(ctx context.Context) MongoCollectionSystemIndexOutput
- func (o MongoCollectionSystemIndexOutput) Unique() pulumi.BoolPtrOutput
- type MongoDatabase
- type MongoDatabaseArgs
- type MongoDatabaseState
- type SqlContainer
- type SqlContainerArgs
- type SqlContainerState
- type SqlContainerUniqueKey
- type SqlContainerUniqueKeyArgs
- type SqlContainerUniqueKeyArray
- func (SqlContainerUniqueKeyArray) ElementType() reflect.Type
- func (i SqlContainerUniqueKeyArray) ToSqlContainerUniqueKeyArrayOutput() SqlContainerUniqueKeyArrayOutput
- func (i SqlContainerUniqueKeyArray) ToSqlContainerUniqueKeyArrayOutputWithContext(ctx context.Context) SqlContainerUniqueKeyArrayOutput
- type SqlContainerUniqueKeyArrayInput
- type SqlContainerUniqueKeyArrayOutput
- func (SqlContainerUniqueKeyArrayOutput) ElementType() reflect.Type
- func (o SqlContainerUniqueKeyArrayOutput) Index(i pulumi.IntInput) SqlContainerUniqueKeyOutput
- func (o SqlContainerUniqueKeyArrayOutput) ToSqlContainerUniqueKeyArrayOutput() SqlContainerUniqueKeyArrayOutput
- func (o SqlContainerUniqueKeyArrayOutput) ToSqlContainerUniqueKeyArrayOutputWithContext(ctx context.Context) SqlContainerUniqueKeyArrayOutput
- type SqlContainerUniqueKeyInput
- type SqlContainerUniqueKeyOutput
- func (SqlContainerUniqueKeyOutput) ElementType() reflect.Type
- func (o SqlContainerUniqueKeyOutput) Paths() pulumi.StringArrayOutput
- func (o SqlContainerUniqueKeyOutput) ToSqlContainerUniqueKeyOutput() SqlContainerUniqueKeyOutput
- func (o SqlContainerUniqueKeyOutput) ToSqlContainerUniqueKeyOutputWithContext(ctx context.Context) SqlContainerUniqueKeyOutput
- type SqlDatabase
- type SqlDatabaseArgs
- type SqlDatabaseState
- type Table
- type TableArgs
- type TableState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { pulumi.CustomResourceState // The capabilities which should be enabled for this Cosmos DB account. Possible values are `EnableAggregationPipeline`, `EnableCassandra`, `EnableGremlin`, `EnableTable`, `MongoDBv3.4`, and `mongoEnableDocLevelTTL`. Capabilities AccountCapabilityArrayOutput `pulumi:"capabilities"` // A list of connection strings available for this CosmosDB account. 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. GeoLocations AccountGeoLocationArrayOutput `pulumi:"geoLocations"` // CosmosDB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IP's for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces. IpRangeFilter pulumi.StringPtrOutput `pulumi:"ipRangeFilter"` // Enables virtual network filtering for this Cosmos DB account. IsVirtualNetworkFilterEnabled pulumi.BoolPtrOutput `pulumi:"isVirtualNetworkFilterEnabled"` // Specifies the Kind of CosmosDB to create - possible values are `GlobalDocumentDB` and `MongoDB`. Defaults to `GlobalDocumentDB`. Changing this forces a new resource to be created. Kind pulumi.StringPtrOutput `pulumi:"kind"` // 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. PrimaryMasterKey pulumi.StringOutput `pulumi:"primaryMasterKey"` // The Primary read-only master Key for the CosmosDB Account. PrimaryReadonlyMasterKey pulumi.StringOutput `pulumi:"primaryReadonlyMasterKey"` // A list of read endpoints available for this CosmosDB account. ReadEndpoints pulumi.StringArrayOutput `pulumi:"readEndpoints"` // The name of the resource group in which the CosmosDB Account is created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The Secondary master key for the CosmosDB Account. SecondaryMasterKey pulumi.StringOutput `pulumi:"secondaryMasterKey"` // The Secondary read-only master key for the CosmosDB Account. SecondaryReadonlyMasterKey pulumi.StringOutput `pulumi:"secondaryReadonlyMasterKey"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // Specifies a `virtualNetworkRules` resource, used to define which subnets are allowed to access this CosmosDB account. VirtualNetworkRules AccountVirtualNetworkRuleArrayOutput `pulumi:"virtualNetworkRules"` // A list of write endpoints available for this CosmosDB account. WriteEndpoints pulumi.StringArrayOutput `pulumi:"writeEndpoints"` }
Manages a CosmosDB (formally DocumentDB) Account.
## Example Usage
```go package main
import (
"fmt" "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.Any(_var.Resource_group_location), }) if err != nil { return err } ri, 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), 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{ Prefix: ri.Result.ApplyT(func(result int) (string, error) { return fmt.Sprintf("%v%v%v", "tfex-cosmos-db-", result, "-customid"), nil }).(pulumi.StringOutput), Location: rg.Location, FailoverPriority: pulumi.Int(0), }, }, }) if err != nil { return err } return nil }) }
```
func GetAccount ¶
func GetAccount(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AccountState, opts ...pulumi.ResourceOption) (*Account, error)
GetAccount gets an existing Account resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAccount ¶
func NewAccount(ctx *pulumi.Context, name string, args *AccountArgs, opts ...pulumi.ResourceOption) (*Account, error)
NewAccount registers a new resource with the given unique name, arguments, and options.
type AccountArgs ¶
type AccountArgs struct { // The capabilities which should be enabled for this Cosmos DB account. Possible values are `EnableAggregationPipeline`, `EnableCassandra`, `EnableGremlin`, `EnableTable`, `MongoDBv3.4`, and `mongoEnableDocLevelTTL`. Capabilities AccountCapabilityArrayInput // Specifies a `consistencyPolicy` resource, used to define the consistency policy for this CosmosDB account. ConsistencyPolicy AccountConsistencyPolicyInput // Enable automatic fail over for this Cosmos DB account. EnableAutomaticFailover pulumi.BoolPtrInput // Enable 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. GeoLocations AccountGeoLocationArrayInput // CosmosDB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IP's for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces. IpRangeFilter pulumi.StringPtrInput // Enables virtual network filtering for this Cosmos DB account. IsVirtualNetworkFilterEnabled pulumi.BoolPtrInput // Specifies the Kind of CosmosDB to create - possible values are `GlobalDocumentDB` and `MongoDB`. Defaults to `GlobalDocumentDB`. Changing this forces a new resource to be created. Kind pulumi.StringPtrInput // 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 // 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 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) ElementType() reflect.Type
func (AccountCapabilityArrayOutput) Index ¶
func (o AccountCapabilityArrayOutput) Index(i pulumi.IntInput) AccountCapabilityOutput
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 ¶
func (o AccountCapabilityOutput) Name() pulumi.StringOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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
func AccountConsistencyPolicyPtr ¶
func AccountConsistencyPolicyPtr(v *AccountConsistencyPolicyArgs) AccountConsistencyPolicyPtrInput
type AccountConsistencyPolicyPtrOutput ¶
type AccountConsistencyPolicyPtrOutput struct{ *pulumi.OutputState }
func (AccountConsistencyPolicyPtrOutput) ConsistencyLevel ¶
func (o AccountConsistencyPolicyPtrOutput) ConsistencyLevel() pulumi.StringPtrOutput
The Consistency Level to use for this CosmosDB Account - can be either `BoundedStaleness`, `Eventual`, `Session`, `Strong` or `ConsistentPrefix`.
func (AccountConsistencyPolicyPtrOutput) Elem ¶
func (o AccountConsistencyPolicyPtrOutput) Elem() AccountConsistencyPolicyOutput
func (AccountConsistencyPolicyPtrOutput) ElementType ¶
func (AccountConsistencyPolicyPtrOutput) ElementType() reflect.Type
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"` }
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"` }
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) ElementType() reflect.Type
func (AccountGeoLocationArrayOutput) Index ¶
func (o AccountGeoLocationArrayOutput) Index(i pulumi.IntInput) AccountGeoLocationOutput
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 ¶
func (o AccountGeoLocationOutput) Id() pulumi.StringPtrOutput
The ID of the virtual network subnet.
func (AccountGeoLocationOutput) Location ¶
func (o AccountGeoLocationOutput) Location() pulumi.StringOutput
The name of the Azure region to host replicated data.
func (AccountGeoLocationOutput) Prefix
deprecated
func (o AccountGeoLocationOutput) Prefix() pulumi.StringPtrOutput
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
type AccountState ¶
type AccountState struct { // The capabilities which should be enabled for this Cosmos DB account. Possible values are `EnableAggregationPipeline`, `EnableCassandra`, `EnableGremlin`, `EnableTable`, `MongoDBv3.4`, and `mongoEnableDocLevelTTL`. Capabilities AccountCapabilityArrayInput // A list of connection strings available for this CosmosDB account. 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. GeoLocations AccountGeoLocationArrayInput // CosmosDB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IP's for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces. IpRangeFilter pulumi.StringPtrInput // Enables virtual network filtering for this Cosmos DB account. IsVirtualNetworkFilterEnabled pulumi.BoolPtrInput // Specifies the Kind of CosmosDB to create - possible values are `GlobalDocumentDB` and `MongoDB`. Defaults to `GlobalDocumentDB`. Changing this forces a new resource to be created. Kind pulumi.StringPtrInput // 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. PrimaryMasterKey pulumi.StringPtrInput // The Primary read-only master Key for the CosmosDB Account. PrimaryReadonlyMasterKey pulumi.StringPtrInput // A list of read endpoints available for this CosmosDB account. ReadEndpoints pulumi.StringArrayInput // The name of the resource group in which the CosmosDB Account is created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The Secondary master key for the CosmosDB Account. SecondaryMasterKey pulumi.StringPtrInput // The Secondary read-only master key for the CosmosDB Account. SecondaryReadonlyMasterKey pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Specifies a `virtualNetworkRules` resource, used to define which subnets are allowed to access this CosmosDB account. VirtualNetworkRules AccountVirtualNetworkRuleArrayInput // A list of write endpoints available for this CosmosDB account. WriteEndpoints pulumi.StringArrayInput }
func (AccountState) ElementType ¶
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (AccountVirtualNetworkRuleArrayOutput) Index ¶
func (o AccountVirtualNetworkRuleArrayOutput) Index(i pulumi.IntInput) AccountVirtualNetworkRuleOutput
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) ElementType() reflect.Type
func (AccountVirtualNetworkRuleOutput) Id ¶
func (o AccountVirtualNetworkRuleOutput) Id() pulumi.StringOutput
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"` // 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 }) }
```
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.
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 // 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 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 // 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 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) ElementType() reflect.Type
func (GetAccountCapabilityArrayOutput) Index ¶
func (o GetAccountCapabilityArrayOutput) Index(i pulumi.IntInput) GetAccountCapabilityOutput
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 ¶
func (o GetAccountCapabilityOutput) Name() pulumi.StringOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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 ¶
func (o GetAccountConsistencyPolicyOutput) ConsistencyLevel() pulumi.StringOutput
The Consistency Level used by this CosmosDB Account.
func (GetAccountConsistencyPolicyOutput) ElementType ¶
func (GetAccountConsistencyPolicyOutput) ElementType() reflect.Type
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 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) ElementType() reflect.Type
func (GetAccountGeoLocationArrayOutput) Index ¶
func (o GetAccountGeoLocationArrayOutput) Index(i pulumi.IntInput) GetAccountGeoLocationOutput
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) ElementType() reflect.Type
func (GetAccountGeoLocationOutput) FailoverPriority ¶
func (o GetAccountGeoLocationOutput) FailoverPriority() pulumi.IntOutput
func (GetAccountGeoLocationOutput) Id ¶
func (o GetAccountGeoLocationOutput) Id() pulumi.StringOutput
The ID of the virtual network subnet.
func (GetAccountGeoLocationOutput) Location ¶
func (o GetAccountGeoLocationOutput) Location() pulumi.StringOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (GetAccountVirtualNetworkRuleOutput) Id ¶
func (o GetAccountVirtualNetworkRuleOutput) Id() pulumi.StringOutput
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"` // 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 }) }
```
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.
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 // 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 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 // 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"` // The conflict resolution policy for the graph. One or more `conflictResolutionPolicy` blocks as defined below. Changing this forces a new resource to be created. ConflictResolutionPolicies GremlinGraphConflictResolutionPolicyArrayOutput `pulumi:"conflictResolutionPolicies"` // The name of the Cosmos DB Graph Database in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created. DatabaseName pulumi.StringOutput `pulumi:"databaseName"` // The configuration of the indexing policy. One or more `indexPolicy` blocks as defined below. Changing this forces a new resource to be created. IndexPolicies GremlinGraphIndexPolicyArrayOutput `pulumi:"indexPolicies"` // Specifies the name of the Cosmos DB Gremlin Graph. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Define a partition key. Changing this forces a new resource to be created. PartitionKeyPath pulumi.StringPtrOutput `pulumi:"partitionKeyPath"` // The name of the resource group in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // 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"` // 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.
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.
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 // The conflict resolution policy for the graph. One or more `conflictResolutionPolicy` blocks as defined below. Changing this forces a new resource to be created. ConflictResolutionPolicies GremlinGraphConflictResolutionPolicyArrayInput // The name of the Cosmos DB Graph Database in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created. DatabaseName pulumi.StringInput // The configuration of the indexing policy. One or more `indexPolicy` blocks as defined below. Changing this forces a new resource to be created. IndexPolicies GremlinGraphIndexPolicyArrayInput // Specifies the name of the Cosmos DB Gremlin Graph. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Define a partition key. Changing this forces a new resource to be created. PartitionKeyPath pulumi.StringPtrInput // The name of the resource group in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // 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 // 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 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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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 ¶
func (o GremlinGraphConflictResolutionPolicyOutput) ConflictResolutionPath() pulumi.StringPtrOutput
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) ElementType() reflect.Type
func (GremlinGraphConflictResolutionPolicyOutput) Mode ¶
func (o GremlinGraphConflictResolutionPolicyOutput) Mode() pulumi.StringOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (GremlinGraphIndexPolicyArrayOutput) Index ¶
func (o GremlinGraphIndexPolicyArrayOutput) Index(i pulumi.IntInput) GremlinGraphIndexPolicyOutput
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 ¶
func (o GremlinGraphIndexPolicyOutput) Automatic() pulumi.BoolPtrOutput
Indicates if the indexing policy is automatic. Defaults to `true`.
func (GremlinGraphIndexPolicyOutput) ElementType ¶
func (GremlinGraphIndexPolicyOutput) ElementType() reflect.Type
func (GremlinGraphIndexPolicyOutput) ExcludedPaths ¶
func (o GremlinGraphIndexPolicyOutput) ExcludedPaths() pulumi.StringArrayOutput
List of paths to exclude from indexing. Required if `indexingMode` is `Consistent` or `Lazy`.
func (GremlinGraphIndexPolicyOutput) IncludedPaths ¶
func (o GremlinGraphIndexPolicyOutput) IncludedPaths() pulumi.StringArrayOutput
List of paths to include in the indexing. Required if `indexingMode` is `Consistent` or `Lazy`.
func (GremlinGraphIndexPolicyOutput) IndexingMode ¶
func (o GremlinGraphIndexPolicyOutput) IndexingMode() pulumi.StringOutput
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 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 // The conflict resolution policy for the graph. One or more `conflictResolutionPolicy` blocks as defined below. Changing this forces a new resource to be created. ConflictResolutionPolicies GremlinGraphConflictResolutionPolicyArrayInput // The name of the Cosmos DB Graph Database in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created. DatabaseName pulumi.StringPtrInput // The configuration of the indexing policy. One or more `indexPolicy` blocks as defined below. Changing this forces a new resource to be created. IndexPolicies GremlinGraphIndexPolicyArrayInput // Specifies the name of the Cosmos DB Gremlin Graph. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Define a partition key. Changing this forces a new resource to be created. PartitionKeyPath pulumi.StringPtrInput // The name of the resource group in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // 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 // 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) ElementType() reflect.Type
func (GremlinGraphUniqueKeyArrayOutput) Index ¶
func (o GremlinGraphUniqueKeyArrayOutput) Index(i pulumi.IntInput) GremlinGraphUniqueKeyOutput
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) ElementType() reflect.Type
func (GremlinGraphUniqueKeyOutput) Paths ¶
func (o GremlinGraphUniqueKeyOutput) Paths() pulumi.StringArrayOutput
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 Kind of the CosmosDB account. Kind string `pulumi:"kind"` // The name of the Azure region hosting replicated data. Location string `pulumi:"location"` Name string `pulumi:"name"` // The Offer Type to used by this CosmosDB Account. OfferType string `pulumi:"offerType"` // The Primary master key for the CosmosDB Account. PrimaryMasterKey string `pulumi:"primaryMasterKey"` // The Primary read-only master Key for the CosmosDB Account. PrimaryReadonlyMasterKey string `pulumi:"primaryReadonlyMasterKey"` // A list of read endpoints available for this CosmosDB account. ReadEndpoints []string `pulumi:"readEndpoints"` ResourceGroupName string `pulumi:"resourceGroupName"` // The Secondary master key for the CosmosDB Account. SecondaryMasterKey string `pulumi:"secondaryMasterKey"` // The Secondary read-only master key for the CosmosDB Account. SecondaryReadonlyMasterKey string `pulumi:"secondaryReadonlyMasterKey"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` // Subnets that are allowed to access this CosmosDB account. VirtualNetworkRules []GetAccountVirtualNetworkRule `pulumi:"virtualNetworkRules"` // A list of write endpoints available for this CosmosDB account. WriteEndpoints []string `pulumi:"writeEndpoints"` }
A collection of values returned by getAccount.
func LookupAccount ¶
func LookupAccount(ctx *pulumi.Context, args *LookupAccountArgs, opts ...pulumi.InvokeOption) (*LookupAccountResult, error)
Use this data source to access information about an existing CosmosDB (formally DocumentDB) Account.
## 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"` // 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 resource 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 }) }
```
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.
type MongoCollectionArgs ¶
type MongoCollectionArgs struct { AccountName pulumi.StringInput // The name of the Cosmos DB Mongo Database in which the Cosmos DB Mongo Collection is created. Changing this forces a new resource to be created. DatabaseName pulumi.StringInput // The default Time To Live in seconds. If the value is `-1` 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 resource destroy-apply. Throughput pulumi.IntPtrInput }
The set of arguments for constructing a MongoCollection resource.
func (MongoCollectionArgs) ElementType ¶
func (MongoCollectionArgs) ElementType() reflect.Type
type MongoCollectionIndex ¶ added in v3.2.0
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) ElementType() reflect.Type
func (MongoCollectionIndexArrayOutput) Index ¶ added in v3.2.0
func (o MongoCollectionIndexArrayOutput) Index(i pulumi.IntInput) MongoCollectionIndexOutput
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
func (o MongoCollectionIndexOutput) Keys() pulumi.StringArrayOutput
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
func (o MongoCollectionIndexOutput) Unique() pulumi.BoolPtrOutput
Is the index unique or not? Defaults to `false`.
type MongoCollectionState ¶
type MongoCollectionState struct { AccountName pulumi.StringPtrInput // The name of the Cosmos DB Mongo Database in which the Cosmos DB Mongo Collection is created. Changing this forces a new resource to be created. DatabaseName pulumi.StringPtrInput // The default Time To Live in seconds. If the value is `-1` 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 resource destroy-apply. Throughput pulumi.IntPtrInput }
func (MongoCollectionState) ElementType ¶
func (MongoCollectionState) ElementType() reflect.Type
type MongoCollectionSystemIndex ¶ added in v3.2.0
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (MongoCollectionSystemIndexArrayOutput) Index ¶ added in v3.2.0
func (o MongoCollectionSystemIndexArrayOutput) Index(i pulumi.IntInput) MongoCollectionSystemIndexOutput
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) ElementType() reflect.Type
func (MongoCollectionSystemIndexOutput) Keys ¶ added in v3.2.0
func (o MongoCollectionSystemIndexOutput) Keys() pulumi.StringArrayOutput
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
func (o MongoCollectionSystemIndexOutput) Unique() pulumi.BoolPtrOutput
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"` // 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 }) }
```
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.
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 // 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 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 // 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"` // The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created. DatabaseName pulumi.StringOutput `pulumi:"databaseName"` // The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to `-1`, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number `n` – items will expire `n` seconds after their last modified time. DefaultTtl pulumi.IntOutput `pulumi:"defaultTtl"` // Specifies the name of the Cosmos DB SQL Database. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Define a partition key. Changing this forces a new resource to be created. PartitionKeyPath pulumi.StringPtrOutput `pulumi:"partitionKeyPath"` // The name of the resource group in which the Cosmos DB SQL Database is created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // 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"), Throughput: pulumi.Int(400), UniqueKeys: cosmosdb.SqlContainerUniqueKeyArray{ &cosmosdb.SqlContainerUniqueKeyArgs{ Paths: pulumi.StringArray{ pulumi.String("/definition/idlong"), pulumi.String("/definition/idshort"), }, }, }, }) if err != nil { return err } return nil }) }
```
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.
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 // The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created. DatabaseName pulumi.StringInput // The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to `-1`, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number `n` – items will expire `n` seconds after their last modified time. DefaultTtl pulumi.IntPtrInput // Specifies the name of the Cosmos DB SQL Database. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Define a partition key. Changing this forces a new resource to be created. PartitionKeyPath pulumi.StringPtrInput // The name of the resource group in which the Cosmos DB SQL Database is created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // 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 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 // The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created. DatabaseName pulumi.StringPtrInput // The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to `-1`, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number `n` – items will expire `n` seconds after their last modified time. DefaultTtl pulumi.IntPtrInput // Specifies the name of the Cosmos DB SQL Database. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Define a partition key. Changing this forces a new resource to be created. PartitionKeyPath pulumi.StringPtrInput // The name of the resource group in which the Cosmos DB SQL Database is created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // 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) ElementType() reflect.Type
func (SqlContainerUniqueKeyArrayOutput) Index ¶
func (o SqlContainerUniqueKeyArrayOutput) Index(i pulumi.IntInput) SqlContainerUniqueKeyOutput
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) ElementType() reflect.Type
func (SqlContainerUniqueKeyOutput) Paths ¶
func (o SqlContainerUniqueKeyOutput) Paths() pulumi.StringArrayOutput
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"` // 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"` // The throughput of SQL 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 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 }) }
```
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.
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 // 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 // The throughput of SQL 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 SqlDatabase resource.
func (SqlDatabaseArgs) ElementType ¶
func (SqlDatabaseArgs) ElementType() reflect.Type
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 // 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 // The throughput of SQL 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 (SqlDatabaseState) ElementType ¶
func (SqlDatabaseState) 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"` // 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 }) }
```
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).
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 // 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 ¶
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 // 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