PartnerCentralChannelAPI / Client / create_relationship

create_relationship

PartnerCentralChannelAPI.Client.create_relationship(**kwargs)

Creates a new partner relationship between accounts.

See also: AWS API Documentation

Request Syntax

response = client.create_relationship(
    catalog='string',
    associationType='DOWNSTREAM_SELLER'|'END_CUSTOMER'|'INTERNAL',
    programManagementAccountIdentifier='string',
    associatedAccountId='string',
    displayName='string',
    resaleAccountModel='DISTRIBUTOR'|'END_CUSTOMER'|'SOLUTION_PROVIDER',
    sector='COMMERCIAL'|'GOVERNMENT'|'GOVERNMENT_EXCEPTION',
    clientToken='string',
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ],
    requestedSupportPlan={
        'resoldBusiness': {
            'coverage': 'ENTIRE_ORGANIZATION'|'MANAGEMENT_ACCOUNT_ONLY'
        },
        'resoldEnterprise': {
            'coverage': 'ENTIRE_ORGANIZATION'|'MANAGEMENT_ACCOUNT_ONLY',
            'tamLocation': 'string',
            'chargeAccountId': 'string'
        },
        'partnerLedSupport': {
            'coverage': 'ENTIRE_ORGANIZATION'|'MANAGEMENT_ACCOUNT_ONLY',
            'provider': 'DISTRIBUTOR'|'DISTRIBUTION_SELLER',
            'tamLocation': 'string'
        }
    }
)
Parameters:
  • catalog (string) –

    [REQUIRED]

    The catalog identifier for the relationship.

  • associationType (string) –

    [REQUIRED]

    The type of association for the relationship (e.g., reseller, distributor).

  • programManagementAccountIdentifier (string) –

    [REQUIRED]

    The identifier of the program management account for this relationship.

  • associatedAccountId (string) –

    [REQUIRED]

    The AWS account ID to associate in this relationship.

  • displayName (string) –

    [REQUIRED]

    A human-readable name for the relationship.

  • resaleAccountModel (string) – The resale account model for the relationship.

  • sector (string) –

    [REQUIRED]

    The business sector for the relationship.

  • clientToken (string) –

    A unique, case-sensitive identifier to ensure idempotency of the request.

    This field is autopopulated if not provided.

  • tags (list) –

    Key-value pairs to associate with the relationship.

    • (dict) –

      A key-value pair that can be associated with a resource.

      • key (string) – [REQUIRED]

        The key of the tag.

      • value (string) – [REQUIRED]

        The value of the tag.

  • requestedSupportPlan (dict) –

    The support plan requested for this relationship.

    Note

    This is a Tagged Union structure. Only one of the following top level keys can be set: resoldBusiness, resoldEnterprise, partnerLedSupport.

    • resoldBusiness (dict) –

      Configuration for resold business support plans.

      • coverage (string) – [REQUIRED]

        The coverage level for resold business support.

    • resoldEnterprise (dict) –

      Configuration for resold enterprise support plans.

      • coverage (string) – [REQUIRED]

        The coverage level for resold enterprise support.

      • tamLocation (string) – [REQUIRED]

        The location of the Technical Account Manager (TAM).

      • chargeAccountId (string) –

        The AWS account ID to charge for the support plan.

    • partnerLedSupport (dict) –

      Configuration for partner-led support plans.

      • coverage (string) – [REQUIRED]

        The coverage level for partner-led support.

      • provider (string) –

        The provider of the partner-led support.

      • tamLocation (string) – [REQUIRED]

        The location of the Technical Account Manager (TAM).

Return type:

dict

Returns:

Response Syntax

{
    'relationshipDetail': {
        'arn': 'string',
        'id': 'string'
    }
}

Response Structure

  • (dict) –

    • relationshipDetail (dict) –

      Details of the created relationship.

      • arn (string) –

        The Amazon Resource Name (ARN) of the created relationship.

      • id (string) –

        The unique identifier of the created relationship.

Exceptions

  • PartnerCentralChannelAPI.Client.exceptions.ResourceNotFoundException

  • PartnerCentralChannelAPI.Client.exceptions.InternalServerException

  • PartnerCentralChannelAPI.Client.exceptions.ValidationException

  • PartnerCentralChannelAPI.Client.exceptions.ThrottlingException

  • PartnerCentralChannelAPI.Client.exceptions.AccessDeniedException

  • PartnerCentralChannelAPI.Client.exceptions.ConflictException

  • PartnerCentralChannelAPI.Client.exceptions.ServiceQuotaExceededException