create_relationship
async
¶
create_relationship(
catalog: Catalog,
association_type: AssociationType,
program_management_account_identifier: ProgramManagementAccountIdentifier,
display_name: RelationshipDisplayName,
sector: Sector,
*,
config_overrides: Optional[AsyncPartnerCentralChannelClientConfig] = None,
associated_account_id: Optional[AccountId] = None,
resale_account_model: Optional[ResaleAccountModel] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[TagList] = None,
requested_support_plan: Optional[SupportPlan] = None,
account_scope: Optional[AccountScope] = None,
start_date: Optional[DateTime] = None,
) -> CreateRelationshipResponse
Creates a new partner relationship between accounts.
Parameters:
-
catalog(Catalog) –The catalog identifier for the relationship.
-
association_type(AssociationType) –The type of association for the relationship (e.g., reseller, distributor).
-
program_management_account_identifier(ProgramManagementAccountIdentifier) –The identifier of the program management account for this relationship.
-
associated_account_id(Optional[AccountId], default:None) –The AWS account ID to associate in this relationship.
-
display_name(RelationshipDisplayName) –A human-readable name for the relationship.
-
resale_account_model(Optional[ResaleAccountModel], default:None) –The resale account model for the relationship. Applies only to billing transfer relationships.
-
sector(Sector) –The business sector for the relationship.
-
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 relationship.
-
requested_support_plan(Optional[SupportPlan], default:None) –The support plan requested for this relationship. Applies only to billing transfer relationships.
-
account_scope(Optional[AccountScope], default:None) –The account scope for a managed services relationship (for example, entire organization, specific member accounts). Applies only to managed services relationships.
-
start_date(Optional[DateTime], default:None) –The start date of the managed services relationship. Applies only to managed services relationships.
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 CreateRelationship
>>> await client.create_relationship(catalog='AWS', association_type='DOWNSTREAM_SELLER', program_management_account_identifier='pma-u8ic702rtzng8', associated_account_id='987654321012', display_name='TestDisplayName', resale_account_model='END_CUSTOMER', sector='COMMERCIAL', client_token='clientToken')
Example for CreateRelationship - MANAGED_SERVICES_END_CUSTOMER
>>> await client.create_relationship(catalog='AWS', association_type='MANAGED_SERVICES_END_CUSTOMER', program_management_account_identifier='pma-abcdef123456g', associated_account_id='987654321012', display_name='TestManagedCustomer', sector='COMMERCIAL', account_scope='ENTIRE_ORGANIZATION', start_date='2026-10-01T00:00:00Z', client_token='clientToken')
Source code in docs_src/capo_partnercentral_channel/_services/async_partner_central_channel.py
1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 | |