Interface CfnBucketPolicyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBucketPolicyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-15T10:25:06.729Z")
@Stability(Stable)
public interface CfnBucketPolicyProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnBucketPolicy
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.s3express.*; Object policyDocument; CfnBucketPolicyProps cfnBucketPolicyProps = CfnBucketPolicyProps.builder() .bucket("bucket") .policyDocument(policyDocument) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnBucketPolicyProps
static final class
An implementation forCfnBucketPolicyProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnBucketPolicyProps.Builder
builder()
The name of the S3 directory bucket to which the policy applies.A policy document containing permissions to add to the specified bucket.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBucket
The name of the S3 directory bucket to which the policy applies.- See Also:
-
getPolicyDocument
A policy document containing permissions to add to the specified bucket.In IAM, you must provide policy documents in JSON format. However, in CloudFormation you can provide the policy in JSON or YAML format because CloudFormation converts YAML to JSON before submitting it to IAM. For more information, see the AWS::IAM::Policy PolicyDocument resource description in this guide and Policies and Permissions in Amazon S3 in the Amazon S3 User Guide .
- See Also:
-
builder
- Returns:
- a
CfnBucketPolicyProps.Builder
ofCfnBucketPolicyProps
-