libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudWatchEvents.CreateConnection

Description

Creates a connection. A connection defines the authorization type and credentials to use for authorization with an API destination HTTP endpoint.

Synopsis

Creating a Request

data CreateConnection Source #

See: newCreateConnection smart constructor.

Constructors

CreateConnection' 

Fields

Instances

Instances details
Eq CreateConnection Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

Read CreateConnection Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

Show CreateConnection Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

Generic CreateConnection Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

Associated Types

type Rep CreateConnection :: Type -> Type #

NFData CreateConnection Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

Methods

rnf :: CreateConnection -> () #

Hashable CreateConnection Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

ToJSON CreateConnection Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

AWSRequest CreateConnection Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

Associated Types

type AWSResponse CreateConnection #

ToHeaders CreateConnection Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

ToPath CreateConnection Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

ToQuery CreateConnection Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

type Rep CreateConnection Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

type Rep CreateConnection = D1 ('MetaData "CreateConnection" "Amazonka.CloudWatchEvents.CreateConnection" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "CreateConnection'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "authorizationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ConnectionAuthorizationType) :*: S1 ('MetaSel ('Just "authParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CreateConnectionAuthRequestParameters))))
type AWSResponse CreateConnection Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

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:

$sel:description:CreateConnection', createConnection_description - A description for the connection to create.

$sel:name:CreateConnection', createConnection_name - The name for the connection to create.

$sel:authorizationType:CreateConnection', createConnection_authorizationType - The type of authorization to use for the connection.

$sel:authParameters:CreateConnection', createConnection_authParameters - A CreateConnectionAuthRequestParameters object that contains the authorization parameters to use to authorize with the endpoint.

Request Lenses

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

A description for the connection to create.

createConnection_name :: Lens' CreateConnection Text Source #

The name for the connection to create.

createConnection_authorizationType :: Lens' CreateConnection ConnectionAuthorizationType Source #

The type of authorization to use for the connection.

createConnection_authParameters :: Lens' CreateConnection CreateConnectionAuthRequestParameters Source #

A CreateConnectionAuthRequestParameters object that contains the authorization parameters to use to authorize with the endpoint.

Destructuring the Response

data CreateConnectionResponse Source #

See: newCreateConnectionResponse smart constructor.

Constructors

CreateConnectionResponse' 

Fields

Instances

Instances details
Eq CreateConnectionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

Read CreateConnectionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

Show CreateConnectionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

Generic CreateConnectionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

Associated Types

type Rep CreateConnectionResponse :: Type -> Type #

NFData CreateConnectionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

type Rep CreateConnectionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateConnection

type Rep CreateConnectionResponse = D1 ('MetaData "CreateConnectionResponse" "Amazonka.CloudWatchEvents.CreateConnection" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "CreateConnectionResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "creationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "lastModifiedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "connectionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "connectionState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ConnectionState)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

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:creationTime:CreateConnectionResponse', createConnectionResponse_creationTime - A time stamp for the time that the connection was created.

$sel:lastModifiedTime:CreateConnectionResponse', createConnectionResponse_lastModifiedTime - A time stamp for the time that the connection was last updated.

$sel:connectionArn:CreateConnectionResponse', createConnectionResponse_connectionArn - The ARN of the connection that was created by the request.

$sel:connectionState:CreateConnectionResponse', createConnectionResponse_connectionState - The state of the connection that was created by the request.

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

Response Lenses

createConnectionResponse_creationTime :: Lens' CreateConnectionResponse (Maybe UTCTime) Source #

A time stamp for the time that the connection was created.

createConnectionResponse_lastModifiedTime :: Lens' CreateConnectionResponse (Maybe UTCTime) Source #

A time stamp for the time that the connection was last updated.

createConnectionResponse_connectionArn :: Lens' CreateConnectionResponse (Maybe Text) Source #

The ARN of the connection that was created by the request.

createConnectionResponse_connectionState :: Lens' CreateConnectionResponse (Maybe ConnectionState) Source #

The state of the connection that was created by the request.