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 configured OpenSearch Serverless security policies.
Synopsis
- data ListSecurityPolicies = ListSecurityPolicies' {}
- newListSecurityPolicies :: SecurityPolicyType -> ListSecurityPolicies
- listSecurityPolicies_maxResults :: Lens' ListSecurityPolicies (Maybe Natural)
- listSecurityPolicies_nextToken :: Lens' ListSecurityPolicies (Maybe Text)
- listSecurityPolicies_resource :: Lens' ListSecurityPolicies (Maybe (NonEmpty Text))
- listSecurityPolicies_type :: Lens' ListSecurityPolicies SecurityPolicyType
- data ListSecurityPoliciesResponse = ListSecurityPoliciesResponse' {}
- newListSecurityPoliciesResponse :: Int -> ListSecurityPoliciesResponse
- listSecurityPoliciesResponse_nextToken :: Lens' ListSecurityPoliciesResponse (Maybe Text)
- listSecurityPoliciesResponse_securityPolicySummaries :: Lens' ListSecurityPoliciesResponse (Maybe [SecurityPolicySummary])
- listSecurityPoliciesResponse_httpStatus :: Lens' ListSecurityPoliciesResponse Int
Creating a Request
data ListSecurityPolicies Source #
See: newListSecurityPolicies
smart constructor.
ListSecurityPolicies' | |
|
Instances
newListSecurityPolicies Source #
Create a value of ListSecurityPolicies
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:maxResults:ListSecurityPolicies'
, listSecurityPolicies_maxResults
- An optional parameter that specifies the maximum number of results to
return. You can use nextToken
to get the next page of results. The
default is 20.
ListSecurityPolicies
, listSecurityPolicies_nextToken
- If your initial ListSecurityPolicies
operation returns a nextToken
,
you can include the returned nextToken
in subsequent
ListSecurityPolicies
operations, which returns results in the next
page.
$sel:resource:ListSecurityPolicies'
, listSecurityPolicies_resource
- Resource filters (can be collection or indexes) that policies can apply
to.
ListSecurityPolicies
, listSecurityPolicies_type
- The type of policy.
Request Lenses
listSecurityPolicies_maxResults :: Lens' ListSecurityPolicies (Maybe Natural) Source #
An optional parameter that specifies the maximum number of results to
return. You can use nextToken
to get the next page of results. The
default is 20.
listSecurityPolicies_nextToken :: Lens' ListSecurityPolicies (Maybe Text) Source #
If your initial ListSecurityPolicies
operation returns a nextToken
,
you can include the returned nextToken
in subsequent
ListSecurityPolicies
operations, which returns results in the next
page.
listSecurityPolicies_resource :: Lens' ListSecurityPolicies (Maybe (NonEmpty Text)) Source #
Resource filters (can be collection or indexes) that policies can apply to.
listSecurityPolicies_type :: Lens' ListSecurityPolicies SecurityPolicyType Source #
The type of policy.
Destructuring the Response
data ListSecurityPoliciesResponse Source #
See: newListSecurityPoliciesResponse
smart constructor.
ListSecurityPoliciesResponse' | |
|
Instances
newListSecurityPoliciesResponse Source #
Create a value of ListSecurityPoliciesResponse
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:
ListSecurityPolicies
, listSecurityPoliciesResponse_nextToken
- When nextToken
is returned, there are more results available. The
value of nextToken
is a unique pagination token for each page. Make
the call again using the returned token to retrieve the next page.
$sel:securityPolicySummaries:ListSecurityPoliciesResponse'
, listSecurityPoliciesResponse_securityPolicySummaries
- Details about the security policies in your account.
$sel:httpStatus:ListSecurityPoliciesResponse'
, listSecurityPoliciesResponse_httpStatus
- The response's http status code.
Response Lenses
listSecurityPoliciesResponse_nextToken :: Lens' ListSecurityPoliciesResponse (Maybe Text) Source #
When nextToken
is returned, there are more results available. The
value of nextToken
is a unique pagination token for each page. Make
the call again using the returned token to retrieve the next page.
listSecurityPoliciesResponse_securityPolicySummaries :: Lens' ListSecurityPoliciesResponse (Maybe [SecurityPolicySummary]) Source #
Details about the security policies in your account.
listSecurityPoliciesResponse_httpStatus :: Lens' ListSecurityPoliciesResponse Int Source #
The response's http status code.