| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.Glue.GetUserDefinedFunction
Description
Retrieves a specified function definition from the Data Catalog.
Synopsis
- data GetUserDefinedFunction = GetUserDefinedFunction' {
- catalogId :: Maybe Text
- databaseName :: Text
- functionName :: Text
- newGetUserDefinedFunction :: Text -> Text -> GetUserDefinedFunction
- getUserDefinedFunction_catalogId :: Lens' GetUserDefinedFunction (Maybe Text)
- getUserDefinedFunction_databaseName :: Lens' GetUserDefinedFunction Text
- getUserDefinedFunction_functionName :: Lens' GetUserDefinedFunction Text
- data GetUserDefinedFunctionResponse = GetUserDefinedFunctionResponse' {}
- newGetUserDefinedFunctionResponse :: Int -> GetUserDefinedFunctionResponse
- getUserDefinedFunctionResponse_userDefinedFunction :: Lens' GetUserDefinedFunctionResponse (Maybe UserDefinedFunction)
- getUserDefinedFunctionResponse_httpStatus :: Lens' GetUserDefinedFunctionResponse Int
Creating a Request
data GetUserDefinedFunction Source #
See: newGetUserDefinedFunction smart constructor.
Constructors
| GetUserDefinedFunction' | |
Fields
| |
Instances
newGetUserDefinedFunction Source #
Arguments
| :: Text | |
| -> Text | |
| -> GetUserDefinedFunction |
Create a value of GetUserDefinedFunction with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:catalogId:GetUserDefinedFunction', getUserDefinedFunction_catalogId - The ID of the Data Catalog where the function to be retrieved is
located. If none is provided, the Amazon Web Services account ID is used
by default.
$sel:databaseName:GetUserDefinedFunction', getUserDefinedFunction_databaseName - The name of the catalog database where the function is located.
$sel:functionName:GetUserDefinedFunction', getUserDefinedFunction_functionName - The name of the function.
Request Lenses
getUserDefinedFunction_catalogId :: Lens' GetUserDefinedFunction (Maybe Text) Source #
The ID of the Data Catalog where the function to be retrieved is located. If none is provided, the Amazon Web Services account ID is used by default.
getUserDefinedFunction_databaseName :: Lens' GetUserDefinedFunction Text Source #
The name of the catalog database where the function is located.
getUserDefinedFunction_functionName :: Lens' GetUserDefinedFunction Text Source #
The name of the function.
Destructuring the Response
data GetUserDefinedFunctionResponse Source #
See: newGetUserDefinedFunctionResponse smart constructor.
Constructors
| GetUserDefinedFunctionResponse' | |
Fields
| |
Instances
newGetUserDefinedFunctionResponse Source #
Create a value of GetUserDefinedFunctionResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:userDefinedFunction:GetUserDefinedFunctionResponse', getUserDefinedFunctionResponse_userDefinedFunction - The requested function definition.
$sel:httpStatus:GetUserDefinedFunctionResponse', getUserDefinedFunctionResponse_httpStatus - The response's http status code.
Response Lenses
getUserDefinedFunctionResponse_userDefinedFunction :: Lens' GetUserDefinedFunctionResponse (Maybe UserDefinedFunction) Source #
The requested function definition.
getUserDefinedFunctionResponse_httpStatus :: Lens' GetUserDefinedFunctionResponse Int Source #
The response's http status code.