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 |
Amazonka.Shield.ListResourcesInProtectionGroup
Description
Retrieves the resources that are included in the protection group.
Synopsis
- data ListResourcesInProtectionGroup = ListResourcesInProtectionGroup' {}
- newListResourcesInProtectionGroup :: Text -> ListResourcesInProtectionGroup
- listResourcesInProtectionGroup_nextToken :: Lens' ListResourcesInProtectionGroup (Maybe Text)
- listResourcesInProtectionGroup_maxResults :: Lens' ListResourcesInProtectionGroup (Maybe Natural)
- listResourcesInProtectionGroup_protectionGroupId :: Lens' ListResourcesInProtectionGroup Text
- data ListResourcesInProtectionGroupResponse = ListResourcesInProtectionGroupResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- resourceArns :: [Text]
- newListResourcesInProtectionGroupResponse :: Int -> ListResourcesInProtectionGroupResponse
- listResourcesInProtectionGroupResponse_nextToken :: Lens' ListResourcesInProtectionGroupResponse (Maybe Text)
- listResourcesInProtectionGroupResponse_httpStatus :: Lens' ListResourcesInProtectionGroupResponse Int
- listResourcesInProtectionGroupResponse_resourceArns :: Lens' ListResourcesInProtectionGroupResponse [Text]
Creating a Request
data ListResourcesInProtectionGroup Source #
See: newListResourcesInProtectionGroup
smart constructor.
Constructors
ListResourcesInProtectionGroup' | |
Fields
|
Instances
newListResourcesInProtectionGroup Source #
Arguments
:: Text | |
-> ListResourcesInProtectionGroup |
Create a value of ListResourcesInProtectionGroup
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:ListResourcesInProtectionGroup'
, listResourcesInProtectionGroup_nextToken
- The next token value from a previous call to
ListResourcesInProtectionGroup
. Pass null if this is the first call.
$sel:maxResults:ListResourcesInProtectionGroup'
, listResourcesInProtectionGroup_maxResults
- The maximum number of resource ARN objects to return. If you leave this
blank, Shield Advanced returns the first 20 results.
This is a maximum value. Shield Advanced might return the results in
smaller batches. That is, the number of objects returned could be less
than MaxResults
, even if there are still more objects yet to return.
If there are more objects to return, Shield Advanced returns a value in
NextToken
that you can use in your next request, to get the next batch
of objects.
$sel:protectionGroupId:ListResourcesInProtectionGroup'
, listResourcesInProtectionGroup_protectionGroupId
- The name of the protection group. You use this to identify the
protection group in lists and to manage the protection group, for
example to update, delete, or describe it.
Request Lenses
listResourcesInProtectionGroup_nextToken :: Lens' ListResourcesInProtectionGroup (Maybe Text) Source #
The next token value from a previous call to
ListResourcesInProtectionGroup
. Pass null if this is the first call.
listResourcesInProtectionGroup_maxResults :: Lens' ListResourcesInProtectionGroup (Maybe Natural) Source #
The maximum number of resource ARN objects to return. If you leave this blank, Shield Advanced returns the first 20 results.
This is a maximum value. Shield Advanced might return the results in
smaller batches. That is, the number of objects returned could be less
than MaxResults
, even if there are still more objects yet to return.
If there are more objects to return, Shield Advanced returns a value in
NextToken
that you can use in your next request, to get the next batch
of objects.
listResourcesInProtectionGroup_protectionGroupId :: Lens' ListResourcesInProtectionGroup Text Source #
The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.
Destructuring the Response
data ListResourcesInProtectionGroupResponse Source #
See: newListResourcesInProtectionGroupResponse
smart constructor.
Constructors
ListResourcesInProtectionGroupResponse' | |
Fields
|
Instances
newListResourcesInProtectionGroupResponse Source #
Arguments
:: Int | |
-> ListResourcesInProtectionGroupResponse |
Create a value of ListResourcesInProtectionGroupResponse
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:ListResourcesInProtectionGroup'
, listResourcesInProtectionGroupResponse_nextToken
- If you specify a value for MaxResults
and you have more resources in
the protection group than the value of MaxResults, Shield Advanced
returns this token that you can use in your next request, to get the
next batch of objects.
$sel:httpStatus:ListResourcesInProtectionGroupResponse'
, listResourcesInProtectionGroupResponse_httpStatus
- The response's http status code.
$sel:resourceArns:ListResourcesInProtectionGroupResponse'
, listResourcesInProtectionGroupResponse_resourceArns
- The Amazon Resource Names (ARNs) of the resources that are included in
the protection group.
Response Lenses
listResourcesInProtectionGroupResponse_nextToken :: Lens' ListResourcesInProtectionGroupResponse (Maybe Text) Source #
If you specify a value for MaxResults
and you have more resources in
the protection group than the value of MaxResults, Shield Advanced
returns this token that you can use in your next request, to get the
next batch of objects.
listResourcesInProtectionGroupResponse_httpStatus :: Lens' ListResourcesInProtectionGroupResponse Int Source #
The response's http status code.
listResourcesInProtectionGroupResponse_resourceArns :: Lens' ListResourcesInProtectionGroupResponse [Text] Source #
The Amazon Resource Names (ARNs) of the resources that are included in the protection group.