DataSync / Paginator / ListTagsForResource
ListTagsForResource#
- class DataSync.Paginator.ListTagsForResource#
paginator = client.get_paginator('list_tags_for_resource')
- paginate(**kwargs)#
Creates an iterator that will paginate through responses from
DataSync.Client.list_tags_for_resource()
.See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( ResourceArn='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
ResourceArn (string) –
[REQUIRED]
Specifies the Amazon Resource Name (ARN) of the resource that you want tag information on.
PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextToken
will be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextToken
from a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], }
Response Structure
(dict) –
ListTagsForResourceResponse
Tags (list) –
An array of tags applied to the specified resource.
(dict) –
A key-value pair representing a single tag that’s been applied to an Amazon Web Services resource.
Key (string) –
The key for an Amazon Web Services resource tag.
Value (string) –
The value for an Amazon Web Services resource tag.