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 |
Deletes an AWS Resilience Hub application. This is a destructive action that can't be undone.
Synopsis
- data DeleteApp = DeleteApp' {
- clientToken :: Maybe Text
- forceDelete :: Maybe Bool
- appArn :: Text
- newDeleteApp :: Text -> DeleteApp
- deleteApp_clientToken :: Lens' DeleteApp (Maybe Text)
- deleteApp_forceDelete :: Lens' DeleteApp (Maybe Bool)
- deleteApp_appArn :: Lens' DeleteApp Text
- data DeleteAppResponse = DeleteAppResponse' {
- httpStatus :: Int
- appArn :: Text
- newDeleteAppResponse :: Int -> Text -> DeleteAppResponse
- deleteAppResponse_httpStatus :: Lens' DeleteAppResponse Int
- deleteAppResponse_appArn :: Lens' DeleteAppResponse Text
Creating a Request
See: newDeleteApp
smart constructor.
DeleteApp' | |
|
Instances
Create a value of DeleteApp
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:DeleteApp'
, deleteApp_clientToken
- Used for an idempotency token. A client token is a unique,
case-sensitive string of up to 64 ASCII characters. You should not reuse
the same client token for other API requests.
$sel:forceDelete:DeleteApp'
, deleteApp_forceDelete
- A boolean option to force the deletion of a Resilience Hub application.
DeleteApp
, deleteApp_appArn
- The Amazon Resource Name (ARN) of the application. The format for this
ARN is: arn:partition
:resiliencehub:region
:account
:app/app-id
.
For more information about ARNs, see
Amazon Resource Names (ARNs)
in the AWS General Reference.
Request Lenses
deleteApp_clientToken :: Lens' DeleteApp (Maybe Text) Source #
Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
deleteApp_forceDelete :: Lens' DeleteApp (Maybe Bool) Source #
A boolean option to force the deletion of a Resilience Hub application.
deleteApp_appArn :: Lens' DeleteApp Text Source #
The Amazon Resource Name (ARN) of the application. The format for this
ARN is: arn:partition
:resiliencehub:region
:account
:app/app-id
.
For more information about ARNs, see
Amazon Resource Names (ARNs)
in the AWS General Reference.
Destructuring the Response
data DeleteAppResponse Source #
See: newDeleteAppResponse
smart constructor.
DeleteAppResponse' | |
|
Instances
Create a value of DeleteAppResponse
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:httpStatus:DeleteAppResponse'
, deleteAppResponse_httpStatus
- The response's http status code.
DeleteApp
, deleteAppResponse_appArn
- The Amazon Resource Name (ARN) of the application. The format for this
ARN is: arn:partition
:resiliencehub:region
:account
:app/app-id
.
For more information about ARNs, see
Amazon Resource Names (ARNs)
in the AWS General Reference.
Response Lenses
deleteAppResponse_httpStatus :: Lens' DeleteAppResponse Int Source #
The response's http status code.
deleteAppResponse_appArn :: Lens' DeleteAppResponse Text Source #
The Amazon Resource Name (ARN) of the application. The format for this
ARN is: arn:partition
:resiliencehub:region
:account
:app/app-id
.
For more information about ARNs, see
Amazon Resource Names (ARNs)
in the AWS General Reference.