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 |
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.
CreateUserDefinedFunction' | |
|
Instances
newCreateUserDefinedFunction Source #
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:
$sel:catalogId: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.
$sel:databaseName: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.
CreateUserDefinedFunctionResponse' | |
|
Instances
Eq CreateUserDefinedFunctionResponse Source # | |
Read CreateUserDefinedFunctionResponse Source # | |
Show CreateUserDefinedFunctionResponse Source # | |
Generic CreateUserDefinedFunctionResponse Source # | |
NFData CreateUserDefinedFunctionResponse Source # | |
Defined in Amazonka.Glue.CreateUserDefinedFunction rnf :: CreateUserDefinedFunctionResponse -> () # | |
type Rep CreateUserDefinedFunctionResponse Source # | |
Defined in Amazonka.Glue.CreateUserDefinedFunction type Rep CreateUserDefinedFunctionResponse = D1 ('MetaData "CreateUserDefinedFunctionResponse" "Amazonka.Glue.CreateUserDefinedFunction" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "CreateUserDefinedFunctionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateUserDefinedFunctionResponse Source #
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.