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.BuilderpublicAccessBlockConfiguration(Consumer<PublicAccessBlockConfiguration.Builder> publicAccessBlockConfiguration) ThePublicAccessBlockconfiguration that you want to apply to the access point.publicAccessBlockConfiguration(PublicAccessBlockConfiguration publicAccessBlockConfiguration) ThePublicAccessBlockconfiguration that you want to apply to the access point.default CreateAccessPointRequest.BuildervpcConfiguration(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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.s3control.model.S3ControlRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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 bucketreportsthrough Outpostmy-outpostowned by account123456789012in 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 bucketreportsthrough Outpostmy-outpostowned by account123456789012in 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 a convenience method that creates an instance of theThis is required for creating an access point for Amazon S3 on Outposts buckets.
VpcConfiguration.Builderavoiding the need to create one manually viaVpcConfiguration.builder().When the
Consumercompletes,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
PublicAccessBlockconfiguration that you want to apply to the access point.- Parameters:
publicAccessBlockConfiguration- ThePublicAccessBlockconfiguration 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 thePublicAccessBlockconfiguration that you want to apply to the access point.PublicAccessBlockConfiguration.Builderavoiding the need to create one manually viaPublicAccessBlockConfiguration.builder().When the
Consumercompletes,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
BucketAccountIdis not required. For cross-account access point when your bucket and access point are not in the same account, theBucketAccountIdis 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
BucketAccountIdis not required. For cross-account access point when your bucket and access point are not in the same account, theBucketAccountIdis 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-