SecurityAgent / Paginator / ListIntegratedResources
ListIntegratedResources¶
- class SecurityAgent.Paginator.ListIntegratedResources¶
paginator = client.get_paginator('list_integrated_resources')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
SecurityAgent.Client.list_integrated_resources().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( agentSpaceId='string', integrationId='string', resourceType='CODE_REPOSITORY'|'DOCUMENT', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
agentSpaceId (string) –
[REQUIRED]
The unique identifier of the agent space to list integrated resources for.
integrationId (string) – The unique identifier of the integration to filter by.
resourceType (string) – The type of resource to filter by.
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
{ 'integratedResourceSummaries': [ { 'integrationId': 'string', 'resource': { 'githubRepository': { 'name': 'string', 'providerResourceId': 'string', 'owner': 'string', 'accessType': 'PRIVATE'|'PUBLIC' }, 'gitlabRepository': { 'name': 'string', 'providerResourceId': 'string', 'namespace': 'string', 'accessType': 'PRIVATE'|'PUBLIC' }, 'bitbucketRepository': { 'name': 'string', 'providerResourceId': 'string', 'workspace': 'string', 'accessType': 'PRIVATE'|'PUBLIC' }, 'confluenceDocument': { 'name': 'string', 'providerResourceId': 'string', 'spaceKey': 'string', 'pageId': 'string', 'title': 'string', 'spaceTitle': 'string' } }, 'capabilities': { 'github': { 'leaveComments': True|False, 'remediateCode': True|False }, 'gitlab': { 'leaveComments': True|False, 'remediateCode': True|False }, 'bitbucket': { 'leaveComments': True|False, 'remediateCode': True|False }, 'confluence': { 'fetchDocument': True|False, 'createDocument': True|False, 'updateDocument': True|False } } }, ], 'NextToken': 'string' }
Response Structure
(dict) –
integratedResourceSummaries (list) –
The list of integrated resource summaries.
(dict) –
Contains summary information about an integrated resource.
integrationId (string) –
The unique identifier of the integration that provides access to the resource.
resource (dict) –
The metadata for the integrated resource.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
githubRepository,gitlabRepository,bitbucketRepository,confluenceDocument. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
githubRepository (dict) –
The GitHub repository metadata.
name (string) –
The name of the GitHub repository.
providerResourceId (string) –
The provider-specific resource identifier for the GitHub repository.
owner (string) –
The owner of the GitHub repository.
accessType (string) –
The access type of the GitHub repository. Valid values are PRIVATE and PUBLIC.
gitlabRepository (dict) –
Metadata for an integrated GitLab repository.
name (string) –
Name of the resource e.g. repository name, etc.
providerResourceId (string) –
Provider Id of the resource e.g. GitHub repository id, etc.
namespace (string) –
The namespace (group or user path) that owns the project.
accessType (string) –
Defines the visibility level of provider resources. PRIVATE indicates restricted access, while PUBLIC indicates open access.
bitbucketRepository (dict) –
Metadata for an integrated Bitbucket repository.
name (string) –
Name of the resource e.g. repository name, etc.
providerResourceId (string) –
Provider Id of the resource e.g. GitHub repository id, etc.
workspace (string) –
The workspace slug that owns the repository.
accessType (string) –
Defines the visibility level of provider resources. PRIVATE indicates restricted access, while PUBLIC indicates open access.
confluenceDocument (dict) –
Metadata for an integrated Confluence document.
name (string) –
Name of the resource e.g. repository name, etc.
providerResourceId (string) –
Provider Id of the resource e.g. GitHub repository id, etc.
spaceKey (string) –
The Confluence space key containing the document.
pageId (string) –
The Confluence page identifier.
title (string) –
The display title of the Confluence page.
spaceTitle (string) –
The display title of the Confluence space.
capabilities (dict) –
The capabilities enabled for the integrated resource.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
github,gitlab,bitbucket,confluence. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
github (dict) –
The GitHub-specific resource capabilities.
leaveComments (boolean) –
Indicates whether the integration can leave comments on pull requests.
remediateCode (boolean) –
Indicates whether the integration can create code remediation pull requests.
gitlab (dict) –
Capabilities for an integrated GitLab repository.
leaveComments (boolean) –
Whether to post code review comments on merge request discussions.
remediateCode (boolean) –
Whether to create merge requests with automated fixes.
bitbucket (dict) –
Capabilities for an integrated Bitbucket repository.
leaveComments (boolean) –
Whether to post code review comments on pull requests.
remediateCode (boolean) –
Whether to create pull requests with automated fixes.
confluence (dict) –
Capabilities for an integrated Confluence space.
fetchDocument (boolean) –
Whether to fetch documents from this space.
createDocument (boolean) –
Whether to create documents in this space.
updateDocument (boolean) –
Whether to update documents in this space.
NextToken (string) –
A token to resume pagination.