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 |
Updates an OpenSearch Serverless security policy. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.
Synopsis
- data UpdateSecurityPolicy = UpdateSecurityPolicy' {
- clientToken :: Maybe Text
- description :: Maybe Text
- policy :: Maybe Text
- name :: Text
- policyVersion :: Text
- type' :: SecurityPolicyType
- newUpdateSecurityPolicy :: Text -> Text -> SecurityPolicyType -> UpdateSecurityPolicy
- updateSecurityPolicy_clientToken :: Lens' UpdateSecurityPolicy (Maybe Text)
- updateSecurityPolicy_description :: Lens' UpdateSecurityPolicy (Maybe Text)
- updateSecurityPolicy_policy :: Lens' UpdateSecurityPolicy (Maybe Text)
- updateSecurityPolicy_name :: Lens' UpdateSecurityPolicy Text
- updateSecurityPolicy_policyVersion :: Lens' UpdateSecurityPolicy Text
- updateSecurityPolicy_type :: Lens' UpdateSecurityPolicy SecurityPolicyType
- data UpdateSecurityPolicyResponse = UpdateSecurityPolicyResponse' {}
- newUpdateSecurityPolicyResponse :: Int -> UpdateSecurityPolicyResponse
- updateSecurityPolicyResponse_securityPolicyDetail :: Lens' UpdateSecurityPolicyResponse (Maybe SecurityPolicyDetail)
- updateSecurityPolicyResponse_httpStatus :: Lens' UpdateSecurityPolicyResponse Int
Creating a Request
data UpdateSecurityPolicy Source #
See: newUpdateSecurityPolicy
smart constructor.
UpdateSecurityPolicy' | |
|
Instances
newUpdateSecurityPolicy Source #
:: Text | |
-> Text | |
-> SecurityPolicyType | |
-> UpdateSecurityPolicy |
Create a value of UpdateSecurityPolicy
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:UpdateSecurityPolicy'
, updateSecurityPolicy_clientToken
- Unique, case-sensitive identifier to ensure idempotency of the request.
UpdateSecurityPolicy
, updateSecurityPolicy_description
- A description of the policy. Typically used to store information about
the permissions defined in the policy.
UpdateSecurityPolicy
, updateSecurityPolicy_policy
- The JSON policy document to use as the content for the new policy.
UpdateSecurityPolicy
, updateSecurityPolicy_name
- The name of the policy.
UpdateSecurityPolicy
, updateSecurityPolicy_policyVersion
- The version of the policy being updated.
UpdateSecurityPolicy
, updateSecurityPolicy_type
- The type of access policy.
Request Lenses
updateSecurityPolicy_clientToken :: Lens' UpdateSecurityPolicy (Maybe Text) Source #
Unique, case-sensitive identifier to ensure idempotency of the request.
updateSecurityPolicy_description :: Lens' UpdateSecurityPolicy (Maybe Text) Source #
A description of the policy. Typically used to store information about the permissions defined in the policy.
updateSecurityPolicy_policy :: Lens' UpdateSecurityPolicy (Maybe Text) Source #
The JSON policy document to use as the content for the new policy.
updateSecurityPolicy_name :: Lens' UpdateSecurityPolicy Text Source #
The name of the policy.
updateSecurityPolicy_policyVersion :: Lens' UpdateSecurityPolicy Text Source #
The version of the policy being updated.
updateSecurityPolicy_type :: Lens' UpdateSecurityPolicy SecurityPolicyType Source #
The type of access policy.
Destructuring the Response
data UpdateSecurityPolicyResponse Source #
See: newUpdateSecurityPolicyResponse
smart constructor.
UpdateSecurityPolicyResponse' | |
|
Instances
newUpdateSecurityPolicyResponse Source #
Create a value of UpdateSecurityPolicyResponse
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:securityPolicyDetail:UpdateSecurityPolicyResponse'
, updateSecurityPolicyResponse_securityPolicyDetail
- Details about the updated security policy.
$sel:httpStatus:UpdateSecurityPolicyResponse'
, updateSecurityPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
updateSecurityPolicyResponse_securityPolicyDetail :: Lens' UpdateSecurityPolicyResponse (Maybe SecurityPolicyDetail) Source #
Details about the updated security policy.
updateSecurityPolicyResponse_httpStatus :: Lens' UpdateSecurityPolicyResponse Int Source #
The response's http status code.