Package com.pulumi.aws.s3
Class BucketPolicyArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.s3.BucketPolicyArgs.Builder
-
- Enclosing class:
- BucketPolicyArgs
public static final class BucketPolicyArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(BucketPolicyArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BucketPolicyArgs.Builderbucket(com.pulumi.core.Output<java.lang.String> bucket)BucketPolicyArgs.Builderbucket(java.lang.String bucket)BucketPolicyArgsbuild()BucketPolicyArgs.Builderpolicy(PolicyDocumentArgs policy)BucketPolicyArgs.Builderpolicy(com.pulumi.core.Either<java.lang.String,PolicyDocumentArgs> policy)BucketPolicyArgs.Builderpolicy(com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,PolicyDocumentArgs>> policy)BucketPolicyArgs.Builderpolicy(java.lang.String policy)BucketPolicyArgs.Builderregion(com.pulumi.core.Output<java.lang.String> region)BucketPolicyArgs.Builderregion(java.lang.String region)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(BucketPolicyArgs defaults)
-
-
Method Detail
-
bucket
public BucketPolicyArgs.Builder bucket(com.pulumi.core.Output<java.lang.String> bucket)
- Parameters:
bucket- Name of the bucket to which to apply the policy.- Returns:
- builder
-
bucket
public BucketPolicyArgs.Builder bucket(java.lang.String bucket)
- Parameters:
bucket- Name of the bucket to which to apply the policy.- Returns:
- builder
-
policy
public BucketPolicyArgs.Builder policy(com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,PolicyDocumentArgs>> 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 BucketPolicyArgs.Builder policy(com.pulumi.core.Either<java.lang.String,PolicyDocumentArgs> 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 BucketPolicyArgs.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
-
policy
public BucketPolicyArgs.Builder policy(PolicyDocumentArgs 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
-
region
public BucketPolicyArgs.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
region
public BucketPolicyArgs.Builder region(java.lang.String region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
build
public BucketPolicyArgs build()
-
-