Skip to content
v2.278.0

BucketPolicyReference Struct ​

A reference to a BucketPolicy resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3outposts as interfaces_s3outposts } from 'aws-cdk-lib/interfaces';
const bucketPolicyReference: interfaces_s3outposts.BucketPolicyReference = {
  bucket: 'bucket',
};
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_s3outposts as interfaces_s3outposts

bucket_policy_reference = interfaces_s3outposts.BucketPolicyReference(
    bucket="bucket"
)
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.s3outposts.*;

BucketPolicyReference bucketPolicyReference = BucketPolicyReference.builder()
        .bucket("bucket")
        .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.S3Outposts;

var bucketPolicyReference = new BucketPolicyReference {
    Bucket = "bucket"
};
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"

bucketPolicyReference := &BucketPolicyReference{
	Bucket: jsii.String("bucket"),
}

Properties ​

bucketstringbucketstrbucketStringBucketstringBucket*string required #
The Bucket of the BucketPolicy resource.