Skip to content
v2.277.0

ResourcePolicyReference Struct ​

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_lambda as interfaces_lambda } from 'aws-cdk-lib/interfaces';
const resourcePolicyReference: interfaces_lambda.ResourcePolicyReference = {
  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_lambda as interfaces_lambda

resource_policy_reference = interfaces_lambda.ResourcePolicyReference(
    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.lambda.*;

ResourcePolicyReference resourcePolicyReference = ResourcePolicyReference.builder()
        .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.Lambda;

var resourcePolicyReference = new ResourcePolicyReference {
    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{
	ResourceArn: jsii.String("resourceArn"),
}

Properties ​

resourceArnstringresource_arnstrresourceArnStringResourceArnstringResourceArn*stringrequired#
The ResourceArn of the ResourcePolicy resource.