Class CfnAccessPolicy
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::IoTSiteWise::AccessPolicy.
Creates an access policy that grants the specified identity (IAM Identity Center user, IAM Identity Center group, or IAM user) access to the specified AWS IoT SiteWise Monitor portal or project resource.
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.*;
CfnAccessPolicy cfnAccessPolicy = CfnAccessPolicy.Builder.create(this, "MyCfnAccessPolicy")
.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();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe identity (IAM Identity Center user, IAM Identity Center group, or IAM user) to which this access policy applies.static interfaceThe AWS IoT SiteWise Monitor resource for this access policy.static final classA fluent builder forCfnAccessPolicy.static interfaceContains information about an AWS Identity and Access Management role.static interfaceContains information about an AWS Identity and Access Management user.static interfaceThePortalproperty type specifies the AWS IoT SiteWise Monitor portal for an AWS::IoTSiteWise::AccessPolicy .static interfaceTheProjectproperty type specifies the AWS IoT SiteWise Monitor project for an AWS::IoTSiteWise::AccessPolicy .static interfaceTheUserproperty type specifies the AWS IoT SiteWise Monitor user for an AWS::IoTSiteWise::AccessPolicy .Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnAccessPolicy(Construct scope, String id, CfnAccessPolicyProps props) Create a newAWS::IoTSiteWise::AccessPolicy.protectedCfnAccessPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAccessPolicy(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe identity for this access policy.The permission level for this access policy.The AWS IoT SiteWise Monitor resource for this access policy.The ARN of the access policy, which has the following format.The ID of the access policy.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe identity for this access policy.voidThe identity for this access policy.voidsetAccessPolicyPermission(String value) The permission level for this access policy.voidThe AWS IoT SiteWise Monitor resource for this access policy.voidThe AWS IoT SiteWise Monitor resource for this access policy.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAccessPolicy
protected CfnAccessPolicy(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAccessPolicy
protected CfnAccessPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAccessPolicy
@Stability(Stable) public CfnAccessPolicy(@NotNull Construct scope, @NotNull String id, @NotNull CfnAccessPolicyProps props) Create a newAWS::IoTSiteWise::AccessPolicy.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrAccessPolicyArn
The ARN of the access policy, which has the following format.arn:${Partition}:iotsitewise:${Region}:${Account}:access-policy/${AccessPolicyId} -
getAttrAccessPolicyId
The ID of the access policy. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getAccessPolicyIdentity
The identity for this access policy.Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.
-
setAccessPolicyIdentity
@Stability(Stable) public void setAccessPolicyIdentity(@NotNull CfnAccessPolicy.AccessPolicyIdentityProperty value) The identity for this access policy.Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.
-
setAccessPolicyIdentity
The identity for this access policy.Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.
-
getAccessPolicyPermission
The permission level for this access policy.Choose either a
ADMINISTRATORorVIEWER. Note that a projectADMINISTRATORis also known as a project owner. -
setAccessPolicyPermission
The permission level for this access policy.Choose either a
ADMINISTRATORorVIEWER. Note that a projectADMINISTRATORis also known as a project owner. -
getAccessPolicyResource
The AWS IoT SiteWise Monitor resource for this access policy.Choose either a portal or a project.
-
setAccessPolicyResource
The AWS IoT SiteWise Monitor resource for this access policy.Choose either a portal or a project.
-
setAccessPolicyResource
@Stability(Stable) public void setAccessPolicyResource(@NotNull CfnAccessPolicy.AccessPolicyResourceProperty value) The AWS IoT SiteWise Monitor resource for this access policy.Choose either a portal or a project.
-