@Generated(value="software.amazon.awssdk:codegen") public final class PutAccessPointPolicyRequest extends S3ControlRequest implements ToCopyableBuilder<PutAccessPointPolicyRequest.Builder,PutAccessPointPolicyRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
PutAccessPointPolicyRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accountId()
The Amazon Web Services account ID for owner of the bucket associated with the specified access point.
|
static PutAccessPointPolicyRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the access point that you want to associate with the specified policy.
|
String |
policy()
The policy that you want to apply to the specified access point.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PutAccessPointPolicyRequest.Builder> |
serializableBuilderClass() |
PutAccessPointPolicyRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String accountId()
The Amazon Web Services account ID for owner of the bucket associated with the specified access point.
public final String name()
The name of the access point that you want to associate with the specified policy.
For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.
For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN
of the access point accessed in the format
arn:aws:s3-outposts:<Region>:<account-id>:outpost/<outpost-id>/accesspoint/<my-accesspoint-name>
. For example, to access the access point reports-ap through Outpost my-outpost owned
by account 123456789012 in Region us-west-2, use the URL encoding of
arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The value must
be URL encoded.
For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.
For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify
the ARN of the access point accessed in the format
arn:aws:s3-outposts:<Region>:<account-id>:outpost/<outpost-id>/accesspoint/<my-accesspoint-name>
. For example, to access the access point reports-ap through Outpost my-outpost
owned by account 123456789012 in Region us-west-2, use the URL encoding of
arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap. The
value must be URL encoded.
public final String policy()
The policy that you want to apply to the specified access point. For more information about access point policies, see Managing data access with Amazon S3 access points in the Amazon S3 User Guide.
public PutAccessPointPolicyRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PutAccessPointPolicyRequest.Builder,PutAccessPointPolicyRequest>toBuilder in class S3ControlRequestpublic static PutAccessPointPolicyRequest.Builder builder()
public static Class<? extends PutAccessPointPolicyRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.