#[non_exhaustive]pub struct UserDefinedFunctionInput {
pub function_name: Option<String>,
pub class_name: Option<String>,
pub owner_name: Option<String>,
pub function_type: Option<FunctionType>,
pub owner_type: Option<PrincipalType>,
pub resource_uris: Option<Vec<ResourceUri>>,
pub artifact_location: Option<String>,
pub governance_mode: Option<GovernanceMode>,
}Expand description
A structure used to create or update a user-defined function.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.function_name: Option<String>The name of the function.
class_name: Option<String>The Java class that contains the function code.
owner_name: Option<String>The owner of the function.
function_type: Option<FunctionType>The type of the function.
owner_type: Option<PrincipalType>The owner type.
resource_uris: Option<Vec<ResourceUri>>The resource URIs for the function.
artifact_location: Option<String>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.
governance_mode: Option<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_ACCESSpermission on theArtifactLocation, 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.
Implementations§
Source§impl UserDefinedFunctionInput
impl UserDefinedFunctionInput
Sourcepub fn function_name(&self) -> Option<&str>
pub fn function_name(&self) -> Option<&str>
The name of the function.
Sourcepub fn class_name(&self) -> Option<&str>
pub fn class_name(&self) -> Option<&str>
The Java class that contains the function code.
Sourcepub fn owner_name(&self) -> Option<&str>
pub fn owner_name(&self) -> Option<&str>
The owner of the function.
Sourcepub fn function_type(&self) -> Option<&FunctionType>
pub fn function_type(&self) -> Option<&FunctionType>
The type of the function.
Sourcepub fn owner_type(&self) -> Option<&PrincipalType>
pub fn owner_type(&self) -> Option<&PrincipalType>
The owner type.
Sourcepub fn resource_uris(&self) -> &[ResourceUri]
pub fn resource_uris(&self) -> &[ResourceUri]
The resource URIs for the function.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .resource_uris.is_none().
Sourcepub fn artifact_location(&self) -> Option<&str>
pub fn artifact_location(&self) -> Option<&str>
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.
Sourcepub fn governance_mode(&self) -> Option<&GovernanceMode>
pub fn governance_mode(&self) -> Option<&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_ACCESSpermission on theArtifactLocation, 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.
Source§impl UserDefinedFunctionInput
impl UserDefinedFunctionInput
Sourcepub fn builder() -> UserDefinedFunctionInputBuilder
pub fn builder() -> UserDefinedFunctionInputBuilder
Creates a new builder-style object to manufacture UserDefinedFunctionInput.
Source§impl UserDefinedFunctionInput
impl UserDefinedFunctionInput
Sourcepub fn deserialize(
deserializer: &mut dyn ShapeDeserializer,
) -> Result<Self, SerdeError>
pub fn deserialize( deserializer: &mut dyn ShapeDeserializer, ) -> Result<Self, SerdeError>
Deserializes this structure from a [ShapeDeserializer].
Trait Implementations§
Source§impl Clone for UserDefinedFunctionInput
impl Clone for UserDefinedFunctionInput
Source§fn clone(&self) -> UserDefinedFunctionInput
fn clone(&self) -> UserDefinedFunctionInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UserDefinedFunctionInput
impl Debug for UserDefinedFunctionInput
Source§impl PartialEq for UserDefinedFunctionInput
impl PartialEq for UserDefinedFunctionInput
Source§impl SerializableStruct for UserDefinedFunctionInput
impl SerializableStruct for UserDefinedFunctionInput
Source§fn schema(&self) -> &Schema<'_>
fn schema(&self) -> &Schema<'_>
Source§fn serialize_members(
&self,
ser: &mut dyn ShapeSerializer,
) -> Result<(), SerdeError>
fn serialize_members( &self, ser: &mut dyn ShapeSerializer, ) -> Result<(), SerdeError>
impl StructuralPartialEq for UserDefinedFunctionInput
Auto Trait Implementations§
impl Freeze for UserDefinedFunctionInput
impl RefUnwindSafe for UserDefinedFunctionInput
impl Send for UserDefinedFunctionInput
impl Sync for UserDefinedFunctionInput
impl Unpin for UserDefinedFunctionInput
impl UnsafeUnpin for UserDefinedFunctionInput
impl UnwindSafe for UserDefinedFunctionInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more