Class AccessGrantsLocationConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.s3control.model.AccessGrantsLocationConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AccessGrantsLocationConfiguration.Builder,AccessGrantsLocationConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class AccessGrantsLocationConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AccessGrantsLocationConfiguration.Builder,AccessGrantsLocationConfiguration>
The configuration options of the S3 Access Grants location. It contains the
S3SubPrefixfield. The grant scope, the data to which you are granting access, is the result of appending theSubprefixfield to the scope of the registered location.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAccessGrantsLocationConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccessGrantsLocationConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Strings3SubPrefix()TheS3SubPrefixis appended to the location scope creating the grant scope.List<SdkField<?>>sdkFields()static Class<? extends AccessGrantsLocationConfiguration.Builder>serializableBuilderClass()AccessGrantsLocationConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
s3SubPrefix
public final String s3SubPrefix()
The
S3SubPrefixis appended to the location scope creating the grant scope. Use this field to narrow the scope of the grant to a subset of the location scope. This field is required if the location scope is the default locations3://because you cannot create a grant for all of your S3 data in the Region and must narrow the scope. For example, if the location scope is the default locations3://, theS3SubPrefxcan be a <bucket-name>/*, so the full grant scope path would bes3://<bucket-name>/*. Or theS3SubPrefxcan be<bucket-name>/<prefix-name>*, so the full grant scope path would be ors3://<bucket-name>/<prefix-name>*.If the
S3SubPrefixincludes a prefix, append the wildcard character*after the prefix to indicate that you want to include all object key names in the bucket that start with that prefix.- Returns:
- The
S3SubPrefixis appended to the location scope creating the grant scope. Use this field to narrow the scope of the grant to a subset of the location scope. This field is required if the location scope is the default locations3://because you cannot create a grant for all of your S3 data in the Region and must narrow the scope. For example, if the location scope is the default locations3://, theS3SubPrefxcan be a <bucket-name>/*, so the full grant scope path would bes3://<bucket-name>/*. Or theS3SubPrefxcan be<bucket-name>/<prefix-name>*, so the full grant scope path would be ors3://<bucket-name>/<prefix-name>*.If the
S3SubPrefixincludes a prefix, append the wildcard character*after the prefix to indicate that you want to include all object key names in the bucket that start with that prefix.
-
toBuilder
public AccessGrantsLocationConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AccessGrantsLocationConfiguration.Builder,AccessGrantsLocationConfiguration>
-
builder
public static AccessGrantsLocationConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends AccessGrantsLocationConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-