| 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 |
Amazonka.OpenSearchServerless.CreateSecurityPolicy
Description
Creates a security policy to be used by one or more OpenSearch Serverless collections. Security policies provide access to a collection and its OpenSearch Dashboards endpoint from public networks or specific VPC endpoints. They also allow you to secure a collection with a KMS encryption key. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.
Synopsis
- data CreateSecurityPolicy = CreateSecurityPolicy' {
- clientToken :: Maybe Text
- description :: Maybe Text
- name :: Text
- policy :: Text
- type' :: SecurityPolicyType
- newCreateSecurityPolicy :: Text -> Text -> SecurityPolicyType -> CreateSecurityPolicy
- createSecurityPolicy_clientToken :: Lens' CreateSecurityPolicy (Maybe Text)
- createSecurityPolicy_description :: Lens' CreateSecurityPolicy (Maybe Text)
- createSecurityPolicy_name :: Lens' CreateSecurityPolicy Text
- createSecurityPolicy_policy :: Lens' CreateSecurityPolicy Text
- createSecurityPolicy_type :: Lens' CreateSecurityPolicy SecurityPolicyType
- data CreateSecurityPolicyResponse = CreateSecurityPolicyResponse' {}
- newCreateSecurityPolicyResponse :: Int -> CreateSecurityPolicyResponse
- createSecurityPolicyResponse_securityPolicyDetail :: Lens' CreateSecurityPolicyResponse (Maybe SecurityPolicyDetail)
- createSecurityPolicyResponse_httpStatus :: Lens' CreateSecurityPolicyResponse Int
Creating a Request
data CreateSecurityPolicy Source #
See: newCreateSecurityPolicy smart constructor.
Constructors
| CreateSecurityPolicy' | |
Fields
| |
Instances
newCreateSecurityPolicy Source #
Arguments
| :: Text | |
| -> Text | |
| -> SecurityPolicyType | |
| -> CreateSecurityPolicy |
Create a value of CreateSecurityPolicy 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:CreateSecurityPolicy', createSecurityPolicy_clientToken - Unique, case-sensitive identifier to ensure idempotency of the request.
CreateSecurityPolicy, createSecurityPolicy_description - A description of the policy. Typically used to store information about
the permissions defined in the policy.
CreateSecurityPolicy, createSecurityPolicy_name - The name of the policy.
CreateSecurityPolicy, createSecurityPolicy_policy - The JSON policy document to use as the content for the new policy.
CreateSecurityPolicy, createSecurityPolicy_type - The type of security policy.
Request Lenses
createSecurityPolicy_clientToken :: Lens' CreateSecurityPolicy (Maybe Text) Source #
Unique, case-sensitive identifier to ensure idempotency of the request.
createSecurityPolicy_description :: Lens' CreateSecurityPolicy (Maybe Text) Source #
A description of the policy. Typically used to store information about the permissions defined in the policy.
createSecurityPolicy_name :: Lens' CreateSecurityPolicy Text Source #
The name of the policy.
createSecurityPolicy_policy :: Lens' CreateSecurityPolicy Text Source #
The JSON policy document to use as the content for the new policy.
createSecurityPolicy_type :: Lens' CreateSecurityPolicy SecurityPolicyType Source #
The type of security policy.
Destructuring the Response
data CreateSecurityPolicyResponse Source #
See: newCreateSecurityPolicyResponse smart constructor.
Constructors
| CreateSecurityPolicyResponse' | |
Fields
| |
Instances
newCreateSecurityPolicyResponse Source #
Create a value of CreateSecurityPolicyResponse 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:CreateSecurityPolicyResponse', createSecurityPolicyResponse_securityPolicyDetail - Details about the created security policy.
$sel:httpStatus:CreateSecurityPolicyResponse', createSecurityPolicyResponse_httpStatus - The response's http status code.
Response Lenses
createSecurityPolicyResponse_securityPolicyDetail :: Lens' CreateSecurityPolicyResponse (Maybe SecurityPolicyDetail) Source #
Details about the created security policy.
createSecurityPolicyResponse_httpStatus :: Lens' CreateSecurityPolicyResponse Int Source #
The response's http status code.