create_channel_handshake
¶
create_channel_handshake(
handshake_type: HandshakeType,
catalog: Catalog,
associated_resource_identifier: AssociatedResourceIdentifier,
*,
config_overrides: Optional[PartnerCentralChannelClientConfig] = None,
payload: Optional[ChannelHandshakePayload] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[TagList] = None,
) -> CreateChannelHandshakeResponse
Creates a new channel handshake request to establish a partnership with another AWS account.
Parameters:
-
handshake_type(HandshakeType) –The type of handshake to create (e.g., start service period, revoke service period).
-
catalog(Catalog) –The catalog identifier for the handshake request.
-
associated_resource_identifier(AssociatedResourceIdentifier) –The identifier of the resource associated with this handshake.
-
payload(Optional[ChannelHandshakePayload], default:None) –The payload containing specific details for the handshake type.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier to ensure idempotency of the request.
-
tags(Optional[TagList], default:None) –Key-value pairs to associate with the channel handshake.
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.
-
ConflictException–The request could not be completed due to a conflict with the current state of the resource.
-
ServiceQuotaExceededException–The request would exceed a service quota limit.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Example for CreateChannelHandshake - START_SERVICE_PERIOD with Minimum Notice Period
>>> client.create_channel_handshake(handshake_type='START_SERVICE_PERIOD', catalog='AWS', associated_resource_identifier='rs-abc123def456g', payload={'startServicePeriodPayload': {'programManagementAccountIdentifier': 'pma-abcdef123456g', 'servicePeriodType': 'MINIMUM_NOTICE_PERIOD', 'minimumNoticeDays': '14', 'note': 'Optional Note'}}, client_token='clientToken')
Example for CreateChannelHandshake - START_SERVICE_PERIOD with Fixed Commitment Period
>>> client.create_channel_handshake(handshake_type='START_SERVICE_PERIOD', catalog='AWS', associated_resource_identifier='rs-abc123def456g', payload={'startServicePeriodPayload': {'programManagementAccountIdentifier': 'pma-abcdef123456g', 'servicePeriodType': 'FIXED_COMMITMENT_PERIOD', 'endDate': '2026-07-01T00:00:00Z', 'note': 'Optional Note'}}, client_token='clientToken')
Example for CreateChannelHandshake - REVOKE_SERVICE_PERIOD
>>> client.create_channel_handshake(handshake_type='REVOKE_SERVICE_PERIOD', catalog='AWS', associated_resource_identifier='rs-abc123def456g', payload={'revokeServicePeriodPayload': {'programManagementAccountIdentifier': 'pma-abcdef123456g', 'note': 'Optional Note'}}, client_token='clientToken')
Example for CreateChannelHandshake - PROGRAM_MANAGEMENT_ACCOUNT
>>> client.create_channel_handshake(handshake_type='PROGRAM_MANAGEMENT_ACCOUNT', catalog='AWS', associated_resource_identifier='pma-123abc456def7', client_token='clientToken')
Source code in docs_src/capo_partnercentral_channel/_services/partner_central_channel.py
397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 | |