Skip to main content

portals

Creates, updates, deletes or gets a portal resource or lists portals in a region

Overview

Nameportals
TypeResource
DescriptionResource schema for AWS::IoTSiteWise::Portal
Idawscc.iotsitewise.portals

Fields

NameDatatypeDescription
portal_auth_modestringThe service to use to authenticate users to the portal. Choose from SSO or IAM. You can't change this value after you create a portal.
portal_arnstringThe ARN of the portal, which has the following format.
portal_client_idstringThe AWS SSO application generated client ID (used with AWS SSO APIs).
portal_contact_emailstringThe AWS administrator's contact email address.
portal_descriptionstringA description for the portal.
portal_idstringThe ID of the portal.
portal_namestringA friendly name for the portal.
portal_start_urlstringThe public root URL for the AWS IoT AWS IoT SiteWise Monitor application portal.
portal_typestringThe type of portal
portal_type_configurationobjectMap to associate detail of configuration related with a PortalType.
role_arnstringThe ARN of a service role that allows the portal's users to access your AWS IoT SiteWise resources on your behalf.
notification_sender_emailstringThe email address that sends alarm notifications.
alarmsobjectContains the configuration information of an alarm created in an AWS IoT SiteWise Monitor portal. You can use the alarm to monitor an asset property and get notified when the asset property value is outside a specified range.
tagsarrayA list of key-value pairs that contain metadata for the portal.
regionstringAWS region.

For more information, see AWS::IoTSiteWise::Portal.

Methods

NameResourceAccessible byRequired Params
create_resourceportalsINSERTPortalContactEmail, PortalName, RoleArn, region
delete_resourceportalsDELETEIdentifier, region
update_resourceportalsUPDATEIdentifier, PatchDocument, region
list_resourcesportals_list_onlySELECTregion
get_resourceportalsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual portal.

SELECT
region,
portal_auth_mode,
portal_arn,
portal_client_id,
portal_contact_email,
portal_description,
portal_id,
portal_name,
portal_start_url,
portal_type,
portal_type_configuration,
role_arn,
notification_sender_email,
alarms,
tags
FROM awscc.iotsitewise.portals
WHERE
region = 'us-east-1' AND
Identifier = '{{ portal_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.iotsitewise.portals (
PortalContactEmail,
PortalName,
RoleArn,
region
)
SELECT
'{{ portal_contact_email }}',
'{{ portal_name }}',
'{{ role_arn }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a portal resource, using stack-deploy.

/*+ update */
UPDATE awscc.iotsitewise.portals
SET PatchDocument = string('{{ {
"PortalContactEmail": portal_contact_email,
"PortalDescription": portal_description,
"PortalName": portal_name,
"PortalTypeConfiguration": portal_type_configuration,
"RoleArn": role_arn,
"NotificationSenderEmail": notification_sender_email,
"Alarms": alarms,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ portal_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.iotsitewise.portals
WHERE
Identifier = '{{ portal_id }}' AND
region = 'us-east-1';

Permissions

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

iotsitewise:CreatePortal,
iotsitewise:DescribePortal,
iotsitewise:ListTagsForResource,
iotsitewise:TagResource,
iam:PassRole,
sso:CreateManagedApplicationInstance,
sso:DescribeRegisteredRegions