amazonka-apigatewaymanagementapi-2.0: Amazon ApiGatewayManagementApi 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.APIGatewayManagementAPI

Description

Derived from API version 2018-11-29 of the AWS service descriptions, licensed under Apache 2.0.

The Amazon API Gateway Management API allows you to directly manage runtime aspects of your deployed APIs. To use it, you must explicitly set the SDK's endpoint to point to the endpoint of your deployed API. The endpoint will be of the form https://{api-id}.execute-api.{region}.amazonaws.com/{stage}, or will be the endpoint corresponding to your API's custom domain and base path, if applicable.

Synopsis

Service Configuration

defaultService :: Service Source #

API version 2018-11-29 of the Amazon ApiGatewayManagementApi SDK configuration.

Errors

Error matchers are designed for use with the functions provided by Control.Exception.Lens. This allows catching (and rethrowing) service specific errors returned by APIGatewayManagementAPI.

ForbiddenException

_ForbiddenException :: AsError a => Fold a ServiceError Source #

The caller is not authorized to invoke this operation.

GoneException

_GoneException :: AsError a => Fold a ServiceError Source #

The connection with the provided id no longer exists.

LimitExceededException

_LimitExceededException :: AsError a => Fold a ServiceError Source #

The client is sending more than the allowed number of requests per unit of time or the WebSocket client side buffer is full.

PayloadTooLargeException

_PayloadTooLargeException :: AsError a => Fold a ServiceError Source #

The data has exceeded the maximum size allowed.

Waiters

Waiters poll by repeatedly sending a request until some remote success condition configured by the Wait specification is fulfilled. The Wait specification determines how many attempts should be made, in addition to delay and retry strategies.

Operations

Some AWS operations return results that are incomplete and require subsequent requests in order to obtain the entire result set. The process of sending subsequent requests to continue where a previous request left off is called pagination. For example, the ListObjects operation of Amazon S3 returns up to 1000 objects at a time, and you must send subsequent requests with the appropriate Marker in order to retrieve the next page of results.

Operations that have an AWSPager instance can transparently perform subsequent requests, correctly setting Markers and other request facets to iterate through the entire result set of a truncated API operation. Operations which support this have an additional note in the documentation.

Many operations have the ability to filter results on the server side. See the individual operation parameters for details.

DeleteConnection

data DeleteConnection Source #

See: newDeleteConnection smart constructor.

Constructors

DeleteConnection' Text 

Instances

Instances details
ToHeaders DeleteConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.DeleteConnection

ToPath DeleteConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.DeleteConnection

ToQuery DeleteConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.DeleteConnection

AWSRequest DeleteConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.DeleteConnection

Associated Types

type AWSResponse DeleteConnection #

Generic DeleteConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.DeleteConnection

Associated Types

type Rep DeleteConnection :: Type -> Type #

Read DeleteConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.DeleteConnection

Show DeleteConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.DeleteConnection

NFData DeleteConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.DeleteConnection

Methods

rnf :: DeleteConnection -> () #

Eq DeleteConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.DeleteConnection

Hashable DeleteConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.DeleteConnection

type AWSResponse DeleteConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.DeleteConnection

type Rep DeleteConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.DeleteConnection

type Rep DeleteConnection = D1 ('MetaData "DeleteConnection" "Amazonka.APIGatewayManagementAPI.DeleteConnection" "amazonka-apigatewaymanagementapi-2.0-HxSVILnkEh6Hs18CaFx2Dr" 'False) (C1 ('MetaCons "DeleteConnection'" 'PrefixI 'True) (S1 ('MetaSel ('Just "connectionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeleteConnection Source #

Create a value of DeleteConnection 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:connectionId:DeleteConnection', deleteConnection_connectionId - Undocumented member.

data DeleteConnectionResponse Source #

See: newDeleteConnectionResponse smart constructor.

Instances

Instances details
Generic DeleteConnectionResponse Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.DeleteConnection

Associated Types

type Rep DeleteConnectionResponse :: Type -> Type #

Read DeleteConnectionResponse Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.DeleteConnection

Show DeleteConnectionResponse Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.DeleteConnection

NFData DeleteConnectionResponse Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.DeleteConnection

Eq DeleteConnectionResponse Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.DeleteConnection

type Rep DeleteConnectionResponse Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.DeleteConnection

type Rep DeleteConnectionResponse = D1 ('MetaData "DeleteConnectionResponse" "Amazonka.APIGatewayManagementAPI.DeleteConnection" "amazonka-apigatewaymanagementapi-2.0-HxSVILnkEh6Hs18CaFx2Dr" 'False) (C1 ('MetaCons "DeleteConnectionResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteConnectionResponse :: DeleteConnectionResponse Source #

Create a value of DeleteConnectionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

GetConnection

data GetConnection Source #

See: newGetConnection smart constructor.

Constructors

GetConnection' Text 

Instances

Instances details
ToHeaders GetConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.GetConnection

ToPath GetConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.GetConnection

ToQuery GetConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.GetConnection

AWSRequest GetConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.GetConnection

Associated Types

type AWSResponse GetConnection #

Generic GetConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.GetConnection

Associated Types

type Rep GetConnection :: Type -> Type #

Read GetConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.GetConnection

Show GetConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.GetConnection

NFData GetConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.GetConnection

Methods

rnf :: GetConnection -> () #

Eq GetConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.GetConnection

Hashable GetConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.GetConnection

type AWSResponse GetConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.GetConnection

type Rep GetConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.GetConnection

type Rep GetConnection = D1 ('MetaData "GetConnection" "Amazonka.APIGatewayManagementAPI.GetConnection" "amazonka-apigatewaymanagementapi-2.0-HxSVILnkEh6Hs18CaFx2Dr" 'False) (C1 ('MetaCons "GetConnection'" 'PrefixI 'True) (S1 ('MetaSel ('Just "connectionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetConnection Source #

Create a value of GetConnection 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:connectionId:GetConnection', getConnection_connectionId - Undocumented member.

data GetConnectionResponse Source #

See: newGetConnectionResponse smart constructor.

Instances

Instances details
Generic GetConnectionResponse Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.GetConnection

Associated Types

type Rep GetConnectionResponse :: Type -> Type #

Read GetConnectionResponse Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.GetConnection

Show GetConnectionResponse Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.GetConnection

NFData GetConnectionResponse Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.GetConnection

Methods

rnf :: GetConnectionResponse -> () #

Eq GetConnectionResponse Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.GetConnection

type Rep GetConnectionResponse Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.GetConnection

type Rep GetConnectionResponse = D1 ('MetaData "GetConnectionResponse" "Amazonka.APIGatewayManagementAPI.GetConnection" "amazonka-apigatewaymanagementapi-2.0-HxSVILnkEh6Hs18CaFx2Dr" 'False) (C1 ('MetaCons "GetConnectionResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "connectedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "identity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Identity))) :*: (S1 ('MetaSel ('Just "lastActiveAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetConnectionResponse Source #

Create a value of GetConnectionResponse 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:connectedAt:GetConnectionResponse', getConnectionResponse_connectedAt - The time in ISO 8601 format for when the connection was established.

$sel:identity:GetConnectionResponse', getConnectionResponse_identity - Undocumented member.

$sel:lastActiveAt:GetConnectionResponse', getConnectionResponse_lastActiveAt - The time in ISO 8601 format for when the connection was last active.

$sel:httpStatus:GetConnectionResponse', getConnectionResponse_httpStatus - The response's http status code.

PostToConnection

data PostToConnection Source #

See: newPostToConnection smart constructor.

Instances

Instances details
ToBody PostToConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

ToHeaders PostToConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

ToPath PostToConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

ToQuery PostToConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

AWSRequest PostToConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

Associated Types

type AWSResponse PostToConnection #

Generic PostToConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

Associated Types

type Rep PostToConnection :: Type -> Type #

Read PostToConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

Show PostToConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

NFData PostToConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

Methods

rnf :: PostToConnection -> () #

Eq PostToConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

Hashable PostToConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

type AWSResponse PostToConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

type Rep PostToConnection Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

type Rep PostToConnection = D1 ('MetaData "PostToConnection" "Amazonka.APIGatewayManagementAPI.PostToConnection" "amazonka-apigatewaymanagementapi-2.0-HxSVILnkEh6Hs18CaFx2Dr" 'False) (C1 ('MetaCons "PostToConnection'" 'PrefixI 'True) (S1 ('MetaSel ('Just "connectionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "data'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)))

newPostToConnection Source #

Create a value of PostToConnection 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:connectionId:PostToConnection', postToConnection_connectionId - The identifier of the connection that a specific client is using.

$sel:data':PostToConnection', postToConnection_data - The data to be sent to the client specified by its connection id.

data PostToConnectionResponse Source #

See: newPostToConnectionResponse smart constructor.

Instances

Instances details
Generic PostToConnectionResponse Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

Associated Types

type Rep PostToConnectionResponse :: Type -> Type #

Read PostToConnectionResponse Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

Show PostToConnectionResponse Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

NFData PostToConnectionResponse Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

Eq PostToConnectionResponse Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

type Rep PostToConnectionResponse Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.PostToConnection

type Rep PostToConnectionResponse = D1 ('MetaData "PostToConnectionResponse" "Amazonka.APIGatewayManagementAPI.PostToConnection" "amazonka-apigatewaymanagementapi-2.0-HxSVILnkEh6Hs18CaFx2Dr" 'False) (C1 ('MetaCons "PostToConnectionResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newPostToConnectionResponse :: PostToConnectionResponse Source #

Create a value of PostToConnectionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

Types

Identity

data Identity Source #

See: newIdentity smart constructor.

Constructors

Identity' Text Text 

Instances

Instances details
FromJSON Identity Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.Types.Identity

Generic Identity Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.Types.Identity

Associated Types

type Rep Identity :: Type -> Type #

Methods

from :: Identity -> Rep Identity x #

to :: Rep Identity x -> Identity #

Read Identity Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.Types.Identity

Show Identity Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.Types.Identity

NFData Identity Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.Types.Identity

Methods

rnf :: Identity -> () #

Eq Identity Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.Types.Identity

Hashable Identity Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.Types.Identity

Methods

hashWithSalt :: Int -> Identity -> Int #

hash :: Identity -> Int #

type Rep Identity Source # 
Instance details

Defined in Amazonka.APIGatewayManagementAPI.Types.Identity

type Rep Identity = D1 ('MetaData "Identity" "Amazonka.APIGatewayManagementAPI.Types.Identity" "amazonka-apigatewaymanagementapi-2.0-HxSVILnkEh6Hs18CaFx2Dr" 'False) (C1 ('MetaCons "Identity'" 'PrefixI 'True) (S1 ('MetaSel ('Just "sourceIp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "userAgent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newIdentity Source #

Create a value of Identity 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:sourceIp:Identity', identity_sourceIp - The source IP address of the TCP connection making the request to API Gateway.

$sel:userAgent:Identity', identity_userAgent - The User Agent of the API caller.