amazonka-codestar-connections-2.0: Amazon CodeStar connections SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CodeStarConnections.CreateConnection

Description

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

Creating a Request

data CreateConnection Source #

See: newCreateConnection smart constructor.

Constructors

CreateConnection' 

Fields

  • hostArn :: Maybe Text

    The Amazon Resource Name (ARN) of the host associated with the connection to be created.

  • providerType :: Maybe ProviderType

    The name of the external provider where your third-party code repository is configured.

  • tags :: Maybe [Tag]

    The key-value pair to use when tagging the resource.

  • connectionName :: Text

    The name of the connection to be created. The name must be unique in the calling AWS account.

Instances

Instances details
ToJSON CreateConnection Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

ToHeaders CreateConnection Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

ToPath CreateConnection Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

ToQuery CreateConnection Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

AWSRequest CreateConnection Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

Associated Types

type AWSResponse CreateConnection #

Generic CreateConnection Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

Associated Types

type Rep CreateConnection :: Type -> Type #

Read CreateConnection Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

Show CreateConnection Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

NFData CreateConnection Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

Methods

rnf :: CreateConnection -> () #

Eq CreateConnection Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

Hashable CreateConnection Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

type AWSResponse CreateConnection Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

type Rep CreateConnection Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

type Rep CreateConnection = D1 ('MetaData "CreateConnection" "Amazonka.CodeStarConnections.CreateConnection" "amazonka-codestar-connections-2.0-JfXvFjuvjBh3smH2VU30JL" 'False) (C1 ('MetaCons "CreateConnection'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "hostArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "providerType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProviderType))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "connectionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateConnection Source #

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_hostArn - The Amazon Resource Name (ARN) of the host associated with the connection to be created.

CreateConnection, createConnection_providerType - The name of the external provider where your third-party code repository is configured.

CreateConnection, createConnection_tags - The key-value pair to use when tagging the resource.

CreateConnection, createConnection_connectionName - The name of the connection to be created. The name must be unique in the calling AWS account.

Request Lenses

createConnection_hostArn :: Lens' CreateConnection (Maybe Text) Source #

The Amazon Resource Name (ARN) of the host associated with the connection to be created.

createConnection_providerType :: Lens' CreateConnection (Maybe ProviderType) Source #

The name of the external provider where your third-party code repository is configured.

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.

Constructors

CreateConnectionResponse' 

Fields

  • tags :: Maybe [Tag]

    Specifies the tags applied to the resource.

  • httpStatus :: Int

    The response's http status code.

  • connectionArn :: Text

    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.

Instances

Instances details
Generic CreateConnectionResponse Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

Associated Types

type Rep CreateConnectionResponse :: Type -> Type #

Read CreateConnectionResponse Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

Show CreateConnectionResponse Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

NFData CreateConnectionResponse Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

Eq CreateConnectionResponse Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

type Rep CreateConnectionResponse Source # 
Instance details

Defined in Amazonka.CodeStarConnections.CreateConnection

type Rep CreateConnectionResponse = D1 ('MetaData "CreateConnectionResponse" "Amazonka.CodeStarConnections.CreateConnection" "amazonka-codestar-connections-2.0-JfXvFjuvjBh3smH2VU30JL" 'False) (C1 ('MetaCons "CreateConnectionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "connectionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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:

CreateConnection, createConnectionResponse_tags - Specifies the tags applied to the resource.

$sel:httpStatus:CreateConnectionResponse', createConnectionResponse_httpStatus - The response's http status code.

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_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.