Skip to main content

portals

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

Overview​

Nameportals
TypeResource
Idaws.apigatewayv2.portals

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
authorizationobjectRepresents an authorization configuration for a portal.
endpoint_configurationobjectThe endpoint configuration.
included_portal_product_arnsarrayThe ARNs of the portal products included in the portal.
last_modifiedstring (date-time)The timestamp when the portal was last modified.
last_publishedstring (date-time)The timestamp when the portal was last published.
last_published_descriptionstringThe publish description used when the portal was last published.
portal_arnstringThe ARN of the portal.
portal_contentobjectContains the content that is visible to portal consumers including the themes, display names, and description.
portal_idstringThe portal identifier. (pattern: <code>^[a-z0-9]+$</code>)
previewobjectRepresents the preview endpoint and the any possible error messages during preview generation.
publish_statusstringThe publish status of a portal. (PUBLISHED, PUBLISH_IN_PROGRESS, PUBLISH_FAILED, DISABLE_IN_PROGRESS, DISABLE_FAILED, DISABLED)
rum_app_monitor_namestringThe CloudWatch RUM app monitor name.
status_exceptionobjectThe status exception information.
tagsobjectThe collection of tags. Each tag element is associated with a given resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_portalselectportal_id, regionGets a portal.
list_portalsselectregionmaxResults, nextTokenLists portals.
create_portalinsertregion, EndpointConfiguration, PortalContentCreates a portal.
update_portalupdateportal_id, regionUpdates a portal.
delete_portaldeleteportal_id, regionDeletes a portal.
disable_portalexecportal_id, regionDeletes the publication of a portal portal.
publish_portalexecportal_id, regionPublishes a portal.
preview_portalexecportal_id, regionCreates a portal preview.

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

SELECT examples​

Gets a portal.

SELECT
authorization,
endpoint_configuration,
included_portal_product_arns,
last_modified,
last_published,
last_published_description,
portal_arn,
portal_content,
portal_id,
preview,
publish_status,
rum_app_monitor_name,
status_exception,
tags
FROM aws.apigatewayv2.portals
WHERE portal_id = '{{ portal_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

Creates a portal.

INSERT INTO aws.apigatewayv2.portals (
Authorization,
EndpointConfiguration,
IncludedPortalProductArns,
LogoUri,
PortalContent,
RumAppMonitorName,
Tags,
region
)
SELECT
'{{ Authorization }}',
'{{ EndpointConfiguration }}' /* required */,
'{{ IncludedPortalProductArns }}',
'{{ LogoUri }}',
'{{ PortalContent }}' /* required */,
'{{ RumAppMonitorName }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
authorization,
endpoint_configuration,
included_portal_product_arns,
last_modified,
last_published,
last_published_description,
portal_arn,
portal_content,
portal_id,
publish_status,
rum_app_monitor_name,
status_exception,
tags
;

UPDATE examples​

Updates a portal.

UPDATE aws.apigatewayv2.portals
SET
Authorization = '{{ Authorization }}',
EndpointConfiguration = '{{ EndpointConfiguration }}',
IncludedPortalProductArns = '{{ IncludedPortalProductArns }}',
LogoUri = '{{ LogoUri }}',
PortalContent = '{{ PortalContent }}',
RumAppMonitorName = '{{ RumAppMonitorName }}'
WHERE
portal_id = '{{ portal_id }}' --required
AND region = '{{ region }}' --required
RETURNING
authorization,
endpoint_configuration,
included_portal_product_arns,
last_modified,
last_published,
last_published_description,
portal_arn,
portal_content,
portal_id,
preview,
publish_status,
rum_app_monitor_name,
status_exception,
tags;

DELETE examples​

Deletes a portal.

DELETE FROM aws.apigatewayv2.portals
WHERE portal_id = '{{ portal_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods​

Deletes the publication of a portal portal.

EXEC aws.apigatewayv2.portals.disable_portal
@portal_id='{{ portal_id }}' --required,
@region='{{ region }}' --required
;