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 an access policy that grants the specified identity access to the specified IoT SiteWise Monitor resource. You can use this operation to revoke access to an IoT SiteWise Monitor resource.
Synopsis
- data DeleteAccessPolicy = DeleteAccessPolicy' {}
- newDeleteAccessPolicy :: Text -> DeleteAccessPolicy
- deleteAccessPolicy_clientToken :: Lens' DeleteAccessPolicy (Maybe Text)
- deleteAccessPolicy_accessPolicyId :: Lens' DeleteAccessPolicy Text
- data DeleteAccessPolicyResponse = DeleteAccessPolicyResponse' {
- httpStatus :: Int
- newDeleteAccessPolicyResponse :: Int -> DeleteAccessPolicyResponse
- deleteAccessPolicyResponse_httpStatus :: Lens' DeleteAccessPolicyResponse Int
Creating a Request
data DeleteAccessPolicy Source #
See: newDeleteAccessPolicy
smart constructor.
DeleteAccessPolicy' | |
|
Instances
newDeleteAccessPolicy Source #
Create a value of DeleteAccessPolicy
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:DeleteAccessPolicy'
, deleteAccessPolicy_clientToken
- A unique case-sensitive identifier that you can provide to ensure the
idempotency of the request. Don't reuse this client token if a new
idempotent request is required.
$sel:accessPolicyId:DeleteAccessPolicy'
, deleteAccessPolicy_accessPolicyId
- The ID of the access policy to be deleted.
Request Lenses
deleteAccessPolicy_clientToken :: Lens' DeleteAccessPolicy (Maybe Text) Source #
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
deleteAccessPolicy_accessPolicyId :: Lens' DeleteAccessPolicy Text Source #
The ID of the access policy to be deleted.
Destructuring the Response
data DeleteAccessPolicyResponse Source #
See: newDeleteAccessPolicyResponse
smart constructor.
DeleteAccessPolicyResponse' | |
|
Instances
newDeleteAccessPolicyResponse Source #
Create a value of DeleteAccessPolicyResponse
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:DeleteAccessPolicyResponse'
, deleteAccessPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
deleteAccessPolicyResponse_httpStatus :: Lens' DeleteAccessPolicyResponse Int Source #
The response's http status code.