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 connection that can then be given to other AWS services like CodePipeline so that it can access third-party code repositories. The connection is in pending status until the third-party connection handshake is completed from the console.
Synopsis
- data CreateConnection = CreateConnection' {
- providerType :: Maybe ProviderType
- hostArn :: Maybe Text
- tags :: Maybe [Tag]
- connectionName :: Text
- newCreateConnection :: Text -> CreateConnection
- createConnection_providerType :: Lens' CreateConnection (Maybe ProviderType)
- createConnection_hostArn :: Lens' CreateConnection (Maybe Text)
- createConnection_tags :: Lens' CreateConnection (Maybe [Tag])
- createConnection_connectionName :: Lens' CreateConnection Text
- data CreateConnectionResponse = CreateConnectionResponse' {
- tags :: Maybe [Tag]
- httpStatus :: Int
- connectionArn :: Text
- newCreateConnectionResponse :: Int -> Text -> CreateConnectionResponse
- createConnectionResponse_tags :: Lens' CreateConnectionResponse (Maybe [Tag])
- createConnectionResponse_httpStatus :: Lens' CreateConnectionResponse Int
- createConnectionResponse_connectionArn :: Lens' CreateConnectionResponse Text
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:
$sel:providerType:CreateConnection'
, createConnection_providerType
- The name of the external provider where your third-party code repository
is configured.
$sel:hostArn:CreateConnection'
, createConnection_hostArn
- The Amazon Resource Name (ARN) of the host associated with the
connection to be created.
$sel:tags:CreateConnection'
, createConnection_tags
- The key-value pair to use when tagging the resource.
$sel:connectionName:CreateConnection'
, createConnection_connectionName
- The name of the connection to be created. The name must be unique in the
calling AWS account.
Request Lenses
createConnection_providerType :: Lens' CreateConnection (Maybe ProviderType) Source #
The name of the external provider where your third-party code repository is configured.
createConnection_hostArn :: Lens' CreateConnection (Maybe Text) Source #
The Amazon Resource Name (ARN) of the host associated with the connection to be created.
createConnection_tags :: Lens' CreateConnection (Maybe [Tag]) Source #
The key-value pair to use when tagging the resource.
createConnection_connectionName :: Lens' CreateConnection Text Source #
The name of the connection to be created. The name must be unique in the calling AWS account.
Destructuring the Response
data CreateConnectionResponse Source #
See: newCreateConnectionResponse
smart constructor.
CreateConnectionResponse' | |
|
Instances
newCreateConnectionResponse Source #
:: Int | |
-> Text | |
-> CreateConnectionResponse |
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:tags:CreateConnection'
, createConnectionResponse_tags
- Specifies the tags applied to the resource.
$sel:httpStatus:CreateConnectionResponse'
, createConnectionResponse_httpStatus
- The response's http status code.
$sel:connectionArn:CreateConnectionResponse'
, createConnectionResponse_connectionArn
- The Amazon Resource Name (ARN) of the connection to be created. The ARN
is used as the connection reference when the connection is shared
between AWS services.
The ARN is never reused if the connection is deleted.
Response Lenses
createConnectionResponse_tags :: Lens' CreateConnectionResponse (Maybe [Tag]) Source #
Specifies the tags applied to the resource.
createConnectionResponse_httpStatus :: Lens' CreateConnectionResponse Int Source #
The response's http status code.
createConnectionResponse_connectionArn :: Lens' CreateConnectionResponse Text Source #
The Amazon Resource Name (ARN) of the connection to be created. The ARN is used as the connection reference when the connection is shared between AWS services.
The ARN is never reused if the connection is deleted.