Class CfnAccessPolicy.Builder
java.lang.Object
software.amazon.awscdk.services.iotsitewise.CfnAccessPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessPolicy>
- Enclosing class:
CfnAccessPolicy
@Stability(Stable)
public static final class CfnAccessPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAccessPolicy>
A fluent builder for
CfnAccessPolicy
.-
Method Summary
Modifier and TypeMethodDescriptionaccessPolicyIdentity
(IResolvable accessPolicyIdentity) The identity for this access policy.accessPolicyIdentity
(CfnAccessPolicy.AccessPolicyIdentityProperty accessPolicyIdentity) The identity for this access policy.accessPolicyPermission
(String accessPolicyPermission) The permission level for this access policy.accessPolicyResource
(IResolvable accessPolicyResource) The AWS IoT SiteWise Monitor resource for this access policy.accessPolicyResource
(CfnAccessPolicy.AccessPolicyResourceProperty accessPolicyResource) The AWS IoT SiteWise Monitor resource for this access policy.build()
static CfnAccessPolicy.Builder
-
Method Details
-
create
@Stability(Stable) public static CfnAccessPolicy.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnAccessPolicy.Builder
.
-
accessPolicyIdentity
@Stability(Stable) public CfnAccessPolicy.Builder accessPolicyIdentity(IResolvable accessPolicyIdentity) The identity for this access policy.Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.
- Parameters:
accessPolicyIdentity
- The identity for this access policy. This parameter is required.- Returns:
this
- See Also:
-
accessPolicyIdentity
@Stability(Stable) public CfnAccessPolicy.Builder accessPolicyIdentity(CfnAccessPolicy.AccessPolicyIdentityProperty accessPolicyIdentity) The identity for this access policy.Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.
- Parameters:
accessPolicyIdentity
- The identity for this access policy. This parameter is required.- Returns:
this
- See Also:
-
accessPolicyPermission
@Stability(Stable) public CfnAccessPolicy.Builder accessPolicyPermission(String accessPolicyPermission) The permission level for this access policy.Note that a project
ADMINISTRATOR
is also known as a project owner.- Parameters:
accessPolicyPermission
- The permission level for this access policy. This parameter is required.- Returns:
this
- See Also:
-
accessPolicyResource
@Stability(Stable) public CfnAccessPolicy.Builder accessPolicyResource(IResolvable accessPolicyResource) The AWS IoT SiteWise Monitor resource for this access policy.Choose either a portal or a project.
- Parameters:
accessPolicyResource
- The AWS IoT SiteWise Monitor resource for this access policy. This parameter is required.- Returns:
this
- See Also:
-
accessPolicyResource
@Stability(Stable) public CfnAccessPolicy.Builder accessPolicyResource(CfnAccessPolicy.AccessPolicyResourceProperty accessPolicyResource) The AWS IoT SiteWise Monitor resource for this access policy.Choose either a portal or a project.
- Parameters:
accessPolicyResource
- The AWS IoT SiteWise Monitor resource for this access policy. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAccessPolicy>
- Returns:
- a newly built instance of
CfnAccessPolicy
.
-