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

Description

Creates an API destination, which is an HTTP invocation endpoint configured as a target for events.

Synopsis

Creating a Request

data CreateApiDestination Source #

See: newCreateApiDestination smart constructor.

Constructors

CreateApiDestination' 

Fields

Instances

Instances details
Eq CreateApiDestination Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

Read CreateApiDestination Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

Show CreateApiDestination Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

Generic CreateApiDestination Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

Associated Types

type Rep CreateApiDestination :: Type -> Type #

NFData CreateApiDestination Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

Methods

rnf :: CreateApiDestination -> () #

Hashable CreateApiDestination Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

ToJSON CreateApiDestination Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

AWSRequest CreateApiDestination Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

Associated Types

type AWSResponse CreateApiDestination #

ToHeaders CreateApiDestination Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

ToPath CreateApiDestination Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

ToQuery CreateApiDestination Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

type Rep CreateApiDestination Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

type Rep CreateApiDestination = D1 ('MetaData "CreateApiDestination" "Amazonka.CloudWatchEvents.CreateApiDestination" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "CreateApiDestination'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "invocationRateLimitPerSecond") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "connectionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "invocationEndpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "httpMethod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ApiDestinationHttpMethod)))))
type AWSResponse CreateApiDestination Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

newCreateApiDestination Source #

Create a value of CreateApiDestination 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:invocationRateLimitPerSecond:CreateApiDestination', createApiDestination_invocationRateLimitPerSecond - The maximum number of requests per second to send to the HTTP invocation endpoint.

$sel:description:CreateApiDestination', createApiDestination_description - A description for the API destination to create.

$sel:name:CreateApiDestination', createApiDestination_name - The name for the API destination to create.

$sel:connectionArn:CreateApiDestination', createApiDestination_connectionArn - The ARN of the connection to use for the API destination. The destination endpoint must support the authorization type specified for the connection.

$sel:invocationEndpoint:CreateApiDestination', createApiDestination_invocationEndpoint - The URL to the HTTP invocation endpoint for the API destination.

$sel:httpMethod:CreateApiDestination', createApiDestination_httpMethod - The method to use for the request to the HTTP invocation endpoint.

Request Lenses

createApiDestination_invocationRateLimitPerSecond :: Lens' CreateApiDestination (Maybe Natural) Source #

The maximum number of requests per second to send to the HTTP invocation endpoint.

createApiDestination_description :: Lens' CreateApiDestination (Maybe Text) Source #

A description for the API destination to create.

createApiDestination_name :: Lens' CreateApiDestination Text Source #

The name for the API destination to create.

createApiDestination_connectionArn :: Lens' CreateApiDestination Text Source #

The ARN of the connection to use for the API destination. The destination endpoint must support the authorization type specified for the connection.

createApiDestination_invocationEndpoint :: Lens' CreateApiDestination Text Source #

The URL to the HTTP invocation endpoint for the API destination.

createApiDestination_httpMethod :: Lens' CreateApiDestination ApiDestinationHttpMethod Source #

The method to use for the request to the HTTP invocation endpoint.

Destructuring the Response

data CreateApiDestinationResponse Source #

See: newCreateApiDestinationResponse smart constructor.

Constructors

CreateApiDestinationResponse' 

Fields

Instances

Instances details
Eq CreateApiDestinationResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

Read CreateApiDestinationResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

Show CreateApiDestinationResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

Generic CreateApiDestinationResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

Associated Types

type Rep CreateApiDestinationResponse :: Type -> Type #

NFData CreateApiDestinationResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

type Rep CreateApiDestinationResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateApiDestination

type Rep CreateApiDestinationResponse = D1 ('MetaData "CreateApiDestinationResponse" "Amazonka.CloudWatchEvents.CreateApiDestination" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "CreateApiDestinationResponse'" '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 "apiDestinationState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ApiDestinationState)) :*: (S1 ('MetaSel ('Just "apiDestinationArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newCreateApiDestinationResponse Source #

Create a value of CreateApiDestinationResponse 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:CreateApiDestinationResponse', createApiDestinationResponse_creationTime - A time stamp indicating the time that the API destination was created.

$sel:lastModifiedTime:CreateApiDestinationResponse', createApiDestinationResponse_lastModifiedTime - A time stamp indicating the time that the API destination was last modified.

$sel:apiDestinationState:CreateApiDestinationResponse', createApiDestinationResponse_apiDestinationState - The state of the API destination that was created by the request.

$sel:apiDestinationArn:CreateApiDestinationResponse', createApiDestinationResponse_apiDestinationArn - The ARN of the API destination that was created by the request.

$sel:httpStatus:CreateApiDestinationResponse', createApiDestinationResponse_httpStatus - The response's http status code.

Response Lenses

createApiDestinationResponse_creationTime :: Lens' CreateApiDestinationResponse (Maybe UTCTime) Source #

A time stamp indicating the time that the API destination was created.

createApiDestinationResponse_lastModifiedTime :: Lens' CreateApiDestinationResponse (Maybe UTCTime) Source #

A time stamp indicating the time that the API destination was last modified.

createApiDestinationResponse_apiDestinationState :: Lens' CreateApiDestinationResponse (Maybe ApiDestinationState) Source #

The state of the API destination that was created by the request.

createApiDestinationResponse_apiDestinationArn :: Lens' CreateApiDestinationResponse (Maybe Text) Source #

The ARN of the API destination that was created by the request.