Skip to main content

relationships

Creates, updates, deletes, gets or lists a relationships resource.

Overview

Namerelationships
TypeResource
Idaws.partnercentral_channel.relationships

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the relationship. (pattern: <code>rs-[a-z0-9]{13}</code>)
arnstringThe Amazon Resource Name (ARN) of the relationship.
associated_account_idstringThe AWS account ID associated in this relationship. (pattern: <code>[0-9]*</code>)
association_typestringThe type of association for the relationship. (DOWNSTREAM_SELLER, END_CUSTOMER, INTERNAL)
catalogstringThe catalog identifier associated with the relationship. (pattern: <code>[a-zA-Z]*</code>)
created_atstring (date-time)The timestamp when the relationship was created.
display_namestringThe display name of the relationship. (pattern: <code>[^\x00-\x1F\x7F]*</code>)
program_management_account_idstringThe identifier of the program management account. (pattern: <code>pma-[a-z0-9]{13}</code>)
resale_account_modelstringThe resale account model for the relationship. (DISTRIBUTOR, END_CUSTOMER, SOLUTION_PROVIDER)
revisionstringThe current revision number of the relationship. (pattern: <code>[0-9]*</code>)
sectorstringThe business sector for the relationship. (COMMERCIAL, GOVERNMENT, GOVERNMENT_EXCEPTION)
start_datestring (date-time)The start date of the relationship.
updated_atstring (date-time)The timestamp when the relationship was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_relationshipselectregionRetrieves details of a specific partner relationship.
list_relationshipsselectregionLists partner relationships based on specified criteria.
create_relationshipinsertregion, catalog, associationType, programManagementAccountIdentifier, associatedAccountId, displayName, sectorCreates a new partner relationship between accounts.
update_relationshipupdateregion, catalog, identifier, programManagementAccountIdentifierUpdates the properties of a partner relationship.
delete_relationshipdeleteregionDeletes a partner relationship.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves details of a specific partner relationship.

SELECT
id,
arn,
associated_account_id,
association_type,
catalog,
created_at,
display_name,
program_management_account_id,
resale_account_model,
revision,
sector,
start_date,
updated_at
FROM aws.partnercentral_channel.relationships
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new partner relationship between accounts.

INSERT INTO aws.partnercentral_channel.relationships (
catalog,
associationType,
programManagementAccountIdentifier,
associatedAccountId,
displayName,
resaleAccountModel,
sector,
clientToken,
tags,
requestedSupportPlan,
region
)
SELECT
'{{ catalog }}' /* required */,
'{{ associationType }}' /* required */,
'{{ programManagementAccountIdentifier }}' /* required */,
'{{ associatedAccountId }}' /* required */,
'{{ displayName }}' /* required */,
'{{ resaleAccountModel }}',
'{{ sector }}' /* required */,
'{{ clientToken }}',
'{{ tags }}',
'{{ requestedSupportPlan }}',
'{{ region }}'
RETURNING
relationship_detail
;

UPDATE examples

Updates the properties of a partner relationship.

UPDATE aws.partnercentral_channel.relationships
SET
catalog = '{{ catalog }}',
identifier = '{{ identifier }}',
programManagementAccountIdentifier = '{{ programManagementAccountIdentifier }}',
revision = '{{ revision }}',
displayName = '{{ displayName }}',
requestedSupportPlan = '{{ requestedSupportPlan }}'
WHERE
region = '{{ region }}' --required
AND catalog = '{{ catalog }}' --required
AND identifier = '{{ identifier }}' --required
AND programManagementAccountIdentifier = '{{ programManagementAccountIdentifier }}' --required
RETURNING
relationship_detail;

DELETE examples

Deletes a partner relationship.

DELETE FROM aws.partnercentral_channel.relationships
WHERE region = '{{ region }}' --required
;