create_channel_contract
async
¶
create_channel_contract(
contract_type: ChannelContractType,
catalog: Catalog,
payload: ChannelContractPayload,
*,
config_overrides: Optional[AsyncPartnerCentralChannelClientConfig] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[TagList] = None,
) -> CreateChannelContractResponse
Creates a new channel contract and sends it to the signatory for signature. In the Sandbox catalog, the channel contract is accepted automatically.
Parameters:
-
contract_type(ChannelContractType) –The type of channel contract to create (for example, managed services attestation).
-
catalog(Catalog) –The catalog identifier for the channel contract.
-
payload(ChannelContractPayload) –The payload containing specific details for the contract 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 contract.
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 CreateChannelContract - MANAGED_SERVICES_ATTESTATION
>>> await client.create_channel_contract(contract_type='MANAGED_SERVICES_ATTESTATION', catalog='AWS', payload={'managedServicesAttestationPayload': {'legalEntityName': 'Example Partner Corp', 'signatoryName': 'Mary Major', 'signatoryEmail': '[email protected]', 'programManagementAccountIdentifier': 'pma-abcdef123456g', 'relationshipIdentifier': 'rs-abc123def456g', 'endDate': '2027-03-31T00:00:00Z', 'supportedServices': ['MONITORING', 'SECURITY'], 'memberAccountIds': ['111122224444'], 'legalEntityAddress': {'addressLine': '123 Any Street', 'addressLine2': 'Suite 100', 'city': 'Anytown', 'stateOrRegion': 'WA', 'postalCode': '98101', 'countryCode': 'US'}}}, client_token='clientToken')
Source code in docs_src/capo_partnercentral_channel/_services/async_partner_central_channel.py
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 484 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 | |