list_connection_items
¶
list_connection_items(
environment_arn: EnvironmentArn,
*,
config_overrides: Optional[AssuranceClientConfig] = 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.
>>> 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/assurance.py
4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 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 | |