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 security policy.
Synopsis
- data DeleteSecurityPolicy = DeleteSecurityPolicy' {
- clientToken :: Maybe Text
- name :: Text
- type' :: SecurityPolicyType
- newDeleteSecurityPolicy :: Text -> SecurityPolicyType -> DeleteSecurityPolicy
- deleteSecurityPolicy_clientToken :: Lens' DeleteSecurityPolicy (Maybe Text)
- deleteSecurityPolicy_name :: Lens' DeleteSecurityPolicy Text
- deleteSecurityPolicy_type :: Lens' DeleteSecurityPolicy SecurityPolicyType
- data DeleteSecurityPolicyResponse = DeleteSecurityPolicyResponse' {
- httpStatus :: Int
- newDeleteSecurityPolicyResponse :: Int -> DeleteSecurityPolicyResponse
- deleteSecurityPolicyResponse_httpStatus :: Lens' DeleteSecurityPolicyResponse Int
Creating a Request
data DeleteSecurityPolicy Source #
See: newDeleteSecurityPolicy
smart constructor.
DeleteSecurityPolicy' | |
|
Instances
newDeleteSecurityPolicy Source #
Create a value of DeleteSecurityPolicy
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:DeleteSecurityPolicy'
, deleteSecurityPolicy_clientToken
- Unique, case-sensitive identifier to ensure idempotency of the request.
DeleteSecurityPolicy
, deleteSecurityPolicy_name
- The name of the policy to delete.
DeleteSecurityPolicy
, deleteSecurityPolicy_type
- The type of policy.
Request Lenses
deleteSecurityPolicy_clientToken :: Lens' DeleteSecurityPolicy (Maybe Text) Source #
Unique, case-sensitive identifier to ensure idempotency of the request.
deleteSecurityPolicy_name :: Lens' DeleteSecurityPolicy Text Source #
The name of the policy to delete.
deleteSecurityPolicy_type :: Lens' DeleteSecurityPolicy SecurityPolicyType Source #
The type of policy.
Destructuring the Response
data DeleteSecurityPolicyResponse Source #
See: newDeleteSecurityPolicyResponse
smart constructor.
DeleteSecurityPolicyResponse' | |
|
Instances
newDeleteSecurityPolicyResponse Source #
Create a value of DeleteSecurityPolicyResponse
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:DeleteSecurityPolicyResponse'
, deleteSecurityPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
deleteSecurityPolicyResponse_httpStatus :: Lens' DeleteSecurityPolicyResponse Int Source #
The response's http status code.