CfnAccessPolicyProps

class aws_cdk.aws_iotsitewise.CfnAccessPolicyProps(*, access_policy_identity, access_policy_permission, access_policy_resource)

Bases: object

Properties for defining a CfnAccessPolicy.

Parameters
  • access_policy_identity (Union[AccessPolicyIdentityProperty, IResolvable]) – The identity for this access policy. Choose an AWS SSO user, an AWS SSO group, or an IAM user.

  • access_policy_permission (str) – 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.

  • access_policy_resource (Union[IResolvable, AccessPolicyResourceProperty]) – The AWS IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-accesspolicy.html

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_iotsitewise as iotsitewise

cfn_access_policy_props = iotsitewise.CfnAccessPolicyProps(
    access_policy_identity=iotsitewise.CfnAccessPolicy.AccessPolicyIdentityProperty(
        iam_role=iotsitewise.CfnAccessPolicy.IamRoleProperty(
            arn="arn"
        ),
        iam_user=iotsitewise.CfnAccessPolicy.IamUserProperty(
            arn="arn"
        ),
        user=iotsitewise.CfnAccessPolicy.UserProperty(
            id="id"
        )
    ),
    access_policy_permission="accessPolicyPermission",
    access_policy_resource=iotsitewise.CfnAccessPolicy.AccessPolicyResourceProperty(
        portal=iotsitewise.CfnAccessPolicy.PortalProperty(
            id="id"
        ),
        project=iotsitewise.CfnAccessPolicy.ProjectProperty(
            id="id"
        )
    )
)

Attributes

access_policy_identity

The identity for this access policy.

Choose an AWS SSO user, an AWS SSO group, or an IAM user.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-accesspolicy.html#cfn-iotsitewise-accesspolicy-accesspolicyidentity

Return type

Union[AccessPolicyIdentityProperty, IResolvable]

access_policy_permission

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.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-accesspolicy.html#cfn-iotsitewise-accesspolicy-accesspolicypermission

Return type

str

access_policy_resource

The AWS IoT SiteWise Monitor resource for this access policy.

Choose either a portal or a project.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-accesspolicy.html#cfn-iotsitewise-accesspolicy-accesspolicyresource

Return type

Union[IResolvable, AccessPolicyResourceProperty]