Skip to content
v2.278.0

ResourcePolicyReference ​

Struct External

A reference to a ResourcePolicy resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ssm as interfaces_ssm } from 'aws-cdk-lib/interfaces';
const resourcePolicyReference: interfaces_ssm.ResourcePolicyReference = {
  policyId: 'policyId',
  resourceArn: 'resourceArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_ssm as interfaces_ssm

resource_policy_reference = interfaces_ssm.ResourcePolicyReference(
    policy_id="policyId",
    resource_arn="resourceArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.ssm.*;

ResourcePolicyReference resourcePolicyReference = ResourcePolicyReference.builder()
        .policyId("policyId")
        .resourceArn("resourceArn")
        .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.Interfaces.SSM;

var resourcePolicyReference = new ResourcePolicyReference {
    PolicyId = "policyId",
    ResourceArn = "resourceArn"
};
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"

resourcePolicyReference := &ResourcePolicyReference{
	PolicyId: jsii.String("policyId"),
	ResourceArn: jsii.String("resourceArn"),
}

Properties ​

policyIdstringpolicy_idstrpolicyIdStringPolicyIdstringPolicyId*string required #
The PolicyId of the ResourcePolicy resource.
resourceArnstringresource_arnstrresourceArnStringResourceArnstringResourceArn*string required #
The ResourceArn of the ResourcePolicy resource.