Assurance / Paginator / ListConnectionItems
ListConnectionItems¶
- class Assurance.Paginator.ListConnectionItems¶
paginator = client.get_paginator('list_connection_items')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
Assurance.Client.list_connection_items().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( environmentArn='string', connectionId='string', providerConfig={ 's3': { 'sourceUri': 'string' }, 'github': { 'account': 'string' }, 'sharepoint': { 'tenantId': 'string' } }, parentId='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
environmentArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of this governance environment.
connectionId (string) –
The ID of the GitHub or SharePoint connection to browse, as returned by
ListEnvironmentConnections. An Amazon S3 connection has no ID. To browse one, useproviderConfig.Specify either
connectionIdorproviderConfig, but not both.providerConfig (dict) –
The connection to browse, identified by what it connects to.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
s3,github,sharepoint.s3 (dict) –
An Amazon S3 connection, identified by its source URI.
sourceUri (string) – [REQUIRED]
The Amazon S3 URI of the connection. To find it, call
ListEnvironmentConnectionsand reads3.sourceUri.
github (dict) –
The account of a GitHub connection.
account (string) – [REQUIRED]
The name of the GitHub organization or user account. This is the
github.accountvalue inListEnvironmentConnections.
sharepoint (dict) –
The tenant of a SharePoint connection.
tenantId (string) – [REQUIRED]
The ID of the Microsoft Entra tenant. This is the
sharepoint.tenantIdvalue inListEnvironmentConnections.
parentId (string) – The ID of the item whose contents you want to list. To list the top level, omit this parameter.
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
NextTokenwill 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
NextTokenfrom a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'items': [ { 'id': 'string', 'kind': 'REPOSITORY'|'SITE'|'LIBRARY'|'FOLDER'|'FILE', 'name': 'string', 'url': 'string', 'sizeBytes': 123, 'updatedAt': datetime(2015, 1, 1) }, ], 'NextToken': 'string' }
Response Structure
(dict) –
items (list) –
The items at the requested level.
(dict) –
An item that a connection can access, such as a folder or a file.
id (string) –
The identifier of the item. To list the contents of the item, pass this value as
parentId. This doesn’t apply to aFILE.kind (string) –
The type of item. Valid values:
FILE– A document that you can link as evidence.FOLDER– A folder that contains other items.LIBRARY– A SharePoint document library.REPOSITORY– A GitHub repository.SITE– A SharePoint site.
name (string) –
The display name of the item.
url (string) –
The URL of the item. This field is present for a
FILE. To add the file as evidence, pass this value asreferencetoPutEvidence.sizeBytes (integer) –
The size of the item in bytes. This field is present for a
FILE.updatedAt (datetime) –
The time when the provider last recorded a change to the item. This field is present for a
FILE.
NextToken (string) –
A token to resume pagination.