| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Glue.CreateUserDefinedFunction
Description
Creates a new function definition in the Data Catalog.
Synopsis
- data CreateUserDefinedFunction = CreateUserDefinedFunction' {}
- newCreateUserDefinedFunction :: Text -> UserDefinedFunctionInput -> CreateUserDefinedFunction
- createUserDefinedFunction_catalogId :: Lens' CreateUserDefinedFunction (Maybe Text)
- createUserDefinedFunction_databaseName :: Lens' CreateUserDefinedFunction Text
- createUserDefinedFunction_functionInput :: Lens' CreateUserDefinedFunction UserDefinedFunctionInput
- data CreateUserDefinedFunctionResponse = CreateUserDefinedFunctionResponse' {
- httpStatus :: Int
- newCreateUserDefinedFunctionResponse :: Int -> CreateUserDefinedFunctionResponse
- createUserDefinedFunctionResponse_httpStatus :: Lens' CreateUserDefinedFunctionResponse Int
Creating a Request
data CreateUserDefinedFunction Source #
See: newCreateUserDefinedFunction smart constructor.
Constructors
| CreateUserDefinedFunction' | |
Fields
| |
Instances
newCreateUserDefinedFunction Source #
Arguments
| :: Text | |
| -> UserDefinedFunctionInput | |
| -> CreateUserDefinedFunction |
Create a value of CreateUserDefinedFunction 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:
CreateUserDefinedFunction, createUserDefinedFunction_catalogId - The ID of the Data Catalog in which to create the function. If none is
provided, the Amazon Web Services account ID is used by default.
CreateUserDefinedFunction, createUserDefinedFunction_databaseName - The name of the catalog database in which to create the function.
$sel:functionInput:CreateUserDefinedFunction', createUserDefinedFunction_functionInput - A FunctionInput object that defines the function to create in the Data
Catalog.
Request Lenses
createUserDefinedFunction_catalogId :: Lens' CreateUserDefinedFunction (Maybe Text) Source #
The ID of the Data Catalog in which to create the function. If none is provided, the Amazon Web Services account ID is used by default.
createUserDefinedFunction_databaseName :: Lens' CreateUserDefinedFunction Text Source #
The name of the catalog database in which to create the function.
createUserDefinedFunction_functionInput :: Lens' CreateUserDefinedFunction UserDefinedFunctionInput Source #
A FunctionInput object that defines the function to create in the Data
Catalog.
Destructuring the Response
data CreateUserDefinedFunctionResponse Source #
See: newCreateUserDefinedFunctionResponse smart constructor.
Constructors
| CreateUserDefinedFunctionResponse' | |
Fields
| |
Instances
newCreateUserDefinedFunctionResponse Source #
Arguments
| :: Int | |
| -> CreateUserDefinedFunctionResponse |
Create a value of CreateUserDefinedFunctionResponse 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:httpStatus:CreateUserDefinedFunctionResponse', createUserDefinedFunctionResponse_httpStatus - The response's http status code.
Response Lenses
createUserDefinedFunctionResponse_httpStatus :: Lens' CreateUserDefinedFunctionResponse Int Source #
The response's http status code.