Skip to main content

subscription_targets

Creates, updates, deletes or gets a subscription_target resource or lists subscription_targets in a region

Overview

Namesubscription_targets
TypeResource
DescriptionSubscription targets enables one to access the data to which you have subscribed in your projects.
Idaws.datazone.subscription_targets

Fields

NameDatatypeDescription
applicable_asset_typesarrayThe asset types that can be included in the subscription target.
authorized_principalsarrayThe authorized principals of the subscription target.
created_atstringThe timestamp of when the subscription target was created.
created_bystringThe Amazon DataZone user who created the subscription target.
domain_idstringThe ID of the Amazon DataZone domain in which subscription target is created.
domain_identifierstringThe ID of the Amazon DataZone domain in which subscription target would be created.
environment_idstringThe ID of the environment in which subscription target is created.
environment_identifierstringThe ID of the environment in which subscription target would be created.
idstringThe ID of the subscription target.
manage_access_rolestringThe manage access role that is used to create the subscription target.
namestringThe name of the subscription target.
project_idstringThe identifier of the project specified in the subscription target.
providerstringThe provider of the subscription target.
subscription_target_configarrayThe configuration of the subscription target.
typestringThe type of the subscription target.
updated_atstringThe timestamp of when the subscription target was updated.
updated_bystringThe Amazon DataZone user who updated the subscription target.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTApplicableAssetTypes, AuthorizedPrincipals, DomainIdentifier, EnvironmentIdentifier, ManageAccessRole, Name, SubscriptionTargetConfig, Type, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all subscription_targets in a region.

SELECT
region,
applicable_asset_types,
authorized_principals,
created_at,
created_by,
domain_id,
domain_identifier,
environment_id,
environment_identifier,
id,
manage_access_role,
name,
project_id,
provider,
subscription_target_config,
type,
updated_at,
updated_by
FROM aws.datazone.subscription_targets
WHERE region = 'us-east-1';

Gets all properties from an individual subscription_target.

SELECT
region,
applicable_asset_types,
authorized_principals,
created_at,
created_by,
domain_id,
domain_identifier,
environment_id,
environment_identifier,
id,
manage_access_role,
name,
project_id,
provider,
subscription_target_config,
type,
updated_at,
updated_by
FROM aws.datazone.subscription_targets
WHERE region = 'us-east-1' AND data__Identifier = '<DomainId>|<EnvironmentId>|<Id>';

INSERT example

Use the following StackQL query and manifest file to create a new subscription_target resource, using stack-deploy.

/*+ create */
INSERT INTO aws.datazone.subscription_targets (
ApplicableAssetTypes,
AuthorizedPrincipals,
DomainIdentifier,
EnvironmentIdentifier,
ManageAccessRole,
Name,
SubscriptionTargetConfig,
Type,
region
)
SELECT
'{{ ApplicableAssetTypes }}',
'{{ AuthorizedPrincipals }}',
'{{ DomainIdentifier }}',
'{{ EnvironmentIdentifier }}',
'{{ ManageAccessRole }}',
'{{ Name }}',
'{{ SubscriptionTargetConfig }}',
'{{ Type }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.datazone.subscription_targets
WHERE data__Identifier = '<DomainId|EnvironmentId|Id>'
AND region = 'us-east-1';

Permissions

To operate on the subscription_targets resource, the following permissions are required:

Create

datazone:CreateSubscriptionTarget,
datazone:GetSubscriptionTarget,
iam:PassRole

Read

datazone:GetSubscriptionTarget

Update

datazone:UpdateSubscriptionTarget,
datazone:GetSubscriptionTarget,
iam:PassRole

Delete

datazone:DeleteSubscriptionTarget

List

datazone:ListSubscriptionTargets