Class CfnPortal
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::IoTSiteWise::Portal.
Creates a portal, which can contain projects and dashboards. Before you can create a portal, you must enable IAM Identity Center . AWS IoT SiteWise Monitor uses IAM Identity Center to manage user permissions. For more information, see Enabling IAM Identity Center in the AWS IoT SiteWise User Guide .
Before you can sign in to a new portal, you must add at least one IAM Identity Center user or group to that portal. For more information, see Adding or removing portal administrators in the AWS IoT SiteWise User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotsitewise.*;
Object alarms;
CfnPortal cfnPortal = CfnPortal.Builder.create(this, "MyCfnPortal")
.portalContactEmail("portalContactEmail")
.portalName("portalName")
.roleArn("roleArn")
// the properties below are optional
.alarms(alarms)
.notificationSenderEmail("notificationSenderEmail")
.portalAuthMode("portalAuthMode")
.portalDescription("portalDescription")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceContains the configuration information of an alarm created in an AWS IoT SiteWise Monitor portal.static final classA fluent builder forCfnPortal.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionContains the configuration information of an alarm created in an AWS IoT SiteWise Monitor portal.The ARN of the portal, which has the following format.The IAM Identity Center application generated client ID (used with IAM Identity Center APIs).The ID of the created portal.The public URL for the AWS IoT SiteWise Monitor portal.The email address that sends alarm notifications.The service to use to authenticate users to the portal.The AWS administrator's contact email address.A description for the portal.A friendly name for the portal.The ARN of a service role that allows the portal's users to access your AWS IoT SiteWise resources on your behalf.getTags()A list of key-value pairs that contain metadata for the portal.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidContains the configuration information of an alarm created in an AWS IoT SiteWise Monitor portal.voidsetNotificationSenderEmail(String value) The email address that sends alarm notifications.voidsetPortalAuthMode(String value) The service to use to authenticate users to the portal.voidsetPortalContactEmail(String value) The AWS administrator's contact email address.voidsetPortalDescription(String value) A description for the portal.voidsetPortalName(String value) A friendly name for the portal.voidsetRoleArn(String value) The ARN of a service role that allows the portal's users to access your AWS IoT SiteWise resources on your behalf.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnPortal
protected CfnPortal(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPortal
protected CfnPortal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPortal
@Stability(Stable) public CfnPortal(@NotNull Construct scope, @NotNull String id, @NotNull CfnPortalProps props) Create a newAWS::IoTSiteWise::Portal.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrPortalArn
The ARN of the portal, which has the following format.arn:${Partition}:iotsitewise:${Region}:${Account}:portal/${PortalId} -
getAttrPortalClientId
The IAM Identity Center application generated client ID (used with IAM Identity Center APIs). -
getAttrPortalId
The ID of the created portal. -
getAttrPortalStartUrl
The public URL for the AWS IoT SiteWise Monitor portal. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
A list of key-value pairs that contain metadata for the portal.For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide .
-
getAlarms
Contains 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. For more information, see Monitoring with alarms in the AWS IoT SiteWise Application Guide .
-
setAlarms
Contains 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. For more information, see Monitoring with alarms in the AWS IoT SiteWise Application Guide .
-
getPortalContactEmail
The AWS administrator's contact email address. -
setPortalContactEmail
The AWS administrator's contact email address. -
getPortalName
A friendly name for the portal. -
setPortalName
A friendly name for the portal. -
getRoleArn
The ARN of a service role that allows the portal's users to access your AWS IoT SiteWise resources on your behalf. For more information, see Using service roles for AWS IoT SiteWise Monitor in the AWS IoT SiteWise User Guide . -
setRoleArn
The ARN of a service role that allows the portal's users to access your AWS IoT SiteWise resources on your behalf. For more information, see Using service roles for AWS IoT SiteWise Monitor in the AWS IoT SiteWise User Guide . -
getNotificationSenderEmail
The email address that sends alarm notifications.If you use the AWS IoT Events managed Lambda function to manage your emails, you must verify the sender email address in Amazon SES .
-
setNotificationSenderEmail
The email address that sends alarm notifications.If you use the AWS IoT Events managed Lambda function to manage your emails, you must verify the sender email address in Amazon SES .
-
getPortalAuthMode
The service to use to authenticate users to the portal. Choose from the following options:.SSO– The portal uses AWS IAM Identity Center (successor to AWS Single Sign-On) to authenticate users and manage user permissions. Before you can create a portal that uses IAM Identity Center , you must enable IAM Identity Center . For more information, see Enabling IAM Identity Center in the AWS IoT SiteWise User Guide . This option is only available in AWS Regions other than the China Regions.IAM– The portal uses AWS Identity and Access Management ( IAM ) to authenticate users and manage user permissions.
You can't change this value after you create a portal.
Default:
SSO -
setPortalAuthMode
The service to use to authenticate users to the portal. Choose from the following options:.SSO– The portal uses AWS IAM Identity Center (successor to AWS Single Sign-On) to authenticate users and manage user permissions. Before you can create a portal that uses IAM Identity Center , you must enable IAM Identity Center . For more information, see Enabling IAM Identity Center in the AWS IoT SiteWise User Guide . This option is only available in AWS Regions other than the China Regions.IAM– The portal uses AWS Identity and Access Management ( IAM ) to authenticate users and manage user permissions.
You can't change this value after you create a portal.
Default:
SSO -
getPortalDescription
A description for the portal. -
setPortalDescription
A description for the portal.
-