Skip to main content

partners

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

Overview

Namepartners
TypeResource
Idaws.redshift.partners

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstringThe date (UTC) that the partner integration was created.
database_namestringThe name of the database that receives data from a partner.
partner_namestringThe name of the partner.
statusstringThe partner integration status.
status_messagestringThe status message provided by the partner.
updated_atstringThe date (UTC) that the partner integration status was last updated by the partner.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_partnersselectAccountId, ClusterIdentifier, regionDatabaseName, PartnerNameReturns information about the partner integrations defined for a cluster.
add_partnerupdateAccountId, ClusterIdentifier, DatabaseName, PartnerName, regionAdds a partner integration to a cluster. This operation authorizes a partner to push status updates for the specified database. To complete the integration, you also set up the integration on the partner website.
delete_partnerdeleteAccountId, ClusterIdentifier, DatabaseName, PartnerName, regionDeletes a partner integration from a cluster. Data can still flow to the cluster until the integration is deleted at the partner's website.
update_partner_statusexecAccountId, ClusterIdentifier, DatabaseName, PartnerName, regionStatus, StatusMessageUpdates the status of a partner integration.

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
AccountIdstringThe Amazon Web Services account ID that owns the cluster.
ClusterIdentifierstringThe cluster identifier of the cluster whose partner integration status is being updated.
DatabaseNamestringThe name of the database whose partner integration status is being updated.
PartnerNamestringThe name of the partner whose integration status is being updated.
regionstringAWS region (default: us-east-1)
DatabaseNamestringThe name of the database whose partner integration is being described. If database name is not specified, then all databases in the cluster are described.
PartnerNamestringThe name of the partner that is being described. If partner name is not specified, then all partner integrations are described.
StatusstringThe value of the updated status.
StatusMessagestringThe status message provided by the partner.

SELECT examples

Returns information about the partner integrations defined for a cluster.

SELECT
created_at,
database_name,
partner_name,
status,
status_message,
updated_at
FROM aws.redshift.partners
WHERE AccountId = '{{ AccountId }}' -- required
AND ClusterIdentifier = '{{ ClusterIdentifier }}' -- required
AND region = '{{ region }}' -- required
AND DatabaseName = '{{ DatabaseName }}'
AND PartnerName = '{{ PartnerName }}'
;

UPDATE examples

Adds a partner integration to a cluster. This operation authorizes a partner to push status updates for the specified database. To complete the integration, you also set up the integration on the partner website.

UPDATE aws.redshift.partners
SET
-- No updatable properties
WHERE
AccountId = '{{ AccountId }}' --required
AND ClusterIdentifier = '{{ ClusterIdentifier }}' --required
AND DatabaseName = '{{ DatabaseName }}' --required
AND PartnerName = '{{ PartnerName }}' --required
AND region = '{{ region }}' --required
RETURNING
database_name,
partner_name;

DELETE examples

Deletes a partner integration from a cluster. Data can still flow to the cluster until the integration is deleted at the partner's website.

DELETE FROM aws.redshift.partners
WHERE AccountId = '{{ AccountId }}' --required
AND ClusterIdentifier = '{{ ClusterIdentifier }}' --required
AND DatabaseName = '{{ DatabaseName }}' --required
AND PartnerName = '{{ PartnerName }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Updates the status of a partner integration.

EXEC aws.redshift.partners.update_partner_status
@AccountId='{{ AccountId }}' --required,
@ClusterIdentifier='{{ ClusterIdentifier }}' --required,
@DatabaseName='{{ DatabaseName }}' --required,
@PartnerName='{{ PartnerName }}' --required,
@region='{{ region }}' --required,
@Status='{{ Status }}',
@StatusMessage='{{ StatusMessage }}'
;