Interface CreateAccessPointRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateAccessPointRequest.Builder,
,CreateAccessPointRequest> S3ControlRequest.Builder
,SdkBuilder<CreateAccessPointRequest.Builder,
,CreateAccessPointRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateAccessPointRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account ID for the account that owns the specified access point.The name of the bucket that you want to associate this access point with.bucketAccountId
(String bucketAccountId) The Amazon Web Services account ID associated with the S3 bucket associated with this access point.The name you want to assign to this access point.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateAccessPointRequest.Builder
publicAccessBlockConfiguration
(Consumer<PublicAccessBlockConfiguration.Builder> publicAccessBlockConfiguration) ThePublicAccessBlock
configuration that you want to apply to the access point.publicAccessBlockConfiguration
(PublicAccessBlockConfiguration publicAccessBlockConfiguration) ThePublicAccessBlock
configuration that you want to apply to the access point.default CreateAccessPointRequest.Builder
vpcConfiguration
(Consumer<VpcConfiguration.Builder> vpcConfiguration) If you include this field, Amazon S3 restricts access to this access point to requests from the specified virtual private cloud (VPC).vpcConfiguration
(VpcConfiguration vpcConfiguration) If you include this field, Amazon S3 restricts access to this access point to requests from the specified virtual private cloud (VPC).Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.s3control.model.S3ControlRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
accountId
The Amazon Web Services account ID for the account that owns the specified access point.
- Parameters:
accountId
- The Amazon Web Services account ID for the account that owns the specified access point.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name you want to assign to this access point.
- Parameters:
name
- The name you want to assign to this access point.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucket
The name of the bucket that you want to associate this access point with.
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 bucket accessed in the format
arn:aws:s3-outposts:<Region>:<account-id>:outpost/<outpost-id>/bucket/<my-bucket-name>
. For example, to access the bucketreports
through Outpostmy-outpost
owned by account123456789012
in Regionus-west-2
, use the URL encoding ofarn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports
. The value must be URL encoded.- Parameters:
bucket
- The name of the bucket that you want to associate this access point with.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 bucket accessed in the format
arn:aws:s3-outposts:<Region>:<account-id>:outpost/<outpost-id>/bucket/<my-bucket-name>
. For example, to access the bucketreports
through Outpostmy-outpost
owned by account123456789012
in Regionus-west-2
, use the URL encoding ofarn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports
. The value must be URL encoded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfiguration
If you include this field, Amazon S3 restricts access to this access point to requests from the specified virtual private cloud (VPC).
This is required for creating an access point for Amazon S3 on Outposts buckets.
- Parameters:
vpcConfiguration
- If you include this field, Amazon S3 restricts access to this access point to requests from the specified virtual private cloud (VPC).This is required for creating an access point for Amazon S3 on Outposts buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfiguration
default CreateAccessPointRequest.Builder vpcConfiguration(Consumer<VpcConfiguration.Builder> vpcConfiguration) If you include this field, Amazon S3 restricts access to this access point to requests from the specified virtual private cloud (VPC).
This is required for creating an access point for Amazon S3 on Outposts buckets.
VpcConfiguration.Builder
avoiding the need to create one manually viaVpcConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovpcConfiguration(VpcConfiguration)
.- Parameters:
vpcConfiguration
- a consumer that will call methods onVpcConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
publicAccessBlockConfiguration
CreateAccessPointRequest.Builder publicAccessBlockConfiguration(PublicAccessBlockConfiguration publicAccessBlockConfiguration) The
PublicAccessBlock
configuration that you want to apply to the access point.- Parameters:
publicAccessBlockConfiguration
- ThePublicAccessBlock
configuration that you want to apply to the access point.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publicAccessBlockConfiguration
default CreateAccessPointRequest.Builder publicAccessBlockConfiguration(Consumer<PublicAccessBlockConfiguration.Builder> publicAccessBlockConfiguration) The
This is a convenience method that creates an instance of thePublicAccessBlock
configuration that you want to apply to the access point.PublicAccessBlockConfiguration.Builder
avoiding the need to create one manually viaPublicAccessBlockConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topublicAccessBlockConfiguration(PublicAccessBlockConfiguration)
.- Parameters:
publicAccessBlockConfiguration
- a consumer that will call methods onPublicAccessBlockConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bucketAccountId
The Amazon Web Services account ID associated with the S3 bucket associated with this access point.
For same account access point when your bucket and access point belong to the same account owner, the
BucketAccountId
is not required. For cross-account access point when your bucket and access point are not in the same account, theBucketAccountId
is required.- Parameters:
bucketAccountId
- The Amazon Web Services account ID associated with the S3 bucket associated with this access point.For same account access point when your bucket and access point belong to the same account owner, the
BucketAccountId
is not required. For cross-account access point when your bucket and access point are not in the same account, theBucketAccountId
is required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateAccessPointRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateAccessPointRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-