Interface CfnAccessPolicyProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnAccessPolicyProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:57.888Z") @Stability(Stable) public interface CfnAccessPolicyProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnAccessPolicy.

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.*;
 CfnAccessPolicyProps cfnAccessPolicyProps = CfnAccessPolicyProps.builder()
         .accessPolicyIdentity(AccessPolicyIdentityProperty.builder()
                 .iamRole(IamRoleProperty.builder()
                         .arn("arn")
                         .build())
                 .iamUser(IamUserProperty.builder()
                         .arn("arn")
                         .build())
                 .user(UserProperty.builder()
                         .id("id")
                         .build())
                 .build())
         .accessPolicyPermission("accessPolicyPermission")
         .accessPolicyResource(AccessPolicyResourceProperty.builder()
                 .portal(PortalProperty.builder()
                         .id("id")
                         .build())
                 .project(ProjectProperty.builder()
                         .id("id")
                         .build())
                 .build())
         .build();
 
  • Method Details

    • getAccessPolicyIdentity

      @Stability(Stable) @NotNull Object getAccessPolicyIdentity()
      The identity for this access policy.

      Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.

    • getAccessPolicyPermission

      @Stability(Stable) @NotNull String getAccessPolicyPermission()
      The permission level for this access policy.

      Choose either a ADMINISTRATOR or VIEWER . Note that a project ADMINISTRATOR is also known as a project owner.

    • getAccessPolicyResource

      @Stability(Stable) @NotNull Object getAccessPolicyResource()
      The AWS IoT SiteWise Monitor resource for this access policy.

      Choose either a portal or a project.

    • builder

      @Stability(Stable) static CfnAccessPolicyProps.Builder builder()
      Returns:
      a CfnAccessPolicyProps.Builder of CfnAccessPolicyProps