Interface CreateAccessGrantResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateAccessGrantResponse.Builder,
,CreateAccessGrantResponse> S3ControlResponse.Builder
,SdkBuilder<CreateAccessGrantResponse.Builder,
,CreateAccessGrantResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateAccessGrantResponse
-
Method Summary
Modifier and TypeMethodDescriptionaccessGrantArn
(String accessGrantArn) The Amazon Resource Name (ARN) of the access grant.accessGrantId
(String accessGrantId) The ID of the access grant.accessGrantsLocationConfiguration
(Consumer<AccessGrantsLocationConfiguration.Builder> accessGrantsLocationConfiguration) The configuration options of the grant location.accessGrantsLocationConfiguration
(AccessGrantsLocationConfiguration accessGrantsLocationConfiguration) The configuration options of the grant location.accessGrantsLocationId
(String accessGrantsLocationId) The ID of the registered location to which you are granting access.applicationArn
(String applicationArn) The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your Identity Center instance.The date and time when you created the access grant.grantee
(Consumer<Grantee.Builder> grantee) The user, group, or role to which you are granting access.The user, group, or role to which you are granting access.grantScope
(String grantScope) The S3 path of the data to which you are granting access.permission
(String permission) The type of access that you are granting to your S3 data, which can be set to one of the following values:permission
(Permission permission) The type of access that you are granting to your S3 data, which can be set to one of the following values:Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.s3control.model.S3ControlResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
createdAt
The date and time when you created the access grant.
- Parameters:
createdAt
- The date and time when you created the access grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessGrantId
The ID of the access grant. S3 Access Grants auto-generates this ID when you create the access grant.
- Parameters:
accessGrantId
- The ID of the access grant. S3 Access Grants auto-generates this ID when you create the access grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessGrantArn
The Amazon Resource Name (ARN) of the access grant.
- Parameters:
accessGrantArn
- The Amazon Resource Name (ARN) of the access grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantee
The user, group, or role to which you are granting access. You can grant access to an IAM user or role. If you have added your corporate directory to Amazon Web Services IAM Identity Center and associated your Identity Center instance with your S3 Access Grants instance, the grantee can also be a corporate directory user or group.
- Parameters:
grantee
- The user, group, or role to which you are granting access. You can grant access to an IAM user or role. If you have added your corporate directory to Amazon Web Services IAM Identity Center and associated your Identity Center instance with your S3 Access Grants instance, the grantee can also be a corporate directory user or group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantee
The user, group, or role to which you are granting access. You can grant access to an IAM user or role. If you have added your corporate directory to Amazon Web Services IAM Identity Center and associated your Identity Center instance with your S3 Access Grants instance, the grantee can also be a corporate directory user or group.
This is a convenience method that creates an instance of theGrantee.Builder
avoiding the need to create one manually viaGrantee.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tograntee(Grantee)
.- Parameters:
grantee
- a consumer that will call methods onGrantee.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accessGrantsLocationId
The ID of the registered location to which you are granting access. S3 Access Grants assigns this ID when you register the location. S3 Access Grants assigns the ID
default
to the default locations3://
and assigns an auto-generated ID to other locations that you register.- Parameters:
accessGrantsLocationId
- The ID of the registered location to which you are granting access. S3 Access Grants assigns this ID when you register the location. S3 Access Grants assigns the IDdefault
to the default locations3://
and assigns an auto-generated ID to other locations that you register.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessGrantsLocationConfiguration
CreateAccessGrantResponse.Builder accessGrantsLocationConfiguration(AccessGrantsLocationConfiguration accessGrantsLocationConfiguration) The configuration options of the grant location. The grant location is the S3 path to the data to which you are granting access.
- Parameters:
accessGrantsLocationConfiguration
- The configuration options of the grant location. The grant location is the S3 path to the data to which you are granting access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessGrantsLocationConfiguration
default CreateAccessGrantResponse.Builder accessGrantsLocationConfiguration(Consumer<AccessGrantsLocationConfiguration.Builder> accessGrantsLocationConfiguration) The configuration options of the grant location. The grant location is the S3 path to the data to which you are granting access.
This is a convenience method that creates an instance of theAccessGrantsLocationConfiguration.Builder
avoiding the need to create one manually viaAccessGrantsLocationConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccessGrantsLocationConfiguration(AccessGrantsLocationConfiguration)
.- Parameters:
accessGrantsLocationConfiguration
- a consumer that will call methods onAccessGrantsLocationConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
permission
The type of access that you are granting to your S3 data, which can be set to one of the following values:
-
READ
– Grant read-only access to the S3 data. -
WRITE
– Grant write-only access to the S3 data. -
READWRITE
– Grant both read and write access to the S3 data.
- Parameters:
permission
- The type of access that you are granting to your S3 data, which can be set to one of the following values:-
READ
– Grant read-only access to the S3 data. -
WRITE
– Grant write-only access to the S3 data. -
READWRITE
– Grant both read and write access to the S3 data.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
permission
The type of access that you are granting to your S3 data, which can be set to one of the following values:
-
READ
– Grant read-only access to the S3 data. -
WRITE
– Grant write-only access to the S3 data. -
READWRITE
– Grant both read and write access to the S3 data.
- Parameters:
permission
- The type of access that you are granting to your S3 data, which can be set to one of the following values:-
READ
– Grant read-only access to the S3 data. -
WRITE
– Grant write-only access to the S3 data. -
READWRITE
– Grant both read and write access to the S3 data.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
applicationArn
The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your Identity Center instance. If the grant includes an application ARN, the grantee can only access the S3 data through this application.
- Parameters:
applicationArn
- The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your Identity Center instance. If the grant includes an application ARN, the grantee can only access the S3 data through this application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantScope
The S3 path of the data to which you are granting access. It is the result of appending the
Subprefix
to the location scope.- Parameters:
grantScope
- The S3 path of the data to which you are granting access. It is the result of appending theSubprefix
to the location scope.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-