MigrationHubRefactorSpaces / Client / create_environment
create_environment#
- MigrationHubRefactorSpaces.Client.create_environment(**kwargs)#
Creates an Amazon Web Services Migration Hub Refactor Spaces environment. The caller owns the environment resource, and all Refactor Spaces applications, services, and routes created within the environment. They are referred to as the environment owner. The environment owner has cross-account visibility and control of Refactor Spaces resources that are added to the environment by other accounts that the environment is shared with.
When creating an environment with a network fabric type of
TRANSIT_GATEWAY
, Refactor Spaces provisions a transit gateway in your account.See also: AWS API Documentation
Request Syntax
response = client.create_environment( ClientToken='string', Description='string', Name='string', NetworkFabricType='TRANSIT_GATEWAY'|'NONE', Tags={ 'string': 'string' } )
- Parameters:
ClientToken (string) –
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
This field is autopopulated if not provided.
Description (string) – The description of the environment.
Name (string) –
[REQUIRED]
The name of the environment.
NetworkFabricType (string) –
[REQUIRED]
The network fabric type of the environment.
Tags (dict) –
The tags to assign to the environment. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.
(string) –
(string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'Arn': 'string', 'CreatedTime': datetime(2015, 1, 1), 'Description': 'string', 'EnvironmentId': 'string', 'LastUpdatedTime': datetime(2015, 1, 1), 'Name': 'string', 'NetworkFabricType': 'TRANSIT_GATEWAY'|'NONE', 'OwnerAccountId': 'string', 'State': 'CREATING'|'ACTIVE'|'DELETING'|'FAILED', 'Tags': { 'string': 'string' } }
Response Structure
(dict) –
Arn (string) –
The Amazon Resource Name (ARN) of the environment.
CreatedTime (datetime) –
A timestamp that indicates when the environment is created.
Description (string) –
A description of the environment.
EnvironmentId (string) –
The unique identifier of the environment.
LastUpdatedTime (datetime) –
A timestamp that indicates when the environment was last updated.
Name (string) –
The name of the environment.
NetworkFabricType (string) –
The network fabric type of the environment.
OwnerAccountId (string) –
The Amazon Web Services account ID of environment owner.
State (string) –
The current state of the environment.
Tags (dict) –
The tags assigned to the created environment. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair..
(string) –
(string) –
Exceptions
MigrationHubRefactorSpaces.Client.exceptions.ResourceNotFoundException
MigrationHubRefactorSpaces.Client.exceptions.InternalServerException
MigrationHubRefactorSpaces.Client.exceptions.ConflictException
MigrationHubRefactorSpaces.Client.exceptions.ServiceQuotaExceededException
MigrationHubRefactorSpaces.Client.exceptions.ValidationException
MigrationHubRefactorSpaces.Client.exceptions.ThrottlingException
MigrationHubRefactorSpaces.Client.exceptions.AccessDeniedException