Skip to main content

subscription_requests

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

Overview

Namesubscription_requests
TypeResource
Idaws.datazone.subscription_requests

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe identifier of the subscription request. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
created_atstring (date-time)The timestamp of when a subscription request was created.
created_bystringThe Amazon DataZone user who created the subscription request.
decision_commentstringThe decision comment of the subscription request.
domain_idstringThe identifier of the Amazon DataZone domain in which a subscription request exists. (pattern: <code>dzd[-][a-zA-Z0-9-]{1,36}</code>)
existing_subscription_idstringThe ID of the existing subscription. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
metadata_forms_summaryarrayThe summary of the metadata forms.
request_reasonstringThe reason for the subscription request.
reviewer_idstringThe identifier of the subscription request reviewer.
statusstringThe status of the subscription request. (PENDING, ACCEPTED, REJECTED)
subscribed_listingsarrayThe listings included in the subscription request.
subscribed_principalsarrayThe principals included in the subscription request.
updated_atstring (date-time)The timestamp of when the subscription request was updated.
updated_bystringThe identifier of the Amazon DataZone user who updated the subscription request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_subscription_requestsselectdomain_identifier, regionstatus, subscribedListingId, owningProjectId, owningIamPrincipalArn, approverProjectId, owningUserId, owningGroupId, sortBy, sortOrder, maxResults, nextTokenLists Amazon DataZone subscription requests.
create_subscription_requestinsertdomain_identifier, region, subscribedPrincipals, subscribedListings, requestReasonCreates a subscription request in Amazon DataZone.
update_subscription_requestupdatedomain_identifier, identifier, region, requestReasonUpdates a specified subscription request in Amazon DataZone.
delete_subscription_requestdeletedomain_identifier, identifier, regionDeletes a subscription request in Amazon DataZone.

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
domain_identifierstringThe ID of the Amazon DataZone domain in which the subscription request is deleted.
identifierstringThe ID of the subscription request that is deleted.
regionstringAWS region (default: us-east-1)
approverProjectIdstringThe identifier of the subscription request approver's project.
maxResultsintegerThe maximum number of subscription requests to return in a single call to ListSubscriptionRequests. When the number of subscription requests to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to ListSubscriptionRequests to list the next set of subscription requests.
nextTokenstringWhen the number of subscription requests is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of subscription requests, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListSubscriptionRequests to list the next set of subscription requests.
owningGroupIdstringThe ID of the owning group.
owningIamPrincipalArnstringThe ARN of the owning IAM principal.
owningProjectIdstringThe identifier of the project for the subscription requests.
owningUserIdstringThe ID of the owning user.
sortBystringSpecifies the way to sort the results of this action.
sortOrderstringSpecifies the sort order for the results of this action.
statusstringSpecifies the status of the subscription requests. This is not a required parameter, but if not specified, by default, Amazon DataZone returns only PENDING subscription requests.
subscribedListingIdstringThe identifier of the subscribed listing.

SELECT examples

Lists Amazon DataZone subscription requests.

SELECT
id,
created_at,
created_by,
decision_comment,
domain_id,
existing_subscription_id,
metadata_forms_summary,
request_reason,
reviewer_id,
status,
subscribed_listings,
subscribed_principals,
updated_at,
updated_by
FROM aws.datazone.subscription_requests
WHERE domain_identifier = '{{ domain_identifier }}' -- required
AND region = '{{ region }}' -- required
AND status = '{{ status }}'
AND subscribedListingId = '{{ subscribedListingId }}'
AND owningProjectId = '{{ owningProjectId }}'
AND owningIamPrincipalArn = '{{ owningIamPrincipalArn }}'
AND approverProjectId = '{{ approverProjectId }}'
AND owningUserId = '{{ owningUserId }}'
AND owningGroupId = '{{ owningGroupId }}'
AND sortBy = '{{ sortBy }}'
AND sortOrder = '{{ sortOrder }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

INSERT examples

Creates a subscription request in Amazon DataZone.

INSERT INTO aws.datazone.subscription_requests (
subscribedPrincipals,
subscribedListings,
requestReason,
clientToken,
metadataForms,
assetPermissions,
assetScopes,
domain_identifier,
region
)
SELECT
'{{ subscribedPrincipals }}' /* required */,
'{{ subscribedListings }}' /* required */,
'{{ requestReason }}' /* required */,
'{{ clientToken }}',
'{{ metadataForms }}',
'{{ assetPermissions }}',
'{{ assetScopes }}',
'{{ domain_identifier }}',
'{{ region }}'
RETURNING
id,
created_at,
created_by,
decision_comment,
domain_id,
existing_subscription_id,
metadata_forms,
request_reason,
reviewer_id,
status,
subscribed_listings,
subscribed_principals,
updated_at,
updated_by
;

UPDATE examples

Updates a specified subscription request in Amazon DataZone.

UPDATE aws.datazone.subscription_requests
SET
requestReason = '{{ requestReason }}'
WHERE
domain_identifier = '{{ domain_identifier }}' --required
AND identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
AND requestReason = '{{ requestReason }}' --required
RETURNING
id,
created_at,
created_by,
decision_comment,
domain_id,
existing_subscription_id,
metadata_forms,
request_reason,
reviewer_id,
status,
subscribed_listings,
subscribed_principals,
updated_at,
updated_by;

DELETE examples

Deletes a subscription request in Amazon DataZone.

DELETE FROM aws.datazone.subscription_requests
WHERE domain_identifier = '{{ domain_identifier }}' --required
AND identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
;