Class CfnPortalProps.Builder
java.lang.Object
software.amazon.awscdk.services.iotsitewise.CfnPortalProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPortalProps>
- Enclosing interface:
CfnPortalProps
@Stability(Stable)
public static final class CfnPortalProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPortalProps>
A builder for
CfnPortalProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnPortalProps.getAlarms()
build()
Builds the configured instance.notificationSenderEmail
(String notificationSenderEmail) Sets the value ofCfnPortalProps.getNotificationSenderEmail()
portalAuthMode
(String portalAuthMode) Sets the value ofCfnPortalProps.getPortalAuthMode()
portalContactEmail
(String portalContactEmail) Sets the value ofCfnPortalProps.getPortalContactEmail()
portalDescription
(String portalDescription) Sets the value ofCfnPortalProps.getPortalDescription()
portalName
(String portalName) Sets the value ofCfnPortalProps.getPortalName()
Sets the value ofCfnPortalProps.getRoleArn()
Sets the value ofCfnPortalProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
portalContactEmail
Sets the value ofCfnPortalProps.getPortalContactEmail()
- Parameters:
portalContactEmail
- The AWS administrator's contact email address. This parameter is required.- Returns:
this
-
portalName
Sets the value ofCfnPortalProps.getPortalName()
- Parameters:
portalName
- A friendly name for the portal. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnPortalProps.getRoleArn()
- Parameters:
roleArn
- 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 . This parameter is required.- Returns:
this
-
alarms
Sets the value ofCfnPortalProps.getAlarms()
- Parameters:
alarms
- 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 .- Returns:
this
-
notificationSenderEmail
@Stability(Stable) public CfnPortalProps.Builder notificationSenderEmail(String notificationSenderEmail) Sets the value ofCfnPortalProps.getNotificationSenderEmail()
- Parameters:
notificationSenderEmail
- 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 .
- Returns:
this
-
portalAuthMode
Sets the value ofCfnPortalProps.getPortalAuthMode()
- Parameters:
portalAuthMode
- The service to use to authenticate users to the portal. Choose from the following options:.SSO
– The portal uses AWS IAM Identity Center 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 to authenticate users and manage user permissions.
You can't change this value after you create a portal.
Default:
SSO
- Returns:
this
-
portalDescription
Sets the value ofCfnPortalProps.getPortalDescription()
- Parameters:
portalDescription
- A description for the portal.- Returns:
this
-
tags
Sets the value ofCfnPortalProps.getTags()
- Parameters:
tags
- 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 .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPortalProps>
- Returns:
- a new instance of
CfnPortalProps
- Throws:
NullPointerException
- if any required attribute was not provided
-