AccessPolicyResourceProperty Struct
The AWS IoT SiteWise Monitor resource for this access policy.
Choose either a portal or a project.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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 accessPolicyResourceProperty: iotsitewise.CfnAccessPolicy.AccessPolicyResourceProperty = {
portal: {
id: 'id',
},
project: {
id: 'id',
},
};
python
# 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
access_policy_resource_property = iotsitewise.CfnAccessPolicy.AccessPolicyResourceProperty(
portal=iotsitewise.CfnAccessPolicy.PortalProperty(
id="id"
),
project=iotsitewise.CfnAccessPolicy.ProjectProperty(
id="id"
)
)
java
// 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.*;
AccessPolicyResourceProperty accessPolicyResourceProperty = AccessPolicyResourceProperty.builder()
.portal(PortalProperty.builder()
.id("id")
.build())
.project(ProjectProperty.builder()
.id("id")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTSiteWise;
var accessPolicyResourceProperty = new AccessPolicyResourceProperty {
Portal = new PortalProperty {
Id = "id"
},
Project = new ProjectProperty {
Id = "id"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
accessPolicyResourceProperty := &AccessPolicyResourceProperty{
Portal: &PortalProperty{
Id: jsii.String("id"),
},
Project: &ProjectProperty{
Id: jsii.String("id"),
},
}
Properties
portaloptionalIResolvable | CfnAccessPolicy.PortalPropertyportaloptionaltyping.Union[IResolvable, PortalProperty]portaloptionalIResolvablePortaloptionalIResolvablePortaloptionalinterface{} #Identifies an AWS IoT SiteWise Monitor portal.
projectoptionalIResolvable | CfnAccessPolicy.ProjectPropertyprojectoptionaltyping.Union[IResolvable, ProjectProperty]projectoptionalIResolvableProjectoptionalIResolvableProjectoptionalinterface{} #Identifies a specific AWS IoT SiteWise Monitor project.