Interface CfnBucketPolicyProps

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:35.069Z") @Stability(Stable) public interface CfnBucketPolicyProps extends
Properties for defining a CfnBucketPolicy.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 Object policyDocument;
 CfnBucketPolicyProps cfnBucketPolicyProps = CfnBucketPolicyProps.builder()
  • Method Details

    • getBucket

      @Stability(Stable) @NotNull String getBucket()
      The name of the Amazon S3 Outposts bucket to which the policy applies.
    • getPolicyDocument

      @Stability(Stable) @NotNull Object 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 Access Policy Language Overview .

    • builder

      @Stability(Stable) static CfnBucketPolicyProps.Builder builder()
      a CfnBucketPolicyProps.Builder of CfnBucketPolicyProps