Try AWS Native preview for resources not in the classic version.
aws.directoryservice.ServiceRegion
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Manages a replicated Region and directory for Multi-Region replication. Multi-Region replication is only supported for the Enterprise Edition of AWS Managed Microsoft AD.
Create ServiceRegion Resource
new ServiceRegion(name: string, args: ServiceRegionArgs, opts?: CustomResourceOptions);
@overload
def ServiceRegion(resource_name: str,
opts: Optional[ResourceOptions] = None,
desired_number_of_domain_controllers: Optional[int] = None,
directory_id: Optional[str] = None,
region_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vpc_settings: Optional[ServiceRegionVpcSettingsArgs] = None)
@overload
def ServiceRegion(resource_name: str,
args: ServiceRegionArgs,
opts: Optional[ResourceOptions] = None)
func NewServiceRegion(ctx *Context, name string, args ServiceRegionArgs, opts ...ResourceOption) (*ServiceRegion, error)
public ServiceRegion(string name, ServiceRegionArgs args, CustomResourceOptions? opts = null)
public ServiceRegion(String name, ServiceRegionArgs args)
public ServiceRegion(String name, ServiceRegionArgs args, CustomResourceOptions options)
type: aws:directoryservice:ServiceRegion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceRegionArgs
- 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 ServiceRegionArgs
- 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 ServiceRegionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceRegionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceRegionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ServiceRegion Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ServiceRegion resource accepts the following input properties:
- Directory
Id string The identifier of the directory to which you want to add Region replication.
- Region
Name string The name of the Region where you want to add domain controllers for replication.
- Vpc
Settings ServiceRegion Vpc Settings VPC information in the replicated Region. Detailed below.
- Desired
Number intOf Domain Controllers The number of domain controllers desired in the replicated directory. Minimum value of
2
.- Dictionary<string, string>
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Directory
Id string The identifier of the directory to which you want to add Region replication.
- Region
Name string The name of the Region where you want to add domain controllers for replication.
- Vpc
Settings ServiceRegion Vpc Settings Args VPC information in the replicated Region. Detailed below.
- Desired
Number intOf Domain Controllers The number of domain controllers desired in the replicated directory. Minimum value of
2
.- map[string]string
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- directory
Id String The identifier of the directory to which you want to add Region replication.
- region
Name String The name of the Region where you want to add domain controllers for replication.
- vpc
Settings ServiceRegion Vpc Settings VPC information in the replicated Region. Detailed below.
- desired
Number IntegerOf Domain Controllers The number of domain controllers desired in the replicated directory. Minimum value of
2
.- Map<String,String>
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- directory
Id string The identifier of the directory to which you want to add Region replication.
- region
Name string The name of the Region where you want to add domain controllers for replication.
- vpc
Settings ServiceRegion Vpc Settings VPC information in the replicated Region. Detailed below.
- desired
Number numberOf Domain Controllers The number of domain controllers desired in the replicated directory. Minimum value of
2
.- {[key: string]: string}
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- directory_
id str The identifier of the directory to which you want to add Region replication.
- region_
name str The name of the Region where you want to add domain controllers for replication.
- vpc_
settings ServiceRegion Vpc Settings Args VPC information in the replicated Region. Detailed below.
- desired_
number_ intof_ domain_ controllers The number of domain controllers desired in the replicated directory. Minimum value of
2
.- Mapping[str, str]
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- directory
Id String The identifier of the directory to which you want to add Region replication.
- region
Name String The name of the Region where you want to add domain controllers for replication.
- vpc
Settings Property Map VPC information in the replicated Region. Detailed below.
- desired
Number NumberOf Domain Controllers The number of domain controllers desired in the replicated directory. Minimum value of
2
.- Map<String>
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceRegion resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- Id string
The provider-assigned unique ID for this managed resource.
- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- id String
The provider-assigned unique ID for this managed resource.
- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- id string
The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- id str
The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- id String
The provider-assigned unique ID for this managed resource.
- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
Look up Existing ServiceRegion Resource
Get an existing ServiceRegion resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ServiceRegionState, opts?: CustomResourceOptions): ServiceRegion
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
desired_number_of_domain_controllers: Optional[int] = None,
directory_id: Optional[str] = None,
region_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
vpc_settings: Optional[ServiceRegionVpcSettingsArgs] = None) -> ServiceRegion
func GetServiceRegion(ctx *Context, name string, id IDInput, state *ServiceRegionState, opts ...ResourceOption) (*ServiceRegion, error)
public static ServiceRegion Get(string name, Input<string> id, ServiceRegionState? state, CustomResourceOptions? opts = null)
public static ServiceRegion get(String name, Output<String> id, ServiceRegionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Desired
Number intOf Domain Controllers The number of domain controllers desired in the replicated directory. Minimum value of
2
.- Directory
Id string The identifier of the directory to which you want to add Region replication.
- Region
Name string The name of the Region where you want to add domain controllers for replication.
- Dictionary<string, string>
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- Vpc
Settings ServiceRegion Vpc Settings VPC information in the replicated Region. Detailed below.
- Desired
Number intOf Domain Controllers The number of domain controllers desired in the replicated directory. Minimum value of
2
.- Directory
Id string The identifier of the directory to which you want to add Region replication.
- Region
Name string The name of the Region where you want to add domain controllers for replication.
- map[string]string
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- Vpc
Settings ServiceRegion Vpc Settings Args VPC information in the replicated Region. Detailed below.
- desired
Number IntegerOf Domain Controllers The number of domain controllers desired in the replicated directory. Minimum value of
2
.- directory
Id String The identifier of the directory to which you want to add Region replication.
- region
Name String The name of the Region where you want to add domain controllers for replication.
- Map<String,String>
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- vpc
Settings ServiceRegion Vpc Settings VPC information in the replicated Region. Detailed below.
- desired
Number numberOf Domain Controllers The number of domain controllers desired in the replicated directory. Minimum value of
2
.- directory
Id string The identifier of the directory to which you want to add Region replication.
- region
Name string The name of the Region where you want to add domain controllers for replication.
- {[key: string]: string}
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- vpc
Settings ServiceRegion Vpc Settings VPC information in the replicated Region. Detailed below.
- desired_
number_ intof_ domain_ controllers The number of domain controllers desired in the replicated directory. Minimum value of
2
.- directory_
id str The identifier of the directory to which you want to add Region replication.
- region_
name str The name of the Region where you want to add domain controllers for replication.
- Mapping[str, str]
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- vpc_
settings ServiceRegion Vpc Settings Args VPC information in the replicated Region. Detailed below.
- desired
Number NumberOf Domain Controllers The number of domain controllers desired in the replicated directory. Minimum value of
2
.- directory
Id String The identifier of the directory to which you want to add Region replication.
- region
Name String The name of the Region where you want to add domain controllers for replication.
- Map<String>
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- vpc
Settings Property Map VPC information in the replicated Region. Detailed below.
Supporting Types
ServiceRegionVpcSettings, ServiceRegionVpcSettingsArgs
- subnet_
ids Sequence[str] The identifiers of the subnets for the directory servers.
- vpc_
id str The identifier of the VPC in which to create the directory.
Import
Using pulumi import
, import Replicated Regions using directory ID,Region name. For example:
$ pulumi import aws:directoryservice/serviceRegion:ServiceRegion example d-9267651497,us-east-2
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.