Skip to main content

portal_product_sharing_policies

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

Overview​

Nameportal_product_sharing_policies
TypeResource
Idaws.apigatewayv2.portal_product_sharing_policies

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
policy_documentstringThe product sharing policy.
portal_product_idstringThe portal product identifier. (pattern: <code>^[a-z0-9]+$</code>)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_portal_product_sharing_policyselectportal_product_id, regionGets the sharing policy for a portal product.
put_portal_product_sharing_policyreplaceportal_product_id, region, PolicyDocumentUpdates the sharing policy for a portal product.
delete_portal_product_sharing_policydeleteportal_product_id, regionDeletes the sharing policy for a portal product.

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
portal_product_idstringThe portal product identifier.
regionstringAWS region (default: us-east-1)

SELECT examples​

Gets the sharing policy for a portal product.

SELECT
policy_document,
portal_product_id
FROM aws.apigatewayv2.portal_product_sharing_policies
WHERE portal_product_id = '{{ portal_product_id }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples​

Updates the sharing policy for a portal product.

REPLACE aws.apigatewayv2.portal_product_sharing_policies
SET
PolicyDocument = '{{ PolicyDocument }}'
WHERE
portal_product_id = '{{ portal_product_id }}' --required
AND region = '{{ region }}' --required
AND PolicyDocument = '{{ PolicyDocument }}' --required;

DELETE examples​

Deletes the sharing policy for a portal product.

DELETE FROM aws.apigatewayv2.portal_product_sharing_policies
WHERE portal_product_id = '{{ portal_product_id }}' --required
AND region = '{{ region }}' --required
;