Class CfnAccessPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.iotsitewise.CfnAccessPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessPolicyProps>
- Enclosing interface:
CfnAccessPolicyProps
@Stability(Stable)
public static final class CfnAccessPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAccessPolicyProps>
A builder for
CfnAccessPolicyProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessPolicyIdentity
(IResolvable accessPolicyIdentity) Sets the value ofCfnAccessPolicyProps.getAccessPolicyIdentity()
accessPolicyIdentity
(CfnAccessPolicy.AccessPolicyIdentityProperty accessPolicyIdentity) Sets the value ofCfnAccessPolicyProps.getAccessPolicyIdentity()
accessPolicyPermission
(String accessPolicyPermission) Sets the value ofCfnAccessPolicyProps.getAccessPolicyPermission()
accessPolicyResource
(IResolvable accessPolicyResource) Sets the value ofCfnAccessPolicyProps.getAccessPolicyResource()
accessPolicyResource
(CfnAccessPolicy.AccessPolicyResourceProperty accessPolicyResource) Sets the value ofCfnAccessPolicyProps.getAccessPolicyResource()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessPolicyIdentity
@Stability(Stable) public CfnAccessPolicyProps.Builder accessPolicyIdentity(IResolvable accessPolicyIdentity) Sets the value ofCfnAccessPolicyProps.getAccessPolicyIdentity()
- Parameters:
accessPolicyIdentity
- The identity for this access policy. This parameter is required. Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.- Returns:
this
-
accessPolicyIdentity
@Stability(Stable) public CfnAccessPolicyProps.Builder accessPolicyIdentity(CfnAccessPolicy.AccessPolicyIdentityProperty accessPolicyIdentity) Sets the value ofCfnAccessPolicyProps.getAccessPolicyIdentity()
- Parameters:
accessPolicyIdentity
- The identity for this access policy. This parameter is required. Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.- Returns:
this
-
accessPolicyPermission
@Stability(Stable) public CfnAccessPolicyProps.Builder accessPolicyPermission(String accessPolicyPermission) Sets the value ofCfnAccessPolicyProps.getAccessPolicyPermission()
- Parameters:
accessPolicyPermission
- The permission level for this access policy. This parameter is required. Note that a projectADMINISTRATOR
is also known as a project owner.- Returns:
this
-
accessPolicyResource
@Stability(Stable) public CfnAccessPolicyProps.Builder accessPolicyResource(IResolvable accessPolicyResource) Sets the value ofCfnAccessPolicyProps.getAccessPolicyResource()
- Parameters:
accessPolicyResource
- The AWS IoT SiteWise Monitor resource for this access policy. This parameter is required. Choose either a portal or a project.- Returns:
this
-
accessPolicyResource
@Stability(Stable) public CfnAccessPolicyProps.Builder accessPolicyResource(CfnAccessPolicy.AccessPolicyResourceProperty accessPolicyResource) Sets the value ofCfnAccessPolicyProps.getAccessPolicyResource()
- Parameters:
accessPolicyResource
- The AWS IoT SiteWise Monitor resource for this access policy. This parameter is required. Choose either a portal or a project.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAccessPolicyProps>
- Returns:
- a new instance of
CfnAccessPolicyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-