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 |
Delete the scope for an IPAM. You cannot delete the default scopes.
For more information, see Delete a scope in the Amazon VPC IPAM User Guide.
Synopsis
- data DeleteIpamScope = DeleteIpamScope' {
- dryRun :: Maybe Bool
- ipamScopeId :: Text
- newDeleteIpamScope :: Text -> DeleteIpamScope
- deleteIpamScope_dryRun :: Lens' DeleteIpamScope (Maybe Bool)
- deleteIpamScope_ipamScopeId :: Lens' DeleteIpamScope Text
- data DeleteIpamScopeResponse = DeleteIpamScopeResponse' {
- ipamScope :: Maybe IpamScope
- httpStatus :: Int
- newDeleteIpamScopeResponse :: Int -> DeleteIpamScopeResponse
- deleteIpamScopeResponse_ipamScope :: Lens' DeleteIpamScopeResponse (Maybe IpamScope)
- deleteIpamScopeResponse_httpStatus :: Lens' DeleteIpamScopeResponse Int
Creating a Request
data DeleteIpamScope Source #
See: newDeleteIpamScope
smart constructor.
DeleteIpamScope' | |
|
Instances
Create a value of DeleteIpamScope
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:dryRun:DeleteIpamScope'
, deleteIpamScope_dryRun
- A check for whether you have the required permissions for the action
without actually making the request and provides an error response. If
you have the required permissions, the error response is
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
DeleteIpamScope
, deleteIpamScope_ipamScopeId
- The ID of the scope to delete.
Request Lenses
deleteIpamScope_dryRun :: Lens' DeleteIpamScope (Maybe Bool) Source #
A check for whether you have the required permissions for the action
without actually making the request and provides an error response. If
you have the required permissions, the error response is
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
deleteIpamScope_ipamScopeId :: Lens' DeleteIpamScope Text Source #
The ID of the scope to delete.
Destructuring the Response
data DeleteIpamScopeResponse Source #
See: newDeleteIpamScopeResponse
smart constructor.
DeleteIpamScopeResponse' | |
|
Instances
newDeleteIpamScopeResponse Source #
Create a value of DeleteIpamScopeResponse
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:ipamScope:DeleteIpamScopeResponse'
, deleteIpamScopeResponse_ipamScope
- Information about the results of the deletion.
$sel:httpStatus:DeleteIpamScopeResponse'
, deleteIpamScopeResponse_httpStatus
- The response's http status code.
Response Lenses
deleteIpamScopeResponse_ipamScope :: Lens' DeleteIpamScopeResponse (Maybe IpamScope) Source #
Information about the results of the deletion.
deleteIpamScopeResponse_httpStatus :: Lens' DeleteIpamScopeResponse Int Source #
The response's http status code.