Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Deletes a namespace from the current account. If the namespace still contains one or more services, the request fails.
Synopsis
- data DeleteNamespace = DeleteNamespace' {}
- newDeleteNamespace :: Text -> DeleteNamespace
- deleteNamespace_id :: Lens' DeleteNamespace Text
- data DeleteNamespaceResponse = DeleteNamespaceResponse' {
- operationId :: Maybe Text
- httpStatus :: Int
- newDeleteNamespaceResponse :: Int -> DeleteNamespaceResponse
- deleteNamespaceResponse_operationId :: Lens' DeleteNamespaceResponse (Maybe Text)
- deleteNamespaceResponse_httpStatus :: Lens' DeleteNamespaceResponse Int
Creating a Request
data DeleteNamespace Source #
See: newDeleteNamespace
smart constructor.
Instances
Create a value of DeleteNamespace
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:id:DeleteNamespace'
, deleteNamespace_id
- The ID of the namespace that you want to delete.
Request Lenses
deleteNamespace_id :: Lens' DeleteNamespace Text Source #
The ID of the namespace that you want to delete.
Destructuring the Response
data DeleteNamespaceResponse Source #
See: newDeleteNamespaceResponse
smart constructor.
DeleteNamespaceResponse' | |
|
Instances
newDeleteNamespaceResponse Source #
Create a value of DeleteNamespaceResponse
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:operationId:DeleteNamespaceResponse'
, deleteNamespaceResponse_operationId
- A value that you can use to determine whether the request completed
successfully. To get the status of the operation, see
GetOperation.
$sel:httpStatus:DeleteNamespaceResponse'
, deleteNamespaceResponse_httpStatus
- The response's http status code.
Response Lenses
deleteNamespaceResponse_operationId :: Lens' DeleteNamespaceResponse (Maybe Text) Source #
A value that you can use to determine whether the request completed successfully. To get the status of the operation, see GetOperation.
deleteNamespaceResponse_httpStatus :: Lens' DeleteNamespaceResponse Int Source #
The response's http status code.