@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.028Z") @Stability(value=Stable) public class CfnAccessPolicy extends CfnResource implements IInspectable
Creates an access policy that grants the specified identity ( AWS SSO user, AWS SSO 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();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnAccessPolicy.AccessPolicyIdentityProperty
The identity ( AWS SSO user, AWS SSO group, or IAM user) to which this access policy applies.
|
static interface |
CfnAccessPolicy.AccessPolicyResourceProperty
The AWS IoT SiteWise Monitor resource for this access policy.
|
static class |
CfnAccessPolicy.Builder
A fluent builder for
CfnAccessPolicy. |
static interface |
CfnAccessPolicy.IamRoleProperty
Contains information about an AWS Identity and Access Management role.
|
static interface |
CfnAccessPolicy.IamUserProperty
Contains information about an AWS Identity and Access Management user.
|
static interface |
CfnAccessPolicy.PortalProperty
The `Portal` property type specifies the AWS IoT SiteWise Monitor portal for an [AWS::IoTSiteWise::AccessPolicy](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-accesspolicy.html) .
|
static interface |
CfnAccessPolicy.ProjectProperty
The `Project` property type specifies the AWS IoT SiteWise Monitor project for an [AWS::IoTSiteWise::AccessPolicy](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-accesspolicy.html) .
|
static interface |
CfnAccessPolicy.UserProperty
The `User` property type specifies the AWS IoT SiteWise Monitor user for an [AWS::IoTSiteWise::AccessPolicy](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-accesspolicy.html) .
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnAccessPolicy(software.constructs.Construct scope,
String id,
CfnAccessPolicyProps props)
Create a new `AWS::IoTSiteWise::AccessPolicy`.
|
protected |
CfnAccessPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnAccessPolicy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAccessPolicyIdentity()
The identity for this access policy.
|
String |
getAccessPolicyPermission()
The permission level for this access policy.
|
Object |
getAccessPolicyResource()
The AWS IoT SiteWise Monitor resource for this access policy.
|
String |
getAttrAccessPolicyArn()
The [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of the access policy, which has the following format.
|
String |
getAttrAccessPolicyId()
The ID of the access policy.
|
protected Map<String,Object> |
getCfnProperties() |
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAccessPolicyIdentity(CfnAccessPolicy.AccessPolicyIdentityProperty value)
The identity for this access policy.
|
void |
setAccessPolicyIdentity(IResolvable value)
The identity for this access policy.
|
void |
setAccessPolicyPermission(String value)
The permission level for this access policy.
|
void |
setAccessPolicyResource(CfnAccessPolicy.AccessPolicyResourceProperty value)
The AWS IoT SiteWise Monitor resource for this access policy.
|
void |
setAccessPolicyResource(IResolvable value)
The AWS IoT SiteWise Monitor resource for this access policy.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnAccessPolicy(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAccessPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnAccessPolicy(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnAccessPolicyProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrAccessPolicyArn()
arn:${Partition}:iotsitewise:${Region}:${Account}:access-policy/${AccessPolicyId}
@Stability(value=Stable) @NotNull public String getAttrAccessPolicyId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public Object getAccessPolicyIdentity()
Choose an AWS SSO user, an AWS SSO group, or an IAM user.
@Stability(value=Stable)
public void setAccessPolicyIdentity(@NotNull
CfnAccessPolicy.AccessPolicyIdentityProperty value)
Choose an AWS SSO user, an AWS SSO group, or an IAM user.
@Stability(value=Stable)
public void setAccessPolicyIdentity(@NotNull
IResolvable value)
Choose an AWS SSO user, an AWS SSO group, or an IAM user.
@Stability(value=Stable) @NotNull public String getAccessPolicyPermission()
Choose either a ADMINISTRATOR or VIEWER . Note that a project ADMINISTRATOR is also known as a project owner.
@Stability(value=Stable)
public void setAccessPolicyPermission(@NotNull
String value)
Choose either a ADMINISTRATOR or VIEWER . Note that a project ADMINISTRATOR is also known as a project owner.
@Stability(value=Stable) @NotNull public Object getAccessPolicyResource()
Choose either a portal or a project.
@Stability(value=Stable)
public void setAccessPolicyResource(@NotNull
CfnAccessPolicy.AccessPolicyResourceProperty value)
Choose either a portal or a project.
@Stability(value=Stable)
public void setAccessPolicyResource(@NotNull
IResolvable value)
Choose either a portal or a project.
Copyright © 2022. All rights reserved.