| 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.DeleteEnvironment
Description
Deletes an Amazon Web Services Migration Hub Refactor Spaces environment. Before you can delete an environment, you must first delete any applications and services within the environment.
Synopsis
- data DeleteEnvironment = DeleteEnvironment' {}
- newDeleteEnvironment :: Text -> DeleteEnvironment
- deleteEnvironment_environmentIdentifier :: Lens' DeleteEnvironment Text
- data DeleteEnvironmentResponse = DeleteEnvironmentResponse' {
- arn :: Maybe Text
- environmentId :: Maybe Text
- lastUpdatedTime :: Maybe POSIX
- name :: Maybe Text
- state :: Maybe EnvironmentState
- httpStatus :: Int
- newDeleteEnvironmentResponse :: Int -> DeleteEnvironmentResponse
- deleteEnvironmentResponse_arn :: Lens' DeleteEnvironmentResponse (Maybe Text)
- deleteEnvironmentResponse_environmentId :: Lens' DeleteEnvironmentResponse (Maybe Text)
- deleteEnvironmentResponse_lastUpdatedTime :: Lens' DeleteEnvironmentResponse (Maybe UTCTime)
- deleteEnvironmentResponse_name :: Lens' DeleteEnvironmentResponse (Maybe Text)
- deleteEnvironmentResponse_state :: Lens' DeleteEnvironmentResponse (Maybe EnvironmentState)
- deleteEnvironmentResponse_httpStatus :: Lens' DeleteEnvironmentResponse Int
Creating a Request
data DeleteEnvironment Source #
See: newDeleteEnvironment smart constructor.
Constructors
| DeleteEnvironment' | |
Fields
| |
Instances
Create a value of DeleteEnvironment 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:DeleteEnvironment', deleteEnvironment_environmentIdentifier - The ID of the environment.
Request Lenses
deleteEnvironment_environmentIdentifier :: Lens' DeleteEnvironment Text Source #
The ID of the environment.
Destructuring the Response
data DeleteEnvironmentResponse Source #
See: newDeleteEnvironmentResponse smart constructor.
Constructors
| DeleteEnvironmentResponse' | |
Fields
| |
Instances
newDeleteEnvironmentResponse Source #
Create a value of DeleteEnvironmentResponse 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:
DeleteEnvironmentResponse, deleteEnvironmentResponse_arn - The Amazon Resource Name (ARN) of the environment.
DeleteEnvironmentResponse, deleteEnvironmentResponse_environmentId - The unique identifier of the environment.
DeleteEnvironmentResponse, deleteEnvironmentResponse_lastUpdatedTime - A timestamp that indicates when the environment was last updated.
DeleteEnvironmentResponse, deleteEnvironmentResponse_name - The name of the environment.
DeleteEnvironmentResponse, deleteEnvironmentResponse_state - The current state of the environment.
$sel:httpStatus:DeleteEnvironmentResponse', deleteEnvironmentResponse_httpStatus - The response's http status code.
Response Lenses
deleteEnvironmentResponse_arn :: Lens' DeleteEnvironmentResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the environment.
deleteEnvironmentResponse_environmentId :: Lens' DeleteEnvironmentResponse (Maybe Text) Source #
The unique identifier of the environment.
deleteEnvironmentResponse_lastUpdatedTime :: Lens' DeleteEnvironmentResponse (Maybe UTCTime) Source #
A timestamp that indicates when the environment was last updated.
deleteEnvironmentResponse_name :: Lens' DeleteEnvironmentResponse (Maybe Text) Source #
The name of the environment.
deleteEnvironmentResponse_state :: Lens' DeleteEnvironmentResponse (Maybe EnvironmentState) Source #
The current state of the environment.
deleteEnvironmentResponse_httpStatus :: Lens' DeleteEnvironmentResponse Int Source #
The response's http status code.