Interface CreateAccessPointRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateAccessPointRequest.Builder,CreateAccessPointRequest>,S3ControlRequest.Builder,SdkBuilder<CreateAccessPointRequest.Builder,CreateAccessPointRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateAccessPointRequest
@Mutable @NotThreadSafe public static interface CreateAccessPointRequest.Builder extends S3ControlRequest.Builder, SdkPojo, CopyableBuilder<CreateAccessPointRequest.Builder,CreateAccessPointRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateAccessPointRequest.BuilderaccountId(String accountId)The Amazon Web Services account ID for the account that owns the specified access point.CreateAccessPointRequest.Builderbucket(String bucket)The name of the bucket that you want to associate this access point with.CreateAccessPointRequest.BuilderbucketAccountId(String bucketAccountId)The Amazon Web Services account ID associated with the S3 bucket associated with this access point.CreateAccessPointRequest.Buildername(String name)The name you want to assign to this access point.CreateAccessPointRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateAccessPointRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default CreateAccessPointRequest.BuilderpublicAccessBlockConfiguration(Consumer<PublicAccessBlockConfiguration.Builder> publicAccessBlockConfiguration)ThePublicAccessBlockconfiguration that you want to apply to the access point.CreateAccessPointRequest.BuilderpublicAccessBlockConfiguration(PublicAccessBlockConfiguration publicAccessBlockConfiguration)ThePublicAccessBlockconfiguration that you want to apply to the access point.default CreateAccessPointRequest.Builderscope(Consumer<Scope.Builder> scope)For directory buckets, you can filter access control to specific prefixes, API operations, or a combination of both.CreateAccessPointRequest.Builderscope(Scope scope)For directory buckets, you can filter access control to specific prefixes, API operations, or a combination of both.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).CreateAccessPointRequest.BuildervpcConfiguration(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
accountId
CreateAccessPointRequest.Builder accountId(String 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
CreateAccessPointRequest.Builder name(String name)
The name you want to assign to this access point.
For directory buckets, the access point name must consist of a base name that you provide and suffix that includes the
ZoneID(Amazon Web Services Availability Zone or Local Zone) of your bucket location, followed by--xa-s3. For more information, see Managing access to shared datasets in directory buckets with access points in the Amazon S3 User Guide.- Parameters:
name- The name you want to assign to this access point.For directory buckets, the access point name must consist of a base name that you provide and suffix that includes the
ZoneID(Amazon Web Services Availability Zone or Local Zone) of your bucket location, followed by--xa-s3. For more information, see Managing access to shared datasets in directory buckets with access points in the Amazon S3 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucket
CreateAccessPointRequest.Builder bucket(String 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
CreateAccessPointRequest.Builder 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).
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:
vpcConfiguration(VpcConfiguration)
-
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:
publicAccessBlockConfiguration(PublicAccessBlockConfiguration)
-
bucketAccountId
CreateAccessPointRequest.Builder bucketAccountId(String 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.
-
scope
CreateAccessPointRequest.Builder scope(Scope scope)
For directory buckets, you can filter access control to specific prefixes, API operations, or a combination of both. For more information, see Managing access to shared datasets in directory buckets with access points in the Amazon S3 User Guide.
Scope is not supported for access points for general purpose buckets.
- Parameters:
scope- For directory buckets, you can filter access control to specific prefixes, API operations, or a combination of both. For more information, see Managing access to shared datasets in directory buckets with access points in the Amazon S3 User Guide.Scope is not supported for access points for general purpose buckets.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scope
default CreateAccessPointRequest.Builder scope(Consumer<Scope.Builder> scope)
For directory buckets, you can filter access control to specific prefixes, API operations, or a combination of both. For more information, see Managing access to shared datasets in directory buckets with access points in the Amazon S3 User Guide.
This is a convenience method that creates an instance of theScope is not supported for access points for general purpose buckets.
Scope.Builderavoiding the need to create one manually viaScope.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscope(Scope).- Parameters:
scope- a consumer that will call methods onScope.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
scope(Scope)
-
overrideConfiguration
CreateAccessPointRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateAccessPointRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-