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 |
Creates a new partition.
Synopsis
- data CreatePartition = CreatePartition' {}
- newCreatePartition :: Text -> Text -> PartitionInput -> CreatePartition
- createPartition_catalogId :: Lens' CreatePartition (Maybe Text)
- createPartition_databaseName :: Lens' CreatePartition Text
- createPartition_tableName :: Lens' CreatePartition Text
- createPartition_partitionInput :: Lens' CreatePartition PartitionInput
- data CreatePartitionResponse = CreatePartitionResponse' {
- httpStatus :: Int
- newCreatePartitionResponse :: Int -> CreatePartitionResponse
- createPartitionResponse_httpStatus :: Lens' CreatePartitionResponse Int
Creating a Request
data CreatePartition Source #
See: newCreatePartition
smart constructor.
CreatePartition' | |
|
Instances
Create a value of CreatePartition
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:
CreatePartition
, createPartition_catalogId
- The Amazon Web Services account ID of the catalog in which the partition
is to be created.
CreatePartition
, createPartition_databaseName
- The name of the metadata database in which the partition is to be
created.
CreatePartition
, createPartition_tableName
- The name of the metadata table in which the partition is to be created.
CreatePartition
, createPartition_partitionInput
- A PartitionInput
structure defining the partition to be created.
Request Lenses
createPartition_catalogId :: Lens' CreatePartition (Maybe Text) Source #
The Amazon Web Services account ID of the catalog in which the partition is to be created.
createPartition_databaseName :: Lens' CreatePartition Text Source #
The name of the metadata database in which the partition is to be created.
createPartition_tableName :: Lens' CreatePartition Text Source #
The name of the metadata table in which the partition is to be created.
createPartition_partitionInput :: Lens' CreatePartition PartitionInput Source #
A PartitionInput
structure defining the partition to be created.
Destructuring the Response
data CreatePartitionResponse Source #
See: newCreatePartitionResponse
smart constructor.
CreatePartitionResponse' | |
|
Instances
Generic CreatePartitionResponse Source # | |
Defined in Amazonka.Glue.CreatePartition type Rep CreatePartitionResponse :: Type -> Type # | |
Read CreatePartitionResponse Source # | |
Show CreatePartitionResponse Source # | |
Defined in Amazonka.Glue.CreatePartition showsPrec :: Int -> CreatePartitionResponse -> ShowS # show :: CreatePartitionResponse -> String # showList :: [CreatePartitionResponse] -> ShowS # | |
NFData CreatePartitionResponse Source # | |
Defined in Amazonka.Glue.CreatePartition rnf :: CreatePartitionResponse -> () # | |
Eq CreatePartitionResponse Source # | |
Defined in Amazonka.Glue.CreatePartition | |
type Rep CreatePartitionResponse Source # | |
Defined in Amazonka.Glue.CreatePartition type Rep CreatePartitionResponse = D1 ('MetaData "CreatePartitionResponse" "Amazonka.Glue.CreatePartition" "amazonka-glue-2.0-7miPWwBHdfn8N8SvbpLgE0" 'False) (C1 ('MetaCons "CreatePartitionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreatePartitionResponse Source #
Create a value of CreatePartitionResponse
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:CreatePartitionResponse'
, createPartitionResponse_httpStatus
- The response's http status code.
Response Lenses
createPartitionResponse_httpStatus :: Lens' CreatePartitionResponse Int Source #
The response's http status code.