Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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, Refactor Spaces provisions a transit gateway in your account.
Synopsis
- data CreateEnvironment = CreateEnvironment' {
- clientToken :: Maybe Text
- description :: Maybe Text
- tags :: Maybe (Sensitive (HashMap Text Text))
- name :: Text
- networkFabricType :: NetworkFabricType
- newCreateEnvironment :: Text -> NetworkFabricType -> CreateEnvironment
- createEnvironment_clientToken :: Lens' CreateEnvironment (Maybe Text)
- createEnvironment_description :: Lens' CreateEnvironment (Maybe Text)
- createEnvironment_tags :: Lens' CreateEnvironment (Maybe (HashMap Text Text))
- createEnvironment_name :: Lens' CreateEnvironment Text
- createEnvironment_networkFabricType :: Lens' CreateEnvironment NetworkFabricType
- data CreateEnvironmentResponse = CreateEnvironmentResponse' {
- arn :: Maybe Text
- createdTime :: Maybe POSIX
- description :: Maybe Text
- environmentId :: Maybe Text
- lastUpdatedTime :: Maybe POSIX
- name :: Maybe Text
- networkFabricType :: Maybe NetworkFabricType
- ownerAccountId :: Maybe Text
- state :: Maybe EnvironmentState
- tags :: Maybe (Sensitive (HashMap Text Text))
- httpStatus :: Int
- newCreateEnvironmentResponse :: Int -> CreateEnvironmentResponse
- createEnvironmentResponse_arn :: Lens' CreateEnvironmentResponse (Maybe Text)
- createEnvironmentResponse_createdTime :: Lens' CreateEnvironmentResponse (Maybe UTCTime)
- createEnvironmentResponse_description :: Lens' CreateEnvironmentResponse (Maybe Text)
- createEnvironmentResponse_environmentId :: Lens' CreateEnvironmentResponse (Maybe Text)
- createEnvironmentResponse_lastUpdatedTime :: Lens' CreateEnvironmentResponse (Maybe UTCTime)
- createEnvironmentResponse_name :: Lens' CreateEnvironmentResponse (Maybe Text)
- createEnvironmentResponse_networkFabricType :: Lens' CreateEnvironmentResponse (Maybe NetworkFabricType)
- createEnvironmentResponse_ownerAccountId :: Lens' CreateEnvironmentResponse (Maybe Text)
- createEnvironmentResponse_state :: Lens' CreateEnvironmentResponse (Maybe EnvironmentState)
- createEnvironmentResponse_tags :: Lens' CreateEnvironmentResponse (Maybe (HashMap Text Text))
- createEnvironmentResponse_httpStatus :: Lens' CreateEnvironmentResponse Int
Creating a Request
data CreateEnvironment Source #
See: newCreateEnvironment
smart constructor.
CreateEnvironment' | |
|
Instances
Create a value of CreateEnvironment
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:clientToken:CreateEnvironment'
, createEnvironment_clientToken
- A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
CreateEnvironment
, createEnvironment_description
- The description of the environment.
CreateEnvironment
, createEnvironment_tags
- 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.
CreateEnvironment
, createEnvironment_name
- The name of the environment.
CreateEnvironment
, createEnvironment_networkFabricType
- The network fabric type of the environment.
Request Lenses
createEnvironment_clientToken :: Lens' CreateEnvironment (Maybe Text) Source #
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
createEnvironment_description :: Lens' CreateEnvironment (Maybe Text) Source #
The description of the environment.
createEnvironment_tags :: Lens' CreateEnvironment (Maybe (HashMap Text Text)) Source #
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.
createEnvironment_name :: Lens' CreateEnvironment Text Source #
The name of the environment.
createEnvironment_networkFabricType :: Lens' CreateEnvironment NetworkFabricType Source #
The network fabric type of the environment.
Destructuring the Response
data CreateEnvironmentResponse Source #
See: newCreateEnvironmentResponse
smart constructor.
CreateEnvironmentResponse' | |
|
Instances
newCreateEnvironmentResponse Source #
Create a value of CreateEnvironmentResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateEnvironmentResponse
, createEnvironmentResponse_arn
- The Amazon Resource Name (ARN) of the environment.
CreateEnvironmentResponse
, createEnvironmentResponse_createdTime
- A timestamp that indicates when the environment is created.
CreateEnvironment
, createEnvironmentResponse_description
- A description of the environment.
CreateEnvironmentResponse
, createEnvironmentResponse_environmentId
- The unique identifier of the environment.
CreateEnvironmentResponse
, createEnvironmentResponse_lastUpdatedTime
- A timestamp that indicates when the environment was last updated.
CreateEnvironment
, createEnvironmentResponse_name
- The name of the environment.
CreateEnvironment
, createEnvironmentResponse_networkFabricType
- The network fabric type of the environment.
CreateEnvironmentResponse
, createEnvironmentResponse_ownerAccountId
- The Amazon Web Services account ID of environment owner.
CreateEnvironmentResponse
, createEnvironmentResponse_state
- The current state of the environment.
CreateEnvironment
, createEnvironmentResponse_tags
- 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..
$sel:httpStatus:CreateEnvironmentResponse'
, createEnvironmentResponse_httpStatus
- The response's http status code.
Response Lenses
createEnvironmentResponse_arn :: Lens' CreateEnvironmentResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the environment.
createEnvironmentResponse_createdTime :: Lens' CreateEnvironmentResponse (Maybe UTCTime) Source #
A timestamp that indicates when the environment is created.
createEnvironmentResponse_description :: Lens' CreateEnvironmentResponse (Maybe Text) Source #
A description of the environment.
createEnvironmentResponse_environmentId :: Lens' CreateEnvironmentResponse (Maybe Text) Source #
The unique identifier of the environment.
createEnvironmentResponse_lastUpdatedTime :: Lens' CreateEnvironmentResponse (Maybe UTCTime) Source #
A timestamp that indicates when the environment was last updated.
createEnvironmentResponse_name :: Lens' CreateEnvironmentResponse (Maybe Text) Source #
The name of the environment.
createEnvironmentResponse_networkFabricType :: Lens' CreateEnvironmentResponse (Maybe NetworkFabricType) Source #
The network fabric type of the environment.
createEnvironmentResponse_ownerAccountId :: Lens' CreateEnvironmentResponse (Maybe Text) Source #
The Amazon Web Services account ID of environment owner.
createEnvironmentResponse_state :: Lens' CreateEnvironmentResponse (Maybe EnvironmentState) Source #
The current state of the environment.
createEnvironmentResponse_tags :: Lens' CreateEnvironmentResponse (Maybe (HashMap Text Text)) Source #
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..
createEnvironmentResponse_httpStatus :: Lens' CreateEnvironmentResponse Int Source #
The response's http status code.