Skip to main content

product_rest_endpoint_pages

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

Overview

Nameproduct_rest_endpoint_pages
TypeResource
Idaws.apigatewayv2.product_rest_endpoint_pages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
display_contentobjectThe content of the product REST endpoint page.
last_modifiedstring (date-time)The timestamp when the product REST endpoint page was last modified.
product_rest_endpoint_page_arnstringThe ARN of the product REST endpoint page.
product_rest_endpoint_page_idstringThe product REST endpoint page identifier. (pattern: <code>^[a-z0-9]+$</code>)
raw_display_contentstringThe raw display content of the product REST endpoint page.
rest_endpoint_identifierobjectThe REST API endpoint identifier.
statusstringThe status of the product REST endpoint page. (AVAILABLE, IN_PROGRESS, FAILED)
status_exceptionobjectThe status exception information.
try_it_statestringRepresents the try it state for a product REST endpoint page. (ENABLED, DISABLED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_product_rest_endpoint_pageselectportal_product_id, product_rest_endpoint_page_id, regionincludeRawDisplayContent, resourceOwnerAccountIdGets a product REST endpoint page.
list_product_rest_endpoint_pagesselectportal_product_id, regionmaxResults, nextToken, resourceOwnerAccountIdLists the product REST endpoint pages of a portal product.
create_product_rest_endpoint_pageinsertportal_product_id, region, RestEndpointIdentifierCreates a product REST endpoint page for a portal product.
update_product_rest_endpoint_pageupdateportal_product_id, product_rest_endpoint_page_id, regionUpdates a product REST endpoint page.
delete_product_rest_endpoint_pagedeleteportal_product_id, product_rest_endpoint_page_id, regionDeletes a product REST endpoint page.

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.
product_rest_endpoint_page_idstringThe product REST endpoint identifier.
regionstringAWS region (default: us-east-1)
includeRawDisplayContentstringThe query parameter to include raw display content.
maxResultsstringThe maximum number of elements to be returned for this resource.
nextTokenstringThe next page of elements from this collection. Not valid for the last element of the collection.
resourceOwnerAccountIdstringThe account ID of the resource owner of the portal product.

SELECT examples

Gets a product REST endpoint page.

SELECT
display_content,
last_modified,
product_rest_endpoint_page_arn,
product_rest_endpoint_page_id,
raw_display_content,
rest_endpoint_identifier,
status,
status_exception,
try_it_state
FROM aws.apigatewayv2.product_rest_endpoint_pages
WHERE portal_product_id = '{{ portal_product_id }}' -- required
AND product_rest_endpoint_page_id = '{{ product_rest_endpoint_page_id }}' -- required
AND region = '{{ region }}' -- required
AND includeRawDisplayContent = '{{ includeRawDisplayContent }}'
AND resourceOwnerAccountId = '{{ resourceOwnerAccountId }}'
;

INSERT examples

Creates a product REST endpoint page for a portal product.

INSERT INTO aws.apigatewayv2.product_rest_endpoint_pages (
DisplayContent,
RestEndpointIdentifier,
TryItState,
portal_product_id,
region
)
SELECT
'{{ DisplayContent }}',
'{{ RestEndpointIdentifier }}' /* required */,
'{{ TryItState }}',
'{{ portal_product_id }}',
'{{ region }}'
RETURNING
display_content,
last_modified,
product_rest_endpoint_page_arn,
product_rest_endpoint_page_id,
rest_endpoint_identifier,
status,
status_exception,
try_it_state
;

UPDATE examples

Updates a product REST endpoint page.

UPDATE aws.apigatewayv2.product_rest_endpoint_pages
SET
DisplayContent = '{{ DisplayContent }}',
TryItState = '{{ TryItState }}'
WHERE
portal_product_id = '{{ portal_product_id }}' --required
AND product_rest_endpoint_page_id = '{{ product_rest_endpoint_page_id }}' --required
AND region = '{{ region }}' --required
RETURNING
display_content,
last_modified,
product_rest_endpoint_page_arn,
product_rest_endpoint_page_id,
rest_endpoint_identifier,
status,
status_exception,
try_it_state;

DELETE examples

Deletes a product REST endpoint page.

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