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 |
Creates a data access policy for OpenSearch Serverless. Access policies limit access to collections and the resources within them, and allow a user to access that data irrespective of the access mechanism or network source. For more information, see Data access control for Amazon OpenSearch Serverless.
Synopsis
- data CreateAccessPolicy = CreateAccessPolicy' {
- clientToken :: Maybe Text
- description :: Maybe Text
- name :: Text
- policy :: Text
- type' :: AccessPolicyType
- newCreateAccessPolicy :: Text -> Text -> AccessPolicyType -> CreateAccessPolicy
- createAccessPolicy_clientToken :: Lens' CreateAccessPolicy (Maybe Text)
- createAccessPolicy_description :: Lens' CreateAccessPolicy (Maybe Text)
- createAccessPolicy_name :: Lens' CreateAccessPolicy Text
- createAccessPolicy_policy :: Lens' CreateAccessPolicy Text
- createAccessPolicy_type :: Lens' CreateAccessPolicy AccessPolicyType
- data CreateAccessPolicyResponse = CreateAccessPolicyResponse' {}
- newCreateAccessPolicyResponse :: Int -> CreateAccessPolicyResponse
- createAccessPolicyResponse_accessPolicyDetail :: Lens' CreateAccessPolicyResponse (Maybe AccessPolicyDetail)
- createAccessPolicyResponse_httpStatus :: Lens' CreateAccessPolicyResponse Int
Creating a Request
data CreateAccessPolicy Source #
See: newCreateAccessPolicy
smart constructor.
CreateAccessPolicy' | |
|
Instances
newCreateAccessPolicy Source #
:: Text | |
-> Text | |
-> AccessPolicyType | |
-> CreateAccessPolicy |
Create a value of CreateAccessPolicy
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:CreateAccessPolicy'
, createAccessPolicy_clientToken
- Unique, case-sensitive identifier to ensure idempotency of the request.
CreateAccessPolicy
, createAccessPolicy_description
- A description of the policy. Typically used to store information about
the permissions defined in the policy.
CreateAccessPolicy
, createAccessPolicy_name
- The name of the policy.
CreateAccessPolicy
, createAccessPolicy_policy
- The JSON policy document to use as the content for the policy.
CreateAccessPolicy
, createAccessPolicy_type
- The type of policy.
Request Lenses
createAccessPolicy_clientToken :: Lens' CreateAccessPolicy (Maybe Text) Source #
Unique, case-sensitive identifier to ensure idempotency of the request.
createAccessPolicy_description :: Lens' CreateAccessPolicy (Maybe Text) Source #
A description of the policy. Typically used to store information about the permissions defined in the policy.
createAccessPolicy_name :: Lens' CreateAccessPolicy Text Source #
The name of the policy.
createAccessPolicy_policy :: Lens' CreateAccessPolicy Text Source #
The JSON policy document to use as the content for the policy.
createAccessPolicy_type :: Lens' CreateAccessPolicy AccessPolicyType Source #
The type of policy.
Destructuring the Response
data CreateAccessPolicyResponse Source #
See: newCreateAccessPolicyResponse
smart constructor.
CreateAccessPolicyResponse' | |
|
Instances
newCreateAccessPolicyResponse Source #
Create a value of CreateAccessPolicyResponse
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:CreateAccessPolicyResponse'
, createAccessPolicyResponse_accessPolicyDetail
- Details about the created access policy.
$sel:httpStatus:CreateAccessPolicyResponse'
, createAccessPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
createAccessPolicyResponse_accessPolicyDetail :: Lens' CreateAccessPolicyResponse (Maybe AccessPolicyDetail) Source #
Details about the created access policy.
createAccessPolicyResponse_httpStatus :: Lens' CreateAccessPolicyResponse Int Source #
The response's http status code.