Interface UserDefinedFunctionInput.Builder

  • Method Details

    • functionName

      UserDefinedFunctionInput.Builder functionName(String functionName)

      The name of the function.

      Parameters:
      functionName - The name of the function.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • className

      The Java class that contains the function code.

      Parameters:
      className - The Java class that contains the function code.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ownerName

      The owner of the function.

      Parameters:
      ownerName - The owner of the function.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • functionType

      UserDefinedFunctionInput.Builder functionType(String functionType)

      The type of the function.

      Parameters:
      functionType - The type of the function.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • functionType

      UserDefinedFunctionInput.Builder functionType(FunctionType functionType)

      The type of the function.

      Parameters:
      functionType - The type of the function.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ownerType

      The owner type.

      Parameters:
      ownerType - The owner type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ownerType

      The owner type.

      Parameters:
      ownerType - The owner type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceUris

      The resource URIs for the function.

      Parameters:
      resourceUris - The resource URIs for the function.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceUris

      UserDefinedFunctionInput.Builder resourceUris(ResourceUri... resourceUris)

      The resource URIs for the function.

      Parameters:
      resourceUris - The resource URIs for the function.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceUris

      The resource URIs for the function.

      This is a convenience method that creates an instance of the ResourceUri.Builder avoiding the need to create one manually via ResourceUri.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resourceUris(List<ResourceUri>).

      Parameters:
      resourceUris - a consumer that will call methods on ResourceUri.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • artifactLocation

      UserDefinedFunctionInput.Builder artifactLocation(String artifactLocation)

      The Amazon S3 location that contains the function's artifacts. Required when GovernanceMode is LAKE_FORMATION. You must register the location with Lake Formation, and every resource URI must be under this location.

      Parameters:
      artifactLocation - The Amazon S3 location that contains the function's artifacts. Required when GovernanceMode is LAKE_FORMATION. You must register the location with Lake Formation, and every resource URI must be under this location.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • governanceMode

      UserDefinedFunctionInput.Builder governanceMode(String governanceMode)

      How access to the function is governed. Specify LAKE_FORMATION to manage access to the function with Lake Formation permissions. If you don't specify a value, the default is IAM_ONLY. You can't change the governance mode after the function is created.

      When GovernanceMode is LAKE_FORMATION:

      • You must be a data lake administrator or have all permissions on the Data Catalog with the grant option.

      • You must have the DATA_LOCATION_ACCESS permission on the ArtifactLocation, unless you're a data lake administrator.

      • You must specify from 1 to 10 resource URIs, each under the ArtifactLocation.

      • You can't rename the function.

      Parameters:
      governanceMode - How access to the function is governed. Specify LAKE_FORMATION to manage access to the function with Lake Formation permissions. If you don't specify a value, the default is IAM_ONLY. You can't change the governance mode after the function is created.

      When GovernanceMode is LAKE_FORMATION:

      • You must be a data lake administrator or have all permissions on the Data Catalog with the grant option.

      • You must have the DATA_LOCATION_ACCESS permission on the ArtifactLocation, unless you're a data lake administrator.

      • You must specify from 1 to 10 resource URIs, each under the ArtifactLocation.

      • You can't rename the function.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • governanceMode

      UserDefinedFunctionInput.Builder governanceMode(GovernanceMode governanceMode)

      How access to the function is governed. Specify LAKE_FORMATION to manage access to the function with Lake Formation permissions. If you don't specify a value, the default is IAM_ONLY. You can't change the governance mode after the function is created.

      When GovernanceMode is LAKE_FORMATION:

      • You must be a data lake administrator or have all permissions on the Data Catalog with the grant option.

      • You must have the DATA_LOCATION_ACCESS permission on the ArtifactLocation, unless you're a data lake administrator.

      • You must specify from 1 to 10 resource URIs, each under the ArtifactLocation.

      • You can't rename the function.

      Parameters:
      governanceMode - How access to the function is governed. Specify LAKE_FORMATION to manage access to the function with Lake Formation permissions. If you don't specify a value, the default is IAM_ONLY. You can't change the governance mode after the function is created.

      When GovernanceMode is LAKE_FORMATION:

      • You must be a data lake administrator or have all permissions on the Data Catalog with the grant option.

      • You must have the DATA_LOCATION_ACCESS permission on the ArtifactLocation, unless you're a data lake administrator.

      • You must specify from 1 to 10 resource URIs, each under the ArtifactLocation.

      • You can't rename the function.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: