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 OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.
Synopsis
- data DeleteAccessPolicy = DeleteAccessPolicy' {
- clientToken :: Maybe Text
- name :: Text
- type' :: AccessPolicyType
- newDeleteAccessPolicy :: Text -> AccessPolicyType -> DeleteAccessPolicy
- deleteAccessPolicy_clientToken :: Lens' DeleteAccessPolicy (Maybe Text)
- deleteAccessPolicy_name :: Lens' DeleteAccessPolicy Text
- deleteAccessPolicy_type :: Lens' DeleteAccessPolicy AccessPolicyType
- 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
- Unique, case-sensitive identifier to ensure idempotency of the request.
DeleteAccessPolicy
, deleteAccessPolicy_name
- The name of the policy to delete.
DeleteAccessPolicy
, deleteAccessPolicy_type
- The type of policy.
Request Lenses
deleteAccessPolicy_clientToken :: Lens' DeleteAccessPolicy (Maybe Text) Source #
Unique, case-sensitive identifier to ensure idempotency of the request.
deleteAccessPolicy_name :: Lens' DeleteAccessPolicy Text Source #
The name of the policy to delete.
deleteAccessPolicy_type :: Lens' DeleteAccessPolicy AccessPolicyType Source #
The type of policy.
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.