@Generated(value="software.amazon.awssdk:codegen") public final class S3BucketConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<S3BucketConfiguration.Builder,S3BucketConfiguration>
Proposed access control configuration for an Amazon S3 bucket. You can propose a configuration for a new Amazon S3 bucket or an existing Amazon S3 bucket that you own by specifying the Amazon S3 bucket policy, bucket ACLs, bucket BPA settings, and Amazon S3 access points attached to the bucket. If the configuration is for an existing Amazon S3 bucket and you do not specify the Amazon S3 bucket policy, the access preview uses the existing policy attached to the bucket. If the access preview is for a new resource and you do not specify the Amazon S3 bucket policy, the access preview assumes a bucket without a policy. To propose deletion of an existing bucket policy, you can specify an empty string. For more information about bucket policy limits, see Bucket Policy Examples.
| Modifier and Type | Class and Description |
|---|---|
static interface |
S3BucketConfiguration.Builder |
| Modifier and Type | Method and Description |
|---|---|
Map<String,S3AccessPointConfiguration> |
accessPoints()
The configuration of Amazon S3 access points for the bucket.
|
List<S3BucketAclGrantConfiguration> |
bucketAclGrants()
The proposed list of ACL grants for the Amazon S3 bucket.
|
String |
bucketPolicy()
The proposed bucket policy for the Amazon S3 bucket.
|
S3PublicAccessBlockConfiguration |
bucketPublicAccessBlock()
The proposed block public access configuration for the Amazon S3 bucket.
|
static S3BucketConfiguration.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAccessPoints()
Returns true if the AccessPoints property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasBucketAclGrants()
Returns true if the BucketAclGrants property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends S3BucketConfiguration.Builder> |
serializableBuilderClass() |
S3BucketConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasAccessPoints()
public final Map<String,S3AccessPointConfiguration> accessPoints()
The configuration of Amazon S3 access points for the bucket.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAccessPoints() to see if a value was sent in this field.
public final boolean hasBucketAclGrants()
public final List<S3BucketAclGrantConfiguration> bucketAclGrants()
The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket. If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the bucket.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasBucketAclGrants() to see if a value was sent in this field.
public final String bucketPolicy()
The proposed bucket policy for the Amazon S3 bucket.
public final S3PublicAccessBlockConfiguration bucketPublicAccessBlock()
The proposed block public access configuration for the Amazon S3 bucket.
public S3BucketConfiguration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<S3BucketConfiguration.Builder,S3BucketConfiguration>public static S3BucketConfiguration.Builder builder()
public static Class<? extends S3BucketConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.