list_channel_handshakes
¶
list_channel_handshakes(
handshake_type: HandshakeType,
catalog: Catalog,
participant_type: ParticipantType,
*,
config_overrides: Optional[PartnerCentralChannelClientConfig] = None,
max_results: Optional[int] = None,
statuses: Optional[HandshakeStatusList] = None,
associated_resource_identifiers: Optional[AssociatedResourceIdentifierList] = None,
handshake_type_filters: Optional[ListChannelHandshakesTypeFilters] = None,
handshake_type_sort: Optional[ListChannelHandshakesTypeSort] = None,
next_token: Optional[NextToken] = None,
) -> ListChannelHandshakesResponse
Lists channel handshakes based on specified criteria.
Parameters:
-
handshake_type(HandshakeType) –Filter results by handshake type.
-
catalog(Catalog) –The catalog identifier to filter handshakes.
-
participant_type(ParticipantType) –Filter by participant type (sender or receiver).
-
max_results(Optional[int], default:None) –The maximum number of results to return in a single call.
-
statuses(Optional[HandshakeStatusList], default:None) –Filter results by handshake status.
-
associated_resource_identifiers(Optional[AssociatedResourceIdentifierList], default:None) –Filter by associated resource identifiers.
-
handshake_type_filters(Optional[ListChannelHandshakesTypeFilters], default:None) –Type-specific filters for handshakes.
-
handshake_type_sort(Optional[ListChannelHandshakesTypeSort], default:None) –Type-specific sorting options for handshakes.
-
next_token(Optional[NextToken], default:None) –Token for retrieving the next page of results.
Raises:
-
AccessDeniedException–The request was denied due to insufficient permissions.
-
InternalServerException–An internal server error occurred while processing the request.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The request was throttled due to too many requests being sent in a short period.
-
ValidationException–The request failed validation due to invalid input parameters.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Example for ListChannelHandshakes - START_SERVICE_PERIOD
>>> client.list_channel_handshakes(handshake_type='START_SERVICE_PERIOD', catalog='AWS', participant_type='SENDER', statuses=['ACCEPTED'], associated_resource_identifiers=['rs-123abc456def7'], handshake_type_filters={'startServicePeriodTypeFilters': {'servicePeriodTypes': ['FIXED_COMMITMENT_PERIOD']}}, handshake_type_sort={'startServicePeriodTypeSort': {'sortBy': 'UpdatedAt', 'sortOrder': 'Descending'}})
Example for ListChannelHandshakes - REVOKE_SERVICE_PERIOD
>>> client.list_channel_handshakes(handshake_type='REVOKE_SERVICE_PERIOD', catalog='AWS', participant_type='SENDER', statuses=['ACCEPTED'], associated_resource_identifiers=['rs-123abc456def7'], handshake_type_filters={'revokeServicePeriodTypeFilters': {'servicePeriodTypes': ['MINIMUM_NOTICE_PERIOD']}}, handshake_type_sort={'revokeServicePeriodTypeSort': {'sortBy': 'UpdatedAt', 'sortOrder': 'Descending'}})
Example for ListChannelHandshakes - PROGRAM_MANAGEMENT_ACCOUNT
>>> client.list_channel_handshakes(handshake_type='PROGRAM_MANAGEMENT_ACCOUNT', catalog='AWS', participant_type='SENDER', statuses=['ACCEPTED'], associated_resource_identifiers=['pma-123abc456def7'], handshake_type_filters={'programManagementAccountTypeFilters': {'programs': ['SOLUTION_PROVIDER']}}, handshake_type_sort={'programManagementAccountTypeSort': {'sortBy': 'UpdatedAt', 'sortOrder': 'Descending'}}, max_results=20, next_token='nextToken')
Source code in docs_src/capo_partnercentral_channel/_services/partner_central_channel.py
485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 | |