aws-cdk-lib.aws_iotsitewise.CfnAccessPolicyProps

interface CfnAccessPolicyProps

LanguageType name
.NETAmazon.CDK.AWS.IoTSiteWise.CfnAccessPolicyProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiotsitewise#CfnAccessPolicyProps
Javasoftware.amazon.awscdk.services.iotsitewise.CfnAccessPolicyProps
Pythonaws_cdk.aws_iotsitewise.CfnAccessPolicyProps
TypeScript aws-cdk-lib » aws_iotsitewise » CfnAccessPolicyProps

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 { aws_iotsitewise as iotsitewise } from 'aws-cdk-lib';
const cfnAccessPolicyProps: iotsitewise.CfnAccessPolicyProps = {
  accessPolicyIdentity: {
    iamRole: {
      arn: 'arn',
    },
    iamUser: {
      arn: 'arn',
    },
    user: {
      id: 'id',
    },
  },
  accessPolicyPermission: 'accessPolicyPermission',
  accessPolicyResource: {
    portal: {
      id: 'id',
    },
    project: {
      id: 'id',
    },
  },
};

Properties

NameTypeDescription
accessPolicyIdentityIResolvable | AccessPolicyIdentityPropertyThe identity for this access policy.
accessPolicyPermissionstringThe permission level for this access policy.
accessPolicyResourceIResolvable | AccessPolicyResourcePropertyThe AWS IoT SiteWise Monitor resource for this access policy.

accessPolicyIdentity

Type: IResolvable | AccessPolicyIdentityProperty

The identity for this access policy.

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


accessPolicyPermission

Type: string

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.


accessPolicyResource

Type: IResolvable | AccessPolicyResourceProperty

The AWS IoT SiteWise Monitor resource for this access policy.

Choose either a portal or a project.