azure-native.documentdb.Service
Explore with Pulumi AI
Properties for the database account. API Version: 2021-04-01-preview.
Example Usage
DataTransferServiceCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var service = new AzureNative.DocumentDB.Service("service", new()
{
AccountName = "ddb1",
InstanceCount = 1,
InstanceSize = "Cosmos.D4s",
ResourceGroupName = "rg1",
ServiceName = "DataTransfer",
ServiceType = "DataTransfer",
});
});
package main
import (
documentdb "github.com/pulumi/pulumi-azure-native-sdk/documentdb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := documentdb.NewService(ctx, "service", &documentdb.ServiceArgs{
AccountName: pulumi.String("ddb1"),
InstanceCount: pulumi.Int(1),
InstanceSize: pulumi.String("Cosmos.D4s"),
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("DataTransfer"),
ServiceType: pulumi.String("DataTransfer"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.documentdb.Service;
import com.pulumi.azurenative.documentdb.ServiceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var service = new Service("service", ServiceArgs.builder()
.accountName("ddb1")
.instanceCount(1)
.instanceSize("Cosmos.D4s")
.resourceGroupName("rg1")
.serviceName("DataTransfer")
.serviceType("DataTransfer")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
service = azure_native.documentdb.Service("service",
account_name="ddb1",
instance_count=1,
instance_size="Cosmos.D4s",
resource_group_name="rg1",
service_name="DataTransfer",
service_type="DataTransfer")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const service = new azure_native.documentdb.Service("service", {
accountName: "ddb1",
instanceCount: 1,
instanceSize: "Cosmos.D4s",
resourceGroupName: "rg1",
serviceName: "DataTransfer",
serviceType: "DataTransfer",
});
resources:
service:
type: azure-native:documentdb:Service
properties:
accountName: ddb1
instanceCount: 1
instanceSize: Cosmos.D4s
resourceGroupName: rg1
serviceName: DataTransfer
serviceType: DataTransfer
SqlDedicatedGatewayServiceCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var service = new AzureNative.DocumentDB.Service("service", new()
{
AccountName = "ddb1",
InstanceCount = 1,
InstanceSize = "Cosmos.D4s",
ResourceGroupName = "rg1",
ServiceName = "SqlDedicatedGateway",
ServiceType = "SqlDedicatedGateway",
});
});
package main
import (
documentdb "github.com/pulumi/pulumi-azure-native-sdk/documentdb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := documentdb.NewService(ctx, "service", &documentdb.ServiceArgs{
AccountName: pulumi.String("ddb1"),
InstanceCount: pulumi.Int(1),
InstanceSize: pulumi.String("Cosmos.D4s"),
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("SqlDedicatedGateway"),
ServiceType: pulumi.String("SqlDedicatedGateway"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.documentdb.Service;
import com.pulumi.azurenative.documentdb.ServiceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var service = new Service("service", ServiceArgs.builder()
.accountName("ddb1")
.instanceCount(1)
.instanceSize("Cosmos.D4s")
.resourceGroupName("rg1")
.serviceName("SqlDedicatedGateway")
.serviceType("SqlDedicatedGateway")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
service = azure_native.documentdb.Service("service",
account_name="ddb1",
instance_count=1,
instance_size="Cosmos.D4s",
resource_group_name="rg1",
service_name="SqlDedicatedGateway",
service_type="SqlDedicatedGateway")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const service = new azure_native.documentdb.Service("service", {
accountName: "ddb1",
instanceCount: 1,
instanceSize: "Cosmos.D4s",
resourceGroupName: "rg1",
serviceName: "SqlDedicatedGateway",
serviceType: "SqlDedicatedGateway",
});
resources:
service:
type: azure-native:documentdb:Service
properties:
accountName: ddb1
instanceCount: 1
instanceSize: Cosmos.D4s
resourceGroupName: rg1
serviceName: SqlDedicatedGateway
serviceType: SqlDedicatedGateway
Create Service Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);
@overload
def Service(resource_name: str,
args: ServiceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Service(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
instance_count: Optional[int] = None,
instance_size: Optional[Union[str, ServiceSize]] = None,
service_name: Optional[str] = None,
service_type: Optional[Union[str, ServiceType]] = None)
func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)
public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)
public Service(String name, ServiceArgs args)
public Service(String name, ServiceArgs args, CustomResourceOptions options)
type: azure-native:documentdb:Service
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleserviceResourceResourceFromDocumentdb = new AzureNative.Documentdb.Service("exampleserviceResourceResourceFromDocumentdb", new()
{
AccountName = "string",
ResourceGroupName = "string",
InstanceCount = 0,
InstanceSize = "string",
ServiceName = "string",
ServiceType = "string",
});
example, err := documentdb.NewService(ctx, "exampleserviceResourceResourceFromDocumentdb", &documentdb.ServiceArgs{
AccountName: "string",
ResourceGroupName: "string",
InstanceCount: 0,
InstanceSize: "string",
ServiceName: "string",
ServiceType: "string",
})
var exampleserviceResourceResourceFromDocumentdb = new Service("exampleserviceResourceResourceFromDocumentdb", ServiceArgs.builder()
.accountName("string")
.resourceGroupName("string")
.instanceCount(0)
.instanceSize("string")
.serviceName("string")
.serviceType("string")
.build());
exampleservice_resource_resource_from_documentdb = azure_native.documentdb.Service("exampleserviceResourceResourceFromDocumentdb",
account_name=string,
resource_group_name=string,
instance_count=0,
instance_size=string,
service_name=string,
service_type=string)
const exampleserviceResourceResourceFromDocumentdb = new azure_native.documentdb.Service("exampleserviceResourceResourceFromDocumentdb", {
accountName: "string",
resourceGroupName: "string",
instanceCount: 0,
instanceSize: "string",
serviceName: "string",
serviceType: "string",
});
type: azure-native:documentdb:Service
properties:
accountName: string
instanceCount: 0
instanceSize: string
resourceGroupName: string
serviceName: string
serviceType: string
Service Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Service resource accepts the following input properties:
- Account
Name string - Cosmos DB database account name.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Instance
Count int - Instance count for the service.
- Instance
Size string | Pulumi.Azure Native. Document DB. Service Size - Instance type for the service.
- Service
Name string - Cosmos DB service name.
- Service
Type string | Pulumi.Azure Native. Document DB. Service Type - ServiceType for the service.
- Account
Name string - Cosmos DB database account name.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Instance
Count int - Instance count for the service.
- Instance
Size string | ServiceSize - Instance type for the service.
- Service
Name string - Cosmos DB service name.
- Service
Type string | ServiceType - ServiceType for the service.
- account
Name String - Cosmos DB database account name.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- instance
Count Integer - Instance count for the service.
- instance
Size String | ServiceSize - Instance type for the service.
- service
Name String - Cosmos DB service name.
- service
Type String | ServiceType - ServiceType for the service.
- account
Name string - Cosmos DB database account name.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- instance
Count number - Instance count for the service.
- instance
Size string | ServiceSize - Instance type for the service.
- service
Name string - Cosmos DB service name.
- service
Type string | ServiceType - ServiceType for the service.
- account_
name str - Cosmos DB database account name.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- instance_
count int - Instance count for the service.
- instance_
size str | ServiceSize - Instance type for the service.
- service_
name str - Cosmos DB service name.
- service_
type str | ServiceType - ServiceType for the service.
- account
Name String - Cosmos DB database account name.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- instance
Count Number - Instance count for the service.
- instance
Size String | "Cosmos.D4s" | "Cosmos. D8s" | "Cosmos. D16s" - Instance type for the service.
- service
Name String - Cosmos DB service name.
- service
Type String | "SqlDedicated Gateway" | "Data Transfer" - ServiceType for the service.
Outputs
All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the database account.
- Properties
Pulumi.
Azure | Pulumi.Native. Document DB. Outputs. Data Transfer Service Resource Properties Response Azure Native. Document DB. Outputs. Sql Dedicated Gateway Service Resource Properties Response - Services response resource.
- Type string
- The type of Azure resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the database account.
- Properties
Data
Transfer | SqlService Resource Properties Response Dedicated Gateway Service Resource Properties Response - Services response resource.
- Type string
- The type of Azure resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the database account.
- properties
Data
Transfer | SqlService Resource Properties Response Dedicated Gateway Service Resource Properties Response - Services response resource.
- type String
- The type of Azure resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the database account.
- properties
Data
Transfer | SqlService Resource Properties Response Dedicated Gateway Service Resource Properties Response - Services response resource.
- type string
- The type of Azure resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the database account.
- properties
Data
Transfer | SqlService Resource Properties Response Dedicated Gateway Service Resource Properties Response - Services response resource.
- type str
- The type of Azure resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the database account.
- properties Property Map | Property Map
- Services response resource.
- type String
- The type of Azure resource.
Supporting Types
DataTransferRegionalServiceResourceResponse, DataTransferRegionalServiceResourceResponseArgs
DataTransferServiceResourcePropertiesResponse, DataTransferServiceResourcePropertiesResponseArgs
- Creation
Time string - Time of the last state change (ISO-8601 format).
- Locations
List<Pulumi.
Azure Native. Document DB. Inputs. Data Transfer Regional Service Resource Response> - An array that contains all of the locations for the service.
- Status string
- Describes the status of a service.
- Instance
Count int - Instance count for the service.
- Instance
Size string - Instance type for the service.
- Creation
Time string - Time of the last state change (ISO-8601 format).
- Locations
[]Data
Transfer Regional Service Resource Response - An array that contains all of the locations for the service.
- Status string
- Describes the status of a service.
- Instance
Count int - Instance count for the service.
- Instance
Size string - Instance type for the service.
- creation
Time String - Time of the last state change (ISO-8601 format).
- locations
List<Data
Transfer Regional Service Resource Response> - An array that contains all of the locations for the service.
- status String
- Describes the status of a service.
- instance
Count Integer - Instance count for the service.
- instance
Size String - Instance type for the service.
- creation
Time string - Time of the last state change (ISO-8601 format).
- locations
Data
Transfer Regional Service Resource Response[] - An array that contains all of the locations for the service.
- status string
- Describes the status of a service.
- instance
Count number - Instance count for the service.
- instance
Size string - Instance type for the service.
- creation_
time str - Time of the last state change (ISO-8601 format).
- locations
Sequence[Data
Transfer Regional Service Resource Response] - An array that contains all of the locations for the service.
- status str
- Describes the status of a service.
- instance_
count int - Instance count for the service.
- instance_
size str - Instance type for the service.
- creation
Time String - Time of the last state change (ISO-8601 format).
- locations List<Property Map>
- An array that contains all of the locations for the service.
- status String
- Describes the status of a service.
- instance
Count Number - Instance count for the service.
- instance
Size String - Instance type for the service.
ServiceSize, ServiceSizeArgs
- Cosmos_D4s
- Cosmos.D4s
- Cosmos_D8s
- Cosmos.D8s
- Cosmos_D16s
- Cosmos.D16s
- Service
Size_Cosmos_D4s - Cosmos.D4s
- Service
Size_Cosmos_D8s - Cosmos.D8s
- Service
Size_Cosmos_D16s - Cosmos.D16s
- Cosmos_D4s
- Cosmos.D4s
- Cosmos_D8s
- Cosmos.D8s
- Cosmos_D16s
- Cosmos.D16s
- Cosmos_D4s
- Cosmos.D4s
- Cosmos_D8s
- Cosmos.D8s
- Cosmos_D16s
- Cosmos.D16s
- COSMOS_D4S
- Cosmos.D4s
- COSMOS_D8S
- Cosmos.D8s
- COSMOS_D16S
- Cosmos.D16s
- "Cosmos.
D4s" - Cosmos.D4s
- "Cosmos.
D8s" - Cosmos.D8s
- "Cosmos.
D16s" - Cosmos.D16s
ServiceType, ServiceTypeArgs
- Sql
Dedicated Gateway - SqlDedicatedGateway
- Data
Transfer - DataTransfer
- Service
Type Sql Dedicated Gateway - SqlDedicatedGateway
- Service
Type Data Transfer - DataTransfer
- Sql
Dedicated Gateway - SqlDedicatedGateway
- Data
Transfer - DataTransfer
- Sql
Dedicated Gateway - SqlDedicatedGateway
- Data
Transfer - DataTransfer
- SQL_DEDICATED_GATEWAY
- SqlDedicatedGateway
- DATA_TRANSFER
- DataTransfer
- "Sql
Dedicated Gateway" - SqlDedicatedGateway
- "Data
Transfer" - DataTransfer
SqlDedicatedGatewayRegionalServiceResourceResponse, SqlDedicatedGatewayRegionalServiceResourceResponseArgs
- Location string
- The location name.
- Name string
- The regional service name.
- Sql
Dedicated stringGateway Endpoint - The regional endpoint for SqlDedicatedGateway.
- Status string
- Describes the status of a service.
- Location string
- The location name.
- Name string
- The regional service name.
- Sql
Dedicated stringGateway Endpoint - The regional endpoint for SqlDedicatedGateway.
- Status string
- Describes the status of a service.
- location String
- The location name.
- name String
- The regional service name.
- sql
Dedicated StringGateway Endpoint - The regional endpoint for SqlDedicatedGateway.
- status String
- Describes the status of a service.
- location string
- The location name.
- name string
- The regional service name.
- sql
Dedicated stringGateway Endpoint - The regional endpoint for SqlDedicatedGateway.
- status string
- Describes the status of a service.
- location str
- The location name.
- name str
- The regional service name.
- sql_
dedicated_ strgateway_ endpoint - The regional endpoint for SqlDedicatedGateway.
- status str
- Describes the status of a service.
- location String
- The location name.
- name String
- The regional service name.
- sql
Dedicated StringGateway Endpoint - The regional endpoint for SqlDedicatedGateway.
- status String
- Describes the status of a service.
SqlDedicatedGatewayServiceResourcePropertiesResponse, SqlDedicatedGatewayServiceResourcePropertiesResponseArgs
- Creation
Time string - Time of the last state change (ISO-8601 format).
- Locations
List<Pulumi.
Azure Native. Document DB. Inputs. Sql Dedicated Gateway Regional Service Resource Response> - An array that contains all of the locations for the service.
- Status string
- Describes the status of a service.
- Instance
Count int - Instance count for the service.
- Instance
Size string - Instance type for the service.
- Sql
Dedicated stringGateway Endpoint - SqlDedicatedGateway endpoint for the service.
- Creation
Time string - Time of the last state change (ISO-8601 format).
- Locations
[]Sql
Dedicated Gateway Regional Service Resource Response - An array that contains all of the locations for the service.
- Status string
- Describes the status of a service.
- Instance
Count int - Instance count for the service.
- Instance
Size string - Instance type for the service.
- Sql
Dedicated stringGateway Endpoint - SqlDedicatedGateway endpoint for the service.
- creation
Time String - Time of the last state change (ISO-8601 format).
- locations
List<Sql
Dedicated Gateway Regional Service Resource Response> - An array that contains all of the locations for the service.
- status String
- Describes the status of a service.
- instance
Count Integer - Instance count for the service.
- instance
Size String - Instance type for the service.
- sql
Dedicated StringGateway Endpoint - SqlDedicatedGateway endpoint for the service.
- creation
Time string - Time of the last state change (ISO-8601 format).
- locations
Sql
Dedicated Gateway Regional Service Resource Response[] - An array that contains all of the locations for the service.
- status string
- Describes the status of a service.
- instance
Count number - Instance count for the service.
- instance
Size string - Instance type for the service.
- sql
Dedicated stringGateway Endpoint - SqlDedicatedGateway endpoint for the service.
- creation_
time str - Time of the last state change (ISO-8601 format).
- locations
Sequence[Sql
Dedicated Gateway Regional Service Resource Response] - An array that contains all of the locations for the service.
- status str
- Describes the status of a service.
- instance_
count int - Instance count for the service.
- instance_
size str - Instance type for the service.
- sql_
dedicated_ strgateway_ endpoint - SqlDedicatedGateway endpoint for the service.
- creation
Time String - Time of the last state change (ISO-8601 format).
- locations List<Property Map>
- An array that contains all of the locations for the service.
- status String
- Describes the status of a service.
- instance
Count Number - Instance count for the service.
- instance
Size String - Instance type for the service.
- sql
Dedicated StringGateway Endpoint - SqlDedicatedGateway endpoint for the service.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:documentdb:Service SqlDedicatedGateway /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/services/SqlDedicatedGateway
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0