Skip to main content

connection_preferences

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

Overview

Nameconnection_preferences
TypeResource
Idaws.partnercentral_account.connection_preferences

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
access_typestringThe access type setting for connections (e.g., open, restricted, invitation-only). (ALLOW_ALL, DENY_ALL, ALLOW_BY_DEFAULT_DENY_SOME)
arnstringThe Amazon Resource Name (ARN) of the connection preferences. (pattern: <code>arn:[a-zA-Z0-9-]+:partnercentral:[a-z0-9-]*:[0-9]{12}:catalog/[a-zA-Z]+/connection-preferences</code>)
catalogstringThe catalog identifier for the partner account. (pattern: <code>[a-zA-Z0-9-]+</code>)
excluded_participant_idsarrayA list of participant IDs that are excluded from connection requests or interactions.
revisioninteger (int64)The revision number of the connection preferences for optimistic locking.
updated_atstring (date-time)The timestamp when the connection preferences were last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_connection_preferencesselectregionRetrieves the connection preferences for a partner account, including access settings and exclusions.
update_connection_preferencesupdateregion, AccessTypeUpdates the connection preferences for a partner account, modifying access settings and exclusions.

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 the connection preferences for a partner account, including access settings and exclusions.

SELECT
access_type,
arn,
catalog,
excluded_participant_ids,
revision,
updated_at
FROM aws.partnercentral_account.connection_preferences
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates the connection preferences for a partner account, modifying access settings and exclusions.

UPDATE aws.partnercentral_account.connection_preferences
SET
Catalog = '{{ Catalog }}',
Revision = {{ Revision }},
AccessType = '{{ AccessType }}',
ExcludedParticipantIdentifiers = '{{ ExcludedParticipantIdentifiers }}'
WHERE
region = '{{ region }}' --required
AND AccessType = '{{ AccessType }}' --required
RETURNING
access_type,
arn,
catalog,
excluded_participant_ids,
revision,
updated_at;