Interface GetAccessGrantResponse.Builder

    • Method Detail

      • createdAt

        GetAccessGrantResponse.Builder createdAt​(Instant 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

        GetAccessGrantResponse.Builder accessGrantId​(String 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

        GetAccessGrantResponse.Builder accessGrantArn​(String 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

        GetAccessGrantResponse.Builder grantee​(Grantee 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 a corporate directory to Amazon Web Services IAM Identity Center and associated this Identity Center instance with the 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 a corporate directory to Amazon Web Services IAM Identity Center and associated this Identity Center instance with the 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

        default GetAccessGrantResponse.Builder grantee​(Consumer<Grantee.Builder> 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 a corporate directory to Amazon Web Services IAM Identity Center and associated this Identity Center instance with the 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 the Grantee.Builder avoiding the need to create one manually via Grantee.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to grantee(Grantee).

        Parameters:
        grantee - a consumer that will call methods on Grantee.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        grantee(Grantee)
      • permission

        GetAccessGrantResponse.Builder permission​(String permission)

        The type of permission that was granted in the access grant. Can be 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 permission that was granted in the access grant. Can be 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, Permission
      • permission

        GetAccessGrantResponse.Builder permission​(Permission permission)

        The type of permission that was granted in the access grant. Can be 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 permission that was granted in the access grant. Can be 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, Permission
      • accessGrantsLocationId

        GetAccessGrantResponse.Builder accessGrantsLocationId​(String 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 location s3:// 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 ID default to the default location s3:// 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

        GetAccessGrantResponse.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.
      • grantScope

        GetAccessGrantResponse.Builder grantScope​(String 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 the Subprefix to the location scope.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • applicationArn

        GetAccessGrantResponse.Builder applicationArn​(String 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.