libZSservicesZSamazonka-apigatewayZSamazonka-apigateway
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.APIGateway.Types

Description

 
Synopsis

Service Configuration

defaultService :: Service Source #

API version 2015-07-09 of the Amazon API Gateway SDK configuration.

Errors

_ConflictException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The request configuration has conflicts. For details, see the accompanying error message.

_NotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The requested resource is not found. Make sure that the request URI is correct.

_TooManyRequestsException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The request has reached its throttling limit. Retry after the specified time period.

_ServiceUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The requested service is not available. For details see the accompanying error message. Retry after the specified time period.

_UnauthorizedException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The request is denied because the caller has insufficient permissions.

_BadRequestException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.

_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The request exceeded the rate limit. Retry after the specified time period.

ApiKeySourceType

newtype ApiKeySourceType Source #

Instances

Instances details
Eq ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

Ord ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

Read ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

Show ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

Generic ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

Associated Types

type Rep ApiKeySourceType :: Type -> Type #

NFData ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

Methods

rnf :: ApiKeySourceType -> () #

Hashable ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

ToJSON ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

ToJSONKey ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

FromJSON ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

FromJSONKey ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

ToLog ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

ToHeader ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

ToQuery ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

FromXML ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

ToXML ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

ToByteString ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

FromText ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

ToText ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

type Rep ApiKeySourceType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeySourceType

type Rep ApiKeySourceType = D1 ('MetaData "ApiKeySourceType" "Amazonka.APIGateway.Types.ApiKeySourceType" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "ApiKeySourceType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromApiKeySourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

ApiKeysFormat

newtype ApiKeysFormat Source #

Constructors

ApiKeysFormat' 

Bundled Patterns

pattern ApiKeysFormat_Csv :: ApiKeysFormat 

Instances

Instances details
Eq ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

Ord ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

Read ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

Show ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

Generic ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

Associated Types

type Rep ApiKeysFormat :: Type -> Type #

NFData ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

Methods

rnf :: ApiKeysFormat -> () #

Hashable ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

ToJSON ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

ToJSONKey ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

FromJSON ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

FromJSONKey ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

ToLog ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

ToHeader ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

ToQuery ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

FromXML ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

ToXML ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

Methods

toXML :: ApiKeysFormat -> XML #

ToByteString ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

FromText ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

ToText ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

Methods

toText :: ApiKeysFormat -> Text #

type Rep ApiKeysFormat Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKeysFormat

type Rep ApiKeysFormat = D1 ('MetaData "ApiKeysFormat" "Amazonka.APIGateway.Types.ApiKeysFormat" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "ApiKeysFormat'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromApiKeysFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

AuthorizerType

newtype AuthorizerType Source #

The authorizer type. Valid values are TOKEN for a Lambda function using a single authorization token submitted in a custom header, REQUEST for a Lambda function using incoming request parameters, and COGNITO_USER_POOLS for using an Amazon Cognito user pool.

Constructors

AuthorizerType' 

Instances

Instances details
Eq AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

Ord AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

Read AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

Show AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

Generic AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

Associated Types

type Rep AuthorizerType :: Type -> Type #

NFData AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

Methods

rnf :: AuthorizerType -> () #

Hashable AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

ToJSON AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

ToJSONKey AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

FromJSON AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

FromJSONKey AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

ToLog AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

ToHeader AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

ToQuery AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

FromXML AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

ToXML AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

Methods

toXML :: AuthorizerType -> XML #

ToByteString AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

FromText AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

ToText AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

type Rep AuthorizerType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AuthorizerType

type Rep AuthorizerType = D1 ('MetaData "AuthorizerType" "Amazonka.APIGateway.Types.AuthorizerType" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "AuthorizerType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromAuthorizerType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

CacheClusterSize

newtype CacheClusterSize Source #

Returns the size of the CacheCluster.

Bundled Patterns

pattern CacheClusterSize_ :: CacheClusterSize 

Instances

Instances details
Eq CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

Ord CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

Read CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

Show CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

Generic CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

Associated Types

type Rep CacheClusterSize :: Type -> Type #

NFData CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

Methods

rnf :: CacheClusterSize -> () #

Hashable CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

ToJSON CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

ToJSONKey CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

FromJSON CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

FromJSONKey CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

ToLog CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

ToHeader CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

ToQuery CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

FromXML CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

ToXML CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

ToByteString CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

FromText CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

ToText CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

type Rep CacheClusterSize Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterSize

type Rep CacheClusterSize = D1 ('MetaData "CacheClusterSize" "Amazonka.APIGateway.Types.CacheClusterSize" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "CacheClusterSize'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromCacheClusterSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

CacheClusterStatus

newtype CacheClusterStatus Source #

Returns the status of the CacheCluster.

Instances

Instances details
Eq CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

Ord CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

Read CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

Show CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

Generic CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

Associated Types

type Rep CacheClusterStatus :: Type -> Type #

NFData CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

Methods

rnf :: CacheClusterStatus -> () #

Hashable CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

ToJSON CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

ToJSONKey CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

FromJSON CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

FromJSONKey CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

ToLog CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

ToHeader CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

ToQuery CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

FromXML CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

ToXML CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

ToByteString CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

FromText CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

ToText CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

type Rep CacheClusterStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CacheClusterStatus

type Rep CacheClusterStatus = D1 ('MetaData "CacheClusterStatus" "Amazonka.APIGateway.Types.CacheClusterStatus" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "CacheClusterStatus'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromCacheClusterStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

ConnectionType

newtype ConnectionType Source #

Constructors

ConnectionType' 

Instances

Instances details
Eq ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

Ord ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

Read ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

Show ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

Generic ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

Associated Types

type Rep ConnectionType :: Type -> Type #

NFData ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

Methods

rnf :: ConnectionType -> () #

Hashable ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

ToJSON ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

ToJSONKey ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

FromJSON ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

FromJSONKey ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

ToLog ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

ToHeader ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

ToQuery ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

FromXML ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

ToXML ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

Methods

toXML :: ConnectionType -> XML #

ToByteString ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

FromText ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

ToText ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

type Rep ConnectionType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ConnectionType

type Rep ConnectionType = D1 ('MetaData "ConnectionType" "Amazonka.APIGateway.Types.ConnectionType" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "ConnectionType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromConnectionType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

ContentHandlingStrategy

newtype ContentHandlingStrategy Source #

Instances

Instances details
Eq ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

Ord ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

Read ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

Show ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

Generic ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

Associated Types

type Rep ContentHandlingStrategy :: Type -> Type #

NFData ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

Methods

rnf :: ContentHandlingStrategy -> () #

Hashable ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

ToJSON ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

ToJSONKey ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

FromJSON ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

FromJSONKey ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

ToLog ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

ToHeader ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

ToQuery ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

FromXML ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

ToXML ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

ToByteString ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

FromText ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

ToText ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

type Rep ContentHandlingStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ContentHandlingStrategy

type Rep ContentHandlingStrategy = D1 ('MetaData "ContentHandlingStrategy" "Amazonka.APIGateway.Types.ContentHandlingStrategy" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "ContentHandlingStrategy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromContentHandlingStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

DocumentationPartType

newtype DocumentationPartType Source #

Instances

Instances details
Eq DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

Ord DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

Read DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

Show DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

Generic DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

Associated Types

type Rep DocumentationPartType :: Type -> Type #

NFData DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

Methods

rnf :: DocumentationPartType -> () #

Hashable DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

ToJSON DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

ToJSONKey DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

FromJSON DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

FromJSONKey DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

ToLog DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

ToHeader DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

ToQuery DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

FromXML DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

ToXML DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

ToByteString DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

FromText DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

ToText DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

type Rep DocumentationPartType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartType

type Rep DocumentationPartType = D1 ('MetaData "DocumentationPartType" "Amazonka.APIGateway.Types.DocumentationPartType" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "DocumentationPartType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromDocumentationPartType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

DomainNameStatus

newtype DomainNameStatus Source #

Instances

Instances details
Eq DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

Ord DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

Read DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

Show DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

Generic DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

Associated Types

type Rep DomainNameStatus :: Type -> Type #

NFData DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

Methods

rnf :: DomainNameStatus -> () #

Hashable DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

ToJSON DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

ToJSONKey DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

FromJSON DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

FromJSONKey DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

ToLog DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

ToHeader DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

ToQuery DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

FromXML DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

ToXML DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

ToByteString DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

FromText DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

ToText DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

type Rep DomainNameStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainNameStatus

type Rep DomainNameStatus = D1 ('MetaData "DomainNameStatus" "Amazonka.APIGateway.Types.DomainNameStatus" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "DomainNameStatus'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromDomainNameStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

EndpointType

newtype EndpointType Source #

The endpoint type. The valid values are EDGE for edge-optimized API setup, most suitable for mobile applications; REGIONAL for regional API endpoint setup, most suitable for calling from AWS Region; and PRIVATE for private APIs.

Constructors

EndpointType' 

Instances

Instances details
Eq EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

Ord EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

Read EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

Show EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

Generic EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

Associated Types

type Rep EndpointType :: Type -> Type #

NFData EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

Methods

rnf :: EndpointType -> () #

Hashable EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

ToJSON EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

ToJSONKey EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

FromJSON EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

FromJSONKey EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

ToLog EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

ToHeader EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

ToQuery EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

FromXML EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

ToXML EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

Methods

toXML :: EndpointType -> XML #

ToByteString EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

FromText EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

ToText EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

Methods

toText :: EndpointType -> Text #

type Rep EndpointType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointType

type Rep EndpointType = D1 ('MetaData "EndpointType" "Amazonka.APIGateway.Types.EndpointType" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "EndpointType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromEndpointType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

GatewayResponseType

newtype GatewayResponseType Source #

Instances

Instances details
Eq GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

Ord GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

Read GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

Show GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

Generic GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

Associated Types

type Rep GatewayResponseType :: Type -> Type #

NFData GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

Methods

rnf :: GatewayResponseType -> () #

Hashable GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

ToJSON GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

ToJSONKey GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

FromJSON GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

FromJSONKey GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

ToLog GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

ToHeader GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

ToQuery GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

FromXML GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

ToXML GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

ToByteString GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

FromText GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

ToText GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

type Rep GatewayResponseType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponseType

type Rep GatewayResponseType = D1 ('MetaData "GatewayResponseType" "Amazonka.APIGateway.Types.GatewayResponseType" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "GatewayResponseType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromGatewayResponseType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

IntegrationType

newtype IntegrationType Source #

The integration type. The valid value is HTTP for integrating an API method with an HTTP backend; AWS with any AWS service endpoints; MOCK for testing without actually invoking the backend; HTTP_PROXY for integrating with the HTTP proxy integration; AWS_PROXY for integrating with the Lambda proxy integration.

Constructors

IntegrationType' 

Instances

Instances details
Eq IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

Ord IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

Read IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

Show IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

Generic IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

Associated Types

type Rep IntegrationType :: Type -> Type #

NFData IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

Methods

rnf :: IntegrationType -> () #

Hashable IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

ToJSON IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

ToJSONKey IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

FromJSON IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

FromJSONKey IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

ToLog IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

ToHeader IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

ToQuery IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

FromXML IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

ToXML IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

Methods

toXML :: IntegrationType -> XML #

ToByteString IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

FromText IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

ToText IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

type Rep IntegrationType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationType

type Rep IntegrationType = D1 ('MetaData "IntegrationType" "Amazonka.APIGateway.Types.IntegrationType" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "IntegrationType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromIntegrationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

LocationStatusType

newtype LocationStatusType Source #

Instances

Instances details
Eq LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

Ord LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

Read LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

Show LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

Generic LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

Associated Types

type Rep LocationStatusType :: Type -> Type #

NFData LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

Methods

rnf :: LocationStatusType -> () #

Hashable LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

ToJSON LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

ToJSONKey LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

FromJSON LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

FromJSONKey LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

ToLog LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

ToHeader LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

ToQuery LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

FromXML LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

ToXML LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

ToByteString LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

FromText LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

ToText LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

type Rep LocationStatusType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.LocationStatusType

type Rep LocationStatusType = D1 ('MetaData "LocationStatusType" "Amazonka.APIGateway.Types.LocationStatusType" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "LocationStatusType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromLocationStatusType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

Op

newtype Op Source #

Constructors

Op' 

Fields

Bundled Patterns

pattern Op_Add :: Op 
pattern Op_Copy :: Op 
pattern Op_Move :: Op 
pattern Op_Remove :: Op 
pattern Op_Replace :: Op 
pattern Op_Test :: Op 

Instances

Instances details
Eq Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

Methods

(==) :: Op -> Op -> Bool #

(/=) :: Op -> Op -> Bool #

Ord Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

Methods

compare :: Op -> Op -> Ordering #

(<) :: Op -> Op -> Bool #

(<=) :: Op -> Op -> Bool #

(>) :: Op -> Op -> Bool #

(>=) :: Op -> Op -> Bool #

max :: Op -> Op -> Op #

min :: Op -> Op -> Op #

Read Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

Show Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

Methods

showsPrec :: Int -> Op -> ShowS #

show :: Op -> String #

showList :: [Op] -> ShowS #

Generic Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

Associated Types

type Rep Op :: Type -> Type #

Methods

from :: Op -> Rep Op x #

to :: Rep Op x -> Op #

NFData Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

Methods

rnf :: Op -> () #

Hashable Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

Methods

hashWithSalt :: Int -> Op -> Int #

hash :: Op -> Int #

ToJSON Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

ToJSONKey Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

FromJSON Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

FromJSONKey Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

ToLog Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

ToHeader Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

Methods

toHeader :: HeaderName -> Op -> [Header] #

ToQuery Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

Methods

toQuery :: Op -> QueryString #

FromXML Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

Methods

parseXML :: [Node] -> Either String Op #

ToXML Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

Methods

toXML :: Op -> XML #

ToByteString Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

Methods

toBS :: Op -> ByteString #

FromText Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

Methods

fromText :: Text -> Either String Op #

ToText Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

Methods

toText :: Op -> Text #

type Rep Op Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Op

type Rep Op = D1 ('MetaData "Op" "Amazonka.APIGateway.Types.Op" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "Op'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromOp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

PutMode

newtype PutMode Source #

Constructors

PutMode' 

Fields

Bundled Patterns

pattern PutMode_Merge :: PutMode 
pattern PutMode_Overwrite :: PutMode 

Instances

Instances details
Eq PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

Methods

(==) :: PutMode -> PutMode -> Bool #

(/=) :: PutMode -> PutMode -> Bool #

Ord PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

Read PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

Show PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

Generic PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

Associated Types

type Rep PutMode :: Type -> Type #

Methods

from :: PutMode -> Rep PutMode x #

to :: Rep PutMode x -> PutMode #

NFData PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

Methods

rnf :: PutMode -> () #

Hashable PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

Methods

hashWithSalt :: Int -> PutMode -> Int #

hash :: PutMode -> Int #

ToJSON PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

ToJSONKey PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

FromJSON PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

FromJSONKey PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

ToLog PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

ToHeader PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

Methods

toHeader :: HeaderName -> PutMode -> [Header] #

ToQuery PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

FromXML PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

ToXML PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

Methods

toXML :: PutMode -> XML #

ToByteString PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

Methods

toBS :: PutMode -> ByteString #

FromText PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

ToText PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

Methods

toText :: PutMode -> Text #

type Rep PutMode Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PutMode

type Rep PutMode = D1 ('MetaData "PutMode" "Amazonka.APIGateway.Types.PutMode" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "PutMode'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromPutMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

QuotaPeriodType

newtype QuotaPeriodType Source #

Constructors

QuotaPeriodType' 

Instances

Instances details
Eq QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

Ord QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

Read QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

Show QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

Generic QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

Associated Types

type Rep QuotaPeriodType :: Type -> Type #

NFData QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

Methods

rnf :: QuotaPeriodType -> () #

Hashable QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

ToJSON QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

ToJSONKey QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

FromJSON QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

FromJSONKey QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

ToLog QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

ToHeader QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

ToQuery QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

FromXML QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

ToXML QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

Methods

toXML :: QuotaPeriodType -> XML #

ToByteString QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

FromText QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

ToText QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

type Rep QuotaPeriodType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaPeriodType

type Rep QuotaPeriodType = D1 ('MetaData "QuotaPeriodType" "Amazonka.APIGateway.Types.QuotaPeriodType" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "QuotaPeriodType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromQuotaPeriodType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

SecurityPolicy

newtype SecurityPolicy Source #

Constructors

SecurityPolicy' 

Instances

Instances details
Eq SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

Ord SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

Read SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

Show SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

Generic SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

Associated Types

type Rep SecurityPolicy :: Type -> Type #

NFData SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

Methods

rnf :: SecurityPolicy -> () #

Hashable SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

ToJSON SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

ToJSONKey SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

FromJSON SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

FromJSONKey SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

ToLog SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

ToHeader SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

ToQuery SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

FromXML SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

ToXML SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

Methods

toXML :: SecurityPolicy -> XML #

ToByteString SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

FromText SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

ToText SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

type Rep SecurityPolicy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SecurityPolicy

type Rep SecurityPolicy = D1 ('MetaData "SecurityPolicy" "Amazonka.APIGateway.Types.SecurityPolicy" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "SecurityPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromSecurityPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

UnauthorizedCacheControlHeaderStrategy

newtype UnauthorizedCacheControlHeaderStrategy Source #

Instances

Instances details
Eq UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

Ord UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

Read UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

Show UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

Generic UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

NFData UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

Hashable UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

ToJSON UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

ToJSONKey UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

FromJSON UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

FromJSONKey UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

ToLog UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

ToHeader UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

ToQuery UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

FromXML UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

ToXML UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

ToByteString UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

FromText UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

ToText UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

type Rep UnauthorizedCacheControlHeaderStrategy Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy

type Rep UnauthorizedCacheControlHeaderStrategy = D1 ('MetaData "UnauthorizedCacheControlHeaderStrategy" "Amazonka.APIGateway.Types.UnauthorizedCacheControlHeaderStrategy" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "UnauthorizedCacheControlHeaderStrategy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromUnauthorizedCacheControlHeaderStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

VpcLinkStatus

newtype VpcLinkStatus Source #

Constructors

VpcLinkStatus' 

Instances

Instances details
Eq VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

Ord VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

Read VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

Show VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

Generic VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

Associated Types

type Rep VpcLinkStatus :: Type -> Type #

NFData VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

Methods

rnf :: VpcLinkStatus -> () #

Hashable VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

ToJSON VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

ToJSONKey VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

FromJSON VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

FromJSONKey VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

ToLog VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

ToHeader VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

ToQuery VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

FromXML VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

ToXML VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

Methods

toXML :: VpcLinkStatus -> XML #

ToByteString VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

FromText VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

ToText VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

Methods

toText :: VpcLinkStatus -> Text #

type Rep VpcLinkStatus Source # 
Instance details

Defined in Amazonka.APIGateway.Types.VpcLinkStatus

type Rep VpcLinkStatus = D1 ('MetaData "VpcLinkStatus" "Amazonka.APIGateway.Types.VpcLinkStatus" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'True) (C1 ('MetaCons "VpcLinkStatus'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromVpcLinkStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

AccessLogSettings

data AccessLogSettings Source #

Access log settings, including the access log format and access log destination ARN.

See: newAccessLogSettings smart constructor.

Constructors

AccessLogSettings' 

Fields

  • format :: Maybe Text

    A single line format of the access logs of data, as specified by selected $context variables. The format must include at least $context.requestId.

  • destinationArn :: Maybe Text

    The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with amazon-apigateway-.

Instances

Instances details
Eq AccessLogSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AccessLogSettings

Read AccessLogSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AccessLogSettings

Show AccessLogSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AccessLogSettings

Generic AccessLogSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AccessLogSettings

Associated Types

type Rep AccessLogSettings :: Type -> Type #

NFData AccessLogSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AccessLogSettings

Methods

rnf :: AccessLogSettings -> () #

Hashable AccessLogSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AccessLogSettings

FromJSON AccessLogSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AccessLogSettings

type Rep AccessLogSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.AccessLogSettings

type Rep AccessLogSettings = D1 ('MetaData "AccessLogSettings" "Amazonka.APIGateway.Types.AccessLogSettings" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "AccessLogSettings'" 'PrefixI 'True) (S1 ('MetaSel ('Just "format") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "destinationArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newAccessLogSettings :: AccessLogSettings Source #

Create a value of AccessLogSettings 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:format:AccessLogSettings', accessLogSettings_format - A single line format of the access logs of data, as specified by selected $context variables. The format must include at least $context.requestId.

$sel:destinationArn:AccessLogSettings', accessLogSettings_destinationArn - The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with amazon-apigateway-.

accessLogSettings_format :: Lens' AccessLogSettings (Maybe Text) Source #

A single line format of the access logs of data, as specified by selected $context variables. The format must include at least $context.requestId.

accessLogSettings_destinationArn :: Lens' AccessLogSettings (Maybe Text) Source #

The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with amazon-apigateway-.

Account

data Account Source #

Represents an AWS account that is associated with API Gateway.

To view the account info, call GET on this resource.

Error Codes

The following exception may be thrown when the request fails.

  • UnauthorizedException
  • NotFoundException
  • TooManyRequestsException

For detailed error code information, including the corresponding HTTP Status Codes, see API Gateway Error Codes

Example: Get the information about an account.

Request
GET /account HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20160531T184618Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
Response

The successful response returns a 200 OK status code and a payload similar to the following:

{ "_links": { "curies": { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/account-apigateway-{rel}.html", "name": "account", "templated": true }, "self": { "href": "/account" }, "account:update": { "href": "/account" } }, "cloudwatchRoleArn": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "throttleSettings": { "rateLimit": 500, "burstLimit": 1000 } }

In addition to making the REST API call directly, you can use the AWS CLI and an AWS SDK to access this resource.

API Gateway Limits Developer Guide, AWS CLI

See: newAccount smart constructor.

Constructors

Account' 

Fields

Instances

Instances details
Eq Account Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Account

Methods

(==) :: Account -> Account -> Bool #

(/=) :: Account -> Account -> Bool #

Read Account Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Account

Show Account Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Account

Generic Account Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Account

Associated Types

type Rep Account :: Type -> Type #

Methods

from :: Account -> Rep Account x #

to :: Rep Account x -> Account #

NFData Account Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Account

Methods

rnf :: Account -> () #

Hashable Account Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Account

Methods

hashWithSalt :: Int -> Account -> Int #

hash :: Account -> Int #

FromJSON Account Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Account

type Rep Account Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Account

type Rep Account = D1 ('MetaData "Account" "Amazonka.APIGateway.Types.Account" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "Account'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "apiKeyVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "cloudwatchRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "features") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "throttleSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ThrottleSettings)))))

newAccount :: Account Source #

Create a value of Account 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:apiKeyVersion:Account', account_apiKeyVersion - The version of the API keys used for the account.

$sel:cloudwatchRoleArn:Account', account_cloudwatchRoleArn - The ARN of an Amazon CloudWatch role for the current Account.

$sel:features:Account', account_features - A list of features supported for the account. When usage plans are enabled, the features list will include an entry of "UsagePlans".

$sel:throttleSettings:Account', account_throttleSettings - Specifies the API request limits configured for the current Account.

account_apiKeyVersion :: Lens' Account (Maybe Text) Source #

The version of the API keys used for the account.

account_cloudwatchRoleArn :: Lens' Account (Maybe Text) Source #

The ARN of an Amazon CloudWatch role for the current Account.

account_features :: Lens' Account (Maybe [Text]) Source #

A list of features supported for the account. When usage plans are enabled, the features list will include an entry of "UsagePlans".

account_throttleSettings :: Lens' Account (Maybe ThrottleSettings) Source #

Specifies the API request limits configured for the current Account.

ApiKey

data ApiKey Source #

A resource that can be distributed to callers for executing Method resources that require an API key. API keys can be mapped to any Stage on any RestApi, which indicates that the callers with the API key can make requests to that stage.

Use API Keys

See: newApiKey smart constructor.

Constructors

ApiKey' 

Fields

Instances

Instances details
Eq ApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKey

Methods

(==) :: ApiKey -> ApiKey -> Bool #

(/=) :: ApiKey -> ApiKey -> Bool #

Read ApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKey

Show ApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKey

Generic ApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKey

Associated Types

type Rep ApiKey :: Type -> Type #

Methods

from :: ApiKey -> Rep ApiKey x #

to :: Rep ApiKey x -> ApiKey #

NFData ApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKey

Methods

rnf :: ApiKey -> () #

Hashable ApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKey

Methods

hashWithSalt :: Int -> ApiKey -> Int #

hash :: ApiKey -> Int #

FromJSON ApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKey

type Rep ApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKey

newApiKey :: ApiKey Source #

Create a value of ApiKey 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:enabled:ApiKey', apiKey_enabled - Specifies whether the API Key can be used by callers.

$sel:value:ApiKey', apiKey_value - The value of the API Key.

$sel:customerId:ApiKey', apiKey_customerId - An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.

$sel:createdDate:ApiKey', apiKey_createdDate - The timestamp when the API Key was created.

$sel:name:ApiKey', apiKey_name - The name of the API Key.

$sel:id:ApiKey', apiKey_id - The identifier of the API Key.

$sel:stageKeys:ApiKey', apiKey_stageKeys - A list of Stage resources that are associated with the ApiKey resource.

$sel:lastUpdatedDate:ApiKey', apiKey_lastUpdatedDate - The timestamp when the API Key was last updated.

$sel:description:ApiKey', apiKey_description - The description of the API Key.

$sel:tags:ApiKey', apiKey_tags - The collection of tags. Each tag element is associated with a given resource.

apiKey_enabled :: Lens' ApiKey (Maybe Bool) Source #

Specifies whether the API Key can be used by callers.

apiKey_value :: Lens' ApiKey (Maybe Text) Source #

The value of the API Key.

apiKey_customerId :: Lens' ApiKey (Maybe Text) Source #

An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.

apiKey_createdDate :: Lens' ApiKey (Maybe UTCTime) Source #

The timestamp when the API Key was created.

apiKey_name :: Lens' ApiKey (Maybe Text) Source #

The name of the API Key.

apiKey_id :: Lens' ApiKey (Maybe Text) Source #

The identifier of the API Key.

apiKey_stageKeys :: Lens' ApiKey (Maybe [Text]) Source #

A list of Stage resources that are associated with the ApiKey resource.

apiKey_lastUpdatedDate :: Lens' ApiKey (Maybe UTCTime) Source #

The timestamp when the API Key was last updated.

apiKey_description :: Lens' ApiKey (Maybe Text) Source #

The description of the API Key.

apiKey_tags :: Lens' ApiKey (Maybe (HashMap Text Text)) Source #

The collection of tags. Each tag element is associated with a given resource.

ApiStage

data ApiStage Source #

API stage name of the associated API stage in a usage plan.

See: newApiStage smart constructor.

Constructors

ApiStage' 

Fields

Instances

Instances details
Eq ApiStage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiStage

Read ApiStage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiStage

Show ApiStage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiStage

Generic ApiStage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiStage

Associated Types

type Rep ApiStage :: Type -> Type #

Methods

from :: ApiStage -> Rep ApiStage x #

to :: Rep ApiStage x -> ApiStage #

NFData ApiStage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiStage

Methods

rnf :: ApiStage -> () #

Hashable ApiStage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiStage

Methods

hashWithSalt :: Int -> ApiStage -> Int #

hash :: ApiStage -> Int #

ToJSON ApiStage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiStage

FromJSON ApiStage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiStage

type Rep ApiStage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiStage

type Rep ApiStage = D1 ('MetaData "ApiStage" "Amazonka.APIGateway.Types.ApiStage" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "ApiStage'" 'PrefixI 'True) (S1 ('MetaSel ('Just "stage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "apiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "throttle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text ThrottleSettings))))))

newApiStage :: ApiStage Source #

Create a value of ApiStage 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:stage:ApiStage', apiStage_stage - API stage name of the associated API stage in a usage plan.

$sel:apiId:ApiStage', apiStage_apiId - API Id of the associated API stage in a usage plan.

$sel:throttle:ApiStage', apiStage_throttle - Map containing method level throttling information for API stage in a usage plan.

apiStage_stage :: Lens' ApiStage (Maybe Text) Source #

API stage name of the associated API stage in a usage plan.

apiStage_apiId :: Lens' ApiStage (Maybe Text) Source #

API Id of the associated API stage in a usage plan.

apiStage_throttle :: Lens' ApiStage (Maybe (HashMap Text ThrottleSettings)) Source #

Map containing method level throttling information for API stage in a usage plan.

Authorizer

data Authorizer Source #

Represents an authorization layer for methods. If enabled on a method, API Gateway will activate the authorizer when a client calls the method.

Use Lambda Function as Authorizer Use Cognito User Pool as Authorizer

See: newAuthorizer smart constructor.

Constructors

Authorizer' 

Fields

  • authorizerUri :: Maybe Text

    Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN or REQUEST authorizers, this must be a well-formed Lambda function URI, for example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. In general, the URI has this form arn:aws:apigateway:{region}:lambda:path/{service_api}, where {region} is the same as the region hosting the Lambda function, path indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial /. For Lambda functions, this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations.

  • identityValidationExpression :: Maybe Text

    A validation expression for the incoming identity token. For TOKEN authorizers, this value is a regular expression. For COGNITO_USER_POOLS authorizers, API Gateway will match the aud field of the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function when there is a match. Otherwise, it will return a 401 Unauthorized response without calling the Lambda function. The validation expression does not apply to the REQUEST authorizer.

  • providerARNs :: Maybe [Text]

    A list of the Amazon Cognito user pool ARNs for the COGNITO_USER_POOLS authorizer. Each element is of this format: arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. For a TOKEN or REQUEST authorizer, this is not defined.

  • name :: Maybe Text
    Required
    The name of the authorizer.
  • id :: Maybe Text

    The identifier for the authorizer resource.

  • authorizerResultTtlInSeconds :: Maybe Int

    The TTL in seconds of cached authorizer results. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway will cache authorizer responses. If this field is not set, the default value is 300. The maximum value is 3600, or 1 hour.

  • authType :: Maybe Text

    Optional customer-defined field, used in OpenAPI imports and exports without functional impact.

  • type' :: Maybe AuthorizerType

    The authorizer type. Valid values are TOKEN for a Lambda function using a single authorization token submitted in a custom header, REQUEST for a Lambda function using incoming request parameters, and COGNITO_USER_POOLS for using an Amazon Cognito user pool.

  • identitySource :: Maybe Text

    The identity source for which authorization is requested.

    • For a TOKEN or COGNITO_USER_POOLS authorizer, this is required and specifies the request header mapping expression for the custom header holding the authorization token submitted by the client. For example, if the token header name is Auth, the header mapping expression is method.request.header.Auth.
    • For the REQUEST authorizer, this is required when authorization caching is enabled. The value is a comma-separated string of one or more mapping expressions of the specified request parameters. For example, if an Auth header, a Name query string parameter are defined as identity sources, this value is method.request.header.Auth, method.request.querystring.Name. These parameters will be used to derive the authorization caching key and to perform runtime validation of the REQUEST authorizer by verifying all of the identity-related request parameters are present, not null and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401 Unauthorized response without calling the Lambda function. The valid value is a string of comma-separated mapping expressions of the specified request parameters. When the authorization caching is not enabled, this property is optional.
  • authorizerCredentials :: Maybe Text

    Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.

Instances

Instances details
Eq Authorizer Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Authorizer

Read Authorizer Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Authorizer

Show Authorizer Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Authorizer

Generic Authorizer Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Authorizer

Associated Types

type Rep Authorizer :: Type -> Type #

NFData Authorizer Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Authorizer

Methods

rnf :: Authorizer -> () #

Hashable Authorizer Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Authorizer

FromJSON Authorizer Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Authorizer

type Rep Authorizer Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Authorizer

newAuthorizer :: Authorizer Source #

Create a value of Authorizer 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:authorizerUri:Authorizer', authorizer_authorizerUri - Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN or REQUEST authorizers, this must be a well-formed Lambda function URI, for example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. In general, the URI has this form arn:aws:apigateway:{region}:lambda:path/{service_api}, where {region} is the same as the region hosting the Lambda function, path indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial /. For Lambda functions, this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations.

$sel:identityValidationExpression:Authorizer', authorizer_identityValidationExpression - A validation expression for the incoming identity token. For TOKEN authorizers, this value is a regular expression. For COGNITO_USER_POOLS authorizers, API Gateway will match the aud field of the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function when there is a match. Otherwise, it will return a 401 Unauthorized response without calling the Lambda function. The validation expression does not apply to the REQUEST authorizer.

$sel:providerARNs:Authorizer', authorizer_providerARNs - A list of the Amazon Cognito user pool ARNs for the COGNITO_USER_POOLS authorizer. Each element is of this format: arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. For a TOKEN or REQUEST authorizer, this is not defined.

$sel:name:Authorizer', authorizer_name - [Required] The name of the authorizer.

$sel:id:Authorizer', authorizer_id - The identifier for the authorizer resource.

$sel:authorizerResultTtlInSeconds:Authorizer', authorizer_authorizerResultTtlInSeconds - The TTL in seconds of cached authorizer results. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway will cache authorizer responses. If this field is not set, the default value is 300. The maximum value is 3600, or 1 hour.

$sel:authType:Authorizer', authorizer_authType - Optional customer-defined field, used in OpenAPI imports and exports without functional impact.

$sel:type':Authorizer', authorizer_type - The authorizer type. Valid values are TOKEN for a Lambda function using a single authorization token submitted in a custom header, REQUEST for a Lambda function using incoming request parameters, and COGNITO_USER_POOLS for using an Amazon Cognito user pool.

$sel:identitySource:Authorizer', authorizer_identitySource - The identity source for which authorization is requested.

  • For a TOKEN or COGNITO_USER_POOLS authorizer, this is required and specifies the request header mapping expression for the custom header holding the authorization token submitted by the client. For example, if the token header name is Auth, the header mapping expression is method.request.header.Auth.
  • For the REQUEST authorizer, this is required when authorization caching is enabled. The value is a comma-separated string of one or more mapping expressions of the specified request parameters. For example, if an Auth header, a Name query string parameter are defined as identity sources, this value is method.request.header.Auth, method.request.querystring.Name. These parameters will be used to derive the authorization caching key and to perform runtime validation of the REQUEST authorizer by verifying all of the identity-related request parameters are present, not null and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401 Unauthorized response without calling the Lambda function. The valid value is a string of comma-separated mapping expressions of the specified request parameters. When the authorization caching is not enabled, this property is optional.

$sel:authorizerCredentials:Authorizer', authorizer_authorizerCredentials - Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.

authorizer_authorizerUri :: Lens' Authorizer (Maybe Text) Source #

Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN or REQUEST authorizers, this must be a well-formed Lambda function URI, for example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. In general, the URI has this form arn:aws:apigateway:{region}:lambda:path/{service_api}, where {region} is the same as the region hosting the Lambda function, path indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial /. For Lambda functions, this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations.

authorizer_identityValidationExpression :: Lens' Authorizer (Maybe Text) Source #

A validation expression for the incoming identity token. For TOKEN authorizers, this value is a regular expression. For COGNITO_USER_POOLS authorizers, API Gateway will match the aud field of the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function when there is a match. Otherwise, it will return a 401 Unauthorized response without calling the Lambda function. The validation expression does not apply to the REQUEST authorizer.

authorizer_providerARNs :: Lens' Authorizer (Maybe [Text]) Source #

A list of the Amazon Cognito user pool ARNs for the COGNITO_USER_POOLS authorizer. Each element is of this format: arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. For a TOKEN or REQUEST authorizer, this is not defined.

authorizer_name :: Lens' Authorizer (Maybe Text) Source #

Required
The name of the authorizer.

authorizer_id :: Lens' Authorizer (Maybe Text) Source #

The identifier for the authorizer resource.

authorizer_authorizerResultTtlInSeconds :: Lens' Authorizer (Maybe Int) Source #

The TTL in seconds of cached authorizer results. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway will cache authorizer responses. If this field is not set, the default value is 300. The maximum value is 3600, or 1 hour.

authorizer_authType :: Lens' Authorizer (Maybe Text) Source #

Optional customer-defined field, used in OpenAPI imports and exports without functional impact.

authorizer_type :: Lens' Authorizer (Maybe AuthorizerType) Source #

The authorizer type. Valid values are TOKEN for a Lambda function using a single authorization token submitted in a custom header, REQUEST for a Lambda function using incoming request parameters, and COGNITO_USER_POOLS for using an Amazon Cognito user pool.

authorizer_identitySource :: Lens' Authorizer (Maybe Text) Source #

The identity source for which authorization is requested.

  • For a TOKEN or COGNITO_USER_POOLS authorizer, this is required and specifies the request header mapping expression for the custom header holding the authorization token submitted by the client. For example, if the token header name is Auth, the header mapping expression is method.request.header.Auth.
  • For the REQUEST authorizer, this is required when authorization caching is enabled. The value is a comma-separated string of one or more mapping expressions of the specified request parameters. For example, if an Auth header, a Name query string parameter are defined as identity sources, this value is method.request.header.Auth, method.request.querystring.Name. These parameters will be used to derive the authorization caching key and to perform runtime validation of the REQUEST authorizer by verifying all of the identity-related request parameters are present, not null and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401 Unauthorized response without calling the Lambda function. The valid value is a string of comma-separated mapping expressions of the specified request parameters. When the authorization caching is not enabled, this property is optional.

authorizer_authorizerCredentials :: Lens' Authorizer (Maybe Text) Source #

Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.

BasePathMapping

data BasePathMapping Source #

Represents the base path that callers of the API must provide as part of the URL after the domain name.

A custom domain name plus a BasePathMapping specification identifies a deployed RestApi in a given stage of the owner Account.

Use Custom Domain Names

See: newBasePathMapping smart constructor.

Constructors

BasePathMapping' 

Fields

Instances

Instances details
Eq BasePathMapping Source # 
Instance details

Defined in Amazonka.APIGateway.Types.BasePathMapping

Read BasePathMapping Source # 
Instance details

Defined in Amazonka.APIGateway.Types.BasePathMapping

Show BasePathMapping Source # 
Instance details

Defined in Amazonka.APIGateway.Types.BasePathMapping

Generic BasePathMapping Source # 
Instance details

Defined in Amazonka.APIGateway.Types.BasePathMapping

Associated Types

type Rep BasePathMapping :: Type -> Type #

NFData BasePathMapping Source # 
Instance details

Defined in Amazonka.APIGateway.Types.BasePathMapping

Methods

rnf :: BasePathMapping -> () #

Hashable BasePathMapping Source # 
Instance details

Defined in Amazonka.APIGateway.Types.BasePathMapping

FromJSON BasePathMapping Source # 
Instance details

Defined in Amazonka.APIGateway.Types.BasePathMapping

type Rep BasePathMapping Source # 
Instance details

Defined in Amazonka.APIGateway.Types.BasePathMapping

type Rep BasePathMapping = D1 ('MetaData "BasePathMapping" "Amazonka.APIGateway.Types.BasePathMapping" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "BasePathMapping'" 'PrefixI 'True) (S1 ('MetaSel ('Just "stage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "basePath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "restApiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newBasePathMapping :: BasePathMapping Source #

Create a value of BasePathMapping 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:stage:BasePathMapping', basePathMapping_stage - The name of the associated stage.

$sel:basePath:BasePathMapping', basePathMapping_basePath - The base path name that callers of the API must provide as part of the URL after the domain name.

$sel:restApiId:BasePathMapping', basePathMapping_restApiId - The string identifier of the associated RestApi.

basePathMapping_stage :: Lens' BasePathMapping (Maybe Text) Source #

The name of the associated stage.

basePathMapping_basePath :: Lens' BasePathMapping (Maybe Text) Source #

The base path name that callers of the API must provide as part of the URL after the domain name.

basePathMapping_restApiId :: Lens' BasePathMapping (Maybe Text) Source #

The string identifier of the associated RestApi.

CanarySettings

data CanarySettings Source #

Configuration settings of a canary deployment.

See: newCanarySettings smart constructor.

Constructors

CanarySettings' 

Fields

Instances

Instances details
Eq CanarySettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CanarySettings

Read CanarySettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CanarySettings

Show CanarySettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CanarySettings

Generic CanarySettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CanarySettings

Associated Types

type Rep CanarySettings :: Type -> Type #

NFData CanarySettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CanarySettings

Methods

rnf :: CanarySettings -> () #

Hashable CanarySettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CanarySettings

ToJSON CanarySettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CanarySettings

FromJSON CanarySettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CanarySettings

type Rep CanarySettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.CanarySettings

type Rep CanarySettings = D1 ('MetaData "CanarySettings" "Amazonka.APIGateway.Types.CanarySettings" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "CanarySettings'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "deploymentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "stageVariableOverrides") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "useStageCache") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "percentTraffic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)))))

newCanarySettings :: CanarySettings Source #

Create a value of CanarySettings 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:deploymentId:CanarySettings', canarySettings_deploymentId - The ID of the canary deployment.

$sel:stageVariableOverrides:CanarySettings', canarySettings_stageVariableOverrides - Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.

$sel:useStageCache:CanarySettings', canarySettings_useStageCache - A Boolean flag to indicate whether the canary deployment uses the stage cache or not.

$sel:percentTraffic:CanarySettings', canarySettings_percentTraffic - The percent (0-100) of traffic diverted to a canary deployment.

canarySettings_deploymentId :: Lens' CanarySettings (Maybe Text) Source #

The ID of the canary deployment.

canarySettings_stageVariableOverrides :: Lens' CanarySettings (Maybe (HashMap Text Text)) Source #

Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.

canarySettings_useStageCache :: Lens' CanarySettings (Maybe Bool) Source #

A Boolean flag to indicate whether the canary deployment uses the stage cache or not.

canarySettings_percentTraffic :: Lens' CanarySettings (Maybe Double) Source #

The percent (0-100) of traffic diverted to a canary deployment.

ClientCertificate

data ClientCertificate Source #

Represents a client certificate used to configure client-side SSL authentication while sending requests to the integration endpoint.

Client certificates are used to authenticate an API by the backend server. To authenticate an API client (or user), use IAM roles and policies, a custom Authorizer or an Amazon Cognito user pool.

Use Client-Side Certificate

See: newClientCertificate smart constructor.

Constructors

ClientCertificate' 

Fields

Instances

Instances details
Eq ClientCertificate Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ClientCertificate

Read ClientCertificate Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ClientCertificate

Show ClientCertificate Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ClientCertificate

Generic ClientCertificate Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ClientCertificate

Associated Types

type Rep ClientCertificate :: Type -> Type #

NFData ClientCertificate Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ClientCertificate

Methods

rnf :: ClientCertificate -> () #

Hashable ClientCertificate Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ClientCertificate

FromJSON ClientCertificate Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ClientCertificate

type Rep ClientCertificate Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ClientCertificate

type Rep ClientCertificate = D1 ('MetaData "ClientCertificate" "Amazonka.APIGateway.Types.ClientCertificate" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "ClientCertificate'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "pemEncodedCertificate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "clientCertificateId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "createdDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: (S1 ('MetaSel ('Just "expirationDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))))))

newClientCertificate :: ClientCertificate Source #

Create a value of ClientCertificate 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:pemEncodedCertificate:ClientCertificate', clientCertificate_pemEncodedCertificate - The PEM-encoded public key of the client certificate, which can be used to configure certificate authentication in the integration endpoint .

$sel:clientCertificateId:ClientCertificate', clientCertificate_clientCertificateId - The identifier of the client certificate.

$sel:createdDate:ClientCertificate', clientCertificate_createdDate - The timestamp when the client certificate was created.

$sel:expirationDate:ClientCertificate', clientCertificate_expirationDate - The timestamp when the client certificate will expire.

$sel:description:ClientCertificate', clientCertificate_description - The description of the client certificate.

$sel:tags:ClientCertificate', clientCertificate_tags - The collection of tags. Each tag element is associated with a given resource.

clientCertificate_pemEncodedCertificate :: Lens' ClientCertificate (Maybe Text) Source #

The PEM-encoded public key of the client certificate, which can be used to configure certificate authentication in the integration endpoint .

clientCertificate_clientCertificateId :: Lens' ClientCertificate (Maybe Text) Source #

The identifier of the client certificate.

clientCertificate_createdDate :: Lens' ClientCertificate (Maybe UTCTime) Source #

The timestamp when the client certificate was created.

clientCertificate_expirationDate :: Lens' ClientCertificate (Maybe UTCTime) Source #

The timestamp when the client certificate will expire.

clientCertificate_description :: Lens' ClientCertificate (Maybe Text) Source #

The description of the client certificate.

clientCertificate_tags :: Lens' ClientCertificate (Maybe (HashMap Text Text)) Source #

The collection of tags. Each tag element is associated with a given resource.

Deployment

data Deployment Source #

An immutable representation of a RestApi resource that can be called by users using Stages. A deployment must be associated with a Stage for it to be callable over the Internet.

To create a deployment, call POST on the Deployments resource of a RestApi. To view, update, or delete a deployment, call GET, PATCH, or DELETE on the specified deployment resource (/restapis/{restapi_id}/deployments/{deployment_id}).

RestApi, Deployments, Stage, AWS CLI, AWS SDKs

See: newDeployment smart constructor.

Constructors

Deployment' 

Fields

Instances

Instances details
Eq Deployment Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Deployment

Read Deployment Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Deployment

Show Deployment Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Deployment

Generic Deployment Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Deployment

Associated Types

type Rep Deployment :: Type -> Type #

NFData Deployment Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Deployment

Methods

rnf :: Deployment -> () #

Hashable Deployment Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Deployment

FromJSON Deployment Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Deployment

type Rep Deployment Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Deployment

type Rep Deployment = D1 ('MetaData "Deployment" "Amazonka.APIGateway.Types.Deployment" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "Deployment'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "apiSummary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text (HashMap Text MethodSnapshot)))) :*: S1 ('MetaSel ('Just "createdDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newDeployment :: Deployment Source #

Create a value of Deployment 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:apiSummary:Deployment', deployment_apiSummary - A summary of the RestApi at the date and time that the deployment resource was created.

$sel:createdDate:Deployment', deployment_createdDate - The date and time that the deployment resource was created.

$sel:id:Deployment', deployment_id - The identifier for the deployment resource.

$sel:description:Deployment', deployment_description - The description for the deployment resource.

deployment_apiSummary :: Lens' Deployment (Maybe (HashMap Text (HashMap Text MethodSnapshot))) Source #

A summary of the RestApi at the date and time that the deployment resource was created.

deployment_createdDate :: Lens' Deployment (Maybe UTCTime) Source #

The date and time that the deployment resource was created.

deployment_id :: Lens' Deployment (Maybe Text) Source #

The identifier for the deployment resource.

deployment_description :: Lens' Deployment (Maybe Text) Source #

The description for the deployment resource.

DeploymentCanarySettings

data DeploymentCanarySettings Source #

The input configuration for a canary deployment.

See: newDeploymentCanarySettings smart constructor.

Constructors

DeploymentCanarySettings' 

Fields

  • stageVariableOverrides :: Maybe (HashMap Text Text)

    A stage variable overrides used for the canary release deployment. They can override existing stage variables or add new stage variables for the canary release deployment. These stage variables are represented as a string-to-string map between stage variable names and their values.

  • useStageCache :: Maybe Bool

    A Boolean flag to indicate whether the canary release deployment uses the stage cache or not.

  • percentTraffic :: Maybe Double

    The percentage (0.0-100.0) of traffic routed to the canary deployment.

Instances

Instances details
Eq DeploymentCanarySettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DeploymentCanarySettings

Read DeploymentCanarySettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DeploymentCanarySettings

Show DeploymentCanarySettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DeploymentCanarySettings

Generic DeploymentCanarySettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DeploymentCanarySettings

Associated Types

type Rep DeploymentCanarySettings :: Type -> Type #

NFData DeploymentCanarySettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DeploymentCanarySettings

Hashable DeploymentCanarySettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DeploymentCanarySettings

ToJSON DeploymentCanarySettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DeploymentCanarySettings

type Rep DeploymentCanarySettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DeploymentCanarySettings

type Rep DeploymentCanarySettings = D1 ('MetaData "DeploymentCanarySettings" "Amazonka.APIGateway.Types.DeploymentCanarySettings" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "DeploymentCanarySettings'" 'PrefixI 'True) (S1 ('MetaSel ('Just "stageVariableOverrides") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "useStageCache") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "percentTraffic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)))))

newDeploymentCanarySettings :: DeploymentCanarySettings Source #

Create a value of DeploymentCanarySettings 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:stageVariableOverrides:DeploymentCanarySettings', deploymentCanarySettings_stageVariableOverrides - A stage variable overrides used for the canary release deployment. They can override existing stage variables or add new stage variables for the canary release deployment. These stage variables are represented as a string-to-string map between stage variable names and their values.

$sel:useStageCache:DeploymentCanarySettings', deploymentCanarySettings_useStageCache - A Boolean flag to indicate whether the canary release deployment uses the stage cache or not.

$sel:percentTraffic:DeploymentCanarySettings', deploymentCanarySettings_percentTraffic - The percentage (0.0-100.0) of traffic routed to the canary deployment.

deploymentCanarySettings_stageVariableOverrides :: Lens' DeploymentCanarySettings (Maybe (HashMap Text Text)) Source #

A stage variable overrides used for the canary release deployment. They can override existing stage variables or add new stage variables for the canary release deployment. These stage variables are represented as a string-to-string map between stage variable names and their values.

deploymentCanarySettings_useStageCache :: Lens' DeploymentCanarySettings (Maybe Bool) Source #

A Boolean flag to indicate whether the canary release deployment uses the stage cache or not.

deploymentCanarySettings_percentTraffic :: Lens' DeploymentCanarySettings (Maybe Double) Source #

The percentage (0.0-100.0) of traffic routed to the canary deployment.

DocumentationPart

data DocumentationPart Source #

A documentation part for a targeted API entity.

A documentation part consists of a content map (properties) and a target (location). The target specifies an API entity to which the documentation content applies. The supported API entity types are API, AUTHORIZER, MODEL, RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. Valid location fields depend on the API entity type. All valid fields are not required.

The content map is a JSON string of API-specific key-value pairs. Although an API can use any shape for the content map, only the OpenAPI-compliant documentation fields will be injected into the associated API entity definition in the exported OpenAPI definition file.

Documenting an API, DocumentationParts

See: newDocumentationPart smart constructor.

Constructors

DocumentationPart' 

Fields

  • location :: Maybe DocumentationPartLocation

    The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.

  • id :: Maybe Text

    The DocumentationPart identifier, generated by API Gateway when the DocumentationPart is created.

  • properties :: Maybe Text

    A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }". Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of x-amazon-apigateway-documentation.

Instances

Instances details
Eq DocumentationPart Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPart

Read DocumentationPart Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPart

Show DocumentationPart Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPart

Generic DocumentationPart Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPart

Associated Types

type Rep DocumentationPart :: Type -> Type #

NFData DocumentationPart Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPart

Methods

rnf :: DocumentationPart -> () #

Hashable DocumentationPart Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPart

FromJSON DocumentationPart Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPart

type Rep DocumentationPart Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPart

type Rep DocumentationPart = D1 ('MetaData "DocumentationPart" "Amazonka.APIGateway.Types.DocumentationPart" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "DocumentationPart'" 'PrefixI 'True) (S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DocumentationPartLocation)) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "properties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newDocumentationPart :: DocumentationPart Source #

Create a value of DocumentationPart 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:location:DocumentationPart', documentationPart_location - The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.

$sel:id:DocumentationPart', documentationPart_id - The DocumentationPart identifier, generated by API Gateway when the DocumentationPart is created.

$sel:properties:DocumentationPart', documentationPart_properties - A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }". Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of x-amazon-apigateway-documentation.

documentationPart_location :: Lens' DocumentationPart (Maybe DocumentationPartLocation) Source #

The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.

documentationPart_id :: Lens' DocumentationPart (Maybe Text) Source #

The DocumentationPart identifier, generated by API Gateway when the DocumentationPart is created.

documentationPart_properties :: Lens' DocumentationPart (Maybe Text) Source #

A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }". Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of x-amazon-apigateway-documentation.

DocumentationPartLocation

data DocumentationPartLocation Source #

Specifies the target API entity to which the documentation applies.

See: newDocumentationPartLocation smart constructor.

Constructors

DocumentationPartLocation' 

Fields

  • path :: Maybe Text

    The URL path of the target. It is a valid field for the API entity types of RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is / for the root resource. When an applicable child entity inherits the content of another entity of the same type with more general specifications of the other location attributes, the child entity's path attribute must match that of the parent entity as a prefix.

  • name :: Maybe Text

    The name of the targeted API entity. It is a valid and required field for the API entity types of AUTHORIZER, MODEL, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY and RESPONSE_HEADER. It is an invalid field for any other entity type.

  • method :: Maybe Text

    The HTTP verb of a method. It is a valid field for the API entity types of METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is * for any method. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other location attributes, the child entity's method attribute must match that of the parent entity exactly.

  • statusCode :: Maybe Text

    The HTTP status code of a response. It is a valid field for the API entity types of RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is * for any status code. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other location attributes, the child entity's statusCode attribute must match that of the parent entity exactly.

  • type' :: DocumentationPartType
    Required
    The type of API entity to which the documentation content applies. Valid values are API, AUTHORIZER, MODEL, RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. Content inheritance does not apply to any entity of the API, AUTHORIZER, METHOD, MODEL, REQUEST_BODY, or RESOURCE type.

Instances

Instances details
Eq DocumentationPartLocation Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartLocation

Read DocumentationPartLocation Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartLocation

Show DocumentationPartLocation Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartLocation

Generic DocumentationPartLocation Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartLocation

Associated Types

type Rep DocumentationPartLocation :: Type -> Type #

NFData DocumentationPartLocation Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartLocation

Hashable DocumentationPartLocation Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartLocation

ToJSON DocumentationPartLocation Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartLocation

FromJSON DocumentationPartLocation Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartLocation

type Rep DocumentationPartLocation Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationPartLocation

type Rep DocumentationPartLocation = D1 ('MetaData "DocumentationPartLocation" "Amazonka.APIGateway.Types.DocumentationPartLocation" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "DocumentationPartLocation'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "method") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "statusCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DocumentationPartType)))))

newDocumentationPartLocation Source #

Create a value of DocumentationPartLocation 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:path:DocumentationPartLocation', documentationPartLocation_path - The URL path of the target. It is a valid field for the API entity types of RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is / for the root resource. When an applicable child entity inherits the content of another entity of the same type with more general specifications of the other location attributes, the child entity's path attribute must match that of the parent entity as a prefix.

$sel:name:DocumentationPartLocation', documentationPartLocation_name - The name of the targeted API entity. It is a valid and required field for the API entity types of AUTHORIZER, MODEL, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY and RESPONSE_HEADER. It is an invalid field for any other entity type.

$sel:method:DocumentationPartLocation', documentationPartLocation_method - The HTTP verb of a method. It is a valid field for the API entity types of METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is * for any method. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other location attributes, the child entity's method attribute must match that of the parent entity exactly.

$sel:statusCode:DocumentationPartLocation', documentationPartLocation_statusCode - The HTTP status code of a response. It is a valid field for the API entity types of RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is * for any status code. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other location attributes, the child entity's statusCode attribute must match that of the parent entity exactly.

$sel:type':DocumentationPartLocation', documentationPartLocation_type - [Required] The type of API entity to which the documentation content applies. Valid values are API, AUTHORIZER, MODEL, RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. Content inheritance does not apply to any entity of the API, AUTHORIZER, METHOD, MODEL, REQUEST_BODY, or RESOURCE type.

documentationPartLocation_path :: Lens' DocumentationPartLocation (Maybe Text) Source #

The URL path of the target. It is a valid field for the API entity types of RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is / for the root resource. When an applicable child entity inherits the content of another entity of the same type with more general specifications of the other location attributes, the child entity's path attribute must match that of the parent entity as a prefix.

documentationPartLocation_name :: Lens' DocumentationPartLocation (Maybe Text) Source #

The name of the targeted API entity. It is a valid and required field for the API entity types of AUTHORIZER, MODEL, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY and RESPONSE_HEADER. It is an invalid field for any other entity type.

documentationPartLocation_method :: Lens' DocumentationPartLocation (Maybe Text) Source #

The HTTP verb of a method. It is a valid field for the API entity types of METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is * for any method. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other location attributes, the child entity's method attribute must match that of the parent entity exactly.

documentationPartLocation_statusCode :: Lens' DocumentationPartLocation (Maybe Text) Source #

The HTTP status code of a response. It is a valid field for the API entity types of RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is * for any status code. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other location attributes, the child entity's statusCode attribute must match that of the parent entity exactly.

documentationPartLocation_type :: Lens' DocumentationPartLocation DocumentationPartType Source #

Required
The type of API entity to which the documentation content applies. Valid values are API, AUTHORIZER, MODEL, RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. Content inheritance does not apply to any entity of the API, AUTHORIZER, METHOD, MODEL, REQUEST_BODY, or RESOURCE type.

DocumentationVersion

data DocumentationVersion Source #

A snapshot of the documentation of an API.

Publishing API documentation involves creating a documentation version associated with an API stage and exporting the versioned documentation to an external (e.g., OpenAPI) file.

Documenting an API, DocumentationPart, DocumentationVersions

See: newDocumentationVersion smart constructor.

Constructors

DocumentationVersion' 

Fields

Instances

Instances details
Eq DocumentationVersion Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationVersion

Read DocumentationVersion Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationVersion

Show DocumentationVersion Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationVersion

Generic DocumentationVersion Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationVersion

Associated Types

type Rep DocumentationVersion :: Type -> Type #

NFData DocumentationVersion Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationVersion

Methods

rnf :: DocumentationVersion -> () #

Hashable DocumentationVersion Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationVersion

FromJSON DocumentationVersion Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationVersion

type Rep DocumentationVersion Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DocumentationVersion

type Rep DocumentationVersion = D1 ('MetaData "DocumentationVersion" "Amazonka.APIGateway.Types.DocumentationVersion" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "DocumentationVersion'" 'PrefixI 'True) (S1 ('MetaSel ('Just "createdDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newDocumentationVersion :: DocumentationVersion Source #

Create a value of DocumentationVersion 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:createdDate:DocumentationVersion', documentationVersion_createdDate - The date when the API documentation snapshot is created.

$sel:version:DocumentationVersion', documentationVersion_version - The version identifier of the API documentation snapshot.

$sel:description:DocumentationVersion', documentationVersion_description - The description of the API documentation snapshot.

documentationVersion_createdDate :: Lens' DocumentationVersion (Maybe UTCTime) Source #

The date when the API documentation snapshot is created.

documentationVersion_version :: Lens' DocumentationVersion (Maybe Text) Source #

The version identifier of the API documentation snapshot.

documentationVersion_description :: Lens' DocumentationVersion (Maybe Text) Source #

The description of the API documentation snapshot.

DomainName

data DomainName Source #

Represents a custom domain name as a user-friendly host name of an API (RestApi).

When you deploy an API, API Gateway creates a default host name for the API. This default API host name is of the {restapi-id}.execute-api.{region}.amazonaws.com format. With the default host name, you can access the API's root resource with the URL of https://{restapi-id}.execute-api.{region}.amazonaws.com/{stage}/. When you set up a custom domain name of apis.example.com for this API, you can then access the same resource using the URL of the https://apis.examples.com/myApi, where myApi is the base path mapping (BasePathMapping) of your API under the custom domain name.

Set a Custom Host Name for an API

See: newDomainName smart constructor.

Constructors

DomainName' 

Fields

Instances

Instances details
Eq DomainName Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainName

Read DomainName Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainName

Show DomainName Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainName

Generic DomainName Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainName

Associated Types

type Rep DomainName :: Type -> Type #

NFData DomainName Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainName

Methods

rnf :: DomainName -> () #

Hashable DomainName Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainName

FromJSON DomainName Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainName

type Rep DomainName Source # 
Instance details

Defined in Amazonka.APIGateway.Types.DomainName

type Rep DomainName = D1 ('MetaData "DomainName" "Amazonka.APIGateway.Types.DomainName" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "DomainName'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "regionalHostedZoneId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "certificateName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "ownershipVerificationCertificateArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "regionalCertificateArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "certificateArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "distributionHostedZoneId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "securityPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SecurityPolicy)) :*: S1 ('MetaSel ('Just "domainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: (((S1 ('MetaSel ('Just "mutualTlsAuthentication") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MutualTlsAuthentication)) :*: S1 ('MetaSel ('Just "regionalCertificateName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "regionalDomainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "certificateUploadDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: ((S1 ('MetaSel ('Just "distributionDomainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "domainNameStatusMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "endpointConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EndpointConfiguration)) :*: (S1 ('MetaSel ('Just "domainNameStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DomainNameStatus)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))))))))

newDomainName :: DomainName Source #

Create a value of DomainName 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:regionalHostedZoneId:DomainName', domainName_regionalHostedZoneId - The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.

$sel:certificateName:DomainName', domainName_certificateName - The name of the certificate that will be used by edge-optimized endpoint for this domain name.

$sel:ownershipVerificationCertificateArn:DomainName', domainName_ownershipVerificationCertificateArn - The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn.

$sel:regionalCertificateArn:DomainName', domainName_regionalCertificateArn - The reference to an AWS-managed certificate that will be used for validating the regional domain name. AWS Certificate Manager is the only supported source.

$sel:certificateArn:DomainName', domainName_certificateArn - The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.

$sel:distributionHostedZoneId:DomainName', domainName_distributionHostedZoneId - The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint. The valid value is Z2FDTNDATAQYW2 for all the regions. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.

$sel:securityPolicy:DomainName', domainName_securityPolicy - The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are TLS_1_0 and TLS_1_2.

$sel:domainName:DomainName', domainName_domainName - The custom domain name as an API host name, for example, my-api.example.com.

$sel:mutualTlsAuthentication:DomainName', domainName_mutualTlsAuthentication - The mutual TLS authentication configuration for a custom domain name. If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.

$sel:regionalCertificateName:DomainName', domainName_regionalCertificateName - The name of the certificate that will be used for validating the regional domain name.

$sel:regionalDomainName:DomainName', domainName_regionalDomainName - The domain name associated with the regional endpoint for this custom domain name. You set up this association by adding a DNS record that points the custom domain name to this regional domain name. The regional domain name is returned by API Gateway when you create a regional endpoint.

$sel:certificateUploadDate:DomainName', domainName_certificateUploadDate - The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.

$sel:distributionDomainName:DomainName', domainName_distributionDomainName - The domain name of the Amazon CloudFront distribution associated with this custom domain name for an edge-optimized endpoint. You set up this association when adding a DNS record pointing the custom domain name to this distribution name. For more information about CloudFront distributions, see the Amazon CloudFront documentation.

$sel:domainNameStatusMessage:DomainName', domainName_domainNameStatusMessage - An optional text message containing detailed information about status of the DomainName migration.

$sel:endpointConfiguration:DomainName', domainName_endpointConfiguration - The endpoint configuration of this DomainName showing the endpoint types of the domain name.

$sel:domainNameStatus:DomainName', domainName_domainNameStatus - The status of the DomainName migration. The valid values are AVAILABLE, UPDATING, PENDING_CERTIFICATE_REIMPORT, and PENDING_OWNERSHIP_VERIFICATION. If the status is UPDATING, the domain cannot be modified further until the existing operation is complete. If it is AVAILABLE, the domain can be updated.

$sel:tags:DomainName', domainName_tags - The collection of tags. Each tag element is associated with a given resource.

domainName_regionalHostedZoneId :: Lens' DomainName (Maybe Text) Source #

The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.

domainName_certificateName :: Lens' DomainName (Maybe Text) Source #

The name of the certificate that will be used by edge-optimized endpoint for this domain name.

domainName_ownershipVerificationCertificateArn :: Lens' DomainName (Maybe Text) Source #

The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn.

domainName_regionalCertificateArn :: Lens' DomainName (Maybe Text) Source #

The reference to an AWS-managed certificate that will be used for validating the regional domain name. AWS Certificate Manager is the only supported source.

domainName_certificateArn :: Lens' DomainName (Maybe Text) Source #

The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.

domainName_distributionHostedZoneId :: Lens' DomainName (Maybe Text) Source #

The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint. The valid value is Z2FDTNDATAQYW2 for all the regions. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.

domainName_securityPolicy :: Lens' DomainName (Maybe SecurityPolicy) Source #

The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are TLS_1_0 and TLS_1_2.

domainName_domainName :: Lens' DomainName (Maybe Text) Source #

The custom domain name as an API host name, for example, my-api.example.com.

domainName_mutualTlsAuthentication :: Lens' DomainName (Maybe MutualTlsAuthentication) Source #

The mutual TLS authentication configuration for a custom domain name. If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.

domainName_regionalCertificateName :: Lens' DomainName (Maybe Text) Source #

The name of the certificate that will be used for validating the regional domain name.

domainName_regionalDomainName :: Lens' DomainName (Maybe Text) Source #

The domain name associated with the regional endpoint for this custom domain name. You set up this association by adding a DNS record that points the custom domain name to this regional domain name. The regional domain name is returned by API Gateway when you create a regional endpoint.

domainName_certificateUploadDate :: Lens' DomainName (Maybe UTCTime) Source #

The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.

domainName_distributionDomainName :: Lens' DomainName (Maybe Text) Source #

The domain name of the Amazon CloudFront distribution associated with this custom domain name for an edge-optimized endpoint. You set up this association when adding a DNS record pointing the custom domain name to this distribution name. For more information about CloudFront distributions, see the Amazon CloudFront documentation.

domainName_domainNameStatusMessage :: Lens' DomainName (Maybe Text) Source #

An optional text message containing detailed information about status of the DomainName migration.

domainName_endpointConfiguration :: Lens' DomainName (Maybe EndpointConfiguration) Source #

The endpoint configuration of this DomainName showing the endpoint types of the domain name.

domainName_domainNameStatus :: Lens' DomainName (Maybe DomainNameStatus) Source #

The status of the DomainName migration. The valid values are AVAILABLE, UPDATING, PENDING_CERTIFICATE_REIMPORT, and PENDING_OWNERSHIP_VERIFICATION. If the status is UPDATING, the domain cannot be modified further until the existing operation is complete. If it is AVAILABLE, the domain can be updated.

domainName_tags :: Lens' DomainName (Maybe (HashMap Text Text)) Source #

The collection of tags. Each tag element is associated with a given resource.

EndpointConfiguration

data EndpointConfiguration Source #

The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has.

See: newEndpointConfiguration smart constructor.

Constructors

EndpointConfiguration' 

Fields

  • types :: Maybe [EndpointType]

    A list of endpoint types of an API (RestApi) or its custom domain name (DomainName). For an edge-optimized API and its custom domain name, the endpoint type is "EDGE". For a regional API and its custom domain name, the endpoint type is REGIONAL. For a private API, the endpoint type is PRIVATE.

  • vpcEndpointIds :: Maybe [Text]

    A list of VpcEndpointIds of an API (RestApi) against which to create Route53 ALIASes. It is only supported for PRIVATE endpoint type.

Instances

Instances details
Eq EndpointConfiguration Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointConfiguration

Read EndpointConfiguration Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointConfiguration

Show EndpointConfiguration Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointConfiguration

Generic EndpointConfiguration Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointConfiguration

Associated Types

type Rep EndpointConfiguration :: Type -> Type #

NFData EndpointConfiguration Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointConfiguration

Methods

rnf :: EndpointConfiguration -> () #

Hashable EndpointConfiguration Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointConfiguration

ToJSON EndpointConfiguration Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointConfiguration

FromJSON EndpointConfiguration Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointConfiguration

type Rep EndpointConfiguration Source # 
Instance details

Defined in Amazonka.APIGateway.Types.EndpointConfiguration

type Rep EndpointConfiguration = D1 ('MetaData "EndpointConfiguration" "Amazonka.APIGateway.Types.EndpointConfiguration" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "EndpointConfiguration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "types") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EndpointType])) :*: S1 ('MetaSel ('Just "vpcEndpointIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))))

newEndpointConfiguration :: EndpointConfiguration Source #

Create a value of EndpointConfiguration 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:types:EndpointConfiguration', endpointConfiguration_types - A list of endpoint types of an API (RestApi) or its custom domain name (DomainName). For an edge-optimized API and its custom domain name, the endpoint type is "EDGE". For a regional API and its custom domain name, the endpoint type is REGIONAL. For a private API, the endpoint type is PRIVATE.

$sel:vpcEndpointIds:EndpointConfiguration', endpointConfiguration_vpcEndpointIds - A list of VpcEndpointIds of an API (RestApi) against which to create Route53 ALIASes. It is only supported for PRIVATE endpoint type.

endpointConfiguration_types :: Lens' EndpointConfiguration (Maybe [EndpointType]) Source #

A list of endpoint types of an API (RestApi) or its custom domain name (DomainName). For an edge-optimized API and its custom domain name, the endpoint type is "EDGE". For a regional API and its custom domain name, the endpoint type is REGIONAL. For a private API, the endpoint type is PRIVATE.

endpointConfiguration_vpcEndpointIds :: Lens' EndpointConfiguration (Maybe [Text]) Source #

A list of VpcEndpointIds of an API (RestApi) against which to create Route53 ALIASes. It is only supported for PRIVATE endpoint type.

GatewayResponse

data GatewayResponse Source #

A gateway response of a given response type and status code, with optional response parameters and mapping templates.

For more information about valid gateway response types, see Gateway Response Types Supported by API Gateway

Example: Get a Gateway Response of a given response type

Request

This example shows how to get a gateway response of the MISSING_AUTHENTICATION_TOKEN type.

GET /restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN HTTP/1.1 Host: beta-apigateway.us-east-1.amazonaws.com Content-Type: application/json X-Amz-Date: 20170503T202516Z Authorization: AWS4-HMAC-SHA256 Credential={access-key-id}/20170503/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=1b52460e3159c1a26cff29093855d50ea141c1c5b937528fecaf60f51129697a Cache-Control: no-cache Postman-Token: 3b2a1ce9-c848-2e26-2e2f-9c2caefbed45

The response type is specified as a URL path.

Response

The successful operation returns the 200 OK status code and a payload similar to the following:

{ "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-gatewayresponse-{rel}.html", "name": "gatewayresponse", "templated": true }, "self": { "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN" }, "gatewayresponse:delete": { "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN" } }, "defaultResponse": false, "responseParameters": { "gatewayresponse.header.x-request-path": "method.request.path.petId", "gatewayresponse.header.Access-Control-Allow-Origin": "'a.b.c'", "gatewayresponse.header.x-request-query": "method.request.querystring.q", "gatewayresponse.header.x-request-header": "method.request.header.Accept" }, "responseTemplates": { "application/json": "{\n \"message\": $context.error.messageString,\n \"type\": \"$context.error.responseType\",\n \"stage\": \"$context.stage\",\n \"resourcePath\": \"$context.resourcePath\",\n \"stageVariables.a\": \"$stageVariables.a\",\n \"statusCode\": \"'404'\"\n}" }, "responseType": "MISSING_AUTHENTICATION_TOKEN", "statusCode": "404" }

Customize Gateway Responses

See: newGatewayResponse smart constructor.

Constructors

GatewayResponse' 

Fields

Instances

Instances details
Eq GatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponse

Read GatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponse

Show GatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponse

Generic GatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponse

Associated Types

type Rep GatewayResponse :: Type -> Type #

NFData GatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponse

Methods

rnf :: GatewayResponse -> () #

Hashable GatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponse

FromJSON GatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponse

type Rep GatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponse

type Rep GatewayResponse = D1 ('MetaData "GatewayResponse" "Amazonka.APIGateway.Types.GatewayResponse" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "GatewayResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "defaultResponse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "responseTemplates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "responseType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GatewayResponseType)) :*: (S1 ('MetaSel ('Just "statusCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "responseParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))))))

newGatewayResponse :: GatewayResponse Source #

Create a value of GatewayResponse 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:defaultResponse:GatewayResponse', gatewayResponse_defaultResponse - A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true) or not (false). A default gateway response is one generated by API Gateway without any customization by an API developer.

$sel:responseTemplates:GatewayResponse', gatewayResponse_responseTemplates - Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

$sel:responseType:GatewayResponse', gatewayResponse_responseType - The response type of the associated GatewayResponse.

$sel:statusCode:GatewayResponse', gatewayResponse_statusCode - The HTTP status code for this GatewayResponse.

$sel:responseParameters:GatewayResponse', gatewayResponse_responseParameters - Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

gatewayResponse_defaultResponse :: Lens' GatewayResponse (Maybe Bool) Source #

A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true) or not (false). A default gateway response is one generated by API Gateway without any customization by an API developer.

gatewayResponse_responseTemplates :: Lens' GatewayResponse (Maybe (HashMap Text Text)) Source #

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

gatewayResponse_responseType :: Lens' GatewayResponse (Maybe GatewayResponseType) Source #

The response type of the associated GatewayResponse.

gatewayResponse_statusCode :: Lens' GatewayResponse (Maybe Text) Source #

The HTTP status code for this GatewayResponse.

gatewayResponse_responseParameters :: Lens' GatewayResponse (Maybe (HashMap Text Text)) Source #

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

Integration

data Integration Source #

Represents an HTTP, HTTP_PROXY, AWS, AWS_PROXY, or Mock integration.

In the API Gateway console, the built-in Lambda integration is an AWS integration.

Creating an API

See: newIntegration smart constructor.

Constructors

Integration' 

Fields

  • httpMethod :: Maybe Text

    Specifies the integration's HTTP method type.

  • requestTemplates :: Maybe (HashMap Text Text)

    Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value.

  • credentials :: Maybe Text

    Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::\*:user/\*. To use resource-based permissions on supported AWS services, specify null.

  • connectionId :: Maybe Text

    The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined, otherwise.

  • requestParameters :: Maybe (HashMap Text Text)

    A key-value map specifying request parameters that are passed from the method request to the back end. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request parameter value must match the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name must be a valid and unique method request parameter name.

  • contentHandling :: Maybe ContentHandlingStrategy

    Specifies how to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

    • CONVERT_TO_BINARY: Converts a request payload from a Base64-encoded string to the corresponding binary blob.
    • CONVERT_TO_TEXT: Converts a request payload from a binary blob to a Base64-encoded string.

    If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehavior is configured to support payload pass-through.

  • passthroughBehavior :: Maybe Text

    Specifies how the method request body of an unmapped content type will be passed through the integration request to the back end without transformation. A content type is unmapped if no mapping template is defined in the integration or the content type does not match any of the mapped content types, as specified in requestTemplates. The valid value is one of the following:

    • WHEN_NO_MATCH: passes the method request body through the integration request to the back end without transformation when the method request content type does not match any content type associated with the mapping templates defined in the integration request.
    • WHEN_NO_TEMPLATES: passes the method request body through the integration request to the back end without transformation when no mapping template is defined in the integration request. If a template is defined when this option is selected, the method request of an unmapped content-type will be rejected with an HTTP 415 Unsupported Media Type response.
    • NEVER: rejects the method request with an HTTP 415 Unsupported Media Type response when either the method request content type does not match any content type associated with the mapping templates defined in the integration request or no mapping template is defined in the integration request.
  • uri :: Maybe Text

    Specifies Uniform Resource Identifier (URI) of the integration endpoint.

    • For HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where connectionType is not VPC_LINK, or private integration, where connectionType is VPC_LINK. For a private HTTP integration, the URI is not used for routing.
    • For AWS or AWS_PROXY integrations, the URI is of the form arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated AWS service (e.g., s3); and {subdomain} is a designated subdomain supported by certain AWS service for fast host-name lookup. action can be used for an AWS service action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The ensuing service_api refers to the path to an AWS service resource, including the region of the integrated AWS service, if applicable. For example, for integration with the S3 API of GetObject, the uri can be either arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}
  • integrationResponses :: Maybe (HashMap Text IntegrationResponse)

    Specifies the integration's responses.

    Example: Get integration responses of a method

    Request
    GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200 HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20160607T191449Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160607/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    Response

    The successful response returns 200 OK status and a payload as follows:

    { "_links": { "curies": { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", "name": "integrationresponse", "templated": true }, "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", "title": "200" }, "integrationresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" }, "integrationresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'" }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n" }, "statusCode": "200" }

    Creating an API

  • tlsConfig :: Maybe TlsConfig

    Specifies the TLS configuration for an integration.

  • cacheNamespace :: Maybe Text

    Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the cacheNamespace. You can specify the same cacheNamespace across resources to return the same cached data for requests to different resources.

  • timeoutInMillis :: Maybe Int

    Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.

  • type' :: Maybe IntegrationType

    Specifies an API method integration type. The valid value is one of the following:

    • AWS: for integrating the API method request with an AWS service action, including the Lambda function-invoking action. With the Lambda function-invoking action, this is referred to as the Lambda custom integration. With any other AWS service action, this is known as AWS integration.
    • AWS_PROXY: for integrating the API method request with the Lambda function-invoking action with the client request passed through as-is. This integration is also referred to as the Lambda proxy integration.
    • HTTP: for integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC. This integration is also referred to as the HTTP custom integration.
    • HTTP_PROXY: for integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC, with the client request passed through as-is. This is also referred to as the HTTP proxy integration.
    • MOCK: for integrating the API method request with API Gateway as a "loop-back" endpoint without invoking any backend.

    For the HTTP and HTTP proxy integrations, each integration can specify a protocol (http/https), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy integration with a connectionType of VPC_LINK is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.

  • connectionType :: Maybe ConnectionType

    The type of the network connection to the integration endpoint. The valid value is INTERNET for connections through the public routable internet or VPC_LINK for private connections between API Gateway and a network load balancer in a VPC. The default value is INTERNET.

  • cacheKeyParameters :: Maybe [Text]

    A list of request parameters whose values API Gateway caches. To be valid values for cacheKeyParameters, these parameters must also be specified for Method requestParameters.

Instances

Instances details
Eq Integration Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Integration

Read Integration Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Integration

Show Integration Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Integration

Generic Integration Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Integration

Associated Types

type Rep Integration :: Type -> Type #

NFData Integration Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Integration

Methods

rnf :: Integration -> () #

Hashable Integration Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Integration

FromJSON Integration Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Integration

type Rep Integration Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Integration

type Rep Integration = D1 ('MetaData "Integration" "Amazonka.APIGateway.Types.Integration" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "Integration'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "httpMethod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "requestTemplates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "credentials") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "connectionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "requestParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "contentHandling") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ContentHandlingStrategy)) :*: S1 ('MetaSel ('Just "passthroughBehavior") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: (((S1 ('MetaSel ('Just "uri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "integrationResponses") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text IntegrationResponse)))) :*: (S1 ('MetaSel ('Just "tlsConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TlsConfig)) :*: S1 ('MetaSel ('Just "cacheNamespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "timeoutInMillis") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe IntegrationType))) :*: (S1 ('MetaSel ('Just "connectionType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ConnectionType)) :*: S1 ('MetaSel ('Just "cacheKeyParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))))))

newIntegration :: Integration Source #

Create a value of Integration 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:httpMethod:Integration', integration_httpMethod - Specifies the integration's HTTP method type.

$sel:requestTemplates:Integration', integration_requestTemplates - Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value.

$sel:credentials:Integration', integration_credentials - Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::\*:user/\*. To use resource-based permissions on supported AWS services, specify null.

$sel:connectionId:Integration', integration_connectionId - The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined, otherwise.

$sel:requestParameters:Integration', integration_requestParameters - A key-value map specifying request parameters that are passed from the method request to the back end. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request parameter value must match the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name must be a valid and unique method request parameter name.

$sel:contentHandling:Integration', integration_contentHandling - Specifies how to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

  • CONVERT_TO_BINARY: Converts a request payload from a Base64-encoded string to the corresponding binary blob.
  • CONVERT_TO_TEXT: Converts a request payload from a binary blob to a Base64-encoded string.

If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehavior is configured to support payload pass-through.

$sel:passthroughBehavior:Integration', integration_passthroughBehavior - Specifies how the method request body of an unmapped content type will be passed through the integration request to the back end without transformation. A content type is unmapped if no mapping template is defined in the integration or the content type does not match any of the mapped content types, as specified in requestTemplates. The valid value is one of the following:

  • WHEN_NO_MATCH: passes the method request body through the integration request to the back end without transformation when the method request content type does not match any content type associated with the mapping templates defined in the integration request.
  • WHEN_NO_TEMPLATES: passes the method request body through the integration request to the back end without transformation when no mapping template is defined in the integration request. If a template is defined when this option is selected, the method request of an unmapped content-type will be rejected with an HTTP 415 Unsupported Media Type response.
  • NEVER: rejects the method request with an HTTP 415 Unsupported Media Type response when either the method request content type does not match any content type associated with the mapping templates defined in the integration request or no mapping template is defined in the integration request.

$sel:uri:Integration', integration_uri - Specifies Uniform Resource Identifier (URI) of the integration endpoint.

  • For HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where connectionType is not VPC_LINK, or private integration, where connectionType is VPC_LINK. For a private HTTP integration, the URI is not used for routing.
  • For AWS or AWS_PROXY integrations, the URI is of the form arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated AWS service (e.g., s3); and {subdomain} is a designated subdomain supported by certain AWS service for fast host-name lookup. action can be used for an AWS service action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The ensuing service_api refers to the path to an AWS service resource, including the region of the integrated AWS service, if applicable. For example, for integration with the S3 API of GetObject, the uri can be either arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}

$sel:integrationResponses:Integration', integration_integrationResponses - Specifies the integration's responses.

Example: Get integration responses of a method

Request
GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200 HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20160607T191449Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160607/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
Response

The successful response returns 200 OK status and a payload as follows:

{ "_links": { "curies": { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", "name": "integrationresponse", "templated": true }, "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", "title": "200" }, "integrationresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" }, "integrationresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'" }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n" }, "statusCode": "200" }

Creating an API

$sel:tlsConfig:Integration', integration_tlsConfig - Specifies the TLS configuration for an integration.

$sel:cacheNamespace:Integration', integration_cacheNamespace - Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the cacheNamespace. You can specify the same cacheNamespace across resources to return the same cached data for requests to different resources.

$sel:timeoutInMillis:Integration', integration_timeoutInMillis - Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.

$sel:type':Integration', integration_type - Specifies an API method integration type. The valid value is one of the following:

  • AWS: for integrating the API method request with an AWS service action, including the Lambda function-invoking action. With the Lambda function-invoking action, this is referred to as the Lambda custom integration. With any other AWS service action, this is known as AWS integration.
  • AWS_PROXY: for integrating the API method request with the Lambda function-invoking action with the client request passed through as-is. This integration is also referred to as the Lambda proxy integration.
  • HTTP: for integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC. This integration is also referred to as the HTTP custom integration.
  • HTTP_PROXY: for integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC, with the client request passed through as-is. This is also referred to as the HTTP proxy integration.
  • MOCK: for integrating the API method request with API Gateway as a "loop-back" endpoint without invoking any backend.

For the HTTP and HTTP proxy integrations, each integration can specify a protocol (http/https), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy integration with a connectionType of VPC_LINK is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.

$sel:connectionType:Integration', integration_connectionType - The type of the network connection to the integration endpoint. The valid value is INTERNET for connections through the public routable internet or VPC_LINK for private connections between API Gateway and a network load balancer in a VPC. The default value is INTERNET.

$sel:cacheKeyParameters:Integration', integration_cacheKeyParameters - A list of request parameters whose values API Gateway caches. To be valid values for cacheKeyParameters, these parameters must also be specified for Method requestParameters.

integration_httpMethod :: Lens' Integration (Maybe Text) Source #

Specifies the integration's HTTP method type.

integration_requestTemplates :: Lens' Integration (Maybe (HashMap Text Text)) Source #

Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value.

integration_credentials :: Lens' Integration (Maybe Text) Source #

Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::\*:user/\*. To use resource-based permissions on supported AWS services, specify null.

integration_connectionId :: Lens' Integration (Maybe Text) Source #

The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined, otherwise.

integration_requestParameters :: Lens' Integration (Maybe (HashMap Text Text)) Source #

A key-value map specifying request parameters that are passed from the method request to the back end. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request parameter value must match the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name must be a valid and unique method request parameter name.

integration_contentHandling :: Lens' Integration (Maybe ContentHandlingStrategy) Source #

Specifies how to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

  • CONVERT_TO_BINARY: Converts a request payload from a Base64-encoded string to the corresponding binary blob.
  • CONVERT_TO_TEXT: Converts a request payload from a binary blob to a Base64-encoded string.

If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehavior is configured to support payload pass-through.

integration_passthroughBehavior :: Lens' Integration (Maybe Text) Source #

Specifies how the method request body of an unmapped content type will be passed through the integration request to the back end without transformation. A content type is unmapped if no mapping template is defined in the integration or the content type does not match any of the mapped content types, as specified in requestTemplates. The valid value is one of the following:

  • WHEN_NO_MATCH: passes the method request body through the integration request to the back end without transformation when the method request content type does not match any content type associated with the mapping templates defined in the integration request.
  • WHEN_NO_TEMPLATES: passes the method request body through the integration request to the back end without transformation when no mapping template is defined in the integration request. If a template is defined when this option is selected, the method request of an unmapped content-type will be rejected with an HTTP 415 Unsupported Media Type response.
  • NEVER: rejects the method request with an HTTP 415 Unsupported Media Type response when either the method request content type does not match any content type associated with the mapping templates defined in the integration request or no mapping template is defined in the integration request.

integration_uri :: Lens' Integration (Maybe Text) Source #

Specifies Uniform Resource Identifier (URI) of the integration endpoint.

  • For HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where connectionType is not VPC_LINK, or private integration, where connectionType is VPC_LINK. For a private HTTP integration, the URI is not used for routing.
  • For AWS or AWS_PROXY integrations, the URI is of the form arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated AWS service (e.g., s3); and {subdomain} is a designated subdomain supported by certain AWS service for fast host-name lookup. action can be used for an AWS service action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The ensuing service_api refers to the path to an AWS service resource, including the region of the integrated AWS service, if applicable. For example, for integration with the S3 API of GetObject, the uri can be either arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}

integration_integrationResponses :: Lens' Integration (Maybe (HashMap Text IntegrationResponse)) Source #

Specifies the integration's responses.

Example: Get integration responses of a method

Request
GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200 HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20160607T191449Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160607/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
Response

The successful response returns 200 OK status and a payload as follows:

{ "_links": { "curies": { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", "name": "integrationresponse", "templated": true }, "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", "title": "200" }, "integrationresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" }, "integrationresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'" }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n" }, "statusCode": "200" }

Creating an API

integration_tlsConfig :: Lens' Integration (Maybe TlsConfig) Source #

Specifies the TLS configuration for an integration.

integration_cacheNamespace :: Lens' Integration (Maybe Text) Source #

Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the cacheNamespace. You can specify the same cacheNamespace across resources to return the same cached data for requests to different resources.

integration_timeoutInMillis :: Lens' Integration (Maybe Int) Source #

Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.

integration_type :: Lens' Integration (Maybe IntegrationType) Source #

Specifies an API method integration type. The valid value is one of the following:

  • AWS: for integrating the API method request with an AWS service action, including the Lambda function-invoking action. With the Lambda function-invoking action, this is referred to as the Lambda custom integration. With any other AWS service action, this is known as AWS integration.
  • AWS_PROXY: for integrating the API method request with the Lambda function-invoking action with the client request passed through as-is. This integration is also referred to as the Lambda proxy integration.
  • HTTP: for integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC. This integration is also referred to as the HTTP custom integration.
  • HTTP_PROXY: for integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC, with the client request passed through as-is. This is also referred to as the HTTP proxy integration.
  • MOCK: for integrating the API method request with API Gateway as a "loop-back" endpoint without invoking any backend.

For the HTTP and HTTP proxy integrations, each integration can specify a protocol (http/https), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy integration with a connectionType of VPC_LINK is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.

integration_connectionType :: Lens' Integration (Maybe ConnectionType) Source #

The type of the network connection to the integration endpoint. The valid value is INTERNET for connections through the public routable internet or VPC_LINK for private connections between API Gateway and a network load balancer in a VPC. The default value is INTERNET.

integration_cacheKeyParameters :: Lens' Integration (Maybe [Text]) Source #

A list of request parameters whose values API Gateway caches. To be valid values for cacheKeyParameters, these parameters must also be specified for Method requestParameters.

IntegrationResponse

data IntegrationResponse Source #

Represents an integration response. The status code must map to an existing MethodResponse, and parameters and templates can be used to transform the back-end response.

Creating an API

See: newIntegrationResponse smart constructor.

Constructors

IntegrationResponse' 

Fields

  • contentHandling :: Maybe ContentHandlingStrategy

    Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

    • CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.
    • CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

    If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.

  • responseTemplates :: Maybe (HashMap Text Text)

    Specifies the templates used to transform the integration response body. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

  • selectionPattern :: Maybe Text

    Specifies the regular expression (regex) pattern used to choose an integration response based on the response from the back end. For example, if the success response returns nothing and the error response returns some string, you could use the .+ regex to match error response. However, make sure that the error response does not contain any newline (\n) character in such cases. If the back end is an AWS Lambda function, the AWS Lambda function error header is matched. For all other HTTP and AWS back ends, the HTTP status code is matched.

  • statusCode :: Maybe Text

    Specifies the status code that is used to map the integration response to an existing MethodResponse.

  • responseParameters :: Maybe (HashMap Text Text)

    A key-value map specifying response parameters that are passed to the method response from the back end. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where name is a valid and unique response header name and JSON-expression is a valid JSON expression without the $ prefix.

Instances

Instances details
Eq IntegrationResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationResponse

Read IntegrationResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationResponse

Show IntegrationResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationResponse

Generic IntegrationResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationResponse

Associated Types

type Rep IntegrationResponse :: Type -> Type #

NFData IntegrationResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationResponse

Methods

rnf :: IntegrationResponse -> () #

Hashable IntegrationResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationResponse

FromJSON IntegrationResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationResponse

type Rep IntegrationResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.IntegrationResponse

type Rep IntegrationResponse = D1 ('MetaData "IntegrationResponse" "Amazonka.APIGateway.Types.IntegrationResponse" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "IntegrationResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "contentHandling") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ContentHandlingStrategy)) :*: S1 ('MetaSel ('Just "responseTemplates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "selectionPattern") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "statusCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "responseParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))))))

newIntegrationResponse :: IntegrationResponse Source #

Create a value of IntegrationResponse 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:contentHandling:IntegrationResponse', integrationResponse_contentHandling - Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

  • CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.
  • CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.

$sel:responseTemplates:IntegrationResponse', integrationResponse_responseTemplates - Specifies the templates used to transform the integration response body. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

$sel:selectionPattern:IntegrationResponse', integrationResponse_selectionPattern - Specifies the regular expression (regex) pattern used to choose an integration response based on the response from the back end. For example, if the success response returns nothing and the error response returns some string, you could use the .+ regex to match error response. However, make sure that the error response does not contain any newline (\n) character in such cases. If the back end is an AWS Lambda function, the AWS Lambda function error header is matched. For all other HTTP and AWS back ends, the HTTP status code is matched.

$sel:statusCode:IntegrationResponse', integrationResponse_statusCode - Specifies the status code that is used to map the integration response to an existing MethodResponse.

$sel:responseParameters:IntegrationResponse', integrationResponse_responseParameters - A key-value map specifying response parameters that are passed to the method response from the back end. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where name is a valid and unique response header name and JSON-expression is a valid JSON expression without the $ prefix.

integrationResponse_contentHandling :: Lens' IntegrationResponse (Maybe ContentHandlingStrategy) Source #

Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

  • CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.
  • CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.

integrationResponse_responseTemplates :: Lens' IntegrationResponse (Maybe (HashMap Text Text)) Source #

Specifies the templates used to transform the integration response body. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

integrationResponse_selectionPattern :: Lens' IntegrationResponse (Maybe Text) Source #

Specifies the regular expression (regex) pattern used to choose an integration response based on the response from the back end. For example, if the success response returns nothing and the error response returns some string, you could use the .+ regex to match error response. However, make sure that the error response does not contain any newline (\n) character in such cases. If the back end is an AWS Lambda function, the AWS Lambda function error header is matched. For all other HTTP and AWS back ends, the HTTP status code is matched.

integrationResponse_statusCode :: Lens' IntegrationResponse (Maybe Text) Source #

Specifies the status code that is used to map the integration response to an existing MethodResponse.

integrationResponse_responseParameters :: Lens' IntegrationResponse (Maybe (HashMap Text Text)) Source #

A key-value map specifying response parameters that are passed to the method response from the back end. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where name is a valid and unique response header name and JSON-expression is a valid JSON expression without the $ prefix.

Method

data Method Source #

Represents a client-facing interface by which the client calls the API to access back-end resources. A Method resource is integrated with an Integration resource. Both consist of a request and one or more responses. The method request takes the client input that is passed to the back end through the integration request. A method response returns the output from the back end to the client through an integration response. A method request is embodied in a Method resource, whereas an integration request is embodied in an Integration resource. On the other hand, a method response is represented by a MethodResponse resource, whereas an integration response is represented by an IntegrationResponse resource.

Example: Retrive the GET method on a specified resource

Request

The following example request retrieves the information about the GET method on an API resource (3kzxbg5sa2) of an API (fugvjdxtri).

GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20160603T210259Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
Response

The successful response returns a 200 OK status code and a payload similar to the following:

{ "_links": { "curies": [ { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", "name": "integration", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", "name": "integrationresponse", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html", "name": "method", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", "name": "methodresponse", "templated": true } ], "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET", "name": "GET", "title": "GET" }, "integration:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "method:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET" }, "method:integration": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "method:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", "name": "200", "title": "200" }, "method:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET" }, "methodresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}", "templated": true } }, "apiKeyRequired": true, "authorizationType": "NONE", "httpMethod": "GET", "_embedded": { "method:integration": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "integration:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "integration:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", "name": "200", "title": "200" }, "integration:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "integrationresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}", "templated": true } }, "cacheKeyParameters": [], "cacheNamespace": "3kzxbg5sa2", "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "httpMethod": "POST", "passthroughBehavior": "WHEN_NO_MATCH", "requestParameters": { "integration.request.header.Content-Type": "'application/x-amz-json-1.1'" }, "requestTemplates": { "application/json": "{\n}" }, "type": "AWS", "uri": "arn:aws:apigateway:us-east-1:kinesis:action/ListStreams", "_embedded": { "integration:responses": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", "name": "200", "title": "200" }, "integrationresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" }, "integrationresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'" }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E%23foreach(%24stream%20in%20%24input.path(%27%24.StreamNames%27))%3Cstream%3E%3Cname%3E%24stream%3C%2Fname%3E%3C%2Fstream%3E%23end%3C%2FkinesisStreams%3E\")" }, "statusCode": "200" } } }, "method:responses": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", "name": "200", "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" } }, "responseModels": { "application/json": "Empty" }, "responseParameters": { "method.response.header.Content-Type": false }, "statusCode": "200" } } }

In the example above, the response template for the 200 OK response maps the JSON output from the ListStreams action in the back end to an XML output. The mapping template is URL-encoded as %3CkinesisStreams%3E%23foreach(%24stream%20in%20%24input.path(%27%24.StreamNames%27))%3Cstream%3E%3Cname%3E%24stream%3C%2Fname%3E%3C%2Fstream%3E%23end%3C%2FkinesisStreams%3E and the output is decoded using the $util.urlDecode() helper function.

MethodResponse, Integration, IntegrationResponse, Resource, Set up an API's method

See: newMethod smart constructor.

Constructors

Method' 

Fields

  • methodResponses :: Maybe (HashMap Text MethodResponse)

    Gets a method response associated with a given HTTP status code.

    The collection of method responses are encapsulated in a key-value map, where the key is a response's HTTP status code and the value is a MethodResponse resource that specifies the response returned to the caller from the back end through the integration response.

    Example: Get a 200 OK response of a GET method

    Request
    GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200 HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com Content-Length: 117 X-Amz-Date: 20160613T215008Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    Response

    The successful response returns a 200 OK status code and a payload similar to the following:

    { "_links": { "curies": { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", "name": "methodresponse", "templated": true }, "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200", "title": "200" }, "methodresponse:delete": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200" }, "methodresponse:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200" } }, "responseModels": { "application/json": "Empty" }, "responseParameters": { "method.response.header.operator": false, "method.response.header.operand_2": false, "method.response.header.operand_1": false }, "statusCode": "200" }

    AWS CLI

  • httpMethod :: Maybe Text

    The method's HTTP verb.

  • authorizationScopes :: Maybe [Text]

    A list of authorization scopes configured on the method. The scopes are used with a COGNITO_USER_POOLS authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes.

  • requestValidatorId :: Maybe Text

    The identifier of a RequestValidator for request validation.

  • requestModels :: Maybe (HashMap Text Text)

    A key-value map specifying data schemas, represented by Model resources, (as the mapped value) of the request payloads of given content types (as the mapping key).

  • requestParameters :: Maybe (HashMap Text Bool)

    A key-value map defining required or optional method request parameters that can be accepted by API Gateway. A key is a method request parameter name matching the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name is a valid and unique parameter name. The value associated with the key is a Boolean flag indicating whether the parameter is required (true) or optional (false). The method request parameter names defined here are available in Integration to be mapped to integration request parameters or templates.

  • authorizerId :: Maybe Text

    The identifier of an Authorizer to use on this method. The authorizationType must be CUSTOM.

  • operationName :: Maybe Text

    A human-friendly operation identifier for the method. For example, you can assign the operationName of ListPets for the GET /pets method in the PetStore example.

  • authorizationType :: Maybe Text

    The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

  • apiKeyRequired :: Maybe Bool

    A boolean flag specifying whether a valid ApiKey is required to invoke this method.

  • methodIntegration :: Maybe Integration

    Gets the method's integration responsible for passing the client-submitted request to the back end and performing necessary transformations to make the request compliant with the back end.

    Example:

    Request
    GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com Content-Length: 117 X-Amz-Date: 20160613T213210Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    Response

    The successful response returns a 200 OK status code and a payload similar to the following:

    { "_links": { "curies": [ { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", "name": "integration", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", "name": "integrationresponse", "templated": true } ], "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration" }, "integration:delete": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration" }, "integration:responses": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200", "name": "200", "title": "200" }, "integration:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration" }, "integrationresponse:put": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/{status_code}", "templated": true } }, "cacheKeyParameters": [], "cacheNamespace": "0cjtch", "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "httpMethod": "POST", "passthroughBehavior": "WHEN_NO_MATCH", "requestTemplates": { "application/json": "{\n \"a\": \"$input.params('operand1')\",\n \"b\": \"$input.params('operand2')\", \n \"op\": \"$input.params('operator')\" \n}" }, "type": "AWS", "uri": "arn:aws:apigateway:us-west-2:lambda:path//2015-03-31/functions/arn:aws:lambda:us-west-2:123456789012:function:Calc/invocations", "_embedded": { "integration:responses": { "_links": { "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200", "name": "200", "title": "200" }, "integrationresponse:delete": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200" }, "integrationresponse:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200" } }, "responseParameters": { "method.response.header.operator": "integration.response.body.op", "method.response.header.operand_2": "integration.response.body.b", "method.response.header.operand_1": "integration.response.body.a" }, "responseTemplates": { "application/json": "#set($res = $input.path('$'))\n{\n \"result\": \"$res.a, $res.b, $res.op => $res.c\",\n \"a\" : \"$res.a\",\n \"b\" : \"$res.b\",\n \"op\" : \"$res.op\",\n \"c\" : \"$res.c\"\n}" }, "selectionPattern": "", "statusCode": "200" } } }

    AWS CLI

Instances

Instances details
Eq Method Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Method

Methods

(==) :: Method -> Method -> Bool #

(/=) :: Method -> Method -> Bool #

Read Method Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Method

Show Method Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Method

Generic Method Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Method

Associated Types

type Rep Method :: Type -> Type #

Methods

from :: Method -> Rep Method x #

to :: Rep Method x -> Method #

NFData Method Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Method

Methods

rnf :: Method -> () #

Hashable Method Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Method

Methods

hashWithSalt :: Int -> Method -> Int #

hash :: Method -> Int #

FromJSON Method Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Method

type Rep Method Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Method

type Rep Method = D1 ('MetaData "Method" "Amazonka.APIGateway.Types.Method" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "Method'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "methodResponses") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text MethodResponse))) :*: S1 ('MetaSel ('Just "httpMethod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "authorizationScopes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "requestValidatorId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "requestModels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))))) :*: ((S1 ('MetaSel ('Just "requestParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Bool))) :*: (S1 ('MetaSel ('Just "authorizerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "operationName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "authorizationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "apiKeyRequired") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "methodIntegration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integration)))))))

newMethod :: Method Source #

Create a value of Method 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:methodResponses:Method', method_methodResponses - Gets a method response associated with a given HTTP status code.

The collection of method responses are encapsulated in a key-value map, where the key is a response's HTTP status code and the value is a MethodResponse resource that specifies the response returned to the caller from the back end through the integration response.

Example: Get a 200 OK response of a GET method

Request
GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200 HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com Content-Length: 117 X-Amz-Date: 20160613T215008Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
Response

The successful response returns a 200 OK status code and a payload similar to the following:

{ "_links": { "curies": { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", "name": "methodresponse", "templated": true }, "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200", "title": "200" }, "methodresponse:delete": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200" }, "methodresponse:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200" } }, "responseModels": { "application/json": "Empty" }, "responseParameters": { "method.response.header.operator": false, "method.response.header.operand_2": false, "method.response.header.operand_1": false }, "statusCode": "200" }

AWS CLI

$sel:httpMethod:Method', method_httpMethod - The method's HTTP verb.

$sel:authorizationScopes:Method', method_authorizationScopes - A list of authorization scopes configured on the method. The scopes are used with a COGNITO_USER_POOLS authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes.

$sel:requestValidatorId:Method', method_requestValidatorId - The identifier of a RequestValidator for request validation.

$sel:requestModels:Method', method_requestModels - A key-value map specifying data schemas, represented by Model resources, (as the mapped value) of the request payloads of given content types (as the mapping key).

$sel:requestParameters:Method', method_requestParameters - A key-value map defining required or optional method request parameters that can be accepted by API Gateway. A key is a method request parameter name matching the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name is a valid and unique parameter name. The value associated with the key is a Boolean flag indicating whether the parameter is required (true) or optional (false). The method request parameter names defined here are available in Integration to be mapped to integration request parameters or templates.

$sel:authorizerId:Method', method_authorizerId - The identifier of an Authorizer to use on this method. The authorizationType must be CUSTOM.

$sel:operationName:Method', method_operationName - A human-friendly operation identifier for the method. For example, you can assign the operationName of ListPets for the GET /pets method in the PetStore example.

$sel:authorizationType:Method', method_authorizationType - The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

$sel:apiKeyRequired:Method', method_apiKeyRequired - A boolean flag specifying whether a valid ApiKey is required to invoke this method.

$sel:methodIntegration:Method', method_methodIntegration - Gets the method's integration responsible for passing the client-submitted request to the back end and performing necessary transformations to make the request compliant with the back end.

Example:

Request
GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com Content-Length: 117 X-Amz-Date: 20160613T213210Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
Response

The successful response returns a 200 OK status code and a payload similar to the following:

{ "_links": { "curies": [ { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", "name": "integration", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", "name": "integrationresponse", "templated": true } ], "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration" }, "integration:delete": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration" }, "integration:responses": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200", "name": "200", "title": "200" }, "integration:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration" }, "integrationresponse:put": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/{status_code}", "templated": true } }, "cacheKeyParameters": [], "cacheNamespace": "0cjtch", "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "httpMethod": "POST", "passthroughBehavior": "WHEN_NO_MATCH", "requestTemplates": { "application/json": "{\n \"a\": \"$input.params('operand1')\",\n \"b\": \"$input.params('operand2')\", \n \"op\": \"$input.params('operator')\" \n}" }, "type": "AWS", "uri": "arn:aws:apigateway:us-west-2:lambda:path//2015-03-31/functions/arn:aws:lambda:us-west-2:123456789012:function:Calc/invocations", "_embedded": { "integration:responses": { "_links": { "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200", "name": "200", "title": "200" }, "integrationresponse:delete": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200" }, "integrationresponse:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200" } }, "responseParameters": { "method.response.header.operator": "integration.response.body.op", "method.response.header.operand_2": "integration.response.body.b", "method.response.header.operand_1": "integration.response.body.a" }, "responseTemplates": { "application/json": "#set($res = $input.path('$'))\n{\n \"result\": \"$res.a, $res.b, $res.op => $res.c\",\n \"a\" : \"$res.a\",\n \"b\" : \"$res.b\",\n \"op\" : \"$res.op\",\n \"c\" : \"$res.c\"\n}" }, "selectionPattern": "", "statusCode": "200" } } }

AWS CLI

method_methodResponses :: Lens' Method (Maybe (HashMap Text MethodResponse)) Source #

Gets a method response associated with a given HTTP status code.

The collection of method responses are encapsulated in a key-value map, where the key is a response's HTTP status code and the value is a MethodResponse resource that specifies the response returned to the caller from the back end through the integration response.

Example: Get a 200 OK response of a GET method

Request
GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200 HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com Content-Length: 117 X-Amz-Date: 20160613T215008Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
Response

The successful response returns a 200 OK status code and a payload similar to the following:

{ "_links": { "curies": { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", "name": "methodresponse", "templated": true }, "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200", "title": "200" }, "methodresponse:delete": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200" }, "methodresponse:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200" } }, "responseModels": { "application/json": "Empty" }, "responseParameters": { "method.response.header.operator": false, "method.response.header.operand_2": false, "method.response.header.operand_1": false }, "statusCode": "200" }

AWS CLI

method_httpMethod :: Lens' Method (Maybe Text) Source #

The method's HTTP verb.

method_authorizationScopes :: Lens' Method (Maybe [Text]) Source #

A list of authorization scopes configured on the method. The scopes are used with a COGNITO_USER_POOLS authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes.

method_requestValidatorId :: Lens' Method (Maybe Text) Source #

The identifier of a RequestValidator for request validation.

method_requestModels :: Lens' Method (Maybe (HashMap Text Text)) Source #

A key-value map specifying data schemas, represented by Model resources, (as the mapped value) of the request payloads of given content types (as the mapping key).

method_requestParameters :: Lens' Method (Maybe (HashMap Text Bool)) Source #

A key-value map defining required or optional method request parameters that can be accepted by API Gateway. A key is a method request parameter name matching the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name is a valid and unique parameter name. The value associated with the key is a Boolean flag indicating whether the parameter is required (true) or optional (false). The method request parameter names defined here are available in Integration to be mapped to integration request parameters or templates.

method_authorizerId :: Lens' Method (Maybe Text) Source #

The identifier of an Authorizer to use on this method. The authorizationType must be CUSTOM.

method_operationName :: Lens' Method (Maybe Text) Source #

A human-friendly operation identifier for the method. For example, you can assign the operationName of ListPets for the GET /pets method in the PetStore example.

method_authorizationType :: Lens' Method (Maybe Text) Source #

The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

method_apiKeyRequired :: Lens' Method (Maybe Bool) Source #

A boolean flag specifying whether a valid ApiKey is required to invoke this method.

method_methodIntegration :: Lens' Method (Maybe Integration) Source #

Gets the method's integration responsible for passing the client-submitted request to the back end and performing necessary transformations to make the request compliant with the back end.

Example:

Request
GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com Content-Length: 117 X-Amz-Date: 20160613T213210Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
Response

The successful response returns a 200 OK status code and a payload similar to the following:

{ "_links": { "curies": [ { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", "name": "integration", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", "name": "integrationresponse", "templated": true } ], "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration" }, "integration:delete": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration" }, "integration:responses": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200", "name": "200", "title": "200" }, "integration:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration" }, "integrationresponse:put": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/{status_code}", "templated": true } }, "cacheKeyParameters": [], "cacheNamespace": "0cjtch", "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "httpMethod": "POST", "passthroughBehavior": "WHEN_NO_MATCH", "requestTemplates": { "application/json": "{\n \"a\": \"$input.params('operand1')\",\n \"b\": \"$input.params('operand2')\", \n \"op\": \"$input.params('operator')\" \n}" }, "type": "AWS", "uri": "arn:aws:apigateway:us-west-2:lambda:path//2015-03-31/functions/arn:aws:lambda:us-west-2:123456789012:function:Calc/invocations", "_embedded": { "integration:responses": { "_links": { "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200", "name": "200", "title": "200" }, "integrationresponse:delete": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200" }, "integrationresponse:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200" } }, "responseParameters": { "method.response.header.operator": "integration.response.body.op", "method.response.header.operand_2": "integration.response.body.b", "method.response.header.operand_1": "integration.response.body.a" }, "responseTemplates": { "application/json": "#set($res = $input.path('$'))\n{\n \"result\": \"$res.a, $res.b, $res.op => $res.c\",\n \"a\" : \"$res.a\",\n \"b\" : \"$res.b\",\n \"op\" : \"$res.op\",\n \"c\" : \"$res.c\"\n}" }, "selectionPattern": "", "statusCode": "200" } } }

AWS CLI

MethodResponse

data MethodResponse Source #

Represents a method response of a given HTTP status code returned to the client. The method response is passed from the back end through the associated integration response that can be transformed using a mapping template.

Example: A MethodResponse instance of an API

Request

The example request retrieves a MethodResponse of the 200 status code.

GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200 HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20160603T222952Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
Response

The successful response returns 200 OK status and a payload as follows:

{ "_links": { "curies": { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", "name": "methodresponse", "templated": true }, "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" } }, "responseModels": { "application/json": "Empty" }, "responseParameters": { "method.response.header.Content-Type": false }, "statusCode": "200" }

Method, IntegrationResponse, Integration Creating an API

See: newMethodResponse smart constructor.

Constructors

MethodResponse' 

Fields

  • responseModels :: Maybe (HashMap Text Text)

    Specifies the Model resources used for the response's content-type. Response models are represented as a key/value map, with a content-type as the key and a Model name as the value.

  • statusCode :: Maybe Text

    The method response's status code.

  • responseParameters :: Maybe (HashMap Text Bool)

    A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header and the value specifies whether the associated method response header is required or not. The expression of the key must match the pattern method.response.header.{name}, where name is a valid and unique header name. API Gateway passes certain integration response data to the method response headers specified here according to the mapping you prescribe in the API's IntegrationResponse. The integration response data that can be mapped include an integration response header expressed in integration.response.header.{name}, a static value enclosed within a pair of single quotes (e.g., 'application/json'), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}, where JSON-expression is a valid JSON expression without the $ prefix.)

Instances

Instances details
Eq MethodResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodResponse

Read MethodResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodResponse

Show MethodResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodResponse

Generic MethodResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodResponse

Associated Types

type Rep MethodResponse :: Type -> Type #

NFData MethodResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodResponse

Methods

rnf :: MethodResponse -> () #

Hashable MethodResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodResponse

FromJSON MethodResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodResponse

type Rep MethodResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodResponse

type Rep MethodResponse = D1 ('MetaData "MethodResponse" "Amazonka.APIGateway.Types.MethodResponse" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "MethodResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "responseModels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "statusCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "responseParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Bool))))))

newMethodResponse :: MethodResponse Source #

Create a value of MethodResponse 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:responseModels:MethodResponse', methodResponse_responseModels - Specifies the Model resources used for the response's content-type. Response models are represented as a key/value map, with a content-type as the key and a Model name as the value.

$sel:statusCode:MethodResponse', methodResponse_statusCode - The method response's status code.

$sel:responseParameters:MethodResponse', methodResponse_responseParameters - A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header and the value specifies whether the associated method response header is required or not. The expression of the key must match the pattern method.response.header.{name}, where name is a valid and unique header name. API Gateway passes certain integration response data to the method response headers specified here according to the mapping you prescribe in the API's IntegrationResponse. The integration response data that can be mapped include an integration response header expressed in integration.response.header.{name}, a static value enclosed within a pair of single quotes (e.g., 'application/json'), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}, where JSON-expression is a valid JSON expression without the $ prefix.)

methodResponse_responseModels :: Lens' MethodResponse (Maybe (HashMap Text Text)) Source #

Specifies the Model resources used for the response's content-type. Response models are represented as a key/value map, with a content-type as the key and a Model name as the value.

methodResponse_statusCode :: Lens' MethodResponse (Maybe Text) Source #

The method response's status code.

methodResponse_responseParameters :: Lens' MethodResponse (Maybe (HashMap Text Bool)) Source #

A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header and the value specifies whether the associated method response header is required or not. The expression of the key must match the pattern method.response.header.{name}, where name is a valid and unique header name. API Gateway passes certain integration response data to the method response headers specified here according to the mapping you prescribe in the API's IntegrationResponse. The integration response data that can be mapped include an integration response header expressed in integration.response.header.{name}, a static value enclosed within a pair of single quotes (e.g., 'application/json'), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}, where JSON-expression is a valid JSON expression without the $ prefix.)

MethodSetting

data MethodSetting Source #

Specifies the method setting properties.

See: newMethodSetting smart constructor.

Constructors

MethodSetting' 

Fields

  • cacheTtlInSeconds :: Maybe Int

    Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached. The PATCH path for this setting is /{method_setting_key}/caching/ttlInSeconds, and the value is an integer.

  • dataTraceEnabled :: Maybe Bool

    Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/dataTrace, and the value is a Boolean.

  • throttlingBurstLimit :: Maybe Int

    Specifies the throttling burst limit. The PATCH path for this setting is /{method_setting_key}/throttling/burstLimit, and the value is an integer.

  • cacheDataEncrypted :: Maybe Bool

    Specifies whether the cached responses are encrypted. The PATCH path for this setting is /{method_setting_key}/caching/dataEncrypted, and the value is a Boolean.

  • loggingLevel :: Maybe Text

    Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/loglevel, and the available levels are OFF, ERROR, and INFO. Choose ERROR to write only error-level entries to CloudWatch Logs, or choose INFO to include all ERROR events as well as extra informational events.

  • requireAuthorizationForCacheControl :: Maybe Bool

    Specifies whether authorization is required for a cache invalidation request. The PATCH path for this setting is /{method_setting_key}/caching/requireAuthorizationForCacheControl, and the value is a Boolean.

  • cachingEnabled :: Maybe Bool

    Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. The PATCH path for this setting is /{method_setting_key}/caching/enabled, and the value is a Boolean.

  • metricsEnabled :: Maybe Bool

    Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is /{method_setting_key}/metrics/enabled, and the value is a Boolean.

  • throttlingRateLimit :: Maybe Double

    Specifies the throttling rate limit. The PATCH path for this setting is /{method_setting_key}/throttling/rateLimit, and the value is a double.

  • unauthorizedCacheControlHeaderStrategy :: Maybe UnauthorizedCacheControlHeaderStrategy

    Specifies how to handle unauthorized requests for cache invalidation. The PATCH path for this setting is /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy, and the available values are FAIL_WITH_403, SUCCEED_WITH_RESPONSE_HEADER, SUCCEED_WITHOUT_RESPONSE_HEADER.

Instances

Instances details
Eq MethodSetting Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSetting

Read MethodSetting Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSetting

Show MethodSetting Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSetting

Generic MethodSetting Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSetting

Associated Types

type Rep MethodSetting :: Type -> Type #

NFData MethodSetting Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSetting

Methods

rnf :: MethodSetting -> () #

Hashable MethodSetting Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSetting

FromJSON MethodSetting Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSetting

type Rep MethodSetting Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSetting

type Rep MethodSetting = D1 ('MetaData "MethodSetting" "Amazonka.APIGateway.Types.MethodSetting" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "MethodSetting'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "cacheTtlInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "dataTraceEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "throttlingBurstLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "cacheDataEncrypted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "loggingLevel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "requireAuthorizationForCacheControl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "cachingEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "metricsEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "throttlingRateLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "unauthorizedCacheControlHeaderStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UnauthorizedCacheControlHeaderStrategy)))))))

newMethodSetting :: MethodSetting Source #

Create a value of MethodSetting 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:cacheTtlInSeconds:MethodSetting', methodSetting_cacheTtlInSeconds - Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached. The PATCH path for this setting is /{method_setting_key}/caching/ttlInSeconds, and the value is an integer.

$sel:dataTraceEnabled:MethodSetting', methodSetting_dataTraceEnabled - Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/dataTrace, and the value is a Boolean.

$sel:throttlingBurstLimit:MethodSetting', methodSetting_throttlingBurstLimit - Specifies the throttling burst limit. The PATCH path for this setting is /{method_setting_key}/throttling/burstLimit, and the value is an integer.

$sel:cacheDataEncrypted:MethodSetting', methodSetting_cacheDataEncrypted - Specifies whether the cached responses are encrypted. The PATCH path for this setting is /{method_setting_key}/caching/dataEncrypted, and the value is a Boolean.

$sel:loggingLevel:MethodSetting', methodSetting_loggingLevel - Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/loglevel, and the available levels are OFF, ERROR, and INFO. Choose ERROR to write only error-level entries to CloudWatch Logs, or choose INFO to include all ERROR events as well as extra informational events.

$sel:requireAuthorizationForCacheControl:MethodSetting', methodSetting_requireAuthorizationForCacheControl - Specifies whether authorization is required for a cache invalidation request. The PATCH path for this setting is /{method_setting_key}/caching/requireAuthorizationForCacheControl, and the value is a Boolean.

$sel:cachingEnabled:MethodSetting', methodSetting_cachingEnabled - Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. The PATCH path for this setting is /{method_setting_key}/caching/enabled, and the value is a Boolean.

$sel:metricsEnabled:MethodSetting', methodSetting_metricsEnabled - Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is /{method_setting_key}/metrics/enabled, and the value is a Boolean.

$sel:throttlingRateLimit:MethodSetting', methodSetting_throttlingRateLimit - Specifies the throttling rate limit. The PATCH path for this setting is /{method_setting_key}/throttling/rateLimit, and the value is a double.

$sel:unauthorizedCacheControlHeaderStrategy:MethodSetting', methodSetting_unauthorizedCacheControlHeaderStrategy - Specifies how to handle unauthorized requests for cache invalidation. The PATCH path for this setting is /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy, and the available values are FAIL_WITH_403, SUCCEED_WITH_RESPONSE_HEADER, SUCCEED_WITHOUT_RESPONSE_HEADER.

methodSetting_cacheTtlInSeconds :: Lens' MethodSetting (Maybe Int) Source #

Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached. The PATCH path for this setting is /{method_setting_key}/caching/ttlInSeconds, and the value is an integer.

methodSetting_dataTraceEnabled :: Lens' MethodSetting (Maybe Bool) Source #

Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/dataTrace, and the value is a Boolean.

methodSetting_throttlingBurstLimit :: Lens' MethodSetting (Maybe Int) Source #

Specifies the throttling burst limit. The PATCH path for this setting is /{method_setting_key}/throttling/burstLimit, and the value is an integer.

methodSetting_cacheDataEncrypted :: Lens' MethodSetting (Maybe Bool) Source #

Specifies whether the cached responses are encrypted. The PATCH path for this setting is /{method_setting_key}/caching/dataEncrypted, and the value is a Boolean.

methodSetting_loggingLevel :: Lens' MethodSetting (Maybe Text) Source #

Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/loglevel, and the available levels are OFF, ERROR, and INFO. Choose ERROR to write only error-level entries to CloudWatch Logs, or choose INFO to include all ERROR events as well as extra informational events.

methodSetting_requireAuthorizationForCacheControl :: Lens' MethodSetting (Maybe Bool) Source #

Specifies whether authorization is required for a cache invalidation request. The PATCH path for this setting is /{method_setting_key}/caching/requireAuthorizationForCacheControl, and the value is a Boolean.

methodSetting_cachingEnabled :: Lens' MethodSetting (Maybe Bool) Source #

Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. The PATCH path for this setting is /{method_setting_key}/caching/enabled, and the value is a Boolean.

methodSetting_metricsEnabled :: Lens' MethodSetting (Maybe Bool) Source #

Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is /{method_setting_key}/metrics/enabled, and the value is a Boolean.

methodSetting_throttlingRateLimit :: Lens' MethodSetting (Maybe Double) Source #

Specifies the throttling rate limit. The PATCH path for this setting is /{method_setting_key}/throttling/rateLimit, and the value is a double.

methodSetting_unauthorizedCacheControlHeaderStrategy :: Lens' MethodSetting (Maybe UnauthorizedCacheControlHeaderStrategy) Source #

Specifies how to handle unauthorized requests for cache invalidation. The PATCH path for this setting is /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy, and the available values are FAIL_WITH_403, SUCCEED_WITH_RESPONSE_HEADER, SUCCEED_WITHOUT_RESPONSE_HEADER.

MethodSnapshot

data MethodSnapshot Source #

Represents a summary of a Method resource, given a particular date and time.

See: newMethodSnapshot smart constructor.

Constructors

MethodSnapshot' 

Fields

  • authorizationType :: Maybe Text

    The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

  • apiKeyRequired :: Maybe Bool

    Specifies whether the method requires a valid ApiKey.

Instances

Instances details
Eq MethodSnapshot Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSnapshot

Read MethodSnapshot Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSnapshot

Show MethodSnapshot Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSnapshot

Generic MethodSnapshot Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSnapshot

Associated Types

type Rep MethodSnapshot :: Type -> Type #

NFData MethodSnapshot Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSnapshot

Methods

rnf :: MethodSnapshot -> () #

Hashable MethodSnapshot Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSnapshot

FromJSON MethodSnapshot Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSnapshot

type Rep MethodSnapshot Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSnapshot

type Rep MethodSnapshot = D1 ('MetaData "MethodSnapshot" "Amazonka.APIGateway.Types.MethodSnapshot" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "MethodSnapshot'" 'PrefixI 'True) (S1 ('MetaSel ('Just "authorizationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "apiKeyRequired") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))

newMethodSnapshot :: MethodSnapshot Source #

Create a value of MethodSnapshot 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:authorizationType:MethodSnapshot', methodSnapshot_authorizationType - The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

$sel:apiKeyRequired:MethodSnapshot', methodSnapshot_apiKeyRequired - Specifies whether the method requires a valid ApiKey.

methodSnapshot_authorizationType :: Lens' MethodSnapshot (Maybe Text) Source #

The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

methodSnapshot_apiKeyRequired :: Lens' MethodSnapshot (Maybe Bool) Source #

Specifies whether the method requires a valid ApiKey.

Model

data Model Source #

Represents the data structure of a method's request or response payload.

A request model defines the data structure of the client-supplied request payload. A response model defines the data structure of the response payload returned by the back end. Although not required, models are useful for mapping payloads between the front end and back end.

A model is used for generating an API's SDK, validating the input request body, and creating a skeletal mapping template.

Method, MethodResponse, Models and Mappings

See: newModel smart constructor.

Constructors

Model' 

Fields

  • schema :: Maybe Text

    The schema for the model. For application/json models, this should be JSON schema draft 4 model. Do not include "\*/" characters in the description of any properties because such "\*/" characters may be interpreted as the closing marker for comments in some languages, such as Java or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.

  • name :: Maybe Text

    The name of the model. Must be an alphanumeric string.

  • id :: Maybe Text

    The identifier for the model resource.

  • description :: Maybe Text

    The description of the model.

  • contentType :: Maybe Text

    The content-type for the model.

Instances

Instances details
Eq Model Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Model

Methods

(==) :: Model -> Model -> Bool #

(/=) :: Model -> Model -> Bool #

Read Model Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Model

Show Model Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Model

Methods

showsPrec :: Int -> Model -> ShowS #

show :: Model -> String #

showList :: [Model] -> ShowS #

Generic Model Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Model

Associated Types

type Rep Model :: Type -> Type #

Methods

from :: Model -> Rep Model x #

to :: Rep Model x -> Model #

NFData Model Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Model

Methods

rnf :: Model -> () #

Hashable Model Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Model

Methods

hashWithSalt :: Int -> Model -> Int #

hash :: Model -> Int #

FromJSON Model Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Model

type Rep Model Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Model

type Rep Model = D1 ('MetaData "Model" "Amazonka.APIGateway.Types.Model" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "Model'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "schema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "contentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newModel :: Model Source #

Create a value of Model 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:schema:Model', model_schema - The schema for the model. For application/json models, this should be JSON schema draft 4 model. Do not include "\*/" characters in the description of any properties because such "\*/" characters may be interpreted as the closing marker for comments in some languages, such as Java or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.

$sel:name:Model', model_name - The name of the model. Must be an alphanumeric string.

$sel:id:Model', model_id - The identifier for the model resource.

$sel:description:Model', model_description - The description of the model.

$sel:contentType:Model', model_contentType - The content-type for the model.

model_schema :: Lens' Model (Maybe Text) Source #

The schema for the model. For application/json models, this should be JSON schema draft 4 model. Do not include "\*/" characters in the description of any properties because such "\*/" characters may be interpreted as the closing marker for comments in some languages, such as Java or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.

model_name :: Lens' Model (Maybe Text) Source #

The name of the model. Must be an alphanumeric string.

model_id :: Lens' Model (Maybe Text) Source #

The identifier for the model resource.

model_description :: Lens' Model (Maybe Text) Source #

The description of the model.

model_contentType :: Lens' Model (Maybe Text) Source #

The content-type for the model.

MutualTlsAuthentication

data MutualTlsAuthentication Source #

If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your custom domain name.

See: newMutualTlsAuthentication smart constructor.

Constructors

MutualTlsAuthentication' 

Fields

  • truststoreWarnings :: Maybe [Text]

    A list of warnings that API Gateway returns while processing your truststore. Invalid certificates produce warnings. Mutual TLS is still enabled, but some clients might not be able to access your API. To resolve warnings, upload a new truststore to S3, and then update you domain name to use the new version.

  • truststoreUri :: Maybe Text

    An Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example s3://bucket-name/key-name. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. To update the truststore, you must have permissions to access the S3 object.

  • truststoreVersion :: Maybe Text

    The version of the S3 object that contains your truststore. To specify a version, you must have versioning enabled for the S3 bucket.

Instances

Instances details
Eq MutualTlsAuthentication Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MutualTlsAuthentication

Read MutualTlsAuthentication Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MutualTlsAuthentication

Show MutualTlsAuthentication Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MutualTlsAuthentication

Generic MutualTlsAuthentication Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MutualTlsAuthentication

Associated Types

type Rep MutualTlsAuthentication :: Type -> Type #

NFData MutualTlsAuthentication Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MutualTlsAuthentication

Methods

rnf :: MutualTlsAuthentication -> () #

Hashable MutualTlsAuthentication Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MutualTlsAuthentication

FromJSON MutualTlsAuthentication Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MutualTlsAuthentication

type Rep MutualTlsAuthentication Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MutualTlsAuthentication

type Rep MutualTlsAuthentication = D1 ('MetaData "MutualTlsAuthentication" "Amazonka.APIGateway.Types.MutualTlsAuthentication" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "MutualTlsAuthentication'" 'PrefixI 'True) (S1 ('MetaSel ('Just "truststoreWarnings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "truststoreUri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "truststoreVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newMutualTlsAuthentication :: MutualTlsAuthentication Source #

Create a value of MutualTlsAuthentication 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:truststoreWarnings:MutualTlsAuthentication', mutualTlsAuthentication_truststoreWarnings - A list of warnings that API Gateway returns while processing your truststore. Invalid certificates produce warnings. Mutual TLS is still enabled, but some clients might not be able to access your API. To resolve warnings, upload a new truststore to S3, and then update you domain name to use the new version.

$sel:truststoreUri:MutualTlsAuthentication', mutualTlsAuthentication_truststoreUri - An Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example s3://bucket-name/key-name. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. To update the truststore, you must have permissions to access the S3 object.

$sel:truststoreVersion:MutualTlsAuthentication', mutualTlsAuthentication_truststoreVersion - The version of the S3 object that contains your truststore. To specify a version, you must have versioning enabled for the S3 bucket.

mutualTlsAuthentication_truststoreWarnings :: Lens' MutualTlsAuthentication (Maybe [Text]) Source #

A list of warnings that API Gateway returns while processing your truststore. Invalid certificates produce warnings. Mutual TLS is still enabled, but some clients might not be able to access your API. To resolve warnings, upload a new truststore to S3, and then update you domain name to use the new version.

mutualTlsAuthentication_truststoreUri :: Lens' MutualTlsAuthentication (Maybe Text) Source #

An Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example s3://bucket-name/key-name. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. To update the truststore, you must have permissions to access the S3 object.

mutualTlsAuthentication_truststoreVersion :: Lens' MutualTlsAuthentication (Maybe Text) Source #

The version of the S3 object that contains your truststore. To specify a version, you must have versioning enabled for the S3 bucket.

MutualTlsAuthenticationInput

data MutualTlsAuthenticationInput Source #

If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your custom domain name.

See: newMutualTlsAuthenticationInput smart constructor.

Constructors

MutualTlsAuthenticationInput' 

Fields

  • truststoreUri :: Maybe Text

    An Amazon S3 resource ARN that specifies the truststore for mutual TLS authentication, for example, s3://bucket-name/key-name. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. To update the truststore, you must have permissions to access the S3 object.

  • truststoreVersion :: Maybe Text

    The version of the S3 object that contains your truststore. To specify a version, you must have versioning enabled for the S3 bucket.

Instances

Instances details
Eq MutualTlsAuthenticationInput Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MutualTlsAuthenticationInput

Read MutualTlsAuthenticationInput Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MutualTlsAuthenticationInput

Show MutualTlsAuthenticationInput Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MutualTlsAuthenticationInput

Generic MutualTlsAuthenticationInput Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MutualTlsAuthenticationInput

Associated Types

type Rep MutualTlsAuthenticationInput :: Type -> Type #

NFData MutualTlsAuthenticationInput Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MutualTlsAuthenticationInput

Hashable MutualTlsAuthenticationInput Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MutualTlsAuthenticationInput

ToJSON MutualTlsAuthenticationInput Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MutualTlsAuthenticationInput

type Rep MutualTlsAuthenticationInput Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MutualTlsAuthenticationInput

type Rep MutualTlsAuthenticationInput = D1 ('MetaData "MutualTlsAuthenticationInput" "Amazonka.APIGateway.Types.MutualTlsAuthenticationInput" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "MutualTlsAuthenticationInput'" 'PrefixI 'True) (S1 ('MetaSel ('Just "truststoreUri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "truststoreVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newMutualTlsAuthenticationInput :: MutualTlsAuthenticationInput Source #

Create a value of MutualTlsAuthenticationInput 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:truststoreUri:MutualTlsAuthenticationInput', mutualTlsAuthenticationInput_truststoreUri - An Amazon S3 resource ARN that specifies the truststore for mutual TLS authentication, for example, s3://bucket-name/key-name. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. To update the truststore, you must have permissions to access the S3 object.

$sel:truststoreVersion:MutualTlsAuthenticationInput', mutualTlsAuthenticationInput_truststoreVersion - The version of the S3 object that contains your truststore. To specify a version, you must have versioning enabled for the S3 bucket.

mutualTlsAuthenticationInput_truststoreUri :: Lens' MutualTlsAuthenticationInput (Maybe Text) Source #

An Amazon S3 resource ARN that specifies the truststore for mutual TLS authentication, for example, s3://bucket-name/key-name. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. To update the truststore, you must have permissions to access the S3 object.

mutualTlsAuthenticationInput_truststoreVersion :: Lens' MutualTlsAuthenticationInput (Maybe Text) Source #

The version of the S3 object that contains your truststore. To specify a version, you must have versioning enabled for the S3 bucket.

PatchOperation

data PatchOperation Source #

A single patch operation to apply to the specified resource. Please refer to http://tools.ietf.org/html/rfc6902#section-4 for an explanation of how each operation is used.

See: newPatchOperation smart constructor.

Constructors

PatchOperation' 

Fields

  • op :: Maybe Op

    An update operation to be performed with this PATCH request. The valid value can be add, remove, replace or copy. Not all valid operations are supported for a given resource. Support of the operations depends on specific operational contexts. Attempts to apply an unsupported operation on a resource will return an error message.

  • path :: Maybe Text

    The op operation's target, as identified by a JSON Pointer value that references a location within the targeted resource. For example, if the target resource has an updateable property of {"name":"value"}, the path for this property is /name. If the name property value is a JSON object (e.g., {"name": {"child/name": "child-value"}}), the path for the child/name property will be /name/child~1name. Any slash ("/") character appearing in path names must be escaped with "~1", as shown in the example above. Each op operation can have only one path associated with it.

  • value :: Maybe Text

    The new target value of the update operation. It is applicable for the add or replace operation. When using AWS CLI to update a property of a JSON value, enclose the JSON object with a pair of single quotes in a Linux shell, e.g., '{"a": ...}'. In a Windows shell, see Using JSON for Parameters.

  • from :: Maybe Text

    The copy update operation's source as identified by a JSON-Pointer value referencing the location within the targeted resource to copy the value from. For example, to promote a canary deployment, you copy the canary deployment ID to the affiliated deployment ID by calling a PATCH request on a Stage resource with "op":"copy", "from":"/canarySettings/deploymentId" and "path":"/deploymentId".

Instances

Instances details
Eq PatchOperation Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PatchOperation

Read PatchOperation Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PatchOperation

Show PatchOperation Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PatchOperation

Generic PatchOperation Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PatchOperation

Associated Types

type Rep PatchOperation :: Type -> Type #

NFData PatchOperation Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PatchOperation

Methods

rnf :: PatchOperation -> () #

Hashable PatchOperation Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PatchOperation

ToJSON PatchOperation Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PatchOperation

type Rep PatchOperation Source # 
Instance details

Defined in Amazonka.APIGateway.Types.PatchOperation

type Rep PatchOperation = D1 ('MetaData "PatchOperation" "Amazonka.APIGateway.Types.PatchOperation" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "PatchOperation'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "op") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Op)) :*: S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "from") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newPatchOperation :: PatchOperation Source #

Create a value of PatchOperation 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:op:PatchOperation', patchOperation_op - An update operation to be performed with this PATCH request. The valid value can be add, remove, replace or copy. Not all valid operations are supported for a given resource. Support of the operations depends on specific operational contexts. Attempts to apply an unsupported operation on a resource will return an error message.

$sel:path:PatchOperation', patchOperation_path - The op operation's target, as identified by a JSON Pointer value that references a location within the targeted resource. For example, if the target resource has an updateable property of {"name":"value"}, the path for this property is /name. If the name property value is a JSON object (e.g., {"name": {"child/name": "child-value"}}), the path for the child/name property will be /name/child~1name. Any slash ("/") character appearing in path names must be escaped with "~1", as shown in the example above. Each op operation can have only one path associated with it.

$sel:value:PatchOperation', patchOperation_value - The new target value of the update operation. It is applicable for the add or replace operation. When using AWS CLI to update a property of a JSON value, enclose the JSON object with a pair of single quotes in a Linux shell, e.g., '{"a": ...}'. In a Windows shell, see Using JSON for Parameters.

$sel:from:PatchOperation', patchOperation_from - The copy update operation's source as identified by a JSON-Pointer value referencing the location within the targeted resource to copy the value from. For example, to promote a canary deployment, you copy the canary deployment ID to the affiliated deployment ID by calling a PATCH request on a Stage resource with "op":"copy", "from":"/canarySettings/deploymentId" and "path":"/deploymentId".

patchOperation_op :: Lens' PatchOperation (Maybe Op) Source #

An update operation to be performed with this PATCH request. The valid value can be add, remove, replace or copy. Not all valid operations are supported for a given resource. Support of the operations depends on specific operational contexts. Attempts to apply an unsupported operation on a resource will return an error message.

patchOperation_path :: Lens' PatchOperation (Maybe Text) Source #

The op operation's target, as identified by a JSON Pointer value that references a location within the targeted resource. For example, if the target resource has an updateable property of {"name":"value"}, the path for this property is /name. If the name property value is a JSON object (e.g., {"name": {"child/name": "child-value"}}), the path for the child/name property will be /name/child~1name. Any slash ("/") character appearing in path names must be escaped with "~1", as shown in the example above. Each op operation can have only one path associated with it.

patchOperation_value :: Lens' PatchOperation (Maybe Text) Source #

The new target value of the update operation. It is applicable for the add or replace operation. When using AWS CLI to update a property of a JSON value, enclose the JSON object with a pair of single quotes in a Linux shell, e.g., '{"a": ...}'. In a Windows shell, see Using JSON for Parameters.

patchOperation_from :: Lens' PatchOperation (Maybe Text) Source #

The copy update operation's source as identified by a JSON-Pointer value referencing the location within the targeted resource to copy the value from. For example, to promote a canary deployment, you copy the canary deployment ID to the affiliated deployment ID by calling a PATCH request on a Stage resource with "op":"copy", "from":"/canarySettings/deploymentId" and "path":"/deploymentId".

QuotaSettings

data QuotaSettings Source #

Quotas configured for a usage plan.

See: newQuotaSettings smart constructor.

Constructors

QuotaSettings' 

Fields

  • offset :: Maybe Int

    The day that a time period starts. For example, with a time period of WEEK, an offset of 0 starts on Sunday, and an offset of 1 starts on Monday.

  • period :: Maybe QuotaPeriodType

    The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".

  • limit :: Maybe Int

    The maximum number of requests that can be made in a given time period.

Instances

Instances details
Eq QuotaSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaSettings

Read QuotaSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaSettings

Show QuotaSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaSettings

Generic QuotaSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaSettings

Associated Types

type Rep QuotaSettings :: Type -> Type #

NFData QuotaSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaSettings

Methods

rnf :: QuotaSettings -> () #

Hashable QuotaSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaSettings

ToJSON QuotaSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaSettings

FromJSON QuotaSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaSettings

type Rep QuotaSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaSettings

type Rep QuotaSettings = D1 ('MetaData "QuotaSettings" "Amazonka.APIGateway.Types.QuotaSettings" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "QuotaSettings'" 'PrefixI 'True) (S1 ('MetaSel ('Just "offset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "period") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe QuotaPeriodType)) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))))

newQuotaSettings :: QuotaSettings Source #

Create a value of QuotaSettings 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:offset:QuotaSettings', quotaSettings_offset - The day that a time period starts. For example, with a time period of WEEK, an offset of 0 starts on Sunday, and an offset of 1 starts on Monday.

$sel:period:QuotaSettings', quotaSettings_period - The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".

$sel:limit:QuotaSettings', quotaSettings_limit - The maximum number of requests that can be made in a given time period.

quotaSettings_offset :: Lens' QuotaSettings (Maybe Int) Source #

The day that a time period starts. For example, with a time period of WEEK, an offset of 0 starts on Sunday, and an offset of 1 starts on Monday.

quotaSettings_period :: Lens' QuotaSettings (Maybe QuotaPeriodType) Source #

The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".

quotaSettings_limit :: Lens' QuotaSettings (Maybe Int) Source #

The maximum number of requests that can be made in a given time period.

RequestValidator

data RequestValidator Source #

A set of validation rules for incoming Method requests.

In OpenAPI, a RequestValidator of an API is defined by the x-amazon-apigateway-request-validators.requestValidator object. It the referenced using the x-amazon-apigateway-request-validator property.

Enable Basic Request Validation in API Gateway

See: newRequestValidator smart constructor.

Constructors

RequestValidator' 

Fields

Instances

Instances details
Eq RequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RequestValidator

Read RequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RequestValidator

Show RequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RequestValidator

Generic RequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RequestValidator

Associated Types

type Rep RequestValidator :: Type -> Type #

NFData RequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RequestValidator

Methods

rnf :: RequestValidator -> () #

Hashable RequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RequestValidator

FromJSON RequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RequestValidator

type Rep RequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RequestValidator

type Rep RequestValidator = D1 ('MetaData "RequestValidator" "Amazonka.APIGateway.Types.RequestValidator" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "RequestValidator'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "validateRequestParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "validateRequestBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newRequestValidator :: RequestValidator Source #

Create a value of RequestValidator 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:validateRequestParameters:RequestValidator', requestValidator_validateRequestParameters - A Boolean flag to indicate whether to validate request parameters (true) or not (false).

$sel:name:RequestValidator', requestValidator_name - The name of this RequestValidator

$sel:validateRequestBody:RequestValidator', requestValidator_validateRequestBody - A Boolean flag to indicate whether to validate a request body according to the configured Model schema.

$sel:id:RequestValidator', requestValidator_id - The identifier of this RequestValidator.

requestValidator_validateRequestParameters :: Lens' RequestValidator (Maybe Bool) Source #

A Boolean flag to indicate whether to validate request parameters (true) or not (false).

requestValidator_name :: Lens' RequestValidator (Maybe Text) Source #

The name of this RequestValidator

requestValidator_validateRequestBody :: Lens' RequestValidator (Maybe Bool) Source #

A Boolean flag to indicate whether to validate a request body according to the configured Model schema.

requestValidator_id :: Lens' RequestValidator (Maybe Text) Source #

The identifier of this RequestValidator.

Resource

data Resource Source #

Represents an API resource.

Create an API

See: newResource smart constructor.

Constructors

Resource' 

Fields

  • pathPart :: Maybe Text

    The last path segment for this resource.

  • path :: Maybe Text

    The full path for this resource.

  • id :: Maybe Text

    The resource's identifier.

  • resourceMethods :: Maybe (HashMap Text Method)

    Gets an API resource's method of a given HTTP verb.

    The resource methods are a map of methods indexed by methods' HTTP verbs enabled on the resource. This method map is included in the 200 OK response of the GET /restapis/{restapi_id}/resources/{resource_id} or GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods request.

    Example: Get the GET method of an API resource

    Request
    GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20170223T031827Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20170223/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
    Response
    { "_links": { "curies": [ { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", "name": "integration", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", "name": "integrationresponse", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html", "name": "method", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", "name": "methodresponse", "templated": true } ], "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET", "name": "GET", "title": "GET" }, "integration:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "method:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET" }, "method:integration": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "method:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", "name": "200", "title": "200" }, "method:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET" }, "methodresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}", "templated": true } }, "apiKeyRequired": false, "authorizationType": "NONE", "httpMethod": "GET", "_embedded": { "method:integration": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "integration:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "integration:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", "name": "200", "title": "200" }, "integration:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "integrationresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}", "templated": true } }, "cacheKeyParameters": [], "cacheNamespace": "3kzxbg5sa2", "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "httpMethod": "POST", "passthroughBehavior": "WHEN_NO_MATCH", "requestParameters": { "integration.request.header.Content-Type": "'application/x-amz-json-1.1'" }, "requestTemplates": { "application/json": "{\n}" }, "type": "AWS", "uri": "arn:aws:apigateway:us-east-1:kinesis:action/ListStreams", "_embedded": { "integration:responses": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", "name": "200", "title": "200" }, "integrationresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" }, "integrationresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'" }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n" }, "statusCode": "200" } } }, "method:responses": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", "name": "200", "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" } }, "responseModels": { "application/json": "Empty" }, "responseParameters": { "method.response.header.Content-Type": false }, "statusCode": "200" } } }

    If the OPTIONS is enabled on the resource, you can follow the example here to get that method. Just replace the GET of the last path segment in the request URL with OPTIONS.

  • parentId :: Maybe Text

    The parent resource's identifier.

Instances

Instances details
Eq Resource Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Resource

Read Resource Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Resource

Show Resource Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Resource

Generic Resource Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Resource

Associated Types

type Rep Resource :: Type -> Type #

Methods

from :: Resource -> Rep Resource x #

to :: Rep Resource x -> Resource #

NFData Resource Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Resource

Methods

rnf :: Resource -> () #

Hashable Resource Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Resource

Methods

hashWithSalt :: Int -> Resource -> Int #

hash :: Resource -> Int #

FromJSON Resource Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Resource

type Rep Resource Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Resource

type Rep Resource = D1 ('MetaData "Resource" "Amazonka.APIGateway.Types.Resource" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "Resource'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "pathPart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "resourceMethods") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Method))) :*: S1 ('MetaSel ('Just "parentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newResource :: Resource Source #

Create a value of Resource 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:pathPart:Resource', resource_pathPart - The last path segment for this resource.

$sel:path:Resource', resource_path - The full path for this resource.

$sel:id:Resource', resource_id - The resource's identifier.

$sel:resourceMethods:Resource', resource_resourceMethods - Gets an API resource's method of a given HTTP verb.

The resource methods are a map of methods indexed by methods' HTTP verbs enabled on the resource. This method map is included in the 200 OK response of the GET /restapis/{restapi_id}/resources/{resource_id} or GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods request.

Example: Get the GET method of an API resource

Request
GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20170223T031827Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20170223/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
Response
{ "_links": { "curies": [ { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", "name": "integration", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", "name": "integrationresponse", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html", "name": "method", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", "name": "methodresponse", "templated": true } ], "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET", "name": "GET", "title": "GET" }, "integration:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "method:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET" }, "method:integration": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "method:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", "name": "200", "title": "200" }, "method:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET" }, "methodresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}", "templated": true } }, "apiKeyRequired": false, "authorizationType": "NONE", "httpMethod": "GET", "_embedded": { "method:integration": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "integration:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "integration:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", "name": "200", "title": "200" }, "integration:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "integrationresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}", "templated": true } }, "cacheKeyParameters": [], "cacheNamespace": "3kzxbg5sa2", "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "httpMethod": "POST", "passthroughBehavior": "WHEN_NO_MATCH", "requestParameters": { "integration.request.header.Content-Type": "'application/x-amz-json-1.1'" }, "requestTemplates": { "application/json": "{\n}" }, "type": "AWS", "uri": "arn:aws:apigateway:us-east-1:kinesis:action/ListStreams", "_embedded": { "integration:responses": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", "name": "200", "title": "200" }, "integrationresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" }, "integrationresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'" }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n" }, "statusCode": "200" } } }, "method:responses": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", "name": "200", "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" } }, "responseModels": { "application/json": "Empty" }, "responseParameters": { "method.response.header.Content-Type": false }, "statusCode": "200" } } }

If the OPTIONS is enabled on the resource, you can follow the example here to get that method. Just replace the GET of the last path segment in the request URL with OPTIONS.

$sel:parentId:Resource', resource_parentId - The parent resource's identifier.

resource_pathPart :: Lens' Resource (Maybe Text) Source #

The last path segment for this resource.

resource_path :: Lens' Resource (Maybe Text) Source #

The full path for this resource.

resource_id :: Lens' Resource (Maybe Text) Source #

The resource's identifier.

resource_resourceMethods :: Lens' Resource (Maybe (HashMap Text Method)) Source #

Gets an API resource's method of a given HTTP verb.

The resource methods are a map of methods indexed by methods' HTTP verbs enabled on the resource. This method map is included in the 200 OK response of the GET /restapis/{restapi_id}/resources/{resource_id} or GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods request.

Example: Get the GET method of an API resource

Request
GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20170223T031827Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20170223/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
Response
{ "_links": { "curies": [ { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", "name": "integration", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", "name": "integrationresponse", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html", "name": "method", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html", "name": "methodresponse", "templated": true } ], "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET", "name": "GET", "title": "GET" }, "integration:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "method:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET" }, "method:integration": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "method:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", "name": "200", "title": "200" }, "method:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET" }, "methodresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}", "templated": true } }, "apiKeyRequired": false, "authorizationType": "NONE", "httpMethod": "GET", "_embedded": { "method:integration": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "integration:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "integration:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", "name": "200", "title": "200" }, "integration:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration" }, "integrationresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}", "templated": true } }, "cacheKeyParameters": [], "cacheNamespace": "3kzxbg5sa2", "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "httpMethod": "POST", "passthroughBehavior": "WHEN_NO_MATCH", "requestParameters": { "integration.request.header.Content-Type": "'application/x-amz-json-1.1'" }, "requestTemplates": { "application/json": "{\n}" }, "type": "AWS", "uri": "arn:aws:apigateway:us-east-1:kinesis:action/ListStreams", "_embedded": { "integration:responses": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200", "name": "200", "title": "200" }, "integrationresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" }, "integrationresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200" } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'" }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n" }, "statusCode": "200" } } }, "method:responses": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200", "name": "200", "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200" } }, "responseModels": { "application/json": "Empty" }, "responseParameters": { "method.response.header.Content-Type": false }, "statusCode": "200" } } }

If the OPTIONS is enabled on the resource, you can follow the example here to get that method. Just replace the GET of the last path segment in the request URL with OPTIONS.

resource_parentId :: Lens' Resource (Maybe Text) Source #

The parent resource's identifier.

RestApi

data RestApi Source #

Represents a REST API.

Create an API

See: newRestApi smart constructor.

Constructors

RestApi' 

Fields

  • minimumCompressionSize :: Maybe Int

    A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.

  • disableExecuteApiEndpoint :: Maybe Bool

    Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

  • binaryMediaTypes :: Maybe [Text]

    The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.

  • warnings :: Maybe [Text]

    The warning messages reported when failonwarnings is turned on during API import.

  • createdDate :: Maybe POSIX

    The timestamp when the API was created.

  • name :: Maybe Text

    The API's name.

  • version :: Maybe Text

    A version identifier for the API.

  • apiKeySource :: Maybe ApiKeySourceType

    The source of the API key for metering requests according to a usage plan. Valid values are:

    • HEADER to read the API key from the X-API-Key header of a request.
    • AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.
  • id :: Maybe Text

    The API's identifier. This identifier is unique across all of your APIs in API Gateway.

  • policy :: Maybe Text

    A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.

  • endpointConfiguration :: Maybe EndpointConfiguration

    The endpoint configuration of this RestApi showing the endpoint types of the API.

  • description :: Maybe Text

    The API's description.

  • tags :: Maybe (HashMap Text Text)

    The collection of tags. Each tag element is associated with a given resource.

Instances

Instances details
Eq RestApi Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RestApi

Methods

(==) :: RestApi -> RestApi -> Bool #

(/=) :: RestApi -> RestApi -> Bool #

Read RestApi Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RestApi

Show RestApi Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RestApi

Generic RestApi Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RestApi

Associated Types

type Rep RestApi :: Type -> Type #

Methods

from :: RestApi -> Rep RestApi x #

to :: Rep RestApi x -> RestApi #

NFData RestApi Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RestApi

Methods

rnf :: RestApi -> () #

Hashable RestApi Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RestApi

Methods

hashWithSalt :: Int -> RestApi -> Int #

hash :: RestApi -> Int #

FromJSON RestApi Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RestApi

type Rep RestApi Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RestApi

type Rep RestApi = D1 ('MetaData "RestApi" "Amazonka.APIGateway.Types.RestApi" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "RestApi'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "minimumCompressionSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "disableExecuteApiEndpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "binaryMediaTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))) :*: (S1 ('MetaSel ('Just "warnings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "createdDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "apiKeySource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ApiKeySourceType)) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "endpointConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EndpointConfiguration))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))))))))

newRestApi :: RestApi Source #

Create a value of RestApi 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:minimumCompressionSize:RestApi', restApi_minimumCompressionSize - A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.

$sel:disableExecuteApiEndpoint:RestApi', restApi_disableExecuteApiEndpoint - Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

$sel:binaryMediaTypes:RestApi', restApi_binaryMediaTypes - The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.

$sel:warnings:RestApi', restApi_warnings - The warning messages reported when failonwarnings is turned on during API import.

$sel:createdDate:RestApi', restApi_createdDate - The timestamp when the API was created.

$sel:name:RestApi', restApi_name - The API's name.

$sel:version:RestApi', restApi_version - A version identifier for the API.

$sel:apiKeySource:RestApi', restApi_apiKeySource - The source of the API key for metering requests according to a usage plan. Valid values are:

  • HEADER to read the API key from the X-API-Key header of a request.
  • AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.

$sel:id:RestApi', restApi_id - The API's identifier. This identifier is unique across all of your APIs in API Gateway.

$sel:policy:RestApi', restApi_policy - A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.

$sel:endpointConfiguration:RestApi', restApi_endpointConfiguration - The endpoint configuration of this RestApi showing the endpoint types of the API.

$sel:description:RestApi', restApi_description - The API's description.

$sel:tags:RestApi', restApi_tags - The collection of tags. Each tag element is associated with a given resource.

restApi_minimumCompressionSize :: Lens' RestApi (Maybe Int) Source #

A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.

restApi_disableExecuteApiEndpoint :: Lens' RestApi (Maybe Bool) Source #

Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

restApi_binaryMediaTypes :: Lens' RestApi (Maybe [Text]) Source #

The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.

restApi_warnings :: Lens' RestApi (Maybe [Text]) Source #

The warning messages reported when failonwarnings is turned on during API import.

restApi_createdDate :: Lens' RestApi (Maybe UTCTime) Source #

The timestamp when the API was created.

restApi_version :: Lens' RestApi (Maybe Text) Source #

A version identifier for the API.

restApi_apiKeySource :: Lens' RestApi (Maybe ApiKeySourceType) Source #

The source of the API key for metering requests according to a usage plan. Valid values are:

  • HEADER to read the API key from the X-API-Key header of a request.
  • AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.

restApi_id :: Lens' RestApi (Maybe Text) Source #

The API's identifier. This identifier is unique across all of your APIs in API Gateway.

restApi_policy :: Lens' RestApi (Maybe Text) Source #

A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.

restApi_endpointConfiguration :: Lens' RestApi (Maybe EndpointConfiguration) Source #

The endpoint configuration of this RestApi showing the endpoint types of the API.

restApi_description :: Lens' RestApi (Maybe Text) Source #

The API's description.

restApi_tags :: Lens' RestApi (Maybe (HashMap Text Text)) Source #

The collection of tags. Each tag element is associated with a given resource.

SdkConfigurationProperty

data SdkConfigurationProperty Source #

A configuration property of an SDK type.

See: newSdkConfigurationProperty smart constructor.

Constructors

SdkConfigurationProperty' 

Fields

  • friendlyName :: Maybe Text

    The user-friendly name of an SdkType configuration property.

  • required :: Maybe Bool

    A boolean flag of an SdkType configuration property to indicate if the associated SDK configuration property is required (true) or not (false).

  • name :: Maybe Text

    The name of a an SdkType configuration property.

  • defaultValue :: Maybe Text

    The default value of an SdkType configuration property.

  • description :: Maybe Text

    The description of an SdkType configuration property.

Instances

Instances details
Eq SdkConfigurationProperty Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SdkConfigurationProperty

Read SdkConfigurationProperty Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SdkConfigurationProperty

Show SdkConfigurationProperty Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SdkConfigurationProperty

Generic SdkConfigurationProperty Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SdkConfigurationProperty

Associated Types

type Rep SdkConfigurationProperty :: Type -> Type #

NFData SdkConfigurationProperty Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SdkConfigurationProperty

Hashable SdkConfigurationProperty Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SdkConfigurationProperty

FromJSON SdkConfigurationProperty Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SdkConfigurationProperty

type Rep SdkConfigurationProperty Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SdkConfigurationProperty

type Rep SdkConfigurationProperty = D1 ('MetaData "SdkConfigurationProperty" "Amazonka.APIGateway.Types.SdkConfigurationProperty" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "SdkConfigurationProperty'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "friendlyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "required") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "defaultValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newSdkConfigurationProperty :: SdkConfigurationProperty Source #

Create a value of SdkConfigurationProperty 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:friendlyName:SdkConfigurationProperty', sdkConfigurationProperty_friendlyName - The user-friendly name of an SdkType configuration property.

$sel:required:SdkConfigurationProperty', sdkConfigurationProperty_required - A boolean flag of an SdkType configuration property to indicate if the associated SDK configuration property is required (true) or not (false).

$sel:name:SdkConfigurationProperty', sdkConfigurationProperty_name - The name of a an SdkType configuration property.

$sel:defaultValue:SdkConfigurationProperty', sdkConfigurationProperty_defaultValue - The default value of an SdkType configuration property.

$sel:description:SdkConfigurationProperty', sdkConfigurationProperty_description - The description of an SdkType configuration property.

sdkConfigurationProperty_friendlyName :: Lens' SdkConfigurationProperty (Maybe Text) Source #

The user-friendly name of an SdkType configuration property.

sdkConfigurationProperty_required :: Lens' SdkConfigurationProperty (Maybe Bool) Source #

A boolean flag of an SdkType configuration property to indicate if the associated SDK configuration property is required (true) or not (false).

sdkConfigurationProperty_name :: Lens' SdkConfigurationProperty (Maybe Text) Source #

The name of a an SdkType configuration property.

sdkConfigurationProperty_defaultValue :: Lens' SdkConfigurationProperty (Maybe Text) Source #

The default value of an SdkType configuration property.

sdkConfigurationProperty_description :: Lens' SdkConfigurationProperty (Maybe Text) Source #

The description of an SdkType configuration property.

SdkType

data SdkType Source #

A type of SDK that API Gateway can generate.

See: newSdkType smart constructor.

Constructors

SdkType' 

Fields

Instances

Instances details
Eq SdkType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SdkType

Methods

(==) :: SdkType -> SdkType -> Bool #

(/=) :: SdkType -> SdkType -> Bool #

Read SdkType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SdkType

Show SdkType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SdkType

Generic SdkType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SdkType

Associated Types

type Rep SdkType :: Type -> Type #

Methods

from :: SdkType -> Rep SdkType x #

to :: Rep SdkType x -> SdkType #

NFData SdkType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SdkType

Methods

rnf :: SdkType -> () #

Hashable SdkType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SdkType

Methods

hashWithSalt :: Int -> SdkType -> Int #

hash :: SdkType -> Int #

FromJSON SdkType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SdkType

type Rep SdkType Source # 
Instance details

Defined in Amazonka.APIGateway.Types.SdkType

type Rep SdkType = D1 ('MetaData "SdkType" "Amazonka.APIGateway.Types.SdkType" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "SdkType'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "friendlyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "configurationProperties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SdkConfigurationProperty]))) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newSdkType :: SdkType Source #

Create a value of SdkType 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:friendlyName:SdkType', sdkType_friendlyName - The user-friendly name of an SdkType instance.

$sel:configurationProperties:SdkType', sdkType_configurationProperties - A list of configuration properties of an SdkType.

$sel:id:SdkType', sdkType_id - The identifier of an SdkType instance.

$sel:description:SdkType', sdkType_description - The description of an SdkType.

sdkType_friendlyName :: Lens' SdkType (Maybe Text) Source #

The user-friendly name of an SdkType instance.

sdkType_configurationProperties :: Lens' SdkType (Maybe [SdkConfigurationProperty]) Source #

A list of configuration properties of an SdkType.

sdkType_id :: Lens' SdkType (Maybe Text) Source #

The identifier of an SdkType instance.

sdkType_description :: Lens' SdkType (Maybe Text) Source #

The description of an SdkType.

Stage

data Stage Source #

Represents a unique identifier for a version of a deployed RestApi that is callable by users.

Deploy an API

See: newStage smart constructor.

Constructors

Stage' 

Fields

Instances

Instances details
Eq Stage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Stage

Methods

(==) :: Stage -> Stage -> Bool #

(/=) :: Stage -> Stage -> Bool #

Read Stage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Stage

Show Stage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Stage

Methods

showsPrec :: Int -> Stage -> ShowS #

show :: Stage -> String #

showList :: [Stage] -> ShowS #

Generic Stage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Stage

Associated Types

type Rep Stage :: Type -> Type #

Methods

from :: Stage -> Rep Stage x #

to :: Rep Stage x -> Stage #

NFData Stage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Stage

Methods

rnf :: Stage -> () #

Hashable Stage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Stage

Methods

hashWithSalt :: Int -> Stage -> Int #

hash :: Stage -> Int #

FromJSON Stage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Stage

type Rep Stage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Stage

type Rep Stage = D1 ('MetaData "Stage" "Amazonka.APIGateway.Types.Stage" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "Stage'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "deploymentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "variables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "accessLogSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AccessLogSettings)) :*: S1 ('MetaSel ('Just "documentationVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "clientCertificateId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tracingEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "createdDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "cacheClusterStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CacheClusterStatus))))) :*: (((S1 ('MetaSel ('Just "methodSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text MethodSetting))) :*: S1 ('MetaSel ('Just "lastUpdatedDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "cacheClusterSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CacheClusterSize)) :*: S1 ('MetaSel ('Just "webAclArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "canarySettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CanarySettings)) :*: S1 ('MetaSel ('Just "cacheClusterEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "stageName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))))))))

newStage :: Stage Source #

Create a value of Stage 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:deploymentId:Stage', stage_deploymentId - The identifier of the Deployment that the stage points to.

$sel:variables:Stage', stage_variables - A map that defines the stage variables for a Stage resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

$sel:accessLogSettings:Stage', stage_accessLogSettings - Settings for logging access in this stage.

$sel:documentationVersion:Stage', stage_documentationVersion - The version of the associated API documentation.

$sel:clientCertificateId:Stage', stage_clientCertificateId - The identifier of a client certificate for an API stage.

$sel:tracingEnabled:Stage', stage_tracingEnabled - Specifies whether active tracing with X-ray is enabled for the Stage.

$sel:createdDate:Stage', stage_createdDate - The timestamp when the stage was created.

$sel:cacheClusterStatus:Stage', stage_cacheClusterStatus - The status of the cache cluster for the stage, if enabled.

$sel:methodSettings:Stage', stage_methodSettings - A map that defines the method settings for a Stage resource. Keys (designated as /{method_setting_key below) are method paths defined as {resource_path}/{http_method} for an individual method override, or /\*/\* for overriding all methods in the stage.

$sel:lastUpdatedDate:Stage', stage_lastUpdatedDate - The timestamp when the stage last updated.

$sel:cacheClusterSize:Stage', stage_cacheClusterSize - The size of the cache cluster for the stage, if enabled.

$sel:webAclArn:Stage', stage_webAclArn - The ARN of the WebAcl associated with the Stage.

$sel:canarySettings:Stage', stage_canarySettings - Settings for the canary deployment in this stage.

$sel:cacheClusterEnabled:Stage', stage_cacheClusterEnabled - Specifies whether a cache cluster is enabled for the stage.

$sel:stageName:Stage', stage_stageName - The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.

$sel:description:Stage', stage_description - The stage's description.

$sel:tags:Stage', stage_tags - The collection of tags. Each tag element is associated with a given resource.

stage_deploymentId :: Lens' Stage (Maybe Text) Source #

The identifier of the Deployment that the stage points to.

stage_variables :: Lens' Stage (Maybe (HashMap Text Text)) Source #

A map that defines the stage variables for a Stage resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

stage_accessLogSettings :: Lens' Stage (Maybe AccessLogSettings) Source #

Settings for logging access in this stage.

stage_documentationVersion :: Lens' Stage (Maybe Text) Source #

The version of the associated API documentation.

stage_clientCertificateId :: Lens' Stage (Maybe Text) Source #

The identifier of a client certificate for an API stage.

stage_tracingEnabled :: Lens' Stage (Maybe Bool) Source #

Specifies whether active tracing with X-ray is enabled for the Stage.

stage_createdDate :: Lens' Stage (Maybe UTCTime) Source #

The timestamp when the stage was created.

stage_cacheClusterStatus :: Lens' Stage (Maybe CacheClusterStatus) Source #

The status of the cache cluster for the stage, if enabled.

stage_methodSettings :: Lens' Stage (Maybe (HashMap Text MethodSetting)) Source #

A map that defines the method settings for a Stage resource. Keys (designated as /{method_setting_key below) are method paths defined as {resource_path}/{http_method} for an individual method override, or /\*/\* for overriding all methods in the stage.

stage_lastUpdatedDate :: Lens' Stage (Maybe UTCTime) Source #

The timestamp when the stage last updated.

stage_cacheClusterSize :: Lens' Stage (Maybe CacheClusterSize) Source #

The size of the cache cluster for the stage, if enabled.

stage_webAclArn :: Lens' Stage (Maybe Text) Source #

The ARN of the WebAcl associated with the Stage.

stage_canarySettings :: Lens' Stage (Maybe CanarySettings) Source #

Settings for the canary deployment in this stage.

stage_cacheClusterEnabled :: Lens' Stage (Maybe Bool) Source #

Specifies whether a cache cluster is enabled for the stage.

stage_stageName :: Lens' Stage (Maybe Text) Source #

The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.

stage_description :: Lens' Stage (Maybe Text) Source #

The stage's description.

stage_tags :: Lens' Stage (Maybe (HashMap Text Text)) Source #

The collection of tags. Each tag element is associated with a given resource.

StageKey

data StageKey Source #

A reference to a unique stage identified in the format {restApiId}/{stage}.

See: newStageKey smart constructor.

Constructors

StageKey' 

Fields

Instances

Instances details
Eq StageKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.StageKey

Read StageKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.StageKey

Show StageKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.StageKey

Generic StageKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.StageKey

Associated Types

type Rep StageKey :: Type -> Type #

Methods

from :: StageKey -> Rep StageKey x #

to :: Rep StageKey x -> StageKey #

NFData StageKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.StageKey

Methods

rnf :: StageKey -> () #

Hashable StageKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.StageKey

Methods

hashWithSalt :: Int -> StageKey -> Int #

hash :: StageKey -> Int #

ToJSON StageKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.StageKey

type Rep StageKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.StageKey

type Rep StageKey = D1 ('MetaData "StageKey" "Amazonka.APIGateway.Types.StageKey" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "StageKey'" 'PrefixI 'True) (S1 ('MetaSel ('Just "restApiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "stageName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newStageKey :: StageKey Source #

Create a value of StageKey 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:restApiId:StageKey', stageKey_restApiId - The string identifier of the associated RestApi.

$sel:stageName:StageKey', stageKey_stageName - The stage name associated with the stage key.

stageKey_restApiId :: Lens' StageKey (Maybe Text) Source #

The string identifier of the associated RestApi.

stageKey_stageName :: Lens' StageKey (Maybe Text) Source #

The stage name associated with the stage key.

ThrottleSettings

data ThrottleSettings Source #

The API request rate limits.

See: newThrottleSettings smart constructor.

Constructors

ThrottleSettings' 

Fields

  • burstLimit :: Maybe Int

    The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.

  • rateLimit :: Maybe Double

    The API request steady-state rate limit.

Instances

Instances details
Eq ThrottleSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ThrottleSettings

Read ThrottleSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ThrottleSettings

Show ThrottleSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ThrottleSettings

Generic ThrottleSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ThrottleSettings

Associated Types

type Rep ThrottleSettings :: Type -> Type #

NFData ThrottleSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ThrottleSettings

Methods

rnf :: ThrottleSettings -> () #

Hashable ThrottleSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ThrottleSettings

ToJSON ThrottleSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ThrottleSettings

FromJSON ThrottleSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ThrottleSettings

type Rep ThrottleSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ThrottleSettings

type Rep ThrottleSettings = D1 ('MetaData "ThrottleSettings" "Amazonka.APIGateway.Types.ThrottleSettings" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "ThrottleSettings'" 'PrefixI 'True) (S1 ('MetaSel ('Just "burstLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "rateLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))))

newThrottleSettings :: ThrottleSettings Source #

Create a value of ThrottleSettings 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:burstLimit:ThrottleSettings', throttleSettings_burstLimit - The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.

$sel:rateLimit:ThrottleSettings', throttleSettings_rateLimit - The API request steady-state rate limit.

throttleSettings_burstLimit :: Lens' ThrottleSettings (Maybe Int) Source #

The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.

throttleSettings_rateLimit :: Lens' ThrottleSettings (Maybe Double) Source #

The API request steady-state rate limit.

TlsConfig

data TlsConfig Source #

See: newTlsConfig smart constructor.

Constructors

TlsConfig' 

Fields

  • insecureSkipVerification :: Maybe Bool

    Specifies whether or not API Gateway skips verification that the certificate for an integration endpoint is issued by a supported certificate authority. This isn’t recommended, but it enables you to use certificates that are signed by private certificate authorities, or certificates that are self-signed. If enabled, API Gateway still performs basic certificate validation, which includes checking the certificate's expiration date, hostname, and presence of a root certificate authority. Supported only for HTTP and HTTP_PROXY integrations.

Instances

Instances details
Eq TlsConfig Source # 
Instance details

Defined in Amazonka.APIGateway.Types.TlsConfig

Read TlsConfig Source # 
Instance details

Defined in Amazonka.APIGateway.Types.TlsConfig

Show TlsConfig Source # 
Instance details

Defined in Amazonka.APIGateway.Types.TlsConfig

Generic TlsConfig Source # 
Instance details

Defined in Amazonka.APIGateway.Types.TlsConfig

Associated Types

type Rep TlsConfig :: Type -> Type #

NFData TlsConfig Source # 
Instance details

Defined in Amazonka.APIGateway.Types.TlsConfig

Methods

rnf :: TlsConfig -> () #

Hashable TlsConfig Source # 
Instance details

Defined in Amazonka.APIGateway.Types.TlsConfig

ToJSON TlsConfig Source # 
Instance details

Defined in Amazonka.APIGateway.Types.TlsConfig

FromJSON TlsConfig Source # 
Instance details

Defined in Amazonka.APIGateway.Types.TlsConfig

type Rep TlsConfig Source # 
Instance details

Defined in Amazonka.APIGateway.Types.TlsConfig

type Rep TlsConfig = D1 ('MetaData "TlsConfig" "Amazonka.APIGateway.Types.TlsConfig" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "TlsConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "insecureSkipVerification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))

newTlsConfig :: TlsConfig Source #

Create a value of TlsConfig 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:insecureSkipVerification:TlsConfig', tlsConfig_insecureSkipVerification - Specifies whether or not API Gateway skips verification that the certificate for an integration endpoint is issued by a supported certificate authority. This isn’t recommended, but it enables you to use certificates that are signed by private certificate authorities, or certificates that are self-signed. If enabled, API Gateway still performs basic certificate validation, which includes checking the certificate's expiration date, hostname, and presence of a root certificate authority. Supported only for HTTP and HTTP_PROXY integrations.

tlsConfig_insecureSkipVerification :: Lens' TlsConfig (Maybe Bool) Source #

Specifies whether or not API Gateway skips verification that the certificate for an integration endpoint is issued by a supported certificate authority. This isn’t recommended, but it enables you to use certificates that are signed by private certificate authorities, or certificates that are self-signed. If enabled, API Gateway still performs basic certificate validation, which includes checking the certificate's expiration date, hostname, and presence of a root certificate authority. Supported only for HTTP and HTTP_PROXY integrations.

Usage

data Usage Source #

Represents the usage data of a usage plan.

Create and Use Usage Plans, Manage Usage in a Usage Plan

See: newUsage smart constructor.

Constructors

Usage' 

Fields

  • usagePlanId :: Maybe Text

    The plan Id associated with this usage data.

  • endDate :: Maybe Text

    The ending date of the usage data.

  • items :: Maybe (HashMap Text [[Integer]])

    The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API keys in a usage plan. For example, {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, where {api_key} stands for an API key value and the daily log entry is of the format [used quota, remaining quota].

  • startDate :: Maybe Text

    The starting date of the usage data.

  • position :: Maybe Text
     

Instances

Instances details
Eq Usage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Usage

Methods

(==) :: Usage -> Usage -> Bool #

(/=) :: Usage -> Usage -> Bool #

Read Usage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Usage

Show Usage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Usage

Methods

showsPrec :: Int -> Usage -> ShowS #

show :: Usage -> String #

showList :: [Usage] -> ShowS #

Generic Usage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Usage

Associated Types

type Rep Usage :: Type -> Type #

Methods

from :: Usage -> Rep Usage x #

to :: Rep Usage x -> Usage #

NFData Usage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Usage

Methods

rnf :: Usage -> () #

Hashable Usage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Usage

Methods

hashWithSalt :: Int -> Usage -> Int #

hash :: Usage -> Int #

FromJSON Usage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Usage

type Rep Usage Source # 
Instance details

Defined in Amazonka.APIGateway.Types.Usage

type Rep Usage = D1 ('MetaData "Usage" "Amazonka.APIGateway.Types.Usage" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "Usage'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "usagePlanId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "endDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "items") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text [[Integer]]))) :*: (S1 ('MetaSel ('Just "startDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "position") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newUsage :: Usage Source #

Create a value of Usage 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:usagePlanId:Usage', usage_usagePlanId - The plan Id associated with this usage data.

$sel:endDate:Usage', usage_endDate - The ending date of the usage data.

$sel:items:Usage', usage_items - The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API keys in a usage plan. For example, {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, where {api_key} stands for an API key value and the daily log entry is of the format [used quota, remaining quota].

$sel:startDate:Usage', usage_startDate - The starting date of the usage data.

$sel:position:Usage', usage_position - Undocumented member.

usage_usagePlanId :: Lens' Usage (Maybe Text) Source #

The plan Id associated with this usage data.

usage_endDate :: Lens' Usage (Maybe Text) Source #

The ending date of the usage data.

usage_items :: Lens' Usage (Maybe (HashMap Text [[Integer]])) Source #

The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API keys in a usage plan. For example, {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, where {api_key} stands for an API key value and the daily log entry is of the format [used quota, remaining quota].

usage_startDate :: Lens' Usage (Maybe Text) Source #

The starting date of the usage data.

usage_position :: Lens' Usage (Maybe Text) Source #

Undocumented member.

UsagePlan

data UsagePlan Source #

Represents a usage plan than can specify who can assess associated API stages with specified request limits and quotas.

In a usage plan, you associate an API by specifying the API's Id and a stage name of the specified API. You add plan customers by adding API keys to the plan.

Create and Use Usage Plans

See: newUsagePlan smart constructor.

Constructors

UsagePlan' 

Fields

Instances

Instances details
Eq UsagePlan Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlan

Read UsagePlan Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlan

Show UsagePlan Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlan

Generic UsagePlan Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlan

Associated Types

type Rep UsagePlan :: Type -> Type #

NFData UsagePlan Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlan

Methods

rnf :: UsagePlan -> () #

Hashable UsagePlan Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlan

FromJSON UsagePlan Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlan

type Rep UsagePlan Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlan

newUsagePlan :: UsagePlan Source #

Create a value of UsagePlan 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:apiStages:UsagePlan', usagePlan_apiStages - The associated API stages of a usage plan.

$sel:name:UsagePlan', usagePlan_name - The name of a usage plan.

$sel:id:UsagePlan', usagePlan_id - The identifier of a UsagePlan resource.

$sel:throttle:UsagePlan', usagePlan_throttle - The request throttle limits of a usage plan.

$sel:quota:UsagePlan', usagePlan_quota - The maximum number of permitted requests per a given unit time interval.

$sel:description:UsagePlan', usagePlan_description - The description of a usage plan.

$sel:productCode:UsagePlan', usagePlan_productCode - The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.

$sel:tags:UsagePlan', usagePlan_tags - The collection of tags. Each tag element is associated with a given resource.

usagePlan_apiStages :: Lens' UsagePlan (Maybe [ApiStage]) Source #

The associated API stages of a usage plan.

usagePlan_name :: Lens' UsagePlan (Maybe Text) Source #

The name of a usage plan.

usagePlan_id :: Lens' UsagePlan (Maybe Text) Source #

The identifier of a UsagePlan resource.

usagePlan_throttle :: Lens' UsagePlan (Maybe ThrottleSettings) Source #

The request throttle limits of a usage plan.

usagePlan_quota :: Lens' UsagePlan (Maybe QuotaSettings) Source #

The maximum number of permitted requests per a given unit time interval.

usagePlan_description :: Lens' UsagePlan (Maybe Text) Source #

The description of a usage plan.

usagePlan_productCode :: Lens' UsagePlan (Maybe Text) Source #

The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.

usagePlan_tags :: Lens' UsagePlan (Maybe (HashMap Text Text)) Source #

The collection of tags. Each tag element is associated with a given resource.

UsagePlanKey

data UsagePlanKey Source #

Represents a usage plan key to identify a plan customer.

To associate an API stage with a selected API key in a usage plan, you must create a UsagePlanKey resource to represent the selected ApiKey.

"

Create and Use Usage Plans

See: newUsagePlanKey smart constructor.

Constructors

UsagePlanKey' 

Fields

Instances

Instances details
Eq UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

Read UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

Show UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

Generic UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

Associated Types

type Rep UsagePlanKey :: Type -> Type #

NFData UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

Methods

rnf :: UsagePlanKey -> () #

Hashable UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

FromJSON UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

type Rep UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

type Rep UsagePlanKey = D1 ('MetaData "UsagePlanKey" "Amazonka.APIGateway.Types.UsagePlanKey" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "UsagePlanKey'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newUsagePlanKey :: UsagePlanKey Source #

Create a value of UsagePlanKey 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:value:UsagePlanKey', usagePlanKey_value - The value of a usage plan key.

$sel:name:UsagePlanKey', usagePlanKey_name - The name of a usage plan key.

$sel:id:UsagePlanKey', usagePlanKey_id - The Id of a usage plan key.

$sel:type':UsagePlanKey', usagePlanKey_type - The type of a usage plan key. Currently, the valid key type is API_KEY.

usagePlanKey_value :: Lens' UsagePlanKey (Maybe Text) Source #

The value of a usage plan key.

usagePlanKey_name :: Lens' UsagePlanKey (Maybe Text) Source #

The name of a usage plan key.

usagePlanKey_id :: Lens' UsagePlanKey (Maybe Text) Source #

The Id of a usage plan key.

usagePlanKey_type :: Lens' UsagePlanKey (Maybe Text) Source #

The type of a usage plan key. Currently, the valid key type is API_KEY.

VpcLink

data VpcLink Source #

An API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).

To enable access to a resource in an Amazon Virtual Private Cloud through Amazon API Gateway, you, as an API developer, create a VpcLink resource targeted for one or more network load balancers of the VPC and then integrate an API method with a private integration that uses the VpcLink. The private integration has an integration type of HTTP or HTTP_PROXY and has a connection type of VPC_LINK. The integration uses the connectionId property to identify the VpcLink used.

See: newVpcLink smart constructor.

Constructors

VpcLink' 

Fields

  • status :: Maybe VpcLinkStatus

    The status of the VPC link. The valid values are AVAILABLE, PENDING, DELETING, or FAILED. Deploying an API will wait if the status is PENDING and will fail if the status is DELETING.

  • targetArns :: Maybe [Text]

    The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same AWS account of the API owner.

  • name :: Maybe Text

    The name used to label and identify the VPC link.

  • statusMessage :: Maybe Text

    A description about the VPC link status.

  • id :: Maybe Text

    The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.

  • description :: Maybe Text

    The description of the VPC link.

  • tags :: Maybe (HashMap Text Text)

    The collection of tags. Each tag element is associated with a given resource.

Instances

newVpcLink :: VpcLink Source #

Create a value of VpcLink 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:status:VpcLink', vpcLink_status - The status of the VPC link. The valid values are AVAILABLE, PENDING, DELETING, or FAILED. Deploying an API will wait if the status is PENDING and will fail if the status is DELETING.

$sel:targetArns:VpcLink', vpcLink_targetArns - The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same AWS account of the API owner.

$sel:name:VpcLink', vpcLink_name - The name used to label and identify the VPC link.

$sel:statusMessage:VpcLink', vpcLink_statusMessage - A description about the VPC link status.

$sel:id:VpcLink', vpcLink_id - The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.

$sel:description:VpcLink', vpcLink_description - The description of the VPC link.

$sel:tags:VpcLink', vpcLink_tags - The collection of tags. Each tag element is associated with a given resource.

vpcLink_status :: Lens' VpcLink (Maybe VpcLinkStatus) Source #

The status of the VPC link. The valid values are AVAILABLE, PENDING, DELETING, or FAILED. Deploying an API will wait if the status is PENDING and will fail if the status is DELETING.

vpcLink_targetArns :: Lens' VpcLink (Maybe [Text]) Source #

The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same AWS account of the API owner.

vpcLink_name :: Lens' VpcLink (Maybe Text) Source #

The name used to label and identify the VPC link.

vpcLink_statusMessage :: Lens' VpcLink (Maybe Text) Source #

A description about the VPC link status.

vpcLink_id :: Lens' VpcLink (Maybe Text) Source #

The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.

vpcLink_description :: Lens' VpcLink (Maybe Text) Source #

The description of the VPC link.

vpcLink_tags :: Lens' VpcLink (Maybe (HashMap Text Text)) Source #

The collection of tags. Each tag element is associated with a given resource.