list_connection_items
async
¶
list_connection_items(
environment_arn: EnvironmentArn,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = None,
connection_id: Optional[ConnectionId] = None,
provider_config: Optional[ConnectionProviderKey] = None,
parent_id: Optional[ConnectionItemId] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListConnectionItemsOutput
Lists the items that a connection can access, one level at a time, to help you find a document without knowing its URL. The list contains only items that the connection is authorized to access. If more results are available, the response includes nextToken. To get the next page, call this operation again with that token.
To list the top level, omit parentId. To list the contents of an item, such as a repository, site, library, or folder, specify its id. You can't list the contents of a FILE.
Parameters:
-
environment_arn(EnvironmentArn) –The Amazon Resource Name (ARN) of this governance environment.
-
connection_id(Optional[ConnectionId], default:None) –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. -
provider_config(Optional[ConnectionProviderKey], default:None) –The connection to browse, identified by what it connects to.
-
parent_id(Optional[ConnectionItemId], default:None) –The ID of the item whose contents you want to list. To list the top level, omit this parameter.
-
max_results(Optional[MaxResults], default:None) –The maximum number of items to return on one page. If you omit it, the operation uses its default page size.
-
next_token(Optional[PaginationToken], default:None) –The token for the next page of results, from a previous response.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. This error occurs when the request is unauthenticated, or is authenticated but lacks permission to invoke the operation.
-
InternalServerException–An internal server error occurred.
-
ResourceNotFoundException–The requested resource was not found.
-
ThrottlingException–The request was throttled.
-
ValidationException–The request failed validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Browse an S3 connection Lists the prefixes and objects at the top of an S3 connection, named by its source URI.
>>> await client.list_connection_items(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', provider_config={'s3': {'sourceUri': 's3://payments-prod-evidence/pci-dss/'}})
Source code in docs_src/capo_assurance/_services/async_assurance.py
4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 | |