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 connection definition in the Data Catalog.
Synopsis
- data CreateConnection = CreateConnection' {
- catalogId :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- connectionInput :: ConnectionInput
- newCreateConnection :: ConnectionInput -> CreateConnection
- createConnection_catalogId :: Lens' CreateConnection (Maybe Text)
- createConnection_tags :: Lens' CreateConnection (Maybe (HashMap Text Text))
- createConnection_connectionInput :: Lens' CreateConnection ConnectionInput
- data CreateConnectionResponse = CreateConnectionResponse' {
- httpStatus :: Int
- newCreateConnectionResponse :: Int -> CreateConnectionResponse
- createConnectionResponse_httpStatus :: Lens' CreateConnectionResponse Int
Creating a Request
data CreateConnection Source #
See: newCreateConnection
smart constructor.
CreateConnection' | |
|
Instances
Create a value of CreateConnection
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:
CreateConnection
, createConnection_catalogId
- The ID of the Data Catalog in which to create the connection. If none is
provided, the Amazon Web Services account ID is used by default.
$sel:tags:CreateConnection'
, createConnection_tags
- The tags you assign to the connection.
$sel:connectionInput:CreateConnection'
, createConnection_connectionInput
- A ConnectionInput
object defining the connection to create.
Request Lenses
createConnection_catalogId :: Lens' CreateConnection (Maybe Text) Source #
The ID of the Data Catalog in which to create the connection. If none is provided, the Amazon Web Services account ID is used by default.
createConnection_tags :: Lens' CreateConnection (Maybe (HashMap Text Text)) Source #
The tags you assign to the connection.
createConnection_connectionInput :: Lens' CreateConnection ConnectionInput Source #
A ConnectionInput
object defining the connection to create.
Destructuring the Response
data CreateConnectionResponse Source #
See: newCreateConnectionResponse
smart constructor.
CreateConnectionResponse' | |
|
Instances
newCreateConnectionResponse Source #
Create a value of CreateConnectionResponse
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:CreateConnectionResponse'
, createConnectionResponse_httpStatus
- The response's http status code.
Response Lenses
createConnectionResponse_httpStatus :: Lens' CreateConnectionResponse Int Source #
The response's http status code.