Class CfnPortal
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IPortalRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
The AWS IoT SiteWise Monitor feature will no longer be open to new customers starting November 7, 2025 .
If you would like to use the AWS IoT SiteWise Monitor feature, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see AWS IoT SiteWise Monitor availability change .
Creates a portal, which can contain projects and dashboards. AWS IoT SiteWise Monitor uses IAM Identity Center or IAM to authenticate portal users and manage user permissions.
Before you can sign in to a new portal, you must add at least one identity 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")
.portalType("portalType")
.portalTypeConfiguration(Map.of(
"portalTypeConfigurationKey", PortalTypeEntryProperty.builder()
.portalTools(List.of("portalTools"))
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
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.static interfaceContainer associated a certain PortalType.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.iotsitewise.IPortalRef
IPortalRef.Jsii$Default, IPortalRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPortal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPortal(software.amazon.jsii.JsiiObjectRef objRef) CfnPortal(software.constructs.Construct scope, String id, CfnPortalProps props) Create a newAWS::IoTSiteWise::Portal. -
Method Summary
Modifier and TypeMethodDescriptionstatic IPortalReffromPortalArn(software.constructs.Construct scope, String id, String arn) Creates a new IPortalRef from an ARN.static IPortalReffromPortalId(software.constructs.Construct scope, String id, String portalId) Creates a new IPortalRef from a portalId.Contains 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.A reference to a Portal resource.Define the type of portal.Map to associate detail of configuration related with a PortalType.The ARN of a service role that allows the portal's users to access your AWS IoT SiteWise resources on your behalf.getTags()Tag Manager which manages the tags for this resource.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.voidsetPortalType(String value) Define the type of portal.voidsetPortalTypeConfiguration(Map<String, Object> value) Map to associate detail of configuration related with a PortalType.voidMap to associate detail of configuration related with a PortalType.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.voidsetTagsRaw(List<CfnTag> value) A list of key-value pairs that contain metadata for the portal.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnPortalProps props) Create a newAWS::IoTSiteWise::Portal.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromPortalArn
@Stability(Stable) @NotNull public static IPortalRef fromPortalArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IPortalRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromPortalId
@Stability(Stable) @NotNull public static IPortalRef fromPortalId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String portalId) Creates a new IPortalRef from a portalId.- Parameters:
scope- This parameter is required.id- This parameter is required.portalId- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
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
-
getPortalRef
A reference to a Portal resource.- Specified by:
getPortalRefin interfaceIPortalRef
-
getTags
Tag Manager which manages the tags for this resource. -
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 . -
getAlarms
Contains the configuration information of an alarm created in an AWS IoT SiteWise Monitor portal. -
setAlarms
Contains the configuration information of an alarm created in an AWS IoT SiteWise Monitor portal. -
getNotificationSenderEmail
The email address that sends alarm notifications. -
setNotificationSenderEmail
The email address that sends alarm notifications. -
getPortalAuthMode
The service to use to authenticate users to the portal.Choose from the following options:.
-
setPortalAuthMode
The service to use to authenticate users to the portal.Choose from the following options:.
-
getPortalDescription
A description for the portal. -
setPortalDescription
A description for the portal. -
getPortalType
Define the type of portal. -
setPortalType
Define the type of portal. -
getPortalTypeConfiguration
Map to associate detail of configuration related with a PortalType.Returns union: either
IResolvableor Mapinvalid input: '<'String, eitherIResolvableorCfnPortal.PortalTypeEntryProperty> -
setPortalTypeConfiguration
Map to associate detail of configuration related with a PortalType. -
setPortalTypeConfiguration
Map to associate detail of configuration related with a PortalType. -
getTagsRaw
A list of key-value pairs that contain metadata for the portal. -
setTagsRaw
A list of key-value pairs that contain metadata for the portal.
-