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 access policy. For more information, see Data access control for Amazon OpenSearch Serverless.
Synopsis
- data UpdateAccessPolicy = UpdateAccessPolicy' {
- clientToken :: Maybe Text
- description :: Maybe Text
- policy :: Maybe Text
- name :: Text
- policyVersion :: Text
- type' :: AccessPolicyType
- newUpdateAccessPolicy :: Text -> Text -> AccessPolicyType -> UpdateAccessPolicy
- updateAccessPolicy_clientToken :: Lens' UpdateAccessPolicy (Maybe Text)
- updateAccessPolicy_description :: Lens' UpdateAccessPolicy (Maybe Text)
- updateAccessPolicy_policy :: Lens' UpdateAccessPolicy (Maybe Text)
- updateAccessPolicy_name :: Lens' UpdateAccessPolicy Text
- updateAccessPolicy_policyVersion :: Lens' UpdateAccessPolicy Text
- updateAccessPolicy_type :: Lens' UpdateAccessPolicy AccessPolicyType
- data UpdateAccessPolicyResponse = UpdateAccessPolicyResponse' {}
- newUpdateAccessPolicyResponse :: Int -> UpdateAccessPolicyResponse
- updateAccessPolicyResponse_accessPolicyDetail :: Lens' UpdateAccessPolicyResponse (Maybe AccessPolicyDetail)
- updateAccessPolicyResponse_httpStatus :: Lens' UpdateAccessPolicyResponse Int
Creating a Request
data UpdateAccessPolicy Source #
See: newUpdateAccessPolicy
smart constructor.
UpdateAccessPolicy' | |
|
Instances
newUpdateAccessPolicy Source #
:: Text | |
-> Text | |
-> AccessPolicyType | |
-> UpdateAccessPolicy |
Create a value of UpdateAccessPolicy
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:UpdateAccessPolicy'
, updateAccessPolicy_clientToken
- Unique, case-sensitive identifier to ensure idempotency of the request.
UpdateAccessPolicy
, updateAccessPolicy_description
- A description of the policy. Typically used to store information about
the permissions defined in the policy.
UpdateAccessPolicy
, updateAccessPolicy_policy
- The JSON policy document to use as the content for the policy.
UpdateAccessPolicy
, updateAccessPolicy_name
- The name of the policy.
UpdateAccessPolicy
, updateAccessPolicy_policyVersion
- The version of the policy being updated.
UpdateAccessPolicy
, updateAccessPolicy_type
- The type of policy.
Request Lenses
updateAccessPolicy_clientToken :: Lens' UpdateAccessPolicy (Maybe Text) Source #
Unique, case-sensitive identifier to ensure idempotency of the request.
updateAccessPolicy_description :: Lens' UpdateAccessPolicy (Maybe Text) Source #
A description of the policy. Typically used to store information about the permissions defined in the policy.
updateAccessPolicy_policy :: Lens' UpdateAccessPolicy (Maybe Text) Source #
The JSON policy document to use as the content for the policy.
updateAccessPolicy_name :: Lens' UpdateAccessPolicy Text Source #
The name of the policy.
updateAccessPolicy_policyVersion :: Lens' UpdateAccessPolicy Text Source #
The version of the policy being updated.
updateAccessPolicy_type :: Lens' UpdateAccessPolicy AccessPolicyType Source #
The type of policy.
Destructuring the Response
data UpdateAccessPolicyResponse Source #
See: newUpdateAccessPolicyResponse
smart constructor.
UpdateAccessPolicyResponse' | |
|
Instances
newUpdateAccessPolicyResponse Source #
Create a value of UpdateAccessPolicyResponse
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:accessPolicyDetail:UpdateAccessPolicyResponse'
, updateAccessPolicyResponse_accessPolicyDetail
- Details about the updated access policy.
$sel:httpStatus:UpdateAccessPolicyResponse'
, updateAccessPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
updateAccessPolicyResponse_accessPolicyDetail :: Lens' UpdateAccessPolicyResponse (Maybe AccessPolicyDetail) Source #
Details about the updated access policy.
updateAccessPolicyResponse_httpStatus :: Lens' UpdateAccessPolicyResponse Int Source #
The response's http status code.