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 |
Returns information about a configured OpenSearch Serverless security policy. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.
Synopsis
- data GetSecurityPolicy = GetSecurityPolicy' {
- name :: Text
- type' :: SecurityPolicyType
- newGetSecurityPolicy :: Text -> SecurityPolicyType -> GetSecurityPolicy
- getSecurityPolicy_name :: Lens' GetSecurityPolicy Text
- getSecurityPolicy_type :: Lens' GetSecurityPolicy SecurityPolicyType
- data GetSecurityPolicyResponse = GetSecurityPolicyResponse' {}
- newGetSecurityPolicyResponse :: Int -> GetSecurityPolicyResponse
- getSecurityPolicyResponse_securityPolicyDetail :: Lens' GetSecurityPolicyResponse (Maybe SecurityPolicyDetail)
- getSecurityPolicyResponse_httpStatus :: Lens' GetSecurityPolicyResponse Int
Creating a Request
data GetSecurityPolicy Source #
See: newGetSecurityPolicy
smart constructor.
GetSecurityPolicy' | |
|
Instances
Create a value of GetSecurityPolicy
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:
GetSecurityPolicy
, getSecurityPolicy_name
- The name of the security policy.
GetSecurityPolicy
, getSecurityPolicy_type
- The type of security policy.
Request Lenses
getSecurityPolicy_name :: Lens' GetSecurityPolicy Text Source #
The name of the security policy.
getSecurityPolicy_type :: Lens' GetSecurityPolicy SecurityPolicyType Source #
The type of security policy.
Destructuring the Response
data GetSecurityPolicyResponse Source #
See: newGetSecurityPolicyResponse
smart constructor.
GetSecurityPolicyResponse' | |
|
Instances
newGetSecurityPolicyResponse Source #
Create a value of GetSecurityPolicyResponse
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:GetSecurityPolicyResponse'
, getSecurityPolicyResponse_securityPolicyDetail
- Details about the requested security policy.
$sel:httpStatus:GetSecurityPolicyResponse'
, getSecurityPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getSecurityPolicyResponse_securityPolicyDetail :: Lens' GetSecurityPolicyResponse (Maybe SecurityPolicyDetail) Source #
Details about the requested security policy.
getSecurityPolicyResponse_httpStatus :: Lens' GetSecurityPolicyResponse Int Source #
The response's http status code.