Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Lists all approval rule templates in the specified AWS Region in your AWS account. If an AWS Region is not specified, the AWS Region where you are signed in is used.
Synopsis
- data ListApprovalRuleTemplates = ListApprovalRuleTemplates' {}
- newListApprovalRuleTemplates :: ListApprovalRuleTemplates
- listApprovalRuleTemplates_nextToken :: Lens' ListApprovalRuleTemplates (Maybe Text)
- listApprovalRuleTemplates_maxResults :: Lens' ListApprovalRuleTemplates (Maybe Int)
- data ListApprovalRuleTemplatesResponse = ListApprovalRuleTemplatesResponse' {}
- newListApprovalRuleTemplatesResponse :: Int -> ListApprovalRuleTemplatesResponse
- listApprovalRuleTemplatesResponse_nextToken :: Lens' ListApprovalRuleTemplatesResponse (Maybe Text)
- listApprovalRuleTemplatesResponse_approvalRuleTemplateNames :: Lens' ListApprovalRuleTemplatesResponse (Maybe [Text])
- listApprovalRuleTemplatesResponse_httpStatus :: Lens' ListApprovalRuleTemplatesResponse Int
Creating a Request
data ListApprovalRuleTemplates Source #
See: newListApprovalRuleTemplates
smart constructor.
Instances
newListApprovalRuleTemplates :: ListApprovalRuleTemplates Source #
Create a value of ListApprovalRuleTemplates
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:nextToken:ListApprovalRuleTemplates'
, listApprovalRuleTemplates_nextToken
- An enumeration token that, when provided in a request, returns the next
batch of the results.
$sel:maxResults:ListApprovalRuleTemplates'
, listApprovalRuleTemplates_maxResults
- A non-zero, non-negative integer used to limit the number of returned
results.
Request Lenses
listApprovalRuleTemplates_nextToken :: Lens' ListApprovalRuleTemplates (Maybe Text) Source #
An enumeration token that, when provided in a request, returns the next batch of the results.
listApprovalRuleTemplates_maxResults :: Lens' ListApprovalRuleTemplates (Maybe Int) Source #
A non-zero, non-negative integer used to limit the number of returned results.
Destructuring the Response
data ListApprovalRuleTemplatesResponse Source #
See: newListApprovalRuleTemplatesResponse
smart constructor.
ListApprovalRuleTemplatesResponse' | |
|
Instances
newListApprovalRuleTemplatesResponse Source #
Create a value of ListApprovalRuleTemplatesResponse
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:nextToken:ListApprovalRuleTemplates'
, listApprovalRuleTemplatesResponse_nextToken
- An enumeration token that allows the operation to batch the next results
of the operation.
$sel:approvalRuleTemplateNames:ListApprovalRuleTemplatesResponse'
, listApprovalRuleTemplatesResponse_approvalRuleTemplateNames
- The names of all the approval rule templates found in the AWS Region for
your AWS account.
$sel:httpStatus:ListApprovalRuleTemplatesResponse'
, listApprovalRuleTemplatesResponse_httpStatus
- The response's http status code.
Response Lenses
listApprovalRuleTemplatesResponse_nextToken :: Lens' ListApprovalRuleTemplatesResponse (Maybe Text) Source #
An enumeration token that allows the operation to batch the next results of the operation.
listApprovalRuleTemplatesResponse_approvalRuleTemplateNames :: Lens' ListApprovalRuleTemplatesResponse (Maybe [Text]) Source #
The names of all the approval rule templates found in the AWS Region for your AWS account.
listApprovalRuleTemplatesResponse_httpStatus :: Lens' ListApprovalRuleTemplatesResponse Int Source #
The response's http status code.