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
Modifier and TypeClassDescriptionstatic interface
The identity (IAM Identity Center user, IAM Identity Center group, or IAM user) to which this access policy applies.static interface
The AWS IoT SiteWise Monitor resource for this access policy.static final class
A fluent builder forCfnAccessPolicy
.static interface
Contains information about an AWS Identity and Access Management role.static interface
Contains information about an AWS Identity and Access Management user.static interface
ThePortal
property type specifies the AWS IoT SiteWise Monitor portal for an AWS::IoTSiteWise::AccessPolicy .static interface
TheProject
property type specifies the AWS IoT SiteWise Monitor project for an AWS::IoTSiteWise::AccessPolicy .static interface
TheUser
property 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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnAccessPolicy
(Construct scope, String id, CfnAccessPolicyProps props) Create a newAWS::IoTSiteWise::AccessPolicy
.protected
CfnAccessPolicy
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnAccessPolicy
(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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
The identity for this access policy.void
The identity for this access policy.void
setAccessPolicyPermission
(String value) The permission level for this access policy.void
The AWS IoT SiteWise Monitor resource for this access policy.void
The 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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in 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
ADMINISTRATOR
orVIEWER
. Note that a projectADMINISTRATOR
is also known as a project owner. -
setAccessPolicyPermission
The permission level for this access policy.Choose either a
ADMINISTRATOR
orVIEWER
. Note that a projectADMINISTRATOR
is 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.
-