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
[IResolvable
,AccessPolicyIdentityProperty
,Dict
[str
,Any
]]) – The identity for this access policy. Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.access_policy_permission (
str
) – The permission level for this access policy. Note that a projectADMINISTRATOR
is also known as a project owner.access_policy_resource (
Union
[IResolvable
,AccessPolicyResourceProperty
,Dict
[str
,Any
]]) – The AWS IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import 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 IAM Identity Center user, an IAM Identity Center group, or an IAM user.
- access_policy_permission
The permission level for this access policy.
Note that a project
ADMINISTRATOR
is also known as a project owner.
- access_policy_resource
The AWS IoT SiteWise Monitor resource for this access policy.
Choose either a portal or a project.