create_channel_handshake
async
¶
create_channel_handshake(
handshake_type: HandshakeType,
catalog: Catalog,
associated_resource_identifier: AssociatedResourceIdentifier,
*,
config_overrides: Optional[AsyncPartnerCentralChannelClientConfig] = 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
>>> await 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
>>> await 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
>>> await 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
>>> await 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/async_partner_central_channel.py
812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 | |