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 |
Create an App Runner connection resource. App Runner requires a connection resource when you create App Runner services that access private repositories from certain third-party providers. You can share a connection across multiple services.
A connection resource is needed to access GitHub repositories. GitHub requires a user interface approval process through the App Runner console before you can use the connection.
Synopsis
- data CreateConnection = CreateConnection' {
- tags :: Maybe [Tag]
- connectionName :: Text
- providerType :: ProviderType
- newCreateConnection :: Text -> ProviderType -> CreateConnection
- createConnection_tags :: Lens' CreateConnection (Maybe [Tag])
- createConnection_connectionName :: Lens' CreateConnection Text
- createConnection_providerType :: Lens' CreateConnection ProviderType
- data CreateConnectionResponse = CreateConnectionResponse' {}
- newCreateConnectionResponse :: Int -> Connection -> CreateConnectionResponse
- createConnectionResponse_httpStatus :: Lens' CreateConnectionResponse Int
- createConnectionResponse_connection :: Lens' CreateConnectionResponse Connection
Creating a Request
data CreateConnection Source #
See: newCreateConnection
smart constructor.
CreateConnection' | |
|
Instances
:: Text | |
-> ProviderType | |
-> CreateConnection |
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:
$sel:tags:CreateConnection'
, createConnection_tags
- A list of metadata items that you can associate with your connection
resource. A tag is a key-value pair.
$sel:connectionName:CreateConnection'
, createConnection_connectionName
- A name for the new connection. It must be unique across all App Runner
connections for the Amazon Web Services account in the Amazon Web
Services Region.
$sel:providerType:CreateConnection'
, createConnection_providerType
- The source repository provider.
Request Lenses
createConnection_tags :: Lens' CreateConnection (Maybe [Tag]) Source #
A list of metadata items that you can associate with your connection resource. A tag is a key-value pair.
createConnection_connectionName :: Lens' CreateConnection Text Source #
A name for the new connection. It must be unique across all App Runner connections for the Amazon Web Services account in the Amazon Web Services Region.
createConnection_providerType :: Lens' CreateConnection ProviderType Source #
The source repository provider.
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.
$sel:connection:CreateConnectionResponse'
, createConnectionResponse_connection
- A description of the App Runner connection that's created by this
request.
Response Lenses
createConnectionResponse_httpStatus :: Lens' CreateConnectionResponse Int Source #
The response's http status code.
createConnectionResponse_connection :: Lens' CreateConnectionResponse Connection Source #
A description of the App Runner connection that's created by this request.