Class BucketPolicyState.Builder

  • Enclosing class:
    BucketPolicyState

    public static final class BucketPolicyState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • bucket

        public BucketPolicyState.Builder bucket​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> bucket)
        Parameters:
        bucket - Name of the bucket to which to apply the policy.
        Returns:
        builder
      • bucket

        public BucketPolicyState.Builder bucket​(java.lang.String bucket)
        Parameters:
        bucket - Name of the bucket to which to apply the policy.
        Returns:
        builder
      • policy

        public BucketPolicyState.Builder policy​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> policy)
        Parameters:
        policy - Text of the policy. Although this is a bucket policy rather than an IAM policy, the `aws.iam.getPolicyDocument` data source may be used, so long as it specifies a principal. For more information about building AWS IAM policy documents, see the AWS IAM Policy Document Guide. Note: Bucket policies are limited to 20 KB in size.
        Returns:
        builder
      • policy

        public BucketPolicyState.Builder policy​(java.lang.String policy)
        Parameters:
        policy - Text of the policy. Although this is a bucket policy rather than an IAM policy, the `aws.iam.getPolicyDocument` data source may be used, so long as it specifies a principal. For more information about building AWS IAM policy documents, see the AWS IAM Policy Document Guide. Note: Bucket policies are limited to 20 KB in size.
        Returns:
        builder