| 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 |
Amazonka.MigrationHubReFactorSpaces.GetEnvironment
Description
Gets an Amazon Web Services Migration Hub Refactor Spaces environment.
Synopsis
- data GetEnvironment = GetEnvironment' {}
- newGetEnvironment :: Text -> GetEnvironment
- getEnvironment_environmentIdentifier :: Lens' GetEnvironment Text
- data GetEnvironmentResponse = GetEnvironmentResponse' {
- arn :: Maybe Text
- createdTime :: Maybe POSIX
- description :: Maybe Text
- environmentId :: Maybe Text
- error :: Maybe ErrorResponse
- lastUpdatedTime :: Maybe POSIX
- name :: Maybe Text
- networkFabricType :: Maybe NetworkFabricType
- ownerAccountId :: Maybe Text
- state :: Maybe EnvironmentState
- tags :: Maybe (Sensitive (HashMap Text Text))
- transitGatewayId :: Maybe Text
- httpStatus :: Int
- newGetEnvironmentResponse :: Int -> GetEnvironmentResponse
- getEnvironmentResponse_arn :: Lens' GetEnvironmentResponse (Maybe Text)
- getEnvironmentResponse_createdTime :: Lens' GetEnvironmentResponse (Maybe UTCTime)
- getEnvironmentResponse_description :: Lens' GetEnvironmentResponse (Maybe Text)
- getEnvironmentResponse_environmentId :: Lens' GetEnvironmentResponse (Maybe Text)
- getEnvironmentResponse_error :: Lens' GetEnvironmentResponse (Maybe ErrorResponse)
- getEnvironmentResponse_lastUpdatedTime :: Lens' GetEnvironmentResponse (Maybe UTCTime)
- getEnvironmentResponse_name :: Lens' GetEnvironmentResponse (Maybe Text)
- getEnvironmentResponse_networkFabricType :: Lens' GetEnvironmentResponse (Maybe NetworkFabricType)
- getEnvironmentResponse_ownerAccountId :: Lens' GetEnvironmentResponse (Maybe Text)
- getEnvironmentResponse_state :: Lens' GetEnvironmentResponse (Maybe EnvironmentState)
- getEnvironmentResponse_tags :: Lens' GetEnvironmentResponse (Maybe (HashMap Text Text))
- getEnvironmentResponse_transitGatewayId :: Lens' GetEnvironmentResponse (Maybe Text)
- getEnvironmentResponse_httpStatus :: Lens' GetEnvironmentResponse Int
Creating a Request
data GetEnvironment Source #
See: newGetEnvironment smart constructor.
Constructors
| GetEnvironment' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetEnvironment |
Create a value of GetEnvironment 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:environmentIdentifier:GetEnvironment', getEnvironment_environmentIdentifier - The ID of the environment.
Request Lenses
getEnvironment_environmentIdentifier :: Lens' GetEnvironment Text Source #
The ID of the environment.
Destructuring the Response
data GetEnvironmentResponse Source #
See: newGetEnvironmentResponse smart constructor.
Constructors
| GetEnvironmentResponse' | |
Fields
| |
Instances
newGetEnvironmentResponse Source #
Create a value of GetEnvironmentResponse 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:
GetEnvironmentResponse, getEnvironmentResponse_arn - The Amazon Resource Name (ARN) of the environment.
GetEnvironmentResponse, getEnvironmentResponse_createdTime - A timestamp that indicates when the environment is created.
GetEnvironmentResponse, getEnvironmentResponse_description - The description of the environment.
GetEnvironmentResponse, getEnvironmentResponse_environmentId - The unique identifier of the environment.
GetEnvironmentResponse, getEnvironmentResponse_error - Any error associated with the environment resource.
GetEnvironmentResponse, getEnvironmentResponse_lastUpdatedTime - A timestamp that indicates when the environment was last updated.
GetEnvironmentResponse, getEnvironmentResponse_name - The name of the environment.
GetEnvironmentResponse, getEnvironmentResponse_networkFabricType - The network fabric type of the environment.
GetEnvironmentResponse, getEnvironmentResponse_ownerAccountId - The Amazon Web Services account ID of the environment owner.
GetEnvironmentResponse, getEnvironmentResponse_state - The current state of the environment.
GetEnvironmentResponse, getEnvironmentResponse_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.
GetEnvironmentResponse, getEnvironmentResponse_transitGatewayId - The ID of the transit gateway set up by the environment.
$sel:httpStatus:GetEnvironmentResponse', getEnvironmentResponse_httpStatus - The response's http status code.
Response Lenses
getEnvironmentResponse_arn :: Lens' GetEnvironmentResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the environment.
getEnvironmentResponse_createdTime :: Lens' GetEnvironmentResponse (Maybe UTCTime) Source #
A timestamp that indicates when the environment is created.
getEnvironmentResponse_description :: Lens' GetEnvironmentResponse (Maybe Text) Source #
The description of the environment.
getEnvironmentResponse_environmentId :: Lens' GetEnvironmentResponse (Maybe Text) Source #
The unique identifier of the environment.
getEnvironmentResponse_error :: Lens' GetEnvironmentResponse (Maybe ErrorResponse) Source #
Any error associated with the environment resource.
getEnvironmentResponse_lastUpdatedTime :: Lens' GetEnvironmentResponse (Maybe UTCTime) Source #
A timestamp that indicates when the environment was last updated.
getEnvironmentResponse_name :: Lens' GetEnvironmentResponse (Maybe Text) Source #
The name of the environment.
getEnvironmentResponse_networkFabricType :: Lens' GetEnvironmentResponse (Maybe NetworkFabricType) Source #
The network fabric type of the environment.
getEnvironmentResponse_ownerAccountId :: Lens' GetEnvironmentResponse (Maybe Text) Source #
The Amazon Web Services account ID of the environment owner.
getEnvironmentResponse_state :: Lens' GetEnvironmentResponse (Maybe EnvironmentState) Source #
The current state of the environment.
getEnvironmentResponse_tags :: Lens' GetEnvironmentResponse (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.
getEnvironmentResponse_transitGatewayId :: Lens' GetEnvironmentResponse (Maybe Text) Source #
The ID of the transit gateway set up by the environment.
getEnvironmentResponse_httpStatus :: Lens' GetEnvironmentResponse Int Source #
The response's http status code.