Skip to content

/AWS1/CL_MHR=>CREATEENVIRONMENT()

About CreateEnvironment

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 CreateEnvironment:NetworkFabricType of TRANSIT_GATEWAY, Refactor Spaces provisions a transit gateway to enable services in VPCs to communicate directly across accounts. If CreateEnvironment:NetworkFabricType is NONE, Refactor Spaces does not create a transit gateway and you must use your network infrastructure to route traffic to services with private URL endpoints.

Method Signature

IMPORTING

Required arguments:

IV_NAME TYPE /AWS1/MHRENVIRONMENTNAME /AWS1/MHRENVIRONMENTNAME

The name of the environment.

IV_NETWORKFABRICTYPE TYPE /AWS1/MHRNETWORKFABRICTYPE /AWS1/MHRNETWORKFABRICTYPE

The network fabric type of the environment.

Optional arguments:

IV_DESCRIPTION TYPE /AWS1/MHRDESCRIPTION /AWS1/MHRDESCRIPTION

The description of the environment.

IT_TAGS TYPE /AWS1/CL_MHRTAGMAP_W=>TT_TAGMAP TT_TAGMAP

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.

IV_CLIENTTOKEN TYPE /AWS1/MHRCLIENTTOKEN /AWS1/MHRCLIENTTOKEN

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_MHRCREENVIRONMENTRSP /AWS1/CL_MHRCREENVIRONMENTRSP