| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.APIGateway
Contents
- Service Configuration
- Errors
- Waiters
- Operations
- GetResource
- GetDeployments (Paginated)
- GetDeployment
- GetTags
- DeleteGatewayResponse
- UpdateGatewayResponse
- CreateUsagePlan
- GetDomainNames (Paginated)
- GetClientCertificate
- PutGatewayResponse
- GetSdkType
- GetMethodResponse
- GetModels (Paginated)
- GetBasePathMapping
- GetRequestValidators (Paginated)
- PutMethodResponse
- ImportRestApi
- DeleteMethodResponse
- UpdateMethodResponse
- DeleteStage
- UpdateStage
- GetRestApis (Paginated)
- GetDocumentationVersions (Paginated)
- CreateDeployment
- GetVpcLinks (Paginated)
- CreateBasePathMapping
- GetIntegration
- GetDocumentationParts (Paginated)
- UpdateAccount
- GetUsagePlan
- DeleteDeployment
- UpdateDeployment
- GetDocumentationPart
- DeleteResource
- UpdateResource
- CreateRequestValidator
- ImportDocumentationParts
- GetUsage (Paginated)
- GetVpcLink
- CreateModel
- GetIntegrationResponse
- CreateDomainName
- FlushStageAuthorizersCache
- GetGatewayResponses (Paginated)
- DeleteModel
- UpdateModel
- GetDocumentationVersion
- DeleteApiKey
- UpdateApiKey
- GetRestApi
- GetStages
- PutRestApi
- GetMethod
- GetModel
- UpdateRestApi
- DeleteRestApi
- ImportApiKeys
- CreateDocumentationPart
- TestInvokeMethod
- GetRequestValidator
- GetDomainName
- CreateVpcLink
- DeleteDocumentationPart
- UpdateDocumentationPart
- GetAuthorizers (Paginated)
- CreateDocumentationVersion
- PutIntegrationResponse
- GetUsagePlanKeys (Paginated)
- DeleteVpcLink
- UpdateVpcLink
- FlushStageCache
- CreateRestApi
- DeleteIntegrationResponse
- UpdateIntegrationResponse
- UpdateUsage
- DeleteIntegration
- UpdateIntegration
- TestInvokeAuthorizer
- GenerateClientCertificate
- GetResources (Paginated)
- GetUsagePlanKey
- GetAccount
- PutIntegration
- GetAuthorizer
- DeleteUsagePlan
- UpdateUsagePlan
- GetStage
- GetExport
- GetSdk
- GetApiKeys (Paginated)
- DeleteBasePathMapping
- UpdateBasePathMapping
- DeleteClientCertificate
- UpdateClientCertificate
- GetGatewayResponse
- CreateUsagePlanKey
- CreateAuthorizer
- UpdateAuthorizer
- DeleteAuthorizer
- TagResource
- CreateStage
- DeleteUsagePlanKey
- UntagResource
- CreateApiKey
- GetUsagePlans (Paginated)
- PutMethod
- UpdateDomainName
- DeleteDomainName
- CreateResource
- DeleteMethod
- UpdateMethod
- UpdateRequestValidator
- DeleteRequestValidator
- GetSdkTypes (Paginated)
- GetClientCertificates (Paginated)
- GetModelTemplate
- UpdateDocumentationVersion
- DeleteDocumentationVersion
- GetBasePathMappings (Paginated)
- GetApiKey
- Types
- ApiKeySourceType
- ApiKeysFormat
- AuthorizerType
- CacheClusterSize
- CacheClusterStatus
- ConnectionType
- ContentHandlingStrategy
- DocumentationPartType
- DomainNameStatus
- EndpointType
- GatewayResponseType
- IntegrationType
- LocationStatusType
- Op
- PutMode
- QuotaPeriodType
- SecurityPolicy
- UnauthorizedCacheControlHeaderStrategy
- VpcLinkStatus
- AccessLogSettings
- Account
- ApiKey
- ApiStage
- Authorizer
- BasePathMapping
- CanarySettings
- ClientCertificate
- Deployment
- DeploymentCanarySettings
- DocumentationPart
- DocumentationPartLocation
- DocumentationVersion
- DomainName
- EndpointConfiguration
- GatewayResponse
- Integration
- IntegrationResponse
- Method
- MethodResponse
- MethodSetting
- MethodSnapshot
- Model
- MutualTlsAuthentication
- MutualTlsAuthenticationInput
- PatchOperation
- QuotaSettings
- RequestValidator
- Resource
- RestApi
- SdkConfigurationProperty
- SdkType
- Stage
- StageKey
- ThrottleSettings
- TlsConfig
- Usage
- UsagePlan
- UsagePlanKey
- VpcLink
Description
Derived from API version 2015-07-09 of the AWS service descriptions, licensed under Apache 2.0.
Amazon API Gateway
Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.
Synopsis
- defaultService :: Service
- _ConflictException :: AsError a => Getting (First ServiceError) a ServiceError
- _NotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- _TooManyRequestsException :: AsError a => Getting (First ServiceError) a ServiceError
- _ServiceUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError
- _UnauthorizedException :: AsError a => Getting (First ServiceError) a ServiceError
- _BadRequestException :: AsError a => Getting (First ServiceError) a ServiceError
- _LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- data GetResource = GetResource' (Maybe [Text]) Text Text
- newGetResource :: Text -> Text -> GetResource
- data Resource = Resource' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Method)) (Maybe Text)
- newResource :: Resource
- data GetDeployments = GetDeployments' (Maybe Int) (Maybe Text) Text
- newGetDeployments :: Text -> GetDeployments
- data GetDeploymentsResponse = GetDeploymentsResponse' (Maybe [Deployment]) (Maybe Text) Int
- newGetDeploymentsResponse :: Int -> GetDeploymentsResponse
- data GetDeployment = GetDeployment' (Maybe [Text]) Text Text
- newGetDeployment :: Text -> Text -> GetDeployment
- data Deployment = Deployment' (Maybe (HashMap Text (HashMap Text MethodSnapshot))) (Maybe POSIX) (Maybe Text) (Maybe Text)
- newDeployment :: Deployment
- data GetTags = GetTags' (Maybe Int) (Maybe Text) Text
- newGetTags :: Text -> GetTags
- data GetTagsResponse = GetTagsResponse' (Maybe (HashMap Text Text)) Int
- newGetTagsResponse :: Int -> GetTagsResponse
- data DeleteGatewayResponse = DeleteGatewayResponse' Text GatewayResponseType
- newDeleteGatewayResponse :: Text -> GatewayResponseType -> DeleteGatewayResponse
- data DeleteGatewayResponseResponse = DeleteGatewayResponseResponse' {
- newDeleteGatewayResponseResponse :: DeleteGatewayResponseResponse
- data UpdateGatewayResponse = UpdateGatewayResponse' (Maybe [PatchOperation]) Text GatewayResponseType
- newUpdateGatewayResponse :: Text -> GatewayResponseType -> UpdateGatewayResponse
- data GatewayResponse = GatewayResponse' (Maybe Bool) (Maybe (HashMap Text Text)) (Maybe GatewayResponseType) (Maybe Text) (Maybe (HashMap Text Text))
- newGatewayResponse :: GatewayResponse
- data CreateUsagePlan = CreateUsagePlan' (Maybe [ApiStage]) (Maybe ThrottleSettings) (Maybe QuotaSettings) (Maybe Text) (Maybe (HashMap Text Text)) Text
- newCreateUsagePlan :: Text -> CreateUsagePlan
- data UsagePlan = UsagePlan' (Maybe [ApiStage]) (Maybe Text) (Maybe Text) (Maybe ThrottleSettings) (Maybe QuotaSettings) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text))
- newUsagePlan :: UsagePlan
- data GetDomainNames = GetDomainNames' (Maybe Int) (Maybe Text)
- newGetDomainNames :: GetDomainNames
- data GetDomainNamesResponse = GetDomainNamesResponse' (Maybe [DomainName]) (Maybe Text) Int
- newGetDomainNamesResponse :: Int -> GetDomainNamesResponse
- data GetClientCertificate = GetClientCertificate' Text
- newGetClientCertificate :: Text -> GetClientCertificate
- data ClientCertificate = ClientCertificate' (Maybe Text) (Maybe Text) (Maybe POSIX) (Maybe POSIX) (Maybe Text) (Maybe (HashMap Text Text))
- newClientCertificate :: ClientCertificate
- data PutGatewayResponse = PutGatewayResponse' (Maybe (HashMap Text Text)) (Maybe Text) (Maybe (HashMap Text Text)) Text GatewayResponseType
- newPutGatewayResponse :: Text -> GatewayResponseType -> PutGatewayResponse
- data GatewayResponse = GatewayResponse' (Maybe Bool) (Maybe (HashMap Text Text)) (Maybe GatewayResponseType) (Maybe Text) (Maybe (HashMap Text Text))
- newGatewayResponse :: GatewayResponse
- data GetSdkType = GetSdkType' Text
- newGetSdkType :: Text -> GetSdkType
- data SdkType = SdkType' (Maybe Text) (Maybe [SdkConfigurationProperty]) (Maybe Text) (Maybe Text)
- newSdkType :: SdkType
- data GetMethodResponse = GetMethodResponse' Text Text Text Text
- newGetMethodResponse :: Text -> Text -> Text -> Text -> GetMethodResponse
- data MethodResponse = MethodResponse' (Maybe (HashMap Text Text)) (Maybe Text) (Maybe (HashMap Text Bool))
- newMethodResponse :: MethodResponse
- data GetModels = GetModels' (Maybe Int) (Maybe Text) Text
- newGetModels :: Text -> GetModels
- data GetModelsResponse = GetModelsResponse' (Maybe [Model]) (Maybe Text) Int
- newGetModelsResponse :: Int -> GetModelsResponse
- data GetBasePathMapping = GetBasePathMapping' Text Text
- newGetBasePathMapping :: Text -> Text -> GetBasePathMapping
- data BasePathMapping = BasePathMapping' (Maybe Text) (Maybe Text) (Maybe Text)
- newBasePathMapping :: BasePathMapping
- data GetRequestValidators = GetRequestValidators' (Maybe Int) (Maybe Text) Text
- newGetRequestValidators :: Text -> GetRequestValidators
- data GetRequestValidatorsResponse = GetRequestValidatorsResponse' (Maybe [RequestValidator]) (Maybe Text) Int
- newGetRequestValidatorsResponse :: Int -> GetRequestValidatorsResponse
- data PutMethodResponse = PutMethodResponse' (Maybe (HashMap Text Text)) (Maybe (HashMap Text Bool)) Text Text Text Text
- newPutMethodResponse :: Text -> Text -> Text -> Text -> PutMethodResponse
- data MethodResponse = MethodResponse' (Maybe (HashMap Text Text)) (Maybe Text) (Maybe (HashMap Text Bool))
- newMethodResponse :: MethodResponse
- data ImportRestApi = ImportRestApi' (Maybe Bool) (Maybe (HashMap Text Text)) ByteString
- newImportRestApi :: ByteString -> ImportRestApi
- data RestApi = RestApi' (Maybe Int) (Maybe Bool) (Maybe [Text]) (Maybe [Text]) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe ApiKeySourceType) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe Text) (Maybe (HashMap Text Text))
- newRestApi :: RestApi
- data DeleteMethodResponse = DeleteMethodResponse' Text Text Text Text
- newDeleteMethodResponse :: Text -> Text -> Text -> Text -> DeleteMethodResponse
- data DeleteMethodResponseResponse = DeleteMethodResponseResponse' {
- newDeleteMethodResponseResponse :: DeleteMethodResponseResponse
- data UpdateMethodResponse = UpdateMethodResponse' (Maybe [PatchOperation]) Text Text Text Text
- newUpdateMethodResponse :: Text -> Text -> Text -> Text -> UpdateMethodResponse
- data MethodResponse = MethodResponse' (Maybe (HashMap Text Text)) (Maybe Text) (Maybe (HashMap Text Bool))
- newMethodResponse :: MethodResponse
- data DeleteStage = DeleteStage' Text Text
- newDeleteStage :: Text -> Text -> DeleteStage
- data DeleteStageResponse = DeleteStageResponse' {
- newDeleteStageResponse :: DeleteStageResponse
- data UpdateStage = UpdateStage' (Maybe [PatchOperation]) Text Text
- newUpdateStage :: Text -> Text -> UpdateStage
- data Stage = Stage' (Maybe Text) (Maybe (HashMap Text Text)) (Maybe AccessLogSettings) (Maybe Text) (Maybe Text) (Maybe Bool) (Maybe POSIX) (Maybe CacheClusterStatus) (Maybe (HashMap Text MethodSetting)) (Maybe POSIX) (Maybe CacheClusterSize) (Maybe Text) (Maybe CanarySettings) (Maybe Bool) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text))
- newStage :: Stage
- data GetRestApis = GetRestApis' (Maybe Int) (Maybe Text)
- newGetRestApis :: GetRestApis
- data GetRestApisResponse = GetRestApisResponse' (Maybe [RestApi]) (Maybe Text) Int
- newGetRestApisResponse :: Int -> GetRestApisResponse
- data GetDocumentationVersions = GetDocumentationVersions' (Maybe Int) (Maybe Text) Text
- newGetDocumentationVersions :: Text -> GetDocumentationVersions
- data GetDocumentationVersionsResponse = GetDocumentationVersionsResponse' (Maybe [DocumentationVersion]) (Maybe Text) Int
- newGetDocumentationVersionsResponse :: Int -> GetDocumentationVersionsResponse
- data CreateDeployment = CreateDeployment' (Maybe Text) (Maybe (HashMap Text Text)) (Maybe Bool) (Maybe CacheClusterSize) (Maybe DeploymentCanarySettings) (Maybe Bool) (Maybe Text) (Maybe Text) Text
- newCreateDeployment :: Text -> CreateDeployment
- data Deployment = Deployment' (Maybe (HashMap Text (HashMap Text MethodSnapshot))) (Maybe POSIX) (Maybe Text) (Maybe Text)
- newDeployment :: Deployment
- data GetVpcLinks = GetVpcLinks' (Maybe Int) (Maybe Text)
- newGetVpcLinks :: GetVpcLinks
- data GetVpcLinksResponse = GetVpcLinksResponse' (Maybe [VpcLink]) (Maybe Text) Int
- newGetVpcLinksResponse :: Int -> GetVpcLinksResponse
- data CreateBasePathMapping = CreateBasePathMapping' (Maybe Text) (Maybe Text) Text Text
- newCreateBasePathMapping :: Text -> Text -> CreateBasePathMapping
- data BasePathMapping = BasePathMapping' (Maybe Text) (Maybe Text) (Maybe Text)
- newBasePathMapping :: BasePathMapping
- data GetIntegration = GetIntegration' Text Text Text
- newGetIntegration :: Text -> Text -> Text -> GetIntegration
- data Integration = Integration' (Maybe Text) (Maybe (HashMap Text Text)) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe ContentHandlingStrategy) (Maybe Text) (Maybe Text) (Maybe (HashMap Text IntegrationResponse)) (Maybe TlsConfig) (Maybe Text) (Maybe Int) (Maybe IntegrationType) (Maybe ConnectionType) (Maybe [Text])
- newIntegration :: Integration
- data GetDocumentationParts = GetDocumentationParts' (Maybe Text) (Maybe LocationStatusType) (Maybe Text) (Maybe Int) (Maybe DocumentationPartType) (Maybe Text) Text
- newGetDocumentationParts :: Text -> GetDocumentationParts
- data GetDocumentationPartsResponse = GetDocumentationPartsResponse' (Maybe [DocumentationPart]) (Maybe Text) Int
- newGetDocumentationPartsResponse :: Int -> GetDocumentationPartsResponse
- data UpdateAccount = UpdateAccount' (Maybe [PatchOperation])
- newUpdateAccount :: UpdateAccount
- data Account = Account' (Maybe Text) (Maybe Text) (Maybe [Text]) (Maybe ThrottleSettings)
- newAccount :: Account
- data GetUsagePlan = GetUsagePlan' Text
- newGetUsagePlan :: Text -> GetUsagePlan
- data UsagePlan = UsagePlan' (Maybe [ApiStage]) (Maybe Text) (Maybe Text) (Maybe ThrottleSettings) (Maybe QuotaSettings) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text))
- newUsagePlan :: UsagePlan
- data DeleteDeployment = DeleteDeployment' Text Text
- newDeleteDeployment :: Text -> Text -> DeleteDeployment
- data DeleteDeploymentResponse = DeleteDeploymentResponse' {
- newDeleteDeploymentResponse :: DeleteDeploymentResponse
- data UpdateDeployment = UpdateDeployment' (Maybe [PatchOperation]) Text Text
- newUpdateDeployment :: Text -> Text -> UpdateDeployment
- data Deployment = Deployment' (Maybe (HashMap Text (HashMap Text MethodSnapshot))) (Maybe POSIX) (Maybe Text) (Maybe Text)
- newDeployment :: Deployment
- data GetDocumentationPart = GetDocumentationPart' Text Text
- newGetDocumentationPart :: Text -> Text -> GetDocumentationPart
- data DocumentationPart = DocumentationPart' (Maybe DocumentationPartLocation) (Maybe Text) (Maybe Text)
- newDocumentationPart :: DocumentationPart
- data DeleteResource = DeleteResource' Text Text
- newDeleteResource :: Text -> Text -> DeleteResource
- data DeleteResourceResponse = DeleteResourceResponse' {
- newDeleteResourceResponse :: DeleteResourceResponse
- data UpdateResource = UpdateResource' (Maybe [PatchOperation]) Text Text
- newUpdateResource :: Text -> Text -> UpdateResource
- data Resource = Resource' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Method)) (Maybe Text)
- newResource :: Resource
- data CreateRequestValidator = CreateRequestValidator' (Maybe Bool) (Maybe Text) (Maybe Bool) Text
- newCreateRequestValidator :: Text -> CreateRequestValidator
- data RequestValidator = RequestValidator' (Maybe Bool) (Maybe Text) (Maybe Bool) (Maybe Text)
- newRequestValidator :: RequestValidator
- data ImportDocumentationParts = ImportDocumentationParts' (Maybe PutMode) (Maybe Bool) Text ByteString
- newImportDocumentationParts :: Text -> ByteString -> ImportDocumentationParts
- data ImportDocumentationPartsResponse = ImportDocumentationPartsResponse' (Maybe [Text]) (Maybe [Text]) Int
- newImportDocumentationPartsResponse :: Int -> ImportDocumentationPartsResponse
- data GetUsage = GetUsage' (Maybe Text) (Maybe Int) (Maybe Text) Text Text Text
- newGetUsage :: Text -> Text -> Text -> GetUsage
- data Usage = Usage' (Maybe Text) (Maybe Text) (Maybe (HashMap Text [[Integer]])) (Maybe Text) (Maybe Text)
- newUsage :: Usage
- data GetVpcLink = GetVpcLink' Text
- newGetVpcLink :: Text -> GetVpcLink
- data VpcLink = VpcLink' (Maybe VpcLinkStatus) (Maybe [Text]) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text))
- newVpcLink :: VpcLink
- data CreateModel = CreateModel' (Maybe Text) (Maybe Text) Text Text Text
- newCreateModel :: Text -> Text -> Text -> CreateModel
- data Model = Model' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text)
- newModel :: Model
- data GetIntegrationResponse = GetIntegrationResponse' Text Text Text Text
- newGetIntegrationResponse :: Text -> Text -> Text -> Text -> GetIntegrationResponse
- data IntegrationResponse = IntegrationResponse' (Maybe ContentHandlingStrategy) (Maybe (HashMap Text Text)) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text))
- newIntegrationResponse :: IntegrationResponse
- data CreateDomainName = CreateDomainName' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe SecurityPolicy) (Maybe MutualTlsAuthenticationInput) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe (HashMap Text Text)) Text
- newCreateDomainName :: Text -> CreateDomainName
- data DomainName = DomainName' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe SecurityPolicy) (Maybe Text) (Maybe MutualTlsAuthentication) (Maybe Text) (Maybe Text) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe DomainNameStatus) (Maybe (HashMap Text Text))
- newDomainName :: DomainName
- data FlushStageAuthorizersCache = FlushStageAuthorizersCache' Text Text
- newFlushStageAuthorizersCache :: Text -> Text -> FlushStageAuthorizersCache
- data FlushStageAuthorizersCacheResponse = FlushStageAuthorizersCacheResponse' {
- newFlushStageAuthorizersCacheResponse :: FlushStageAuthorizersCacheResponse
- data GetGatewayResponses = GetGatewayResponses' (Maybe Int) (Maybe Text) Text
- newGetGatewayResponses :: Text -> GetGatewayResponses
- data GetGatewayResponsesResponse = GetGatewayResponsesResponse' (Maybe [GatewayResponse]) (Maybe Text) Int
- newGetGatewayResponsesResponse :: Int -> GetGatewayResponsesResponse
- data DeleteModel = DeleteModel' Text Text
- newDeleteModel :: Text -> Text -> DeleteModel
- data DeleteModelResponse = DeleteModelResponse' {
- newDeleteModelResponse :: DeleteModelResponse
- data UpdateModel = UpdateModel' (Maybe [PatchOperation]) Text Text
- newUpdateModel :: Text -> Text -> UpdateModel
- data Model = Model' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text)
- newModel :: Model
- data GetDocumentationVersion = GetDocumentationVersion' Text Text
- newGetDocumentationVersion :: Text -> Text -> GetDocumentationVersion
- data DocumentationVersion = DocumentationVersion' (Maybe POSIX) (Maybe Text) (Maybe Text)
- newDocumentationVersion :: DocumentationVersion
- data DeleteApiKey = DeleteApiKey' Text
- newDeleteApiKey :: Text -> DeleteApiKey
- data DeleteApiKeyResponse = DeleteApiKeyResponse' {
- newDeleteApiKeyResponse :: DeleteApiKeyResponse
- data UpdateApiKey = UpdateApiKey' (Maybe [PatchOperation]) Text
- newUpdateApiKey :: Text -> UpdateApiKey
- data ApiKey = ApiKey' (Maybe Bool) (Maybe Text) (Maybe Text) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe [Text]) (Maybe POSIX) (Maybe Text) (Maybe (HashMap Text Text))
- newApiKey :: ApiKey
- data GetRestApi = GetRestApi' Text
- newGetRestApi :: Text -> GetRestApi
- data RestApi = RestApi' (Maybe Int) (Maybe Bool) (Maybe [Text]) (Maybe [Text]) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe ApiKeySourceType) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe Text) (Maybe (HashMap Text Text))
- newRestApi :: RestApi
- data GetStages = GetStages' (Maybe Text) Text
- newGetStages :: Text -> GetStages
- data GetStagesResponse = GetStagesResponse' (Maybe [Stage]) Int
- newGetStagesResponse :: Int -> GetStagesResponse
- data PutRestApi = PutRestApi' (Maybe PutMode) (Maybe Bool) (Maybe (HashMap Text Text)) Text ByteString
- newPutRestApi :: Text -> ByteString -> PutRestApi
- data RestApi = RestApi' (Maybe Int) (Maybe Bool) (Maybe [Text]) (Maybe [Text]) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe ApiKeySourceType) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe Text) (Maybe (HashMap Text Text))
- newRestApi :: RestApi
- data GetMethod = GetMethod' Text Text Text
- newGetMethod :: Text -> Text -> Text -> GetMethod
- data Method = Method' (Maybe (HashMap Text MethodResponse)) (Maybe Text) (Maybe [Text]) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe (HashMap Text Bool)) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Bool) (Maybe Integration)
- newMethod :: Method
- data GetModel = GetModel' (Maybe Bool) Text Text
- newGetModel :: Text -> Text -> GetModel
- data Model = Model' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text)
- newModel :: Model
- data UpdateRestApi = UpdateRestApi' (Maybe [PatchOperation]) Text
- newUpdateRestApi :: Text -> UpdateRestApi
- data RestApi = RestApi' (Maybe Int) (Maybe Bool) (Maybe [Text]) (Maybe [Text]) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe ApiKeySourceType) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe Text) (Maybe (HashMap Text Text))
- newRestApi :: RestApi
- data DeleteRestApi = DeleteRestApi' Text
- newDeleteRestApi :: Text -> DeleteRestApi
- data DeleteRestApiResponse = DeleteRestApiResponse' {
- newDeleteRestApiResponse :: DeleteRestApiResponse
- data ImportApiKeys = ImportApiKeys' (Maybe Bool) ByteString ApiKeysFormat
- newImportApiKeys :: ByteString -> ApiKeysFormat -> ImportApiKeys
- data ImportApiKeysResponse = ImportApiKeysResponse' (Maybe [Text]) (Maybe [Text]) Int
- newImportApiKeysResponse :: Int -> ImportApiKeysResponse
- data CreateDocumentationPart = CreateDocumentationPart' Text DocumentationPartLocation Text
- newCreateDocumentationPart :: Text -> DocumentationPartLocation -> Text -> CreateDocumentationPart
- data DocumentationPart = DocumentationPart' (Maybe DocumentationPartLocation) (Maybe Text) (Maybe Text)
- newDocumentationPart :: DocumentationPart
- data TestInvokeMethod = TestInvokeMethod' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe (HashMap Text Text)) (Maybe (HashMap Text [Text])) Text Text Text
- newTestInvokeMethod :: Text -> Text -> Text -> TestInvokeMethod
- data TestInvokeMethodResponse = TestInvokeMethodResponse' (Maybe Text) (Maybe Int) (Maybe Text) (Maybe Integer) (Maybe (HashMap Text Text)) (Maybe (HashMap Text [Text])) Int
- newTestInvokeMethodResponse :: Int -> TestInvokeMethodResponse
- data GetRequestValidator = GetRequestValidator' Text Text
- newGetRequestValidator :: Text -> Text -> GetRequestValidator
- data RequestValidator = RequestValidator' (Maybe Bool) (Maybe Text) (Maybe Bool) (Maybe Text)
- newRequestValidator :: RequestValidator
- data GetDomainName = GetDomainName' Text
- newGetDomainName :: Text -> GetDomainName
- data DomainName = DomainName' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe SecurityPolicy) (Maybe Text) (Maybe MutualTlsAuthentication) (Maybe Text) (Maybe Text) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe DomainNameStatus) (Maybe (HashMap Text Text))
- newDomainName :: DomainName
- data CreateVpcLink = CreateVpcLink' (Maybe Text) (Maybe (HashMap Text Text)) Text [Text]
- newCreateVpcLink :: Text -> CreateVpcLink
- data VpcLink = VpcLink' (Maybe VpcLinkStatus) (Maybe [Text]) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text))
- newVpcLink :: VpcLink
- data DeleteDocumentationPart = DeleteDocumentationPart' Text Text
- newDeleteDocumentationPart :: Text -> Text -> DeleteDocumentationPart
- data DeleteDocumentationPartResponse = DeleteDocumentationPartResponse' {
- newDeleteDocumentationPartResponse :: DeleteDocumentationPartResponse
- data UpdateDocumentationPart = UpdateDocumentationPart' (Maybe [PatchOperation]) Text Text
- newUpdateDocumentationPart :: Text -> Text -> UpdateDocumentationPart
- data DocumentationPart = DocumentationPart' (Maybe DocumentationPartLocation) (Maybe Text) (Maybe Text)
- newDocumentationPart :: DocumentationPart
- data GetAuthorizers = GetAuthorizers' (Maybe Int) (Maybe Text) Text
- newGetAuthorizers :: Text -> GetAuthorizers
- data GetAuthorizersResponse = GetAuthorizersResponse' (Maybe [Authorizer]) (Maybe Text) Int
- newGetAuthorizersResponse :: Int -> GetAuthorizersResponse
- data CreateDocumentationVersion = CreateDocumentationVersion' (Maybe Text) (Maybe Text) Text Text
- newCreateDocumentationVersion :: Text -> Text -> CreateDocumentationVersion
- data DocumentationVersion = DocumentationVersion' (Maybe POSIX) (Maybe Text) (Maybe Text)
- newDocumentationVersion :: DocumentationVersion
- data PutIntegrationResponse = PutIntegrationResponse' (Maybe ContentHandlingStrategy) (Maybe (HashMap Text Text)) (Maybe Text) (Maybe (HashMap Text Text)) Text Text Text Text
- newPutIntegrationResponse :: Text -> Text -> Text -> Text -> PutIntegrationResponse
- data IntegrationResponse = IntegrationResponse' (Maybe ContentHandlingStrategy) (Maybe (HashMap Text Text)) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text))
- newIntegrationResponse :: IntegrationResponse
- data GetUsagePlanKeys = GetUsagePlanKeys' (Maybe Text) (Maybe Int) (Maybe Text) Text
- newGetUsagePlanKeys :: Text -> GetUsagePlanKeys
- data GetUsagePlanKeysResponse = GetUsagePlanKeysResponse' (Maybe [UsagePlanKey]) (Maybe Text) Int
- newGetUsagePlanKeysResponse :: Int -> GetUsagePlanKeysResponse
- data DeleteVpcLink = DeleteVpcLink' Text
- newDeleteVpcLink :: Text -> DeleteVpcLink
- data DeleteVpcLinkResponse = DeleteVpcLinkResponse' {
- newDeleteVpcLinkResponse :: DeleteVpcLinkResponse
- data UpdateVpcLink = UpdateVpcLink' (Maybe [PatchOperation]) Text
- newUpdateVpcLink :: Text -> UpdateVpcLink
- data VpcLink = VpcLink' (Maybe VpcLinkStatus) (Maybe [Text]) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text))
- newVpcLink :: VpcLink
- data FlushStageCache = FlushStageCache' Text Text
- newFlushStageCache :: Text -> Text -> FlushStageCache
- data FlushStageCacheResponse = FlushStageCacheResponse' {
- newFlushStageCacheResponse :: FlushStageCacheResponse
- data CreateRestApi = CreateRestApi' (Maybe Int) (Maybe Bool) (Maybe [Text]) (Maybe Text) (Maybe ApiKeySourceType) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe Text) (Maybe (HashMap Text Text)) Text
- newCreateRestApi :: Text -> CreateRestApi
- data RestApi = RestApi' (Maybe Int) (Maybe Bool) (Maybe [Text]) (Maybe [Text]) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe ApiKeySourceType) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe Text) (Maybe (HashMap Text Text))
- newRestApi :: RestApi
- data DeleteIntegrationResponse = DeleteIntegrationResponse' Text Text Text Text
- newDeleteIntegrationResponse :: Text -> Text -> Text -> Text -> DeleteIntegrationResponse
- data DeleteIntegrationResponseResponse = DeleteIntegrationResponseResponse' {
- newDeleteIntegrationResponseResponse :: DeleteIntegrationResponseResponse
- data UpdateIntegrationResponse = UpdateIntegrationResponse' (Maybe [PatchOperation]) Text Text Text Text
- newUpdateIntegrationResponse :: Text -> Text -> Text -> Text -> UpdateIntegrationResponse
- data IntegrationResponse = IntegrationResponse' (Maybe ContentHandlingStrategy) (Maybe (HashMap Text Text)) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text))
- newIntegrationResponse :: IntegrationResponse
- data UpdateUsage = UpdateUsage' (Maybe [PatchOperation]) Text Text
- newUpdateUsage :: Text -> Text -> UpdateUsage
- data Usage = Usage' (Maybe Text) (Maybe Text) (Maybe (HashMap Text [[Integer]])) (Maybe Text) (Maybe Text)
- newUsage :: Usage
- data DeleteIntegration = DeleteIntegration' Text Text Text
- newDeleteIntegration :: Text -> Text -> Text -> DeleteIntegration
- data DeleteIntegrationResponse' = DeleteIntegrationResponse'' {
- newDeleteIntegrationResponse' :: DeleteIntegrationResponse'
- data UpdateIntegration = UpdateIntegration' (Maybe [PatchOperation]) Text Text Text
- newUpdateIntegration :: Text -> Text -> Text -> UpdateIntegration
- data Integration = Integration' (Maybe Text) (Maybe (HashMap Text Text)) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe ContentHandlingStrategy) (Maybe Text) (Maybe Text) (Maybe (HashMap Text IntegrationResponse)) (Maybe TlsConfig) (Maybe Text) (Maybe Int) (Maybe IntegrationType) (Maybe ConnectionType) (Maybe [Text])
- newIntegration :: Integration
- data TestInvokeAuthorizer = TestInvokeAuthorizer' (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe (HashMap Text Text)) (Maybe (HashMap Text Text)) (Maybe (HashMap Text [Text])) Text Text
- newTestInvokeAuthorizer :: Text -> Text -> TestInvokeAuthorizer
- data TestInvokeAuthorizerResponse = TestInvokeAuthorizerResponse' (Maybe Text) (Maybe Text) (Maybe Integer) (Maybe (HashMap Text [Text])) (Maybe (HashMap Text Text)) (Maybe Int) (Maybe Text) Int
- newTestInvokeAuthorizerResponse :: Int -> TestInvokeAuthorizerResponse
- data GenerateClientCertificate = GenerateClientCertificate' (Maybe Text) (Maybe (HashMap Text Text))
- newGenerateClientCertificate :: GenerateClientCertificate
- data ClientCertificate = ClientCertificate' (Maybe Text) (Maybe Text) (Maybe POSIX) (Maybe POSIX) (Maybe Text) (Maybe (HashMap Text Text))
- newClientCertificate :: ClientCertificate
- data GetResources = GetResources' (Maybe [Text]) (Maybe Int) (Maybe Text) Text
- newGetResources :: Text -> GetResources
- data GetResourcesResponse = GetResourcesResponse' (Maybe [Resource]) (Maybe Text) Int
- newGetResourcesResponse :: Int -> GetResourcesResponse
- data GetUsagePlanKey = GetUsagePlanKey' Text Text
- newGetUsagePlanKey :: Text -> Text -> GetUsagePlanKey
- data UsagePlanKey = UsagePlanKey' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text)
- newUsagePlanKey :: UsagePlanKey
- data GetAccount = GetAccount' {
- newGetAccount :: GetAccount
- data Account = Account' (Maybe Text) (Maybe Text) (Maybe [Text]) (Maybe ThrottleSettings)
- newAccount :: Account
- data PutIntegration = PutIntegration' (Maybe (HashMap Text Text)) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe ContentHandlingStrategy) (Maybe Text) (Maybe Text) (Maybe TlsConfig) (Maybe Text) (Maybe Int) (Maybe ConnectionType) (Maybe Text) (Maybe [Text]) Text Text Text IntegrationType
- newPutIntegration :: Text -> Text -> Text -> IntegrationType -> PutIntegration
- data Integration = Integration' (Maybe Text) (Maybe (HashMap Text Text)) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe ContentHandlingStrategy) (Maybe Text) (Maybe Text) (Maybe (HashMap Text IntegrationResponse)) (Maybe TlsConfig) (Maybe Text) (Maybe Int) (Maybe IntegrationType) (Maybe ConnectionType) (Maybe [Text])
- newIntegration :: Integration
- data GetAuthorizer = GetAuthorizer' Text Text
- newGetAuthorizer :: Text -> Text -> GetAuthorizer
- data Authorizer = Authorizer' (Maybe Text) (Maybe Text) (Maybe [Text]) (Maybe Text) (Maybe Text) (Maybe Int) (Maybe Text) (Maybe AuthorizerType) (Maybe Text) (Maybe Text)
- newAuthorizer :: Authorizer
- data DeleteUsagePlan = DeleteUsagePlan' Text
- newDeleteUsagePlan :: Text -> DeleteUsagePlan
- data DeleteUsagePlanResponse = DeleteUsagePlanResponse' {
- newDeleteUsagePlanResponse :: DeleteUsagePlanResponse
- data UpdateUsagePlan = UpdateUsagePlan' (Maybe [PatchOperation]) Text
- newUpdateUsagePlan :: Text -> UpdateUsagePlan
- data UsagePlan = UsagePlan' (Maybe [ApiStage]) (Maybe Text) (Maybe Text) (Maybe ThrottleSettings) (Maybe QuotaSettings) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text))
- newUsagePlan :: UsagePlan
- data GetStage = GetStage' Text Text
- newGetStage :: Text -> Text -> GetStage
- data Stage = Stage' (Maybe Text) (Maybe (HashMap Text Text)) (Maybe AccessLogSettings) (Maybe Text) (Maybe Text) (Maybe Bool) (Maybe POSIX) (Maybe CacheClusterStatus) (Maybe (HashMap Text MethodSetting)) (Maybe POSIX) (Maybe CacheClusterSize) (Maybe Text) (Maybe CanarySettings) (Maybe Bool) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text))
- newStage :: Stage
- data GetExport = GetExport' (Maybe (HashMap Text Text)) (Maybe Text) Text Text Text
- newGetExport :: Text -> Text -> Text -> GetExport
- data GetExportResponse = GetExportResponse' (Maybe ByteString) (Maybe Text) (Maybe Text) Int
- newGetExportResponse :: Int -> GetExportResponse
- data GetSdk = GetSdk' (Maybe (HashMap Text Text)) Text Text Text
- newGetSdk :: Text -> Text -> Text -> GetSdk
- data GetSdkResponse = GetSdkResponse' (Maybe ByteString) (Maybe Text) (Maybe Text) Int
- newGetSdkResponse :: Int -> GetSdkResponse
- data GetApiKeys = GetApiKeys' (Maybe Bool) (Maybe Text) (Maybe Text) (Maybe Int) (Maybe Text)
- newGetApiKeys :: GetApiKeys
- data GetApiKeysResponse = GetApiKeysResponse' (Maybe [ApiKey]) (Maybe [Text]) (Maybe Text) Int
- newGetApiKeysResponse :: Int -> GetApiKeysResponse
- data DeleteBasePathMapping = DeleteBasePathMapping' Text Text
- newDeleteBasePathMapping :: Text -> Text -> DeleteBasePathMapping
- data DeleteBasePathMappingResponse = DeleteBasePathMappingResponse' {
- newDeleteBasePathMappingResponse :: DeleteBasePathMappingResponse
- data UpdateBasePathMapping = UpdateBasePathMapping' (Maybe [PatchOperation]) Text Text
- newUpdateBasePathMapping :: Text -> Text -> UpdateBasePathMapping
- data BasePathMapping = BasePathMapping' (Maybe Text) (Maybe Text) (Maybe Text)
- newBasePathMapping :: BasePathMapping
- data DeleteClientCertificate = DeleteClientCertificate' Text
- newDeleteClientCertificate :: Text -> DeleteClientCertificate
- data DeleteClientCertificateResponse = DeleteClientCertificateResponse' {
- newDeleteClientCertificateResponse :: DeleteClientCertificateResponse
- data UpdateClientCertificate = UpdateClientCertificate' (Maybe [PatchOperation]) Text
- newUpdateClientCertificate :: Text -> UpdateClientCertificate
- data ClientCertificate = ClientCertificate' (Maybe Text) (Maybe Text) (Maybe POSIX) (Maybe POSIX) (Maybe Text) (Maybe (HashMap Text Text))
- newClientCertificate :: ClientCertificate
- data GetGatewayResponse = GetGatewayResponse' Text GatewayResponseType
- newGetGatewayResponse :: Text -> GatewayResponseType -> GetGatewayResponse
- data GatewayResponse = GatewayResponse' (Maybe Bool) (Maybe (HashMap Text Text)) (Maybe GatewayResponseType) (Maybe Text) (Maybe (HashMap Text Text))
- newGatewayResponse :: GatewayResponse
- data CreateUsagePlanKey = CreateUsagePlanKey' Text Text Text
- newCreateUsagePlanKey :: Text -> Text -> Text -> CreateUsagePlanKey
- data UsagePlanKey = UsagePlanKey' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text)
- newUsagePlanKey :: UsagePlanKey
- data CreateAuthorizer = CreateAuthorizer' (Maybe Text) (Maybe Text) (Maybe [Text]) (Maybe Int) (Maybe Text) (Maybe Text) (Maybe Text) Text Text AuthorizerType
- newCreateAuthorizer :: Text -> Text -> AuthorizerType -> CreateAuthorizer
- data Authorizer = Authorizer' (Maybe Text) (Maybe Text) (Maybe [Text]) (Maybe Text) (Maybe Text) (Maybe Int) (Maybe Text) (Maybe AuthorizerType) (Maybe Text) (Maybe Text)
- newAuthorizer :: Authorizer
- data UpdateAuthorizer = UpdateAuthorizer' (Maybe [PatchOperation]) Text Text
- newUpdateAuthorizer :: Text -> Text -> UpdateAuthorizer
- data Authorizer = Authorizer' (Maybe Text) (Maybe Text) (Maybe [Text]) (Maybe Text) (Maybe Text) (Maybe Int) (Maybe Text) (Maybe AuthorizerType) (Maybe Text) (Maybe Text)
- newAuthorizer :: Authorizer
- data DeleteAuthorizer = DeleteAuthorizer' Text Text
- newDeleteAuthorizer :: Text -> Text -> DeleteAuthorizer
- data DeleteAuthorizerResponse = DeleteAuthorizerResponse' {
- newDeleteAuthorizerResponse :: DeleteAuthorizerResponse
- data TagResource = TagResource' Text (HashMap Text Text)
- newTagResource :: Text -> TagResource
- data TagResourceResponse = TagResourceResponse' {
- newTagResourceResponse :: TagResourceResponse
- data CreateStage = CreateStage' (Maybe (HashMap Text Text)) (Maybe Text) (Maybe Bool) (Maybe CacheClusterSize) (Maybe CanarySettings) (Maybe Bool) (Maybe Text) (Maybe (HashMap Text Text)) Text Text Text
- newCreateStage :: Text -> Text -> Text -> CreateStage
- data Stage = Stage' (Maybe Text) (Maybe (HashMap Text Text)) (Maybe AccessLogSettings) (Maybe Text) (Maybe Text) (Maybe Bool) (Maybe POSIX) (Maybe CacheClusterStatus) (Maybe (HashMap Text MethodSetting)) (Maybe POSIX) (Maybe CacheClusterSize) (Maybe Text) (Maybe CanarySettings) (Maybe Bool) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text))
- newStage :: Stage
- data DeleteUsagePlanKey = DeleteUsagePlanKey' Text Text
- newDeleteUsagePlanKey :: Text -> Text -> DeleteUsagePlanKey
- data DeleteUsagePlanKeyResponse = DeleteUsagePlanKeyResponse' {
- newDeleteUsagePlanKeyResponse :: DeleteUsagePlanKeyResponse
- data UntagResource = UntagResource' Text [Text]
- newUntagResource :: Text -> UntagResource
- data UntagResourceResponse = UntagResourceResponse' {
- newUntagResourceResponse :: UntagResourceResponse
- data CreateApiKey = CreateApiKey' (Maybe Bool) (Maybe Text) (Maybe Text) (Maybe Bool) (Maybe Text) (Maybe [StageKey]) (Maybe Text) (Maybe (HashMap Text Text))
- newCreateApiKey :: CreateApiKey
- data ApiKey = ApiKey' (Maybe Bool) (Maybe Text) (Maybe Text) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe [Text]) (Maybe POSIX) (Maybe Text) (Maybe (HashMap Text Text))
- newApiKey :: ApiKey
- data GetUsagePlans = GetUsagePlans' (Maybe Text) (Maybe Int) (Maybe Text)
- newGetUsagePlans :: GetUsagePlans
- data GetUsagePlansResponse = GetUsagePlansResponse' (Maybe [UsagePlan]) (Maybe Text) Int
- newGetUsagePlansResponse :: Int -> GetUsagePlansResponse
- data PutMethod = PutMethod' (Maybe [Text]) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe (HashMap Text Bool)) (Maybe Text) (Maybe Text) (Maybe Bool) Text Text Text Text
- newPutMethod :: Text -> Text -> Text -> Text -> PutMethod
- data Method = Method' (Maybe (HashMap Text MethodResponse)) (Maybe Text) (Maybe [Text]) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe (HashMap Text Bool)) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Bool) (Maybe Integration)
- newMethod :: Method
- data UpdateDomainName = UpdateDomainName' (Maybe [PatchOperation]) Text
- newUpdateDomainName :: Text -> UpdateDomainName
- data DomainName = DomainName' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe SecurityPolicy) (Maybe Text) (Maybe MutualTlsAuthentication) (Maybe Text) (Maybe Text) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe DomainNameStatus) (Maybe (HashMap Text Text))
- newDomainName :: DomainName
- data DeleteDomainName = DeleteDomainName' Text
- newDeleteDomainName :: Text -> DeleteDomainName
- data DeleteDomainNameResponse = DeleteDomainNameResponse' {
- newDeleteDomainNameResponse :: DeleteDomainNameResponse
- data CreateResource = CreateResource' Text Text Text
- newCreateResource :: Text -> Text -> Text -> CreateResource
- data Resource = Resource' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Method)) (Maybe Text)
- newResource :: Resource
- data DeleteMethod = DeleteMethod' Text Text Text
- newDeleteMethod :: Text -> Text -> Text -> DeleteMethod
- data DeleteMethodResponse' = DeleteMethodResponse'' {
- newDeleteMethodResponse' :: DeleteMethodResponse'
- data UpdateMethod = UpdateMethod' (Maybe [PatchOperation]) Text Text Text
- newUpdateMethod :: Text -> Text -> Text -> UpdateMethod
- data Method = Method' (Maybe (HashMap Text MethodResponse)) (Maybe Text) (Maybe [Text]) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe (HashMap Text Bool)) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Bool) (Maybe Integration)
- newMethod :: Method
- data UpdateRequestValidator = UpdateRequestValidator' (Maybe [PatchOperation]) Text Text
- newUpdateRequestValidator :: Text -> Text -> UpdateRequestValidator
- data RequestValidator = RequestValidator' (Maybe Bool) (Maybe Text) (Maybe Bool) (Maybe Text)
- newRequestValidator :: RequestValidator
- data DeleteRequestValidator = DeleteRequestValidator' Text Text
- newDeleteRequestValidator :: Text -> Text -> DeleteRequestValidator
- data DeleteRequestValidatorResponse = DeleteRequestValidatorResponse' {
- newDeleteRequestValidatorResponse :: DeleteRequestValidatorResponse
- data GetSdkTypes = GetSdkTypes' (Maybe Int) (Maybe Text)
- newGetSdkTypes :: GetSdkTypes
- data GetSdkTypesResponse = GetSdkTypesResponse' (Maybe [SdkType]) (Maybe Text) Int
- newGetSdkTypesResponse :: Int -> GetSdkTypesResponse
- data GetClientCertificates = GetClientCertificates' (Maybe Int) (Maybe Text)
- newGetClientCertificates :: GetClientCertificates
- data GetClientCertificatesResponse = GetClientCertificatesResponse' (Maybe [ClientCertificate]) (Maybe Text) Int
- newGetClientCertificatesResponse :: Int -> GetClientCertificatesResponse
- data GetModelTemplate = GetModelTemplate' Text Text
- newGetModelTemplate :: Text -> Text -> GetModelTemplate
- data GetModelTemplateResponse = GetModelTemplateResponse' (Maybe Text) Int
- newGetModelTemplateResponse :: Int -> GetModelTemplateResponse
- data UpdateDocumentationVersion = UpdateDocumentationVersion' (Maybe [PatchOperation]) Text Text
- newUpdateDocumentationVersion :: Text -> Text -> UpdateDocumentationVersion
- data DocumentationVersion = DocumentationVersion' (Maybe POSIX) (Maybe Text) (Maybe Text)
- newDocumentationVersion :: DocumentationVersion
- data DeleteDocumentationVersion = DeleteDocumentationVersion' Text Text
- newDeleteDocumentationVersion :: Text -> Text -> DeleteDocumentationVersion
- data DeleteDocumentationVersionResponse = DeleteDocumentationVersionResponse' {
- newDeleteDocumentationVersionResponse :: DeleteDocumentationVersionResponse
- data GetBasePathMappings = GetBasePathMappings' (Maybe Int) (Maybe Text) Text
- newGetBasePathMappings :: Text -> GetBasePathMappings
- data GetBasePathMappingsResponse = GetBasePathMappingsResponse' (Maybe [BasePathMapping]) (Maybe Text) Int
- newGetBasePathMappingsResponse :: Int -> GetBasePathMappingsResponse
- data GetApiKey = GetApiKey' (Maybe Bool) Text
- newGetApiKey :: Text -> GetApiKey
- data ApiKey = ApiKey' (Maybe Bool) (Maybe Text) (Maybe Text) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe [Text]) (Maybe POSIX) (Maybe Text) (Maybe (HashMap Text Text))
- newApiKey :: ApiKey
- newtype ApiKeySourceType where
- ApiKeySourceType' { }
- pattern ApiKeySourceType_AUTHORIZER :: ApiKeySourceType
- pattern ApiKeySourceType_HEADER :: ApiKeySourceType
- newtype ApiKeysFormat where
- ApiKeysFormat' { }
- pattern ApiKeysFormat_Csv :: ApiKeysFormat
- newtype AuthorizerType where
- AuthorizerType' { }
- pattern AuthorizerType_COGNITO_USER_POOLS :: AuthorizerType
- pattern AuthorizerType_REQUEST :: AuthorizerType
- pattern AuthorizerType_TOKEN :: AuthorizerType
- newtype CacheClusterSize where
- CacheClusterSize' { }
- pattern CacheClusterSize_ :: CacheClusterSize
- newtype CacheClusterStatus where
- CacheClusterStatus' { }
- pattern CacheClusterStatus_AVAILABLE :: CacheClusterStatus
- pattern CacheClusterStatus_CREATE_IN_PROGRESS :: CacheClusterStatus
- pattern CacheClusterStatus_DELETE_IN_PROGRESS :: CacheClusterStatus
- pattern CacheClusterStatus_FLUSH_IN_PROGRESS :: CacheClusterStatus
- pattern CacheClusterStatus_NOT_AVAILABLE :: CacheClusterStatus
- newtype ConnectionType where
- ConnectionType' { }
- pattern ConnectionType_INTERNET :: ConnectionType
- pattern ConnectionType_VPC_LINK :: ConnectionType
- newtype ContentHandlingStrategy where
- newtype DocumentationPartType where
- DocumentationPartType' { }
- pattern DocumentationPartType_API :: DocumentationPartType
- pattern DocumentationPartType_AUTHORIZER :: DocumentationPartType
- pattern DocumentationPartType_METHOD :: DocumentationPartType
- pattern DocumentationPartType_MODEL :: DocumentationPartType
- pattern DocumentationPartType_PATH_PARAMETER :: DocumentationPartType
- pattern DocumentationPartType_QUERY_PARAMETER :: DocumentationPartType
- pattern DocumentationPartType_REQUEST_BODY :: DocumentationPartType
- pattern DocumentationPartType_REQUEST_HEADER :: DocumentationPartType
- pattern DocumentationPartType_RESOURCE :: DocumentationPartType
- pattern DocumentationPartType_RESPONSE :: DocumentationPartType
- pattern DocumentationPartType_RESPONSE_BODY :: DocumentationPartType
- pattern DocumentationPartType_RESPONSE_HEADER :: DocumentationPartType
- newtype DomainNameStatus where
- DomainNameStatus' { }
- pattern DomainNameStatus_AVAILABLE :: DomainNameStatus
- pattern DomainNameStatus_PENDING :: DomainNameStatus
- pattern DomainNameStatus_PENDING_CERTIFICATE_REIMPORT :: DomainNameStatus
- pattern DomainNameStatus_PENDING_OWNERSHIP_VERIFICATION :: DomainNameStatus
- pattern DomainNameStatus_UPDATING :: DomainNameStatus
- newtype EndpointType where
- EndpointType' { }
- pattern EndpointType_EDGE :: EndpointType
- pattern EndpointType_PRIVATE :: EndpointType
- pattern EndpointType_REGIONAL :: EndpointType
- newtype GatewayResponseType where
- GatewayResponseType' { }
- pattern GatewayResponseType_ACCESS_DENIED :: GatewayResponseType
- pattern GatewayResponseType_API_CONFIGURATION_ERROR :: GatewayResponseType
- pattern GatewayResponseType_AUTHORIZER_CONFIGURATION_ERROR :: GatewayResponseType
- pattern GatewayResponseType_AUTHORIZER_FAILURE :: GatewayResponseType
- pattern GatewayResponseType_BAD_REQUEST_BODY :: GatewayResponseType
- pattern GatewayResponseType_BAD_REQUEST_PARAMETERS :: GatewayResponseType
- pattern GatewayResponseType_DEFAULT_4XX :: GatewayResponseType
- pattern GatewayResponseType_DEFAULT_5XX :: GatewayResponseType
- pattern GatewayResponseType_EXPIRED_TOKEN :: GatewayResponseType
- pattern GatewayResponseType_INTEGRATION_FAILURE :: GatewayResponseType
- pattern GatewayResponseType_INTEGRATION_TIMEOUT :: GatewayResponseType
- pattern GatewayResponseType_INVALID_API_KEY :: GatewayResponseType
- pattern GatewayResponseType_INVALID_SIGNATURE :: GatewayResponseType
- pattern GatewayResponseType_MISSING_AUTHENTICATION_TOKEN :: GatewayResponseType
- pattern GatewayResponseType_QUOTA_EXCEEDED :: GatewayResponseType
- pattern GatewayResponseType_REQUEST_TOO_LARGE :: GatewayResponseType
- pattern GatewayResponseType_RESOURCE_NOT_FOUND :: GatewayResponseType
- pattern GatewayResponseType_THROTTLED :: GatewayResponseType
- pattern GatewayResponseType_UNAUTHORIZED :: GatewayResponseType
- pattern GatewayResponseType_UNSUPPORTED_MEDIA_TYPE :: GatewayResponseType
- pattern GatewayResponseType_WAF_FILTERED :: GatewayResponseType
- newtype IntegrationType where
- IntegrationType' { }
- pattern IntegrationType_AWS :: IntegrationType
- pattern IntegrationType_AWS_PROXY :: IntegrationType
- pattern IntegrationType_HTTP :: IntegrationType
- pattern IntegrationType_HTTP_PROXY :: IntegrationType
- pattern IntegrationType_MOCK :: IntegrationType
- newtype LocationStatusType where
- newtype Op where
- newtype PutMode where
- PutMode' {
- fromPutMode :: Text
- pattern PutMode_Merge :: PutMode
- pattern PutMode_Overwrite :: PutMode
- PutMode' {
- newtype QuotaPeriodType where
- QuotaPeriodType' { }
- pattern QuotaPeriodType_DAY :: QuotaPeriodType
- pattern QuotaPeriodType_MONTH :: QuotaPeriodType
- pattern QuotaPeriodType_WEEK :: QuotaPeriodType
- newtype SecurityPolicy where
- SecurityPolicy' { }
- pattern SecurityPolicy_TLS_1_0 :: SecurityPolicy
- pattern SecurityPolicy_TLS_1_2 :: SecurityPolicy
- newtype UnauthorizedCacheControlHeaderStrategy where
- UnauthorizedCacheControlHeaderStrategy' { }
- pattern UnauthorizedCacheControlHeaderStrategy_FAIL_WITH_403 :: UnauthorizedCacheControlHeaderStrategy
- pattern UnauthorizedCacheControlHeaderStrategy_SUCCEED_WITHOUT_RESPONSE_HEADER :: UnauthorizedCacheControlHeaderStrategy
- pattern UnauthorizedCacheControlHeaderStrategy_SUCCEED_WITH_RESPONSE_HEADER :: UnauthorizedCacheControlHeaderStrategy
- newtype VpcLinkStatus where
- VpcLinkStatus' { }
- pattern VpcLinkStatus_AVAILABLE :: VpcLinkStatus
- pattern VpcLinkStatus_DELETING :: VpcLinkStatus
- pattern VpcLinkStatus_FAILED :: VpcLinkStatus
- pattern VpcLinkStatus_PENDING :: VpcLinkStatus
- data AccessLogSettings = AccessLogSettings' (Maybe Text) (Maybe Text)
- newAccessLogSettings :: AccessLogSettings
- data Account = Account' (Maybe Text) (Maybe Text) (Maybe [Text]) (Maybe ThrottleSettings)
- newAccount :: Account
- data ApiKey = ApiKey' (Maybe Bool) (Maybe Text) (Maybe Text) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe [Text]) (Maybe POSIX) (Maybe Text) (Maybe (HashMap Text Text))
- newApiKey :: ApiKey
- data ApiStage = ApiStage' (Maybe Text) (Maybe Text) (Maybe (HashMap Text ThrottleSettings))
- newApiStage :: ApiStage
- data Authorizer = Authorizer' (Maybe Text) (Maybe Text) (Maybe [Text]) (Maybe Text) (Maybe Text) (Maybe Int) (Maybe Text) (Maybe AuthorizerType) (Maybe Text) (Maybe Text)
- newAuthorizer :: Authorizer
- data BasePathMapping = BasePathMapping' (Maybe Text) (Maybe Text) (Maybe Text)
- newBasePathMapping :: BasePathMapping
- data CanarySettings = CanarySettings' (Maybe Text) (Maybe (HashMap Text Text)) (Maybe Bool) (Maybe Double)
- newCanarySettings :: CanarySettings
- data ClientCertificate = ClientCertificate' (Maybe Text) (Maybe Text) (Maybe POSIX) (Maybe POSIX) (Maybe Text) (Maybe (HashMap Text Text))
- newClientCertificate :: ClientCertificate
- data Deployment = Deployment' (Maybe (HashMap Text (HashMap Text MethodSnapshot))) (Maybe POSIX) (Maybe Text) (Maybe Text)
- newDeployment :: Deployment
- data DeploymentCanarySettings = DeploymentCanarySettings' (Maybe (HashMap Text Text)) (Maybe Bool) (Maybe Double)
- newDeploymentCanarySettings :: DeploymentCanarySettings
- data DocumentationPart = DocumentationPart' (Maybe DocumentationPartLocation) (Maybe Text) (Maybe Text)
- newDocumentationPart :: DocumentationPart
- data DocumentationPartLocation = DocumentationPartLocation' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) DocumentationPartType
- newDocumentationPartLocation :: DocumentationPartType -> DocumentationPartLocation
- data DocumentationVersion = DocumentationVersion' (Maybe POSIX) (Maybe Text) (Maybe Text)
- newDocumentationVersion :: DocumentationVersion
- data DomainName = DomainName' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe SecurityPolicy) (Maybe Text) (Maybe MutualTlsAuthentication) (Maybe Text) (Maybe Text) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe DomainNameStatus) (Maybe (HashMap Text Text))
- newDomainName :: DomainName
- data EndpointConfiguration = EndpointConfiguration' (Maybe [EndpointType]) (Maybe [Text])
- newEndpointConfiguration :: EndpointConfiguration
- data GatewayResponse = GatewayResponse' (Maybe Bool) (Maybe (HashMap Text Text)) (Maybe GatewayResponseType) (Maybe Text) (Maybe (HashMap Text Text))
- newGatewayResponse :: GatewayResponse
- data Integration = Integration' (Maybe Text) (Maybe (HashMap Text Text)) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe ContentHandlingStrategy) (Maybe Text) (Maybe Text) (Maybe (HashMap Text IntegrationResponse)) (Maybe TlsConfig) (Maybe Text) (Maybe Int) (Maybe IntegrationType) (Maybe ConnectionType) (Maybe [Text])
- newIntegration :: Integration
- data IntegrationResponse = IntegrationResponse' (Maybe ContentHandlingStrategy) (Maybe (HashMap Text Text)) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text))
- newIntegrationResponse :: IntegrationResponse
- data Method = Method' (Maybe (HashMap Text MethodResponse)) (Maybe Text) (Maybe [Text]) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe (HashMap Text Bool)) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Bool) (Maybe Integration)
- newMethod :: Method
- data MethodResponse = MethodResponse' (Maybe (HashMap Text Text)) (Maybe Text) (Maybe (HashMap Text Bool))
- newMethodResponse :: MethodResponse
- data MethodSetting = MethodSetting' (Maybe Int) (Maybe Bool) (Maybe Int) (Maybe Bool) (Maybe Text) (Maybe Bool) (Maybe Bool) (Maybe Bool) (Maybe Double) (Maybe UnauthorizedCacheControlHeaderStrategy)
- newMethodSetting :: MethodSetting
- data MethodSnapshot = MethodSnapshot' (Maybe Text) (Maybe Bool)
- newMethodSnapshot :: MethodSnapshot
- data Model = Model' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text)
- newModel :: Model
- data MutualTlsAuthentication = MutualTlsAuthentication' (Maybe [Text]) (Maybe Text) (Maybe Text)
- newMutualTlsAuthentication :: MutualTlsAuthentication
- data MutualTlsAuthenticationInput = MutualTlsAuthenticationInput' (Maybe Text) (Maybe Text)
- newMutualTlsAuthenticationInput :: MutualTlsAuthenticationInput
- data PatchOperation = PatchOperation' (Maybe Op) (Maybe Text) (Maybe Text) (Maybe Text)
- newPatchOperation :: PatchOperation
- data QuotaSettings = QuotaSettings' (Maybe Int) (Maybe QuotaPeriodType) (Maybe Int)
- newQuotaSettings :: QuotaSettings
- data RequestValidator = RequestValidator' (Maybe Bool) (Maybe Text) (Maybe Bool) (Maybe Text)
- newRequestValidator :: RequestValidator
- data Resource = Resource' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Method)) (Maybe Text)
- newResource :: Resource
- data RestApi = RestApi' (Maybe Int) (Maybe Bool) (Maybe [Text]) (Maybe [Text]) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe ApiKeySourceType) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe Text) (Maybe (HashMap Text Text))
- newRestApi :: RestApi
- data SdkConfigurationProperty = SdkConfigurationProperty' (Maybe Text) (Maybe Bool) (Maybe Text) (Maybe Text) (Maybe Text)
- newSdkConfigurationProperty :: SdkConfigurationProperty
- data SdkType = SdkType' (Maybe Text) (Maybe [SdkConfigurationProperty]) (Maybe Text) (Maybe Text)
- newSdkType :: SdkType
- data Stage = Stage' (Maybe Text) (Maybe (HashMap Text Text)) (Maybe AccessLogSettings) (Maybe Text) (Maybe Text) (Maybe Bool) (Maybe POSIX) (Maybe CacheClusterStatus) (Maybe (HashMap Text MethodSetting)) (Maybe POSIX) (Maybe CacheClusterSize) (Maybe Text) (Maybe CanarySettings) (Maybe Bool) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text))
- newStage :: Stage
- data StageKey = StageKey' (Maybe Text) (Maybe Text)
- newStageKey :: StageKey
- data ThrottleSettings = ThrottleSettings' (Maybe Int) (Maybe Double)
- newThrottleSettings :: ThrottleSettings
- data TlsConfig = TlsConfig' (Maybe Bool)
- newTlsConfig :: TlsConfig
- data Usage = Usage' (Maybe Text) (Maybe Text) (Maybe (HashMap Text [[Integer]])) (Maybe Text) (Maybe Text)
- newUsage :: Usage
- data UsagePlan = UsagePlan' (Maybe [ApiStage]) (Maybe Text) (Maybe Text) (Maybe ThrottleSettings) (Maybe QuotaSettings) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text))
- newUsagePlan :: UsagePlan
- data UsagePlanKey = UsagePlanKey' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text)
- newUsagePlanKey :: UsagePlanKey
- data VpcLink = VpcLink' (Maybe VpcLinkStatus) (Maybe [Text]) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text))
- newVpcLink :: VpcLink
Service Configuration
defaultService :: Service Source #
API version 2015-07-09 of the Amazon API Gateway SDK configuration.
Errors
Error matchers are designed for use with the functions provided by
Control.Exception.Lens.
This allows catching (and rethrowing) service specific errors returned
by APIGateway.
ConflictException
_ConflictException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The request configuration has conflicts. For details, see the accompanying error message.
NotFoundException
_NotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The requested resource is not found. Make sure that the request URI is correct.
TooManyRequestsException
_TooManyRequestsException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The request has reached its throttling limit. Retry after the specified time period.
ServiceUnavailableException
_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
_UnauthorizedException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The request is denied because the caller has insufficient permissions.
BadRequestException
_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
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The request exceeded the rate limit. Retry after the specified time period.
Waiters
Waiters poll by repeatedly sending a request until some remote success condition
configured by the Wait specification is fulfilled. The Wait specification
determines how many attempts should be made, in addition to delay and retry strategies.
Operations
Some AWS operations return results that are incomplete and require subsequent
requests in order to obtain the entire result set. The process of sending
subsequent requests to continue where a previous request left off is called
pagination. For example, the ListObjects operation of Amazon S3 returns up to
1000 objects at a time, and you must send subsequent requests with the
appropriate Marker in order to retrieve the next page of results.
Operations that have an AWSPager instance can transparently perform subsequent
requests, correctly setting Markers and other request facets to iterate through
the entire result set of a truncated API operation. Operations which support
this have an additional note in the documentation.
Many operations have the ability to filter results on the server side. See the individual operation parameters for details.
GetResource
data GetResource Source #
Request to list information about a resource.
See: newGetResource smart constructor.
Constructors
| GetResource' (Maybe [Text]) Text Text |
Instances
Create a value of GetResource 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:embed:GetResource', getResource_embed - A query parameter to retrieve the specified resources embedded in the
returned Resource representation in the response. This embed parameter
value is a list of comma-separated strings. Currently, the request
supports only retrieval of the embedded Method resources this way. The
query parameter value must be a single-valued list and contain the
"methods" string. For example,
GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods.
$sel:restApiId:GetResource', getResource_restApiId - [Required] The string identifier of the associated RestApi.
$sel:resourceId:GetResource', getResource_resourceId - [Required] The identifier for the Resource resource.
Constructors
| Resource' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Method)) (Maybe Text) |
Instances
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.
GetDeployments (Paginated)
data GetDeployments Source #
Requests API Gateway to get information about a Deployments collection.
See: newGetDeployments smart constructor.
Instances
Arguments
| :: Text | |
| -> GetDeployments |
Create a value of GetDeployments 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:limit:GetDeployments', getDeployments_limit - The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
$sel:position:GetDeployments', getDeployments_position - The current pagination position in the paged result set.
$sel:restApiId:GetDeployments', getDeployments_restApiId - [Required] The string identifier of the associated RestApi.
data GetDeploymentsResponse Source #
Represents a collection resource that contains zero or more references to your existing deployments, and links that guide you on how to interact with your collection. The collection offers a paginated view of the contained deployments.
To create a new deployment of a RestApi, make a POST request against
this resource. To view, update, or delete an existing deployment, make a
GET, PATCH, or DELETE request, respectively, on a specified
Deployment resource.
Deploying an API, AWS CLI, AWS SDKs
See: newGetDeploymentsResponse smart constructor.
Constructors
| GetDeploymentsResponse' (Maybe [Deployment]) (Maybe Text) Int |
Instances
newGetDeploymentsResponse Source #
Create a value of GetDeploymentsResponse 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:items:GetDeploymentsResponse', getDeploymentsResponse_items - The current page of elements from this collection.
$sel:position:GetDeployments', getDeploymentsResponse_position - Undocumented member.
$sel:httpStatus:GetDeploymentsResponse', getDeploymentsResponse_httpStatus - The response's http status code.
GetDeployment
data GetDeployment Source #
Requests API Gateway to get information about a Deployment resource.
See: newGetDeployment smart constructor.
Constructors
| GetDeployment' (Maybe [Text]) Text Text |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> GetDeployment |
Create a value of GetDeployment 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:embed:GetDeployment', getDeployment_embed - A query parameter to retrieve the specified embedded resources of the
returned Deployment resource in the response. In a REST API call, this
embed parameter value is a list of comma-separated strings, as in
GET /restapis/{restapi_id}/deployments/{deployment_id}?embed=var1,var2.
The SDK and other platform-dependent libraries might use a different
format for the list. Currently, this request supports only retrieval of
the embedded API summary this way. Hence, the parameter value must be a
single-valued list containing only the "apisummary" string. For
example,
GET /restapis/{restapi_id}/deployments/{deployment_id}?embed=apisummary.
$sel:restApiId:GetDeployment', getDeployment_restApiId - [Required] The string identifier of the associated RestApi.
$sel:deploymentId:GetDeployment', getDeployment_deploymentId - [Required] The identifier of the Deployment resource to get information
about.
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' (Maybe (HashMap Text (HashMap Text MethodSnapshot))) (Maybe POSIX) (Maybe Text) (Maybe Text) |
Instances
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.
GetTags
Gets the Tags collection for a given resource.
See: newGetTags smart constructor.
Instances
Create a value of GetTags 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:limit:GetTags', getTags_limit - (Not currently supported) The maximum number of returned results per
page. The default value is 25 and the maximum value is 500.
$sel:position:GetTags', getTags_position - (Not currently supported) The current pagination position in the paged
result set.
$sel:resourceArn:GetTags', getTags_resourceArn - [Required] The ARN of a resource that can be tagged.
data GetTagsResponse Source #
The collection of tags. Each tag element is associated with a given resource.
See: newGetTagsResponse smart constructor.
Instances
Arguments
| :: Int | |
| -> GetTagsResponse |
Create a value of GetTagsResponse 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:tags:GetTagsResponse', getTagsResponse_tags - The collection of tags. Each tag element is associated with a given
resource.
$sel:httpStatus:GetTagsResponse', getTagsResponse_httpStatus - The response's http status code.
DeleteGatewayResponse
data DeleteGatewayResponse Source #
Clears any customization of a GatewayResponse of a specified response type on the given RestApi and resets it with the default settings.
See: newDeleteGatewayResponse smart constructor.
Constructors
| DeleteGatewayResponse' Text GatewayResponseType |
Instances
newDeleteGatewayResponse Source #
Arguments
| :: Text | |
| -> GatewayResponseType | |
| -> DeleteGatewayResponse |
Create a value of DeleteGatewayResponse 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:DeleteGatewayResponse', deleteGatewayResponse_restApiId - [Required] The string identifier of the associated RestApi.
$sel:responseType:DeleteGatewayResponse', deleteGatewayResponse_responseType - [Required]
The response type of the associated GatewayResponse.
data DeleteGatewayResponseResponse Source #
See: newDeleteGatewayResponseResponse smart constructor.
Constructors
| DeleteGatewayResponseResponse' | |
Instances
| Eq DeleteGatewayResponseResponse Source # | |
Defined in Amazonka.APIGateway.DeleteGatewayResponse | |
| Read DeleteGatewayResponseResponse Source # | |
| Show DeleteGatewayResponseResponse Source # | |
Defined in Amazonka.APIGateway.DeleteGatewayResponse Methods showsPrec :: Int -> DeleteGatewayResponseResponse -> ShowS # show :: DeleteGatewayResponseResponse -> String # showList :: [DeleteGatewayResponseResponse] -> ShowS # | |
| Generic DeleteGatewayResponseResponse Source # | |
Defined in Amazonka.APIGateway.DeleteGatewayResponse Associated Types type Rep DeleteGatewayResponseResponse :: Type -> Type # | |
| NFData DeleteGatewayResponseResponse Source # | |
Defined in Amazonka.APIGateway.DeleteGatewayResponse Methods rnf :: DeleteGatewayResponseResponse -> () # | |
| type Rep DeleteGatewayResponseResponse Source # | |
Defined in Amazonka.APIGateway.DeleteGatewayResponse | |
newDeleteGatewayResponseResponse :: DeleteGatewayResponseResponse Source #
Create a value of DeleteGatewayResponseResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
UpdateGatewayResponse
data UpdateGatewayResponse Source #
Updates a GatewayResponse of a specified response type on the given RestApi.
See: newUpdateGatewayResponse smart constructor.
Constructors
| UpdateGatewayResponse' (Maybe [PatchOperation]) Text GatewayResponseType |
Instances
newUpdateGatewayResponse Source #
Arguments
| :: Text | |
| -> GatewayResponseType | |
| -> UpdateGatewayResponse |
Create a value of UpdateGatewayResponse 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:patchOperations:UpdateGatewayResponse', updateGatewayResponse_patchOperations - A list of update operations to be applied to the specified resource and
in the order specified in this list.
$sel:restApiId:UpdateGatewayResponse', updateGatewayResponse_restApiId - [Required] The string identifier of the associated RestApi.
$sel:responseType:UpdateGatewayResponse', updateGatewayResponse_responseType - [Required]
The response type of the associated 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-9c2caefbed45The 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" }See: newGatewayResponse smart constructor.
Constructors
| GatewayResponse' (Maybe Bool) (Maybe (HashMap Text Text)) (Maybe GatewayResponseType) (Maybe Text) (Maybe (HashMap Text Text)) |
Instances
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.
CreateUsagePlan
data CreateUsagePlan Source #
The POST request to create a usage plan with the name, description, throttle limits and quota limits, as well as the associated API stages, specified in the payload.
See: newCreateUsagePlan smart constructor.
Constructors
| CreateUsagePlan' (Maybe [ApiStage]) (Maybe ThrottleSettings) (Maybe QuotaSettings) (Maybe Text) (Maybe (HashMap Text Text)) Text |
Instances
Arguments
| :: Text | |
| -> CreateUsagePlan |
Create a value of CreateUsagePlan 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:CreateUsagePlan', createUsagePlan_apiStages - The associated API stages of the usage plan.
$sel:throttle:CreateUsagePlan', createUsagePlan_throttle - The throttling limits of the usage plan.
$sel:quota:CreateUsagePlan', createUsagePlan_quota - The quota of the usage plan.
$sel:description:CreateUsagePlan', createUsagePlan_description - The description of the usage plan.
$sel:tags:CreateUsagePlan', createUsagePlan_tags - The key-value map of strings. The valid character set is
[a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not
start with aws:. The tag value can be up to 256 characters.
$sel:name:CreateUsagePlan', createUsagePlan_name - [Required] The name of the usage plan.
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.
See: newUsagePlan smart constructor.
Constructors
| UsagePlan' (Maybe [ApiStage]) (Maybe Text) (Maybe Text) (Maybe ThrottleSettings) (Maybe QuotaSettings) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) |
Instances
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.
GetDomainNames (Paginated)
data GetDomainNames Source #
Request to describe a collection of DomainName resources.
See: newGetDomainNames smart constructor.
Constructors
| GetDomainNames' (Maybe Int) (Maybe Text) |
Instances
newGetDomainNames :: GetDomainNames Source #
Create a value of GetDomainNames 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:limit:GetDomainNames', getDomainNames_limit - The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
$sel:position:GetDomainNames', getDomainNames_position - The current pagination position in the paged result set.
data GetDomainNamesResponse Source #
Represents a collection of DomainName resources.
See: newGetDomainNamesResponse smart constructor.
Constructors
| GetDomainNamesResponse' (Maybe [DomainName]) (Maybe Text) Int |
Instances
newGetDomainNamesResponse Source #
Create a value of GetDomainNamesResponse 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:items:GetDomainNamesResponse', getDomainNamesResponse_items - The current page of elements from this collection.
$sel:position:GetDomainNames', getDomainNamesResponse_position - Undocumented member.
$sel:httpStatus:GetDomainNamesResponse', getDomainNamesResponse_httpStatus - The response's http status code.
GetClientCertificate
data GetClientCertificate Source #
A request to get information about the current ClientCertificate resource.
See: newGetClientCertificate smart constructor.
Constructors
| GetClientCertificate' Text |
Instances
newGetClientCertificate Source #
Create a value of GetClientCertificate 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:clientCertificateId:GetClientCertificate', getClientCertificate_clientCertificateId - [Required] The identifier of the ClientCertificate resource to be
described.
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.
See: newClientCertificate smart constructor.
Constructors
| ClientCertificate' (Maybe Text) (Maybe Text) (Maybe POSIX) (Maybe POSIX) (Maybe Text) (Maybe (HashMap Text Text)) |
Instances
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.
PutGatewayResponse
data PutGatewayResponse Source #
Creates a customization of a GatewayResponse of a specified response type and status code on the given RestApi.
See: newPutGatewayResponse smart constructor.
Constructors
| PutGatewayResponse' (Maybe (HashMap Text Text)) (Maybe Text) (Maybe (HashMap Text Text)) Text GatewayResponseType |
Instances
newPutGatewayResponse Source #
Arguments
| :: Text | |
| -> GatewayResponseType | |
| -> PutGatewayResponse |
Create a value of PutGatewayResponse 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:responseTemplates:PutGatewayResponse', putGatewayResponse_responseTemplates - Response templates of the GatewayResponse as a string-to-string map of
key-value pairs.
$sel:statusCode:PutGatewayResponse', putGatewayResponse_statusCode - The HTTP status code of the GatewayResponse.
$sel:responseParameters:PutGatewayResponse', putGatewayResponse_responseParameters - Response parameters (paths, query strings and headers) of the
GatewayResponse as a string-to-string map of key-value pairs.
$sel:restApiId:PutGatewayResponse', putGatewayResponse_restApiId - [Required] The string identifier of the associated RestApi.
$sel:responseType:PutGatewayResponse', putGatewayResponse_responseType - [Required]
The response type of the associated 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-9c2caefbed45The 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" }See: newGatewayResponse smart constructor.
Constructors
| GatewayResponse' (Maybe Bool) (Maybe (HashMap Text Text)) (Maybe GatewayResponseType) (Maybe Text) (Maybe (HashMap Text Text)) |
Instances
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.
GetSdkType
data GetSdkType Source #
Get an SdkType instance.
See: newGetSdkType smart constructor.
Constructors
| GetSdkType' Text |
Instances
Arguments
| :: Text | |
| -> GetSdkType |
Create a value of GetSdkType 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:id:GetSdkType', getSdkType_id - [Required] The identifier of the queried SdkType instance.
A type of SDK that API Gateway can generate.
See: newSdkType smart constructor.
Instances
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.
GetMethodResponse
data GetMethodResponse Source #
Request to describe a MethodResponse resource.
See: newGetMethodResponse smart constructor.
Constructors
| GetMethodResponse' Text Text Text Text |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> GetMethodResponse |
Create a value of GetMethodResponse 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:GetMethodResponse', getMethodResponse_restApiId - [Required] The string identifier of the associated RestApi.
$sel:resourceId:GetMethodResponse', getMethodResponse_resourceId - [Required] The Resource identifier for the MethodResponse resource.
$sel:httpMethod:GetMethodResponse', getMethodResponse_httpMethod - [Required] The HTTP verb of the Method resource.
$sel:statusCode:GetMethodResponse', getMethodResponse_statusCode - [Required] The status code for the MethodResponse resource.
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.
Instances
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.)
GetModels (Paginated)
Request to list existing Models defined for a RestApi resource.
See: newGetModels smart constructor.
Instances
Create a value of GetModels 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:limit:GetModels', getModels_limit - The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
$sel:position:GetModels', getModels_position - The current pagination position in the paged result set.
$sel:restApiId:GetModels', getModels_restApiId - [Required] The string identifier of the associated RestApi.
data GetModelsResponse Source #
Represents a collection of Model resources.
Method, MethodResponse, Models and Mappings
See: newGetModelsResponse smart constructor.
Instances
Arguments
| :: Int | |
| -> GetModelsResponse |
Create a value of GetModelsResponse 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:items:GetModelsResponse', getModelsResponse_items - The current page of elements from this collection.
$sel:position:GetModels', getModelsResponse_position - Undocumented member.
$sel:httpStatus:GetModelsResponse', getModelsResponse_httpStatus - The response's http status code.
GetBasePathMapping
data GetBasePathMapping Source #
Request to describe a BasePathMapping resource.
See: newGetBasePathMapping smart constructor.
Constructors
| GetBasePathMapping' Text Text |
Instances
newGetBasePathMapping Source #
Arguments
| :: Text | |
| -> Text | |
| -> GetBasePathMapping |
Create a value of GetBasePathMapping 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:domainName:GetBasePathMapping', getBasePathMapping_domainName - [Required] The domain name of the BasePathMapping resource to be
described.
$sel:basePath:GetBasePathMapping', getBasePathMapping_basePath - [Required] The base path name that callers of the API must provide as
part of the URL after the domain name. This value must be unique for all
of the mappings across a single API. Specify '(none)' if you do not
want callers to specify any base path name after the domain name.
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.
See: newBasePathMapping smart constructor.
Instances
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.
GetRequestValidators (Paginated)
data GetRequestValidators Source #
Gets the RequestValidators collection of a given RestApi.
See: newGetRequestValidators smart constructor.
Instances
newGetRequestValidators Source #
Arguments
| :: Text | |
| -> GetRequestValidators |
Create a value of GetRequestValidators 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:limit:GetRequestValidators', getRequestValidators_limit - The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
$sel:position:GetRequestValidators', getRequestValidators_position - The current pagination position in the paged result set.
$sel:restApiId:GetRequestValidators', getRequestValidators_restApiId - [Required] The string identifier of the associated RestApi.
data GetRequestValidatorsResponse Source #
A collection of RequestValidator resources of a given RestApi.
In OpenAPI, the RequestValidators of an API is defined by the x-amazon-apigateway-request-validators extension.
Enable Basic Request Validation in API Gateway
See: newGetRequestValidatorsResponse smart constructor.
Constructors
| GetRequestValidatorsResponse' (Maybe [RequestValidator]) (Maybe Text) Int |
Instances
newGetRequestValidatorsResponse Source #
Create a value of GetRequestValidatorsResponse 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:items:GetRequestValidatorsResponse', getRequestValidatorsResponse_items - The current page of elements from this collection.
$sel:position:GetRequestValidators', getRequestValidatorsResponse_position - Undocumented member.
$sel:httpStatus:GetRequestValidatorsResponse', getRequestValidatorsResponse_httpStatus - The response's http status code.
PutMethodResponse
data PutMethodResponse Source #
Request to add a MethodResponse to an existing Method resource.
See: newPutMethodResponse smart constructor.
Constructors
| PutMethodResponse' (Maybe (HashMap Text Text)) (Maybe (HashMap Text Bool)) Text Text Text Text |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> PutMethodResponse |
Create a value of PutMethodResponse 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:PutMethodResponse', putMethodResponse_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:responseParameters:PutMethodResponse', putMethodResponse_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 name and the associated value is a Boolean flag indicating
whether the method response parameter is required or not. The method
response header names must match the pattern of
method.response.header.{name}, where name is a valid and unique
header name. The response parameter names defined here are available in
the integration response to be mapped from 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.)
$sel:restApiId:PutMethodResponse', putMethodResponse_restApiId - [Required] The string identifier of the associated RestApi.
$sel:resourceId:PutMethodResponse', putMethodResponse_resourceId - [Required] The Resource identifier for the Method resource.
$sel:httpMethod:PutMethodResponse', putMethodResponse_httpMethod - [Required] The HTTP verb of the Method resource.
$sel:statusCode:PutMethodResponse', putMethodResponse_statusCode - [Required] The method response's status code.
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.
Instances
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.)
ImportRestApi
data ImportRestApi Source #
A POST request to import an API to API Gateway using an input of an API definition file.
See: newImportRestApi smart constructor.
Constructors
| ImportRestApi' (Maybe Bool) (Maybe (HashMap Text Text)) ByteString |
Instances
Arguments
| :: ByteString | |
| -> ImportRestApi |
Create a value of ImportRestApi 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:failOnWarnings:ImportRestApi', importRestApi_failOnWarnings - A query parameter to indicate whether to rollback the API creation
(true) or not (false) when a warning is encountered. The default
value is false.
$sel:parameters:ImportRestApi', importRestApi_parameters - A key-value map of context-specific query string parameters specifying
the behavior of different API importing operations. The following shows
operation-specific parameters and their supported values.
To exclude DocumentationParts from the import, set parameters as
ignore=documentation.
To configure the endpoint type, set parameters as
endpointConfigurationTypes=EDGE,
endpointConfigurationTypes=REGIONAL, or
endpointConfigurationTypes=PRIVATE. The default endpoint type is
EDGE.
To handle imported basepath, set parameters as basepath=ignore,
basepath=prepend or basepath=split.
For example, the AWS CLI command to exclude documentation from the imported API is:
aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'
The AWS CLI command to set the regional endpoint on the imported API is:
aws apigateway import-rest-api --parameters endpointConfigurationTypes=REGIONAL --body 'file:///path/to/imported-api-body.json'
$sel:body:ImportRestApi', importRestApi_body - [Required] The POST request body containing external API definitions.
Currently, only OpenAPI definition JSON/YAML files are supported. The
maximum size of the API definition file is 6MB.
Constructors
| RestApi' (Maybe Int) (Maybe Bool) (Maybe [Text]) (Maybe [Text]) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe ApiKeySourceType) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe Text) (Maybe (HashMap Text Text)) |
Instances
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:
HEADERto read the API key from theX-API-Keyheader of a request.AUTHORIZERto read the API key from theUsageIdentifierKeyfrom 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.
DeleteMethodResponse
data DeleteMethodResponse Source #
A request to delete an existing MethodResponse resource.
See: newDeleteMethodResponse smart constructor.
Constructors
| DeleteMethodResponse' Text Text Text Text |
Instances
newDeleteMethodResponse Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> DeleteMethodResponse |
Create a value of DeleteMethodResponse 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:DeleteMethodResponse', deleteMethodResponse_restApiId - [Required] The string identifier of the associated RestApi.
$sel:resourceId:DeleteMethodResponse', deleteMethodResponse_resourceId - [Required] The Resource identifier for the MethodResponse resource.
$sel:httpMethod:DeleteMethodResponse', deleteMethodResponse_httpMethod - [Required] The HTTP verb of the Method resource.
$sel:statusCode:DeleteMethodResponse', deleteMethodResponse_statusCode - [Required] The status code identifier for the MethodResponse resource.
data DeleteMethodResponseResponse Source #
See: newDeleteMethodResponseResponse smart constructor.
Constructors
| DeleteMethodResponseResponse' | |
Instances
| Eq DeleteMethodResponseResponse Source # | |
Defined in Amazonka.APIGateway.DeleteMethodResponse Methods (==) :: DeleteMethodResponseResponse -> DeleteMethodResponseResponse -> Bool # (/=) :: DeleteMethodResponseResponse -> DeleteMethodResponseResponse -> Bool # | |
| Read DeleteMethodResponseResponse Source # | |
| Show DeleteMethodResponseResponse Source # | |
Defined in Amazonka.APIGateway.DeleteMethodResponse Methods showsPrec :: Int -> DeleteMethodResponseResponse -> ShowS # show :: DeleteMethodResponseResponse -> String # showList :: [DeleteMethodResponseResponse] -> ShowS # | |
| Generic DeleteMethodResponseResponse Source # | |
Defined in Amazonka.APIGateway.DeleteMethodResponse Associated Types type Rep DeleteMethodResponseResponse :: Type -> Type # | |
| NFData DeleteMethodResponseResponse Source # | |
Defined in Amazonka.APIGateway.DeleteMethodResponse Methods rnf :: DeleteMethodResponseResponse -> () # | |
| type Rep DeleteMethodResponseResponse Source # | |
Defined in Amazonka.APIGateway.DeleteMethodResponse | |
newDeleteMethodResponseResponse :: DeleteMethodResponseResponse Source #
Create a value of DeleteMethodResponseResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
UpdateMethodResponse
data UpdateMethodResponse Source #
A request to update an existing MethodResponse resource.
See: newUpdateMethodResponse smart constructor.
Constructors
| UpdateMethodResponse' (Maybe [PatchOperation]) Text Text Text Text |
Instances
newUpdateMethodResponse Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> UpdateMethodResponse |
Create a value of UpdateMethodResponse 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:patchOperations:UpdateMethodResponse', updateMethodResponse_patchOperations - A list of update operations to be applied to the specified resource and
in the order specified in this list.
$sel:restApiId:UpdateMethodResponse', updateMethodResponse_restApiId - [Required] The string identifier of the associated RestApi.
$sel:resourceId:UpdateMethodResponse', updateMethodResponse_resourceId - [Required] The Resource identifier for the MethodResponse resource.
$sel:httpMethod:UpdateMethodResponse', updateMethodResponse_httpMethod - [Required] The HTTP verb of the Method resource.
$sel:statusCode:UpdateMethodResponse', updateMethodResponse_statusCode - [Required] The status code for the MethodResponse resource.
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.
Instances
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.)
DeleteStage
data DeleteStage Source #
Requests API Gateway to delete a Stage resource.
See: newDeleteStage smart constructor.
Constructors
| DeleteStage' Text Text |
Instances
Create a value of DeleteStage 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:DeleteStage', deleteStage_restApiId - [Required] The string identifier of the associated RestApi.
$sel:stageName:DeleteStage', deleteStage_stageName - [Required] The name of the Stage resource to delete.
data DeleteStageResponse Source #
See: newDeleteStageResponse smart constructor.
Constructors
| DeleteStageResponse' | |
Instances
newDeleteStageResponse :: DeleteStageResponse Source #
Create a value of DeleteStageResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
UpdateStage
data UpdateStage Source #
Requests API Gateway to change information about a Stage resource.
See: newUpdateStage smart constructor.
Constructors
| UpdateStage' (Maybe [PatchOperation]) Text Text |
Instances
Create a value of UpdateStage 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:patchOperations:UpdateStage', updateStage_patchOperations - A list of update operations to be applied to the specified resource and
in the order specified in this list.
$sel:restApiId:UpdateStage', updateStage_restApiId - [Required] The string identifier of the associated RestApi.
$sel:stageName:UpdateStage', updateStage_stageName - [Required] The name of the Stage resource to change information about.
Represents a unique identifier for a version of a deployed RestApi that is callable by users.
See: newStage smart constructor.
Constructors
| Stage' (Maybe Text) (Maybe (HashMap Text Text)) (Maybe AccessLogSettings) (Maybe Text) (Maybe Text) (Maybe Bool) (Maybe POSIX) (Maybe CacheClusterStatus) (Maybe (HashMap Text MethodSetting)) (Maybe POSIX) (Maybe CacheClusterSize) (Maybe Text) (Maybe CanarySettings) (Maybe Bool) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) |
Instances
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.
GetRestApis (Paginated)
data GetRestApis Source #
The GET request to list existing RestApis defined for your collection.
See: newGetRestApis smart constructor.
Constructors
| GetRestApis' (Maybe Int) (Maybe Text) |
Instances
newGetRestApis :: GetRestApis Source #
Create a value of GetRestApis 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:limit:GetRestApis', getRestApis_limit - The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
$sel:position:GetRestApis', getRestApis_position - The current pagination position in the paged result set.
data GetRestApisResponse Source #
Contains references to your APIs and links that guide you in how to interact with your collection. A collection offers a paginated view of your APIs.
See: newGetRestApisResponse smart constructor.
Instances
newGetRestApisResponse Source #
Arguments
| :: Int | |
| -> GetRestApisResponse |
Create a value of GetRestApisResponse 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:items:GetRestApisResponse', getRestApisResponse_items - The current page of elements from this collection.
$sel:position:GetRestApis', getRestApisResponse_position - Undocumented member.
$sel:httpStatus:GetRestApisResponse', getRestApisResponse_httpStatus - The response's http status code.
GetDocumentationVersions (Paginated)
data GetDocumentationVersions Source #
Gets the documentation versions of an API.
See: newGetDocumentationVersions smart constructor.
Instances
newGetDocumentationVersions Source #
Create a value of GetDocumentationVersions 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:limit:GetDocumentationVersions', getDocumentationVersions_limit - The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
$sel:position:GetDocumentationVersions', getDocumentationVersions_position - The current pagination position in the paged result set.
$sel:restApiId:GetDocumentationVersions', getDocumentationVersions_restApiId - [Required] The string identifier of the associated RestApi.
data GetDocumentationVersionsResponse Source #
The collection of documentation snapshots of an API.
Use the DocumentationVersions to manage documentation snapshots associated with various API stages.
Documenting an API, DocumentationPart, DocumentationVersion
See: newGetDocumentationVersionsResponse smart constructor.
Constructors
| GetDocumentationVersionsResponse' (Maybe [DocumentationVersion]) (Maybe Text) Int |
Instances
newGetDocumentationVersionsResponse Source #
Create a value of GetDocumentationVersionsResponse 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:items:GetDocumentationVersionsResponse', getDocumentationVersionsResponse_items - The current page of elements from this collection.
$sel:position:GetDocumentationVersions', getDocumentationVersionsResponse_position - Undocumented member.
$sel:httpStatus:GetDocumentationVersionsResponse', getDocumentationVersionsResponse_httpStatus - The response's http status code.
CreateDeployment
data CreateDeployment Source #
Requests API Gateway to create a Deployment resource.
See: newCreateDeployment smart constructor.
Constructors
| CreateDeployment' (Maybe Text) (Maybe (HashMap Text Text)) (Maybe Bool) (Maybe CacheClusterSize) (Maybe DeploymentCanarySettings) (Maybe Bool) (Maybe Text) (Maybe Text) Text |
Instances
Arguments
| :: Text | |
| -> CreateDeployment |
Create a value of CreateDeployment 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:stageDescription:CreateDeployment', createDeployment_stageDescription - The description of the Stage resource for the Deployment resource to
create.
$sel:variables:CreateDeployment', createDeployment_variables - A map that defines the stage variables for the Stage resource that is
associated with the new deployment. Variable names can have alphanumeric
and underscore characters, and the values must match
[A-Za-z0-9-._~:/?#&=,]+.
$sel:tracingEnabled:CreateDeployment', createDeployment_tracingEnabled - Specifies whether active tracing with X-ray is enabled for the Stage.
$sel:cacheClusterSize:CreateDeployment', createDeployment_cacheClusterSize - Specifies the cache cluster size for the Stage resource specified in the
input, if a cache cluster is enabled.
$sel:canarySettings:CreateDeployment', createDeployment_canarySettings - The input configuration for the canary deployment when the deployment is
a canary release deployment.
$sel:cacheClusterEnabled:CreateDeployment', createDeployment_cacheClusterEnabled - Enables a cache cluster for the Stage resource specified in the input.
$sel:stageName:CreateDeployment', createDeployment_stageName - The name of the Stage resource for the Deployment resource to create.
$sel:description:CreateDeployment', createDeployment_description - The description for the Deployment resource to create.
$sel:restApiId:CreateDeployment', createDeployment_restApiId - [Required] The string identifier of the associated RestApi.
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' (Maybe (HashMap Text (HashMap Text MethodSnapshot))) (Maybe POSIX) (Maybe Text) (Maybe Text) |
Instances
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.
GetVpcLinks (Paginated)
data GetVpcLinks Source #
Gets the VpcLinks collection under the caller's account in a selected region.
See: newGetVpcLinks smart constructor.
Constructors
| GetVpcLinks' (Maybe Int) (Maybe Text) |
Instances
newGetVpcLinks :: GetVpcLinks Source #
Create a value of GetVpcLinks 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:limit:GetVpcLinks', getVpcLinks_limit - The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
$sel:position:GetVpcLinks', getVpcLinks_position - The current pagination position in the paged result set.
data GetVpcLinksResponse Source #
The collection of VPC links under the caller's account in a region.
Getting Started with Private Integrations, Set up Private Integrations
See: newGetVpcLinksResponse smart constructor.
Instances
newGetVpcLinksResponse Source #
Arguments
| :: Int | |
| -> GetVpcLinksResponse |
Create a value of GetVpcLinksResponse 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:items:GetVpcLinksResponse', getVpcLinksResponse_items - The current page of elements from this collection.
$sel:position:GetVpcLinks', getVpcLinksResponse_position - Undocumented member.
$sel:httpStatus:GetVpcLinksResponse', getVpcLinksResponse_httpStatus - The response's http status code.
CreateBasePathMapping
data CreateBasePathMapping Source #
Requests API Gateway to create a new BasePathMapping resource.
See: newCreateBasePathMapping smart constructor.
Instances
newCreateBasePathMapping Source #
Arguments
| :: Text | |
| -> Text | |
| -> CreateBasePathMapping |
Create a value of CreateBasePathMapping 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:CreateBasePathMapping', createBasePathMapping_stage - The name of the API's stage that you want to use for this mapping.
Specify '(none)' if you want callers to explicitly specify the stage
name after any base path name.
$sel:basePath:CreateBasePathMapping', createBasePathMapping_basePath - The base path name that callers of the API must provide as part of the
URL after the domain name. This value must be unique for all of the
mappings across a single API. Specify '(none)' if you do not want
callers to specify a base path name after the domain name.
$sel:domainName:CreateBasePathMapping', createBasePathMapping_domainName - [Required] The domain name of the BasePathMapping resource to create.
$sel:restApiId:CreateBasePathMapping', createBasePathMapping_restApiId - [Required] The string identifier of the associated RestApi.
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.
See: newBasePathMapping smart constructor.
Instances
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.
GetIntegration
data GetIntegration Source #
Represents a request to get the integration configuration.
See: newGetIntegration smart constructor.
Constructors
| GetIntegration' Text Text Text |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> GetIntegration |
Create a value of GetIntegration 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:GetIntegration', getIntegration_restApiId - [Required] The string identifier of the associated RestApi.
$sel:resourceId:GetIntegration', getIntegration_resourceId - [Required] Specifies a get integration request's resource identifier
$sel:httpMethod:GetIntegration', getIntegration_httpMethod - [Required] Specifies a get integration request's HTTP method.
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.
See: newIntegration smart constructor.
Constructors
| Integration' (Maybe Text) (Maybe (HashMap Text Text)) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe ContentHandlingStrategy) (Maybe Text) (Maybe Text) (Maybe (HashMap Text IntegrationResponse)) (Maybe TlsConfig) (Maybe Text) (Maybe Int) (Maybe IntegrationType) (Maybe ConnectionType) (Maybe [Text]) |
Instances
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 HTTP415 Unsupported Media Typeresponse.NEVER: rejects the method request with an HTTP415 Unsupported Media Typeresponse 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
HTTPorHTTP_PROXYintegrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, whereconnectionTypeis notVPC_LINK, or private integration, whereconnectionTypeisVPC_LINK. For a private HTTP integration, the URI is not used for routing. - For
AWSorAWS_PROXYintegrations, the URI is of the formarn: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.actioncan be used for an AWS service action-based API, using anAction={name}&{p1}={v1}&p2={v2}...query string. The ensuing{service_api}refers to a supported action{name}plus any required input parameters. Alternatively,pathcan be used for an AWS service path-based API. The ensuingservice_apirefers 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 ofGetObject, theurican be eitherarn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key}orarn: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" }$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.
GetDocumentationParts (Paginated)
data GetDocumentationParts Source #
Gets the documentation parts of an API. The result may be filtered by the type, name, or path of API entities (targets).
See: newGetDocumentationParts smart constructor.
Constructors
| GetDocumentationParts' (Maybe Text) (Maybe LocationStatusType) (Maybe Text) (Maybe Int) (Maybe DocumentationPartType) (Maybe Text) Text |
Instances
newGetDocumentationParts Source #
Create a value of GetDocumentationParts 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:GetDocumentationParts', getDocumentationParts_path - The path of API entities of the to-be-retrieved documentation parts.
$sel:locationStatus:GetDocumentationParts', getDocumentationParts_locationStatus - The status of the API documentation parts to retrieve. Valid values are
DOCUMENTED for retrieving DocumentationPart resources with content and
UNDOCUMENTED for DocumentationPart resources without content.
$sel:nameQuery:GetDocumentationParts', getDocumentationParts_nameQuery - The name of API entities of the to-be-retrieved documentation parts.
$sel:limit:GetDocumentationParts', getDocumentationParts_limit - The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
$sel:type':GetDocumentationParts', getDocumentationParts_type - The type of API entities of the to-be-retrieved documentation parts.
$sel:position:GetDocumentationParts', getDocumentationParts_position - The current pagination position in the paged result set.
$sel:restApiId:GetDocumentationParts', getDocumentationParts_restApiId - [Required] The string identifier of the associated RestApi.
data GetDocumentationPartsResponse Source #
The collection of documentation parts of an API.
Documenting an API, DocumentationPart
See: newGetDocumentationPartsResponse smart constructor.
Constructors
| GetDocumentationPartsResponse' (Maybe [DocumentationPart]) (Maybe Text) Int |
Instances
newGetDocumentationPartsResponse Source #
Create a value of GetDocumentationPartsResponse 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:items:GetDocumentationPartsResponse', getDocumentationPartsResponse_items - The current page of elements from this collection.
$sel:position:GetDocumentationParts', getDocumentationPartsResponse_position - Undocumented member.
$sel:httpStatus:GetDocumentationPartsResponse', getDocumentationPartsResponse_httpStatus - The response's http status code.
UpdateAccount
data UpdateAccount Source #
Requests API Gateway to change information about the current Account resource.
See: newUpdateAccount smart constructor.
Constructors
| UpdateAccount' (Maybe [PatchOperation]) |
Instances
newUpdateAccount :: UpdateAccount Source #
Create a value of UpdateAccount 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:patchOperations:UpdateAccount', updateAccount_patchOperations - A list of update operations to be applied to the specified resource and
in the order specified in this list.
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.
Instances
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.
GetUsagePlan
data GetUsagePlan Source #
The GET request to get a usage plan of a given plan identifier.
See: newGetUsagePlan smart constructor.
Constructors
| GetUsagePlan' Text |
Instances
Arguments
| :: Text | |
| -> GetUsagePlan |
Create a value of GetUsagePlan 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:GetUsagePlan', getUsagePlan_usagePlanId - [Required] The identifier of the UsagePlan resource to be retrieved.
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.
See: newUsagePlan smart constructor.
Constructors
| UsagePlan' (Maybe [ApiStage]) (Maybe Text) (Maybe Text) (Maybe ThrottleSettings) (Maybe QuotaSettings) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) |
Instances
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.
DeleteDeployment
data DeleteDeployment Source #
Requests API Gateway to delete a Deployment resource.
See: newDeleteDeployment smart constructor.
Constructors
| DeleteDeployment' Text Text |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> DeleteDeployment |
Create a value of DeleteDeployment 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:DeleteDeployment', deleteDeployment_restApiId - [Required] The string identifier of the associated RestApi.
$sel:deploymentId:DeleteDeployment', deleteDeployment_deploymentId - [Required] The identifier of the Deployment resource to delete.
data DeleteDeploymentResponse Source #
See: newDeleteDeploymentResponse smart constructor.
Constructors
| DeleteDeploymentResponse' | |
Instances
newDeleteDeploymentResponse :: DeleteDeploymentResponse Source #
Create a value of DeleteDeploymentResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
UpdateDeployment
data UpdateDeployment Source #
Requests API Gateway to change information about a Deployment resource.
See: newUpdateDeployment smart constructor.
Constructors
| UpdateDeployment' (Maybe [PatchOperation]) Text Text |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateDeployment |
Create a value of UpdateDeployment 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:patchOperations:UpdateDeployment', updateDeployment_patchOperations - A list of update operations to be applied to the specified resource and
in the order specified in this list.
$sel:restApiId:UpdateDeployment', updateDeployment_restApiId - [Required] The string identifier of the associated RestApi.
$sel:deploymentId:UpdateDeployment', updateDeployment_deploymentId - The replacement identifier for the Deployment resource to change
information about.
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' (Maybe (HashMap Text (HashMap Text MethodSnapshot))) (Maybe POSIX) (Maybe Text) (Maybe Text) |
Instances
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.
GetDocumentationPart
data GetDocumentationPart Source #
Gets a specified documentation part of a given API.
See: newGetDocumentationPart smart constructor.
Constructors
| GetDocumentationPart' Text Text |
Instances
newGetDocumentationPart Source #
Arguments
| :: Text | |
| -> Text | |
| -> GetDocumentationPart |
Create a value of GetDocumentationPart 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:GetDocumentationPart', getDocumentationPart_restApiId - [Required] The string identifier of the associated RestApi.
$sel:documentationPartId:GetDocumentationPart', getDocumentationPart_documentationPartId - [Required] The string identifier of the associated RestApi.
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' (Maybe DocumentationPartLocation) (Maybe Text) (Maybe Text) |
Instances
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.
DeleteResource
data DeleteResource Source #
Request to delete a Resource.
See: newDeleteResource smart constructor.
Constructors
| DeleteResource' Text Text |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> DeleteResource |
Create a value of DeleteResource 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:DeleteResource', deleteResource_restApiId - [Required] The string identifier of the associated RestApi.
$sel:resourceId:DeleteResource', deleteResource_resourceId - [Required] The identifier of the Resource resource.
data DeleteResourceResponse Source #
See: newDeleteResourceResponse smart constructor.
Constructors
| DeleteResourceResponse' | |
Instances
newDeleteResourceResponse :: DeleteResourceResponse Source #
Create a value of DeleteResourceResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
UpdateResource
data UpdateResource Source #
Request to change information about a Resource resource.
See: newUpdateResource smart constructor.
Constructors
| UpdateResource' (Maybe [PatchOperation]) Text Text |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateResource |
Create a value of UpdateResource 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:patchOperations:UpdateResource', updateResource_patchOperations - A list of update operations to be applied to the specified resource and
in the order specified in this list.
$sel:restApiId:UpdateResource', updateResource_restApiId - [Required] The string identifier of the associated RestApi.
$sel:resourceId:UpdateResource', updateResource_resourceId - [Required] The identifier of the Resource resource.
Constructors
| Resource' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Method)) (Maybe Text) |
Instances
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.
CreateRequestValidator
data CreateRequestValidator Source #
Creates a RequestValidator of a given RestApi.
See: newCreateRequestValidator smart constructor.
Instances
newCreateRequestValidator Source #
Create a value of CreateRequestValidator 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:CreateRequestValidator', createRequestValidator_validateRequestParameters - A Boolean flag to indicate whether to validate request parameters,
true, or not false.
$sel:name:CreateRequestValidator', createRequestValidator_name - The name of the to-be-created RequestValidator.
$sel:validateRequestBody:CreateRequestValidator', createRequestValidator_validateRequestBody - A Boolean flag to indicate whether to validate request body according to
the configured model schema for the method (true) or not (false).
$sel:restApiId:CreateRequestValidator', createRequestValidator_restApiId - [Required] The string identifier of the associated RestApi.
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.
Instances
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.
ImportDocumentationParts
data ImportDocumentationParts Source #
Import documentation parts from an external (e.g., OpenAPI) definition file.
See: newImportDocumentationParts smart constructor.
Constructors
| ImportDocumentationParts' (Maybe PutMode) (Maybe Bool) Text ByteString |
Instances
newImportDocumentationParts Source #
Arguments
| :: Text | |
| -> ByteString | |
| -> ImportDocumentationParts |
Create a value of ImportDocumentationParts 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:mode:ImportDocumentationParts', importDocumentationParts_mode - A query parameter to indicate whether to overwrite (OVERWRITE) any
existing DocumentationParts definition or to merge (MERGE) the new
definition into the existing one. The default value is MERGE.
$sel:failOnWarnings:ImportDocumentationParts', importDocumentationParts_failOnWarnings - A query parameter to specify whether to rollback the documentation
importation (true) or not (false) when a warning is encountered. The
default value is false.
$sel:restApiId:ImportDocumentationParts', importDocumentationParts_restApiId - [Required] The string identifier of the associated RestApi.
$sel:body:ImportDocumentationParts', importDocumentationParts_body - [Required] Raw byte array representing the to-be-imported documentation
parts. To import from an OpenAPI file, this is a JSON object.
data ImportDocumentationPartsResponse Source #
A collection of the imported DocumentationPart identifiers.
This is used to return the result when documentation parts in an external (e.g., OpenAPI) file are imported into API Gateway
Documenting an API, documentationpart:import, DocumentationPart
See: newImportDocumentationPartsResponse smart constructor.
Instances
newImportDocumentationPartsResponse Source #
Create a value of ImportDocumentationPartsResponse 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:ids:ImportDocumentationPartsResponse', importDocumentationPartsResponse_ids - A list of the returned documentation part identifiers.
$sel:warnings:ImportDocumentationPartsResponse', importDocumentationPartsResponse_warnings - A list of warning messages reported during import of documentation
parts.
$sel:httpStatus:ImportDocumentationPartsResponse', importDocumentationPartsResponse_httpStatus - The response's http status code.
GetUsage (Paginated)
The GET request to get the usage data of a usage plan in a specified time interval.
See: newGetUsage smart constructor.
Instances
Create a value of GetUsage 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:keyId:GetUsage', getUsage_keyId - The Id of the API key associated with the resultant usage data.
$sel:limit:GetUsage', getUsage_limit - The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
$sel:position:GetUsage', getUsage_position - The current pagination position in the paged result set.
$sel:usagePlanId:GetUsage', getUsage_usagePlanId - [Required] The Id of the usage plan associated with the usage data.
$sel:startDate:GetUsage', getUsage_startDate - [Required] The starting date (e.g., 2016-01-01) of the usage data.
$sel:endDate:GetUsage', getUsage_endDate - [Required] The ending date (e.g., 2016-12-31) of the usage data.
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' (Maybe Text) (Maybe Text) (Maybe (HashMap Text [[Integer]])) (Maybe Text) (Maybe Text) |
Instances
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.
GetVpcLink
data GetVpcLink Source #
Gets a specified VPC link under the caller's account in a region.
See: newGetVpcLink smart constructor.
Constructors
| GetVpcLink' Text |
Instances
Arguments
| :: Text | |
| -> GetVpcLink |
Create a value of GetVpcLink 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:vpcLinkId:GetVpcLink', getVpcLink_vpcLinkId - [Required] The identifier of the VpcLink. It is used in an Integration
to reference this VpcLink.
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' (Maybe VpcLinkStatus) (Maybe [Text]) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) |
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.
CreateModel
data CreateModel Source #
Request to add a new Model to an existing RestApi resource.
See: newCreateModel smart constructor.
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreateModel |
Create a value of CreateModel 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:CreateModel', createModel_schema - The schema for the model. For application/json models, this should be
JSON schema draft 4
model.
$sel:description:CreateModel', createModel_description - The description of the model.
$sel:restApiId:CreateModel', createModel_restApiId - [Required] The RestApi identifier under which the Model will be created.
$sel:name:CreateModel', createModel_name - [Required] The name of the model. Must be alphanumeric.
$sel:contentType:CreateModel', createModel_contentType - [Required] The content-type for the model.
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.
Instances
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.
GetIntegrationResponse
data GetIntegrationResponse Source #
Represents a get integration response request.
See: newGetIntegrationResponse smart constructor.
Constructors
| GetIntegrationResponse' Text Text Text Text |
Instances
newGetIntegrationResponse Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> GetIntegrationResponse |
Create a value of GetIntegrationResponse 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:GetIntegrationResponse', getIntegrationResponse_restApiId - [Required] The string identifier of the associated RestApi.
$sel:resourceId:GetIntegrationResponse', getIntegrationResponse_resourceId - [Required] Specifies a get integration response request's resource
identifier.
$sel:httpMethod:GetIntegrationResponse', getIntegrationResponse_httpMethod - [Required] Specifies a get integration response request's HTTP method.
$sel:statusCode:GetIntegrationResponse', getIntegrationResponse_statusCode - [Required] Specifies a get integration response request's status code.
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.
See: newIntegrationResponse smart constructor.
Constructors
| IntegrationResponse' (Maybe ContentHandlingStrategy) (Maybe (HashMap Text Text)) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) |
Instances
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.
CreateDomainName
data CreateDomainName Source #
A request to create a new domain name.
See: newCreateDomainName smart constructor.
Constructors
| CreateDomainName' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe SecurityPolicy) (Maybe MutualTlsAuthenticationInput) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe (HashMap Text Text)) Text |
Instances
Arguments
| :: Text | |
| -> CreateDomainName |
Create a value of CreateDomainName 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:certificateName:CreateDomainName', createDomainName_certificateName - The user-friendly name of the certificate that will be used by
edge-optimized endpoint for this domain name.
$sel:ownershipVerificationCertificateArn:CreateDomainName', createDomainName_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:CreateDomainName', createDomainName_regionalCertificateArn - The reference to an AWS-managed certificate that will be used by
regional endpoint for this domain name. AWS Certificate Manager is the
only supported source.
$sel:certificateArn:CreateDomainName', createDomainName_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:securityPolicy:CreateDomainName', createDomainName_securityPolicy - The Transport Layer Security (TLS) version + cipher suite for this
DomainName. The valid values are TLS_1_0 and TLS_1_2.
$sel:mutualTlsAuthentication:CreateDomainName', createDomainName_mutualTlsAuthentication - Undocumented member.
$sel:certificatePrivateKey:CreateDomainName', createDomainName_certificatePrivateKey - [Deprecated] Your edge-optimized endpoint's domain name certificate's
private key.
$sel:regionalCertificateName:CreateDomainName', createDomainName_regionalCertificateName - The user-friendly name of the certificate that will be used by regional
endpoint for this domain name.
$sel:certificateBody:CreateDomainName', createDomainName_certificateBody - [Deprecated] The body of the server certificate that will be used by
edge-optimized endpoint for this domain name provided by your
certificate authority.
$sel:certificateChain:CreateDomainName', createDomainName_certificateChain - [Deprecated] The intermediate certificates and optionally the root
certificate, one after the other without any blank lines, used by an
edge-optimized endpoint for this domain name. If you include the root
certificate, your certificate chain must start with intermediate
certificates and end with the root certificate. Use the intermediate
certificates that were provided by your certificate authority. Do not
include any intermediaries that are not in the chain of trust path.
$sel:endpointConfiguration:CreateDomainName', createDomainName_endpointConfiguration - The endpoint configuration of this DomainName showing the endpoint types
of the domain name.
$sel:tags:CreateDomainName', createDomainName_tags - The key-value map of strings. The valid character set is
[a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not
start with aws:. The tag value can be up to 256 characters.
$sel:domainName:CreateDomainName', createDomainName_domainName - [Required] The name of the DomainName resource.
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' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe SecurityPolicy) (Maybe Text) (Maybe MutualTlsAuthentication) (Maybe Text) (Maybe Text) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe DomainNameStatus) (Maybe (HashMap Text Text)) |
Instances
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.
FlushStageAuthorizersCache
data FlushStageAuthorizersCache Source #
Request to flush authorizer cache entries on a specified stage.
See: newFlushStageAuthorizersCache smart constructor.
Constructors
| FlushStageAuthorizersCache' Text Text |
Instances
newFlushStageAuthorizersCache Source #
Arguments
| :: Text | |
| -> Text | |
| -> FlushStageAuthorizersCache |
Create a value of FlushStageAuthorizersCache 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:FlushStageAuthorizersCache', flushStageAuthorizersCache_restApiId - The string identifier of the associated RestApi.
$sel:stageName:FlushStageAuthorizersCache', flushStageAuthorizersCache_stageName - The name of the stage to flush.
data FlushStageAuthorizersCacheResponse Source #
See: newFlushStageAuthorizersCacheResponse smart constructor.
Constructors
| FlushStageAuthorizersCacheResponse' | |
Instances
newFlushStageAuthorizersCacheResponse :: FlushStageAuthorizersCacheResponse Source #
Create a value of FlushStageAuthorizersCacheResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
GetGatewayResponses (Paginated)
data GetGatewayResponses Source #
Gets the GatewayResponses collection on the given RestApi. If an API developer has not added any definitions for gateway responses, the result will be the API Gateway-generated default GatewayResponses collection for the supported response types.
See: newGetGatewayResponses smart constructor.
Instances
newGetGatewayResponses Source #
Arguments
| :: Text | |
| -> GetGatewayResponses |
Create a value of GetGatewayResponses 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:limit:GetGatewayResponses', getGatewayResponses_limit - The maximum number of returned results per page. The default value is 25
and the maximum value is 500. The GatewayResponses collection does not
support pagination and the limit does not apply here.
$sel:position:GetGatewayResponses', getGatewayResponses_position - The current pagination position in the paged result set. The
GatewayResponse collection does not support pagination and the position
does not apply here.
$sel:restApiId:GetGatewayResponses', getGatewayResponses_restApiId - [Required] The string identifier of the associated RestApi.
data GetGatewayResponsesResponse Source #
The collection of the GatewayResponse instances of a RestApi as a
responseType-to-GatewayResponse object map of key-value pairs. As
such, pagination is not supported for querying this collection.
For more information about valid gateway response types, see Gateway Response Types Supported by API Gateway
Example: Get the collection of gateway responses of an API
Request
This example request shows how to retrieve the GatewayResponses collection from an API.
GET /restapis/o81lxisefl/gatewayresponses HTTP/1.1 Host: beta-apigateway.us-east-1.amazonaws.com Content-Type: application/json X-Amz-Date: 20170503T220604Z Authorization: AWS4-HMAC-SHA256 Credential={access-key-id}/20170503/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=59b42fe54a76a5de8adf2c67baa6d39206f8e9ad49a1d77ccc6a5da3103a398a Cache-Control: no-cache Postman-Token: 5637af27-dc29-fc5c-9dfe-0645d52cb515Response
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" }, "first": { "href": "/restapis/o81lxisefl/gatewayresponses" }, "gatewayresponse:by-type": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "item": [ { "href": "/restapis/o81lxisefl/gatewayresponses/INTEGRATION_FAILURE" }, { "href": "/restapis/o81lxisefl/gatewayresponses/RESOURCE_NOT_FOUND" }, { "href": "/restapis/o81lxisefl/gatewayresponses/REQUEST_TOO_LARGE" }, { "href": "/restapis/o81lxisefl/gatewayresponses/THROTTLED" }, { "href": "/restapis/o81lxisefl/gatewayresponses/UNSUPPORTED_MEDIA_TYPE" }, { "href": "/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_CONFIGURATION_ERROR" }, { "href": "/restapis/o81lxisefl/gatewayresponses/DEFAULT_5XX" }, { "href": "/restapis/o81lxisefl/gatewayresponses/DEFAULT_4XX" }, { "href": "/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_PARAMETERS" }, { "href": "/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_BODY" }, { "href": "/restapis/o81lxisefl/gatewayresponses/EXPIRED_TOKEN" }, { "href": "/restapis/o81lxisefl/gatewayresponses/ACCESS_DENIED" }, { "href": "/restapis/o81lxisefl/gatewayresponses/INVALID_API_KEY" }, { "href": "/restapis/o81lxisefl/gatewayresponses/UNAUTHORIZED" }, { "href": "/restapis/o81lxisefl/gatewayresponses/API_CONFIGURATION_ERROR" }, { "href": "/restapis/o81lxisefl/gatewayresponses/QUOTA_EXCEEDED" }, { "href": "/restapis/o81lxisefl/gatewayresponses/INTEGRATION_TIMEOUT" }, { "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN" }, { "href": "/restapis/o81lxisefl/gatewayresponses/INVALID_SIGNATURE" }, { "href": "/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_FAILURE" } ] }, "_embedded": { "item": [ { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/INTEGRATION_FAILURE" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/INTEGRATION_FAILURE" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "INTEGRATION_FAILURE", "statusCode": "504" }, { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/RESOURCE_NOT_FOUND" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/RESOURCE_NOT_FOUND" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "RESOURCE_NOT_FOUND", "statusCode": "404" }, { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/REQUEST_TOO_LARGE" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/REQUEST_TOO_LARGE" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "REQUEST_TOO_LARGE", "statusCode": "413" }, { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/THROTTLED" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/THROTTLED" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "THROTTLED", "statusCode": "429" }, { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/UNSUPPORTED_MEDIA_TYPE" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/UNSUPPORTED_MEDIA_TYPE" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "UNSUPPORTED_MEDIA_TYPE", "statusCode": "415" }, { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_CONFIGURATION_ERROR" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_CONFIGURATION_ERROR" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "AUTHORIZER_CONFIGURATION_ERROR", "statusCode": "500" }, { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/DEFAULT_5XX" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/DEFAULT_5XX" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "DEFAULT_5XX" }, { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/DEFAULT_4XX" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/DEFAULT_4XX" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "DEFAULT_4XX" }, { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_PARAMETERS" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_PARAMETERS" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "BAD_REQUEST_PARAMETERS", "statusCode": "400" }, { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_BODY" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_BODY" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "BAD_REQUEST_BODY", "statusCode": "400" }, { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/EXPIRED_TOKEN" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/EXPIRED_TOKEN" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "EXPIRED_TOKEN", "statusCode": "403" }, { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/ACCESS_DENIED" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/ACCESS_DENIED" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "ACCESS_DENIED", "statusCode": "403" }, { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/INVALID_API_KEY" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/INVALID_API_KEY" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "INVALID_API_KEY", "statusCode": "403" }, { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/UNAUTHORIZED" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/UNAUTHORIZED" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "UNAUTHORIZED", "statusCode": "401" }, { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/API_CONFIGURATION_ERROR" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/API_CONFIGURATION_ERROR" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "API_CONFIGURATION_ERROR", "statusCode": "500" }, { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/QUOTA_EXCEEDED" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/QUOTA_EXCEEDED" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "QUOTA_EXCEEDED", "statusCode": "429" }, { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/INTEGRATION_TIMEOUT" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/INTEGRATION_TIMEOUT" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "INTEGRATION_TIMEOUT", "statusCode": "504" }, { "_links": { "self": { "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": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "MISSING_AUTHENTICATION_TOKEN", "statusCode": "403" }, { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/INVALID_SIGNATURE" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/INVALID_SIGNATURE" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "INVALID_SIGNATURE", "statusCode": "403" }, { "_links": { "self": { "href": "/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_FAILURE" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_FAILURE" } }, "defaultResponse": true, "responseParameters": {}, "responseTemplates": { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": "AUTHORIZER_FAILURE", "statusCode": "500" } ] } }See: newGetGatewayResponsesResponse smart constructor.
Constructors
| GetGatewayResponsesResponse' (Maybe [GatewayResponse]) (Maybe Text) Int |
Instances
newGetGatewayResponsesResponse Source #
Create a value of GetGatewayResponsesResponse 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:items:GetGatewayResponsesResponse', getGatewayResponsesResponse_items - Returns the entire collection, because of no pagination support.
$sel:position:GetGatewayResponses', getGatewayResponsesResponse_position - Undocumented member.
$sel:httpStatus:GetGatewayResponsesResponse', getGatewayResponsesResponse_httpStatus - The response's http status code.
DeleteModel
data DeleteModel Source #
Request to delete an existing model in an existing RestApi resource.
See: newDeleteModel smart constructor.
Constructors
| DeleteModel' Text Text |
Instances
Create a value of DeleteModel 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:DeleteModel', deleteModel_restApiId - [Required] The string identifier of the associated RestApi.
$sel:modelName:DeleteModel', deleteModel_modelName - [Required] The name of the model to delete.
data DeleteModelResponse Source #
See: newDeleteModelResponse smart constructor.
Constructors
| DeleteModelResponse' | |
Instances
newDeleteModelResponse :: DeleteModelResponse Source #
Create a value of DeleteModelResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
UpdateModel
data UpdateModel Source #
Request to update an existing model in an existing RestApi resource.
See: newUpdateModel smart constructor.
Constructors
| UpdateModel' (Maybe [PatchOperation]) Text Text |
Instances
Create a value of UpdateModel 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:patchOperations:UpdateModel', updateModel_patchOperations - A list of update operations to be applied to the specified resource and
in the order specified in this list.
$sel:restApiId:UpdateModel', updateModel_restApiId - [Required] The string identifier of the associated RestApi.
$sel:modelName:UpdateModel', updateModel_modelName - [Required] The name of the model to update.
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.
Instances
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.
GetDocumentationVersion
data GetDocumentationVersion Source #
Gets a documentation snapshot of an API.
See: newGetDocumentationVersion smart constructor.
Constructors
| GetDocumentationVersion' Text Text |
Instances
newGetDocumentationVersion Source #
Arguments
| :: Text | |
| -> Text | |
| -> GetDocumentationVersion |
Create a value of GetDocumentationVersion 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:GetDocumentationVersion', getDocumentationVersion_restApiId - [Required] The string identifier of the associated RestApi.
$sel:documentationVersion:GetDocumentationVersion', getDocumentationVersion_documentationVersion - [Required] The version identifier of the to-be-retrieved documentation
snapshot.
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.
Instances
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.
DeleteApiKey
data DeleteApiKey Source #
A request to delete the ApiKey resource.
See: newDeleteApiKey smart constructor.
Constructors
| DeleteApiKey' Text |
Instances
Arguments
| :: Text | |
| -> DeleteApiKey |
Create a value of DeleteApiKey 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:apiKey:DeleteApiKey', deleteApiKey_apiKey - [Required] The identifier of the ApiKey resource to be deleted.
data DeleteApiKeyResponse Source #
See: newDeleteApiKeyResponse smart constructor.
Constructors
| DeleteApiKeyResponse' | |
Instances
newDeleteApiKeyResponse :: DeleteApiKeyResponse Source #
Create a value of DeleteApiKeyResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
UpdateApiKey
data UpdateApiKey Source #
A request to change information about an ApiKey resource.
See: newUpdateApiKey smart constructor.
Constructors
| UpdateApiKey' (Maybe [PatchOperation]) Text |
Instances
Arguments
| :: Text | |
| -> UpdateApiKey |
Create a value of UpdateApiKey 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:patchOperations:UpdateApiKey', updateApiKey_patchOperations - A list of update operations to be applied to the specified resource and
in the order specified in this list.
$sel:apiKey:UpdateApiKey', updateApiKey_apiKey - [Required] The identifier of the ApiKey resource to be updated.
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.
See: newApiKey smart constructor.
Constructors
| ApiKey' (Maybe Bool) (Maybe Text) (Maybe Text) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe [Text]) (Maybe POSIX) (Maybe Text) (Maybe (HashMap Text Text)) |
Instances
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.
GetRestApi
data GetRestApi Source #
The GET request to list an existing RestApi defined for your collection.
See: newGetRestApi smart constructor.
Constructors
| GetRestApi' Text |
Instances
Arguments
| :: Text | |
| -> GetRestApi |
Create a value of GetRestApi 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:GetRestApi', getRestApi_restApiId - [Required] The string identifier of the associated RestApi.
Constructors
| RestApi' (Maybe Int) (Maybe Bool) (Maybe [Text]) (Maybe [Text]) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe ApiKeySourceType) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe Text) (Maybe (HashMap Text Text)) |
Instances
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:
HEADERto read the API key from theX-API-Keyheader of a request.AUTHORIZERto read the API key from theUsageIdentifierKeyfrom 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.
GetStages
Requests API Gateway to get information about one or more Stage resources.
See: newGetStages smart constructor.
Constructors
| GetStages' (Maybe Text) Text |
Instances
Create a value of GetStages 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:GetStages', getStages_deploymentId - The stages' deployment identifiers.
$sel:restApiId:GetStages', getStages_restApiId - [Required] The string identifier of the associated RestApi.
data GetStagesResponse Source #
A list of Stage resources that are associated with the ApiKey resource.
See: newGetStagesResponse smart constructor.
Constructors
| GetStagesResponse' (Maybe [Stage]) Int |
Instances
Arguments
| :: Int | |
| -> GetStagesResponse |
Create a value of GetStagesResponse 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:item:GetStagesResponse', getStagesResponse_item - The current page of elements from this collection.
$sel:httpStatus:GetStagesResponse', getStagesResponse_httpStatus - The response's http status code.
PutRestApi
data PutRestApi Source #
A PUT request to update an existing API, with external API definitions specified as the request body.
See: newPutRestApi smart constructor.
Instances
Arguments
| :: Text | |
| -> ByteString | |
| -> PutRestApi |
Create a value of PutRestApi 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:mode:PutRestApi', putRestApi_mode - The mode query parameter to specify the update mode. Valid values are
"merge" and "overwrite". By default, the update mode is "merge".
$sel:failOnWarnings:PutRestApi', putRestApi_failOnWarnings - A query parameter to indicate whether to rollback the API update
(true) or not (false) when a warning is encountered. The default
value is false.
$sel:parameters:PutRestApi', putRestApi_parameters - Custom header parameters as part of the request. For example, to exclude
DocumentationParts from an imported API, set ignore=documentation as a
parameters value, as in the AWS CLI command of
aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'.
$sel:restApiId:PutRestApi', putRestApi_restApiId - [Required] The string identifier of the associated RestApi.
$sel:body:PutRestApi', putRestApi_body - [Required] The PUT request body containing external API definitions.
Currently, only OpenAPI definition JSON/YAML files are supported. The
maximum size of the API definition file is 6MB.
Constructors
| RestApi' (Maybe Int) (Maybe Bool) (Maybe [Text]) (Maybe [Text]) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe ApiKeySourceType) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe Text) (Maybe (HashMap Text Text)) |
Instances
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:
HEADERto read the API key from theX-API-Keyheader of a request.AUTHORIZERto read the API key from theUsageIdentifierKeyfrom 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.
GetMethod
Request to describe an existing Method resource.
See: newGetMethod smart constructor.
Constructors
| GetMethod' Text Text Text |
Instances
Create a value of GetMethod 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:GetMethod', getMethod_restApiId - [Required] The string identifier of the associated RestApi.
$sel:resourceId:GetMethod', getMethod_resourceId - [Required] The Resource identifier for the Method resource.
$sel:httpMethod:GetMethod', getMethod_httpMethod - [Required] Specifies the method request's HTTP method type.
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' (Maybe (HashMap Text MethodResponse)) (Maybe Text) (Maybe [Text]) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe (HashMap Text Bool)) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Bool) (Maybe Integration) |
Instances
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" }$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" } } }GetModel
Request to list information about a model in an existing RestApi resource.
See: newGetModel smart constructor.
Instances
Create a value of GetModel 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:flatten:GetModel', getModel_flatten - A query parameter of a Boolean value to resolve (true) all external
model references and returns a flattened model schema or not (false)
The default is false.
$sel:restApiId:GetModel', getModel_restApiId - [Required] The RestApi identifier under which the Model exists.
$sel:modelName:GetModel', getModel_modelName - [Required] The name of the model as an identifier.
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.
Instances
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.
UpdateRestApi
data UpdateRestApi Source #
Request to update an existing RestApi resource in your collection.
See: newUpdateRestApi smart constructor.
Constructors
| UpdateRestApi' (Maybe [PatchOperation]) Text |
Instances
Arguments
| :: Text | |
| -> UpdateRestApi |
Create a value of UpdateRestApi 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:patchOperations:UpdateRestApi', updateRestApi_patchOperations - A list of update operations to be applied to the specified resource and
in the order specified in this list.
$sel:restApiId:UpdateRestApi', updateRestApi_restApiId - [Required] The string identifier of the associated RestApi.
Constructors
| RestApi' (Maybe Int) (Maybe Bool) (Maybe [Text]) (Maybe [Text]) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe ApiKeySourceType) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe Text) (Maybe (HashMap Text Text)) |
Instances
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:
HEADERto read the API key from theX-API-Keyheader of a request.AUTHORIZERto read the API key from theUsageIdentifierKeyfrom 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.
DeleteRestApi
data DeleteRestApi Source #
Request to delete the specified API from your collection.
See: newDeleteRestApi smart constructor.
Constructors
| DeleteRestApi' Text |
Instances
Arguments
| :: Text | |
| -> DeleteRestApi |
Create a value of DeleteRestApi 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:DeleteRestApi', deleteRestApi_restApiId - [Required] The string identifier of the associated RestApi.
data DeleteRestApiResponse Source #
See: newDeleteRestApiResponse smart constructor.
Constructors
| DeleteRestApiResponse' | |
Instances
newDeleteRestApiResponse :: DeleteRestApiResponse Source #
Create a value of DeleteRestApiResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
ImportApiKeys
data ImportApiKeys Source #
The POST request to import API keys from an external source, such as a CSV-formatted file.
See: newImportApiKeys smart constructor.
Constructors
| ImportApiKeys' (Maybe Bool) ByteString ApiKeysFormat |
Instances
Arguments
| :: ByteString | |
| -> ApiKeysFormat | |
| -> ImportApiKeys |
Create a value of ImportApiKeys 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:failOnWarnings:ImportApiKeys', importApiKeys_failOnWarnings - A query parameter to indicate whether to rollback ApiKey importation
(true) or not (false) when error is encountered.
$sel:body:ImportApiKeys', importApiKeys_body - The payload of the POST request to import API keys. For the payload
format, see
API Key File Format.
$sel:format:ImportApiKeys', importApiKeys_format - A query parameter to specify the input format to imported API keys.
Currently, only the csv format is supported.
data ImportApiKeysResponse Source #
The identifier of an ApiKey used in a UsagePlan.
See: newImportApiKeysResponse smart constructor.
Instances
newImportApiKeysResponse Source #
Create a value of ImportApiKeysResponse 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:ids:ImportApiKeysResponse', importApiKeysResponse_ids - A list of all the ApiKey identifiers.
$sel:warnings:ImportApiKeysResponse', importApiKeysResponse_warnings - A list of warning messages.
$sel:httpStatus:ImportApiKeysResponse', importApiKeysResponse_httpStatus - The response's http status code.
CreateDocumentationPart
data CreateDocumentationPart Source #
Creates a new documentation part of a given API.
See: newCreateDocumentationPart smart constructor.
Constructors
| CreateDocumentationPart' Text DocumentationPartLocation Text |
Instances
newCreateDocumentationPart Source #
Arguments
| :: Text | |
| -> DocumentationPartLocation | |
| -> Text | |
| -> CreateDocumentationPart |
Create a value of CreateDocumentationPart 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:CreateDocumentationPart', createDocumentationPart_restApiId - [Required] The string identifier of the associated RestApi.
$sel:location:CreateDocumentationPart', createDocumentationPart_location - [Required] The location of the targeted API entity of the to-be-created
documentation part.
$sel:properties:CreateDocumentationPart', createDocumentationPart_properties - [Required] The new documentation content map of the targeted API entity.
Enclosed key-value pairs are API-specific, but only OpenAPI-compliant
key-value pairs can be exported and, hence, published.
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' (Maybe DocumentationPartLocation) (Maybe Text) (Maybe Text) |
Instances
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.
TestInvokeMethod
data TestInvokeMethod Source #
Make a request to simulate the execution of a Method.
See: newTestInvokeMethod smart constructor.
Constructors
| TestInvokeMethod' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe (HashMap Text Text)) (Maybe (HashMap Text [Text])) Text Text Text |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> TestInvokeMethod |
Create a value of TestInvokeMethod 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:pathWithQueryString:TestInvokeMethod', testInvokeMethod_pathWithQueryString - The URI path, including query string, of the simulated invocation
request. Use this to specify path parameters and query string
parameters.
$sel:body:TestInvokeMethod', testInvokeMethod_body - The simulated request body of an incoming invocation request.
$sel:clientCertificateId:TestInvokeMethod', testInvokeMethod_clientCertificateId - A ClientCertificate identifier to use in the test invocation. API
Gateway will use the certificate when making the HTTPS request to the
defined back-end endpoint.
$sel:stageVariables:TestInvokeMethod', testInvokeMethod_stageVariables - A key-value map of stage variables to simulate an invocation on a
deployed Stage.
$sel:headers:TestInvokeMethod', testInvokeMethod_headers - A key-value map of headers to simulate an incoming invocation request.
$sel:multiValueHeaders:TestInvokeMethod', testInvokeMethod_multiValueHeaders - The headers as a map from string to list of values to simulate an
incoming invocation request.
$sel:restApiId:TestInvokeMethod', testInvokeMethod_restApiId - [Required] The string identifier of the associated RestApi.
$sel:resourceId:TestInvokeMethod', testInvokeMethod_resourceId - [Required] Specifies a test invoke method request's resource ID.
$sel:httpMethod:TestInvokeMethod', testInvokeMethod_httpMethod - [Required] Specifies a test invoke method request's HTTP method.
data TestInvokeMethodResponse Source #
Represents the response of the test invoke request in the HTTP method.
Test API using the API Gateway console
See: newTestInvokeMethodResponse smart constructor.
Constructors
| TestInvokeMethodResponse' (Maybe Text) (Maybe Int) (Maybe Text) (Maybe Integer) (Maybe (HashMap Text Text)) (Maybe (HashMap Text [Text])) Int |
Instances
newTestInvokeMethodResponse Source #
Create a value of TestInvokeMethodResponse 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:log:TestInvokeMethodResponse', testInvokeMethodResponse_log - The API Gateway execution log for the test invoke request.
$sel:status:TestInvokeMethodResponse', testInvokeMethodResponse_status - The HTTP status code.
$sel:body:TestInvokeMethod', testInvokeMethodResponse_body - The body of the HTTP response.
$sel:latency:TestInvokeMethodResponse', testInvokeMethodResponse_latency - The execution latency of the test invoke request.
$sel:headers:TestInvokeMethod', testInvokeMethodResponse_headers - The headers of the HTTP response.
$sel:multiValueHeaders:TestInvokeMethod', testInvokeMethodResponse_multiValueHeaders - The headers of the HTTP response as a map from string to list of values.
$sel:httpStatus:TestInvokeMethodResponse', testInvokeMethodResponse_httpStatus - The response's http status code.
GetRequestValidator
data GetRequestValidator Source #
Gets a RequestValidator of a given RestApi.
See: newGetRequestValidator smart constructor.
Constructors
| GetRequestValidator' Text Text |
Instances
newGetRequestValidator Source #
Arguments
| :: Text | |
| -> Text | |
| -> GetRequestValidator |
Create a value of GetRequestValidator 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:GetRequestValidator', getRequestValidator_restApiId - [Required] The string identifier of the associated RestApi.
$sel:requestValidatorId:GetRequestValidator', getRequestValidator_requestValidatorId - [Required] The identifier of the RequestValidator to be retrieved.
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.
Instances
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.
GetDomainName
data GetDomainName Source #
Request to get the name of a DomainName resource.
See: newGetDomainName smart constructor.
Constructors
| GetDomainName' Text |
Instances
Arguments
| :: Text | |
| -> GetDomainName |
Create a value of GetDomainName 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:domainName:GetDomainName', getDomainName_domainName - [Required] The name of the DomainName resource.
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' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe SecurityPolicy) (Maybe Text) (Maybe MutualTlsAuthentication) (Maybe Text) (Maybe Text) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe DomainNameStatus) (Maybe (HashMap Text Text)) |
Instances
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.
CreateVpcLink
data CreateVpcLink Source #
Creates a VPC link, under the caller's account in a selected region, in an asynchronous operation that typically takes 2-4 minutes to complete and become operational. The caller must have permissions to create and update VPC Endpoint services.
See: newCreateVpcLink smart constructor.
Instances
Arguments
| :: Text | |
| -> CreateVpcLink |
Create a value of CreateVpcLink with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:description:CreateVpcLink', createVpcLink_description - The description of the VPC link.
$sel:tags:CreateVpcLink', createVpcLink_tags - The key-value map of strings. The valid character set is
[a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not
start with aws:. The tag value can be up to 256 characters.
$sel:name:CreateVpcLink', createVpcLink_name - [Required] The name used to label and identify the VPC link.
$sel:targetArns:CreateVpcLink', createVpcLink_targetArns - [Required] 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.
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' (Maybe VpcLinkStatus) (Maybe [Text]) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) |
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.
DeleteDocumentationPart
data DeleteDocumentationPart Source #
Deletes an existing documentation part of an API.
See: newDeleteDocumentationPart smart constructor.
Constructors
| DeleteDocumentationPart' Text Text |
Instances
newDeleteDocumentationPart Source #
Arguments
| :: Text | |
| -> Text | |
| -> DeleteDocumentationPart |
Create a value of DeleteDocumentationPart 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:DeleteDocumentationPart', deleteDocumentationPart_restApiId - [Required] The string identifier of the associated RestApi.
$sel:documentationPartId:DeleteDocumentationPart', deleteDocumentationPart_documentationPartId - [Required] The identifier of the to-be-deleted documentation part.
data DeleteDocumentationPartResponse Source #
See: newDeleteDocumentationPartResponse smart constructor.
Constructors
| DeleteDocumentationPartResponse' | |
Instances
| Eq DeleteDocumentationPartResponse Source # | |
| Read DeleteDocumentationPartResponse Source # | |
| Show DeleteDocumentationPartResponse Source # | |
Defined in Amazonka.APIGateway.DeleteDocumentationPart Methods showsPrec :: Int -> DeleteDocumentationPartResponse -> ShowS # | |
| Generic DeleteDocumentationPartResponse Source # | |
Defined in Amazonka.APIGateway.DeleteDocumentationPart Associated Types type Rep DeleteDocumentationPartResponse :: Type -> Type # | |
| NFData DeleteDocumentationPartResponse Source # | |
Defined in Amazonka.APIGateway.DeleteDocumentationPart Methods rnf :: DeleteDocumentationPartResponse -> () # | |
| type Rep DeleteDocumentationPartResponse Source # | |
Defined in Amazonka.APIGateway.DeleteDocumentationPart | |
newDeleteDocumentationPartResponse :: DeleteDocumentationPartResponse Source #
Create a value of DeleteDocumentationPartResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
UpdateDocumentationPart
data UpdateDocumentationPart Source #
Updates an existing documentation part of a given API.
See: newUpdateDocumentationPart smart constructor.
Constructors
| UpdateDocumentationPart' (Maybe [PatchOperation]) Text Text |
Instances
newUpdateDocumentationPart Source #
Arguments
| :: Text | |
| -> Text | |
| -> UpdateDocumentationPart |
Create a value of UpdateDocumentationPart 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:patchOperations:UpdateDocumentationPart', updateDocumentationPart_patchOperations - A list of update operations to be applied to the specified resource and
in the order specified in this list.
$sel:restApiId:UpdateDocumentationPart', updateDocumentationPart_restApiId - [Required] The string identifier of the associated RestApi.
$sel:documentationPartId:UpdateDocumentationPart', updateDocumentationPart_documentationPartId - [Required] The identifier of the to-be-updated documentation part.
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' (Maybe DocumentationPartLocation) (Maybe Text) (Maybe Text) |
Instances
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.
GetAuthorizers (Paginated)
data GetAuthorizers Source #
Request to describe an existing Authorizers resource.
See: newGetAuthorizers smart constructor.
Instances
Arguments
| :: Text | |
| -> GetAuthorizers |
Create a value of GetAuthorizers 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:limit:GetAuthorizers', getAuthorizers_limit - The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
$sel:position:GetAuthorizers', getAuthorizers_position - The current pagination position in the paged result set.
$sel:restApiId:GetAuthorizers', getAuthorizers_restApiId - [Required] The string identifier of the associated RestApi.
data GetAuthorizersResponse Source #
Represents a collection of Authorizer resources.
Use Lambda Function as Authorizer Use Cognito User Pool as Authorizer
See: newGetAuthorizersResponse smart constructor.
Constructors
| GetAuthorizersResponse' (Maybe [Authorizer]) (Maybe Text) Int |
Instances
newGetAuthorizersResponse Source #
Create a value of GetAuthorizersResponse 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:items:GetAuthorizersResponse', getAuthorizersResponse_items - The current page of elements from this collection.
$sel:position:GetAuthorizers', getAuthorizersResponse_position - Undocumented member.
$sel:httpStatus:GetAuthorizersResponse', getAuthorizersResponse_httpStatus - The response's http status code.
CreateDocumentationVersion
data CreateDocumentationVersion Source #
Creates a new documentation version of a given API.
See: newCreateDocumentationVersion smart constructor.
Instances
newCreateDocumentationVersion Source #
Arguments
| :: Text | |
| -> Text | |
| -> CreateDocumentationVersion |
Create a value of CreateDocumentationVersion 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:stageName:CreateDocumentationVersion', createDocumentationVersion_stageName - The stage name to be associated with the new documentation snapshot.
$sel:description:CreateDocumentationVersion', createDocumentationVersion_description - A description about the new documentation snapshot.
$sel:restApiId:CreateDocumentationVersion', createDocumentationVersion_restApiId - [Required] The string identifier of the associated RestApi.
$sel:documentationVersion:CreateDocumentationVersion', createDocumentationVersion_documentationVersion - [Required] The version identifier of the new snapshot.
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.
Instances
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.
PutIntegrationResponse
data PutIntegrationResponse Source #
Represents a put integration response request.
See: newPutIntegrationResponse smart constructor.
Constructors
| PutIntegrationResponse' (Maybe ContentHandlingStrategy) (Maybe (HashMap Text Text)) (Maybe Text) (Maybe (HashMap Text Text)) Text Text Text Text |
Instances
newPutIntegrationResponse Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> PutIntegrationResponse |
Create a value of PutIntegrationResponse 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:PutIntegrationResponse', putIntegrationResponse_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:PutIntegrationResponse', putIntegrationResponse_responseTemplates - Specifies a put integration response's templates.
$sel:selectionPattern:PutIntegrationResponse', putIntegrationResponse_selectionPattern - Specifies the selection pattern of a put integration response.
$sel:responseParameters:PutIntegrationResponse', putIntegrationResponse_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 must be a
valid and unique response header name and JSON-expression a valid JSON
expression without the $ prefix.
$sel:restApiId:PutIntegrationResponse', putIntegrationResponse_restApiId - [Required] The string identifier of the associated RestApi.
$sel:resourceId:PutIntegrationResponse', putIntegrationResponse_resourceId - [Required] Specifies a put integration response request's resource
identifier.
$sel:httpMethod:PutIntegrationResponse', putIntegrationResponse_httpMethod - [Required] Specifies a put integration response request's HTTP method.
$sel:statusCode:PutIntegrationResponse', putIntegrationResponse_statusCode - [Required] Specifies the status code that is used to map the integration
response to an existing MethodResponse.
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.
See: newIntegrationResponse smart constructor.
Constructors
| IntegrationResponse' (Maybe ContentHandlingStrategy) (Maybe (HashMap Text Text)) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) |
Instances
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.
GetUsagePlanKeys (Paginated)
data GetUsagePlanKeys Source #
The GET request to get all the usage plan keys representing the API keys added to a specified usage plan.
See: newGetUsagePlanKeys smart constructor.
Instances
Arguments
| :: Text | |
| -> GetUsagePlanKeys |
Create a value of GetUsagePlanKeys 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:nameQuery:GetUsagePlanKeys', getUsagePlanKeys_nameQuery - A query parameter specifying the name of the to-be-returned usage plan
keys.
$sel:limit:GetUsagePlanKeys', getUsagePlanKeys_limit - The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
$sel:position:GetUsagePlanKeys', getUsagePlanKeys_position - The current pagination position in the paged result set.
$sel:usagePlanId:GetUsagePlanKeys', getUsagePlanKeys_usagePlanId - [Required] The Id of the UsagePlan resource representing the usage plan
containing the to-be-retrieved UsagePlanKey resource representing a plan
customer.
data GetUsagePlanKeysResponse Source #
Represents the collection of usage plan keys added to usage plans for the associated API keys and, possibly, other types of keys.
See: newGetUsagePlanKeysResponse smart constructor.
Constructors
| GetUsagePlanKeysResponse' (Maybe [UsagePlanKey]) (Maybe Text) Int |
Instances
newGetUsagePlanKeysResponse Source #
Create a value of GetUsagePlanKeysResponse 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:items:GetUsagePlanKeysResponse', getUsagePlanKeysResponse_items - The current page of elements from this collection.
$sel:position:GetUsagePlanKeys', getUsagePlanKeysResponse_position - Undocumented member.
$sel:httpStatus:GetUsagePlanKeysResponse', getUsagePlanKeysResponse_httpStatus - The response's http status code.
DeleteVpcLink
data DeleteVpcLink Source #
Deletes an existing VpcLink of a specified identifier.
See: newDeleteVpcLink smart constructor.
Constructors
| DeleteVpcLink' Text |
Instances
Arguments
| :: Text | |
| -> DeleteVpcLink |
Create a value of DeleteVpcLink 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:vpcLinkId:DeleteVpcLink', deleteVpcLink_vpcLinkId - [Required] The identifier of the VpcLink. It is used in an Integration
to reference this VpcLink.
data DeleteVpcLinkResponse Source #
See: newDeleteVpcLinkResponse smart constructor.
Constructors
| DeleteVpcLinkResponse' | |
Instances
newDeleteVpcLinkResponse :: DeleteVpcLinkResponse Source #
Create a value of DeleteVpcLinkResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
UpdateVpcLink
data UpdateVpcLink Source #
Updates an existing VpcLink of a specified identifier.
See: newUpdateVpcLink smart constructor.
Constructors
| UpdateVpcLink' (Maybe [PatchOperation]) Text |
Instances
Arguments
| :: Text | |
| -> UpdateVpcLink |
Create a value of UpdateVpcLink 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:patchOperations:UpdateVpcLink', updateVpcLink_patchOperations - A list of update operations to be applied to the specified resource and
in the order specified in this list.
$sel:vpcLinkId:UpdateVpcLink', updateVpcLink_vpcLinkId - [Required] The identifier of the VpcLink. It is used in an Integration
to reference this VpcLink.
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' (Maybe VpcLinkStatus) (Maybe [Text]) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) |
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.
FlushStageCache
data FlushStageCache Source #
Requests API Gateway to flush a stage's cache.
See: newFlushStageCache smart constructor.
Constructors
| FlushStageCache' Text Text |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> FlushStageCache |
Create a value of FlushStageCache 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:FlushStageCache', flushStageCache_restApiId - [Required] The string identifier of the associated RestApi.
$sel:stageName:FlushStageCache', flushStageCache_stageName - [Required] The name of the stage to flush its cache.
data FlushStageCacheResponse Source #
See: newFlushStageCacheResponse smart constructor.
Constructors
| FlushStageCacheResponse' | |
Instances
newFlushStageCacheResponse :: FlushStageCacheResponse Source #
Create a value of FlushStageCacheResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
CreateRestApi
data CreateRestApi Source #
The POST Request to add a new RestApi resource to your collection.
See: newCreateRestApi smart constructor.
Constructors
| CreateRestApi' (Maybe Int) (Maybe Bool) (Maybe [Text]) (Maybe Text) (Maybe ApiKeySourceType) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe Text) (Maybe (HashMap Text Text)) Text |
Instances
Arguments
| :: Text | |
| -> CreateRestApi |
Create a value of CreateRestApi 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:CreateRestApi', createRestApi_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:CreateRestApi', createRestApi_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:CreateRestApi', createRestApi_binaryMediaTypes - The list of binary media types supported by the RestApi. By default, the
RestApi supports only UTF-8-encoded text payloads.
$sel:version:CreateRestApi', createRestApi_version - A version identifier for the API.
$sel:apiKeySource:CreateRestApi', createRestApi_apiKeySource - The source of the API key for metering requests according to a usage
plan. Valid values are:
HEADERto read the API key from theX-API-Keyheader of a request.AUTHORIZERto read the API key from theUsageIdentifierKeyfrom a custom authorizer.
$sel:cloneFrom:CreateRestApi', createRestApi_cloneFrom - The ID of the RestApi that you want to clone from.
$sel:policy:CreateRestApi', createRestApi_policy - A stringified JSON policy document that applies to this RestApi
regardless of the caller and Method configuration.
$sel:endpointConfiguration:CreateRestApi', createRestApi_endpointConfiguration - The endpoint configuration of this RestApi showing the endpoint types of
the API.
$sel:description:CreateRestApi', createRestApi_description - The description of the RestApi.
$sel:tags:CreateRestApi', createRestApi_tags - The key-value map of strings. The valid character set is
[a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not
start with aws:. The tag value can be up to 256 characters.
$sel:name:CreateRestApi', createRestApi_name - [Required] The name of the RestApi.
Constructors
| RestApi' (Maybe Int) (Maybe Bool) (Maybe [Text]) (Maybe [Text]) (Maybe POSIX) (Maybe Text) (Maybe Text) (Maybe ApiKeySourceType) (Maybe Text) (Maybe Text) (Maybe EndpointConfiguration) (Maybe Text) (Maybe (HashMap Text Text)) |
Instances
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:
HEADERto read the API key from theX-API-Keyheader of a request.AUTHORIZERto read the API key from theUsageIdentifierKeyfrom 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.
DeleteIntegrationResponse
data DeleteIntegrationResponse Source #
Represents a delete integration response request.
See: newDeleteIntegrationResponse smart constructor.
Constructors
| DeleteIntegrationResponse' Text Text Text Text |
Instances
newDeleteIntegrationResponse Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> DeleteIntegrationResponse |
Create a value of DeleteIntegrationResponse 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:DeleteIntegrationResponse', deleteIntegrationResponse_restApiId - [Required] The string identifier of the associated RestApi.
$sel:resourceId:DeleteIntegrationResponse', deleteIntegrationResponse_resourceId - [Required] Specifies a delete integration response request's resource
identifier.
$sel:httpMethod:DeleteIntegrationResponse', deleteIntegrationResponse_httpMethod - [Required] Specifies a delete integration response request's HTTP
method.
$sel:statusCode:DeleteIntegrationResponse', deleteIntegrationResponse_statusCode - [Required] Specifies a delete integration response request's status
code.
data DeleteIntegrationResponseResponse Source #
See: newDeleteIntegrationResponseResponse smart constructor.
Constructors
| DeleteIntegrationResponseResponse' | |
Instances
| Eq DeleteIntegrationResponseResponse Source # | |
| Read DeleteIntegrationResponseResponse Source # | |
| Show DeleteIntegrationResponseResponse Source # | |
Defined in Amazonka.APIGateway.DeleteIntegrationResponse Methods showsPrec :: Int -> DeleteIntegrationResponseResponse -> ShowS # | |
| Generic DeleteIntegrationResponseResponse Source # | |
Defined in Amazonka.APIGateway.DeleteIntegrationResponse Associated Types type Rep DeleteIntegrationResponseResponse :: Type -> Type # | |
| NFData DeleteIntegrationResponseResponse Source # | |
Defined in Amazonka.APIGateway.DeleteIntegrationResponse Methods rnf :: DeleteIntegrationResponseResponse -> () # | |
| type Rep DeleteIntegrationResponseResponse Source # | |
newDeleteIntegrationResponseResponse :: DeleteIntegrationResponseResponse Source #
Create a value of DeleteIntegrationResponseResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
UpdateIntegrationResponse
data UpdateIntegrationResponse Source #
Represents an update integration response request.
See: newUpdateIntegrationResponse smart constructor.
Constructors
| UpdateIntegrationResponse' (Maybe [PatchOperation]) Text Text Text Text |
Instances
newUpdateIntegrationResponse Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> UpdateIntegrationResponse |
Create a value of UpdateIntegrationResponse 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:patchOperations:UpdateIntegrationResponse', updateIntegrationResponse_patchOperations - A list of update operations to be applied to the specified resource and
in the order specified in this list.
$sel:restApiId:UpdateIntegrationResponse', updateIntegrationResponse_restApiId - [Required] The string identifier of the associated RestApi.
$sel:resourceId:UpdateIntegrationResponse', updateIntegrationResponse_resourceId - [Required] Specifies an update integration response request's resource
identifier.
$sel:httpMethod:UpdateIntegrationResponse', updateIntegrationResponse_httpMethod - [Required] Specifies an update integration response request's HTTP
method.
$sel:statusCode:UpdateIntegrationResponse', updateIntegrationResponse_statusCode - [Required] Specifies an update integration response request's status
code.
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.
See: newIntegrationResponse smart constructor.
Constructors
| IntegrationResponse' (Maybe ContentHandlingStrategy) (Maybe (HashMap Text Text)) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) |
Instances
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.
UpdateUsage
data UpdateUsage Source #
The PATCH request to grant a temporary extension to the remaining quota of a usage plan associated with a specified API key.
See: newUpdateUsage smart constructor.
Constructors
| UpdateUsage' (Maybe [PatchOperation]) Text Text |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateUsage |
Create a value of UpdateUsage 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:patchOperations:UpdateUsage', updateUsage_patchOperations - A list of update operations to be applied to the specified resource and
in the order specified in this list.
$sel:usagePlanId:UpdateUsage', updateUsage_usagePlanId - [Required] The Id of the usage plan associated with the usage data.
$sel:keyId:UpdateUsage', updateUsage_keyId - [Required] The identifier of the API key associated with the usage plan
in which a temporary extension is granted to the remaining quota.
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' (Maybe Text) (Maybe Text) (Maybe (HashMap Text [[Integer]])) (Maybe Text) (Maybe Text) |
Instances
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.
DeleteIntegration
data DeleteIntegration Source #
Represents a delete integration request.
See: newDeleteIntegration smart constructor.
Constructors
| DeleteIntegration' Text Text Text |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> DeleteIntegration |
Create a value of DeleteIntegration 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:DeleteIntegration', deleteIntegration_restApiId - [Required] The string identifier of the associated RestApi.
$sel:resourceId:DeleteIntegration', deleteIntegration_resourceId - [Required] Specifies a delete integration request's resource
identifier.
$sel:httpMethod:DeleteIntegration', deleteIntegration_httpMethod - [Required] Specifies a delete integration request's HTTP method.
data DeleteIntegrationResponse' Source #
See: newDeleteIntegrationResponse' smart constructor.
Constructors
| DeleteIntegrationResponse'' | |
Instances
newDeleteIntegrationResponse' :: DeleteIntegrationResponse' Source #
Create a value of DeleteIntegrationResponse' with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
UpdateIntegration
data UpdateIntegration Source #
Represents an update integration request.
See: newUpdateIntegration smart constructor.
Constructors
| UpdateIntegration' (Maybe [PatchOperation]) Text Text Text |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> UpdateIntegration |
Create a value of UpdateIntegration 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:patchOperations:UpdateIntegration', updateIntegration_patchOperations - A list of update operations to be applied to the specified resource and
in the order specified in this list.
$sel:restApiId:UpdateIntegration', updateIntegration_restApiId - [Required] The string identifier of the associated RestApi.
$sel:resourceId:UpdateIntegration', updateIntegration_resourceId - [Required] Represents an update integration request's resource
identifier.
$sel:httpMethod:UpdateIntegration', updateIntegration_httpMethod - [Required] Represents an update integration request's HTTP method.
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.
See: newIntegration smart constructor.
Constructors
| Integration' (Maybe Text) (Maybe (HashMap Text Text)) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe ContentHandlingStrategy) (Maybe Text) (Maybe Text) (Maybe (HashMap Text IntegrationResponse)) (Maybe TlsConfig) (Maybe Text) (Maybe Int) (Maybe IntegrationType) (Maybe ConnectionType) (Maybe [Text]) |
Instances
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 HTTP415 Unsupported Media Typeresponse.NEVER: rejects the method request with an HTTP415 Unsupported Media Typeresponse 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
HTTPorHTTP_PROXYintegrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, whereconnectionTypeis notVPC_LINK, or private integration, whereconnectionTypeisVPC_LINK. For a private HTTP integration, the URI is not used for routing. - For
AWSorAWS_PROXYintegrations, the URI is of the formarn: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.actioncan be used for an AWS service action-based API, using anAction={name}&{p1}={v1}&p2={v2}...query string. The ensuing{service_api}refers to a supported action{name}plus any required input parameters. Alternatively,pathcan be used for an AWS service path-based API. The ensuingservice_apirefers 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 ofGetObject, theurican be eitherarn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key}orarn: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" }$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.
TestInvokeAuthorizer
data TestInvokeAuthorizer Source #
Make a request to simulate the execution of an Authorizer.
See: newTestInvokeAuthorizer smart constructor.
Constructors
| TestInvokeAuthorizer' (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe (HashMap Text Text)) (Maybe (HashMap Text Text)) (Maybe (HashMap Text [Text])) Text Text |
Instances
newTestInvokeAuthorizer Source #
Arguments
| :: Text | |
| -> Text | |
| -> TestInvokeAuthorizer |
Create a value of TestInvokeAuthorizer 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:pathWithQueryString:TestInvokeAuthorizer', testInvokeAuthorizer_pathWithQueryString - [Optional] The URI path, including query string, of the simulated
invocation request. Use this to specify path parameters and query string
parameters.
$sel:body:TestInvokeAuthorizer', testInvokeAuthorizer_body - [Optional] The simulated request body of an incoming invocation request.
$sel:additionalContext:TestInvokeAuthorizer', testInvokeAuthorizer_additionalContext - [Optional] A key-value map of additional context variables.
$sel:stageVariables:TestInvokeAuthorizer', testInvokeAuthorizer_stageVariables - A key-value map of stage variables to simulate an invocation on a
deployed Stage.
$sel:headers:TestInvokeAuthorizer', testInvokeAuthorizer_headers - [Required] A key-value map of headers to simulate an incoming invocation
request. This is where the incoming authorization token, or identity
source, should be specified.
$sel:multiValueHeaders:TestInvokeAuthorizer', testInvokeAuthorizer_multiValueHeaders - [Optional] The headers as a map from string to list of values to
simulate an incoming invocation request. This is where the incoming
authorization token, or identity source, may be specified.
$sel:restApiId:TestInvokeAuthorizer', testInvokeAuthorizer_restApiId - [Required] The string identifier of the associated RestApi.
$sel:authorizerId:TestInvokeAuthorizer', testInvokeAuthorizer_authorizerId - [Required] Specifies a test invoke authorizer request's Authorizer ID.
data TestInvokeAuthorizerResponse Source #
Represents the response of the test invoke request for a custom Authorizer
See: newTestInvokeAuthorizerResponse smart constructor.
Constructors
| TestInvokeAuthorizerResponse' (Maybe Text) (Maybe Text) (Maybe Integer) (Maybe (HashMap Text [Text])) (Maybe (HashMap Text Text)) (Maybe Int) (Maybe Text) Int |
Instances
newTestInvokeAuthorizerResponse Source #
Create a value of TestInvokeAuthorizerResponse 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:log:TestInvokeAuthorizerResponse', testInvokeAuthorizerResponse_log - The API Gateway execution log for the test authorizer request.
$sel:principalId:TestInvokeAuthorizerResponse', testInvokeAuthorizerResponse_principalId - The principal identity returned by the Authorizer
$sel:latency:TestInvokeAuthorizerResponse', testInvokeAuthorizerResponse_latency - The execution latency of the test authorizer request.
$sel:authorization:TestInvokeAuthorizerResponse', testInvokeAuthorizerResponse_authorization - Undocumented member.
$sel:claims:TestInvokeAuthorizerResponse', testInvokeAuthorizerResponse_claims - The
open identity claims,
with any supported custom attributes, returned from the Cognito Your
User Pool configured for the API.
$sel:clientStatus:TestInvokeAuthorizerResponse', testInvokeAuthorizerResponse_clientStatus - The HTTP status code that the client would have received. Value is 0 if
the authorizer succeeded.
$sel:policy:TestInvokeAuthorizerResponse', testInvokeAuthorizerResponse_policy - The JSON policy document returned by the Authorizer
$sel:httpStatus:TestInvokeAuthorizerResponse', testInvokeAuthorizerResponse_httpStatus - The response's http status code.
GenerateClientCertificate
data GenerateClientCertificate Source #
A request to generate a ClientCertificate resource.
See: newGenerateClientCertificate smart constructor.
Instances
newGenerateClientCertificate :: GenerateClientCertificate Source #
Create a value of GenerateClientCertificate with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:description:GenerateClientCertificate', generateClientCertificate_description - The description of the ClientCertificate.
$sel:tags:GenerateClientCertificate', generateClientCertificate_tags - The key-value map of strings. The valid character set is
[a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not
start with aws:. The tag value can be up to 256 characters.
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.
See: newClientCertificate smart constructor.
Constructors
| ClientCertificate' (Maybe Text) (Maybe Text) (Maybe POSIX) (Maybe POSIX) (Maybe Text) (Maybe (HashMap Text Text)) |
Instances
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.
GetResources (Paginated)
data GetResources Source #
Request to list information about a collection of resources.
See: newGetResources smart constructor.
Instances
Arguments
| :: Text | |
| -> GetResources |
Create a value of GetResources 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:embed:GetResources', getResources_embed - A query parameter used to retrieve the specified resources embedded in
the returned Resources resource in the response. This embed parameter
value is a list of comma-separated strings. Currently, the request
supports only retrieval of the embedded Method resources this way. The
query parameter value must be a single-valued list and contain the
"methods" string. For example,
GET /restapis/{restapi_id}/resources?embed=methods.
$sel:limit:GetResources', getResources_limit - The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
$sel:position:GetResources', getResources_position - The current pagination position in the paged result set.
$sel:restApiId:GetResources', getResources_restApiId - [Required] The string identifier of the associated RestApi.
data GetResourcesResponse Source #
Represents a collection of Resource resources.
See: newGetResourcesResponse smart constructor.
Instances
newGetResourcesResponse Source #
Arguments
| :: Int | |
| -> GetResourcesResponse |
Create a value of GetResourcesResponse 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:items:GetResourcesResponse', getResourcesResponse_items - The current page of elements from this collection.
$sel:position:GetResources', getResourcesResponse_position - Undocumented member.
$sel:httpStatus:GetResourcesResponse', getResourcesResponse_httpStatus - The response's http status code.
GetUsagePlanKey
data GetUsagePlanKey Source #
The GET request to get a usage plan key of a given key identifier.
See: newGetUsagePlanKey smart constructor.
Constructors
| GetUsagePlanKey' Text Text |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> GetUsagePlanKey |
Create a value of GetUsagePlanKey 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:GetUsagePlanKey', getUsagePlanKey_usagePlanId - [Required] The Id of the UsagePlan resource representing the usage plan
containing the to-be-retrieved UsagePlanKey resource representing a plan
customer.
$sel:keyId:GetUsagePlanKey', getUsagePlanKey_keyId - [Required] The key Id of the to-be-retrieved UsagePlanKey resource
representing a plan customer.
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.
"
See: newUsagePlanKey smart constructor.
Instances
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.
GetAccount
data GetAccount Source #
Requests API Gateway to get information about the current Account resource.
See: newGetAccount smart constructor.
Constructors
| GetAccount' | |
Instances
newGetAccount :: GetAccount Source #
Create a value of GetAccount with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
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.
Instances
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.
PutIntegration
data PutIntegration Source #
Sets up a method's integration.
See: newPutIntegration smart constructor.
Constructors
| PutIntegration' (Maybe (HashMap Text Text)) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe ContentHandlingStrategy) (Maybe Text) (Maybe Text) (Maybe TlsConfig) (Maybe Text) (Maybe Int) (Maybe ConnectionType) (Maybe Text) (Maybe [Text]) Text Text Text IntegrationType |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> IntegrationType | |
| -> PutIntegration |
Create a value of PutIntegration 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:requestTemplates:PutIntegration', putIntegration_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:PutIntegration', putIntegration_credentials - Specifies whether credentials are required for a put integration.
$sel:connectionId:PutIntegration', putIntegration_connectionId - The
(id)
of the VpcLink used for the integration when connectionType=VPC_LINK
and undefined, otherwise.
$sel:requestParameters:PutIntegration', putIntegration_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:PutIntegration', putIntegration_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:PutIntegration', putIntegration_passthroughBehavior - Specifies the pass-through behavior for incoming requests based on the
Content-Type header in the request, and the available mapping templates
specified as the requestTemplates property on the Integration
resource. There are three valid values: WHEN_NO_MATCH,
WHEN_NO_TEMPLATES, and NEVER.
WHEN_NO_MATCHpasses the request body for unmapped content types through to the integration back end without transformation.NEVERrejects unmapped content types with an HTTP 415 'Unsupported Media Type' response.WHEN_NO_TEMPLATESallows pass-through when the integration has NO content types mapped to templates. However if there is at least one content type defined, unmapped content types will be rejected with the same 415 response.
$sel:uri:PutIntegration', putIntegration_uri - Specifies Uniform Resource Identifier (URI) of the integration endpoint.
- For
HTTPorHTTP_PROXYintegrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, whereconnectionTypeis notVPC_LINK, or private integration, whereconnectionTypeisVPC_LINK. For a private HTTP integration, the URI is not used for routing. - For
AWSorAWS_PROXYintegrations, the URI is of the formarn: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.actioncan be used for an AWS service action-based API, using anAction={name}&{p1}={v1}&p2={v2}...query string. The ensuing{service_api}refers to a supported action{name}plus any required input parameters. Alternatively,pathcan be used for an AWS service path-based API. The ensuingservice_apirefers 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 ofGetObject, theurican be eitherarn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key}orarn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}
$sel:tlsConfig:PutIntegration', putIntegration_tlsConfig - Undocumented member.
$sel:cacheNamespace:PutIntegration', putIntegration_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:PutIntegration', putIntegration_timeoutInMillis - Custom timeout between 50 and 29,000 milliseconds. The default value is
29,000 milliseconds or 29 seconds.
$sel:connectionType:PutIntegration', putIntegration_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:integrationHttpMethod:PutIntegration', putIntegration_integrationHttpMethod - Specifies a put integration HTTP method. When the integration type is
HTTP or AWS, this field is required.
$sel:cacheKeyParameters:PutIntegration', putIntegration_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.
$sel:restApiId:PutIntegration', putIntegration_restApiId - [Required] The string identifier of the associated RestApi.
$sel:resourceId:PutIntegration', putIntegration_resourceId - [Required] Specifies a put integration request's resource ID.
$sel:httpMethod:PutIntegration', putIntegration_httpMethod - [Required] Specifies a put integration request's HTTP method.
$sel:type':PutIntegration', putIntegration_type - [Required] Specifies a put integration input's type.
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.
See: newIntegration smart constructor.
Constructors
| Integration' (Maybe Text) (Maybe (HashMap Text Text)) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) (Maybe ContentHandlingStrategy) (Maybe Text) (Maybe Text) (Maybe (HashMap Text IntegrationResponse)) (Maybe TlsConfig) (Maybe Text) (Maybe Int) (Maybe IntegrationType) (Maybe ConnectionType) (Maybe [Text]) |
Instances
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 HTTP415 Unsupported Media Typeresponse.NEVER: rejects the method request with an HTTP415 Unsupported Media Typeresponse 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
HTTPorHTTP_PROXYintegrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, whereconnectionTypeis notVPC_LINK, or private integration, whereconnectionTypeisVPC_LINK. For a private HTTP integration, the URI is not used for routing. - For
AWSorAWS_PROXYintegrations, the URI is of the formarn: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.actioncan be used for an AWS service action-based API, using anAction={name}&{p1}={v1}&p2={v2}...query string. The ensuing{service_api}refers to a supported action{name}plus any required input parameters. Alternatively,pathcan be used for an AWS service path-based API. The ensuingservice_apirefers 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 ofGetObject, theurican be eitherarn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key}orarn: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" }$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.
GetAuthorizer
data GetAuthorizer Source #
Request to describe an existing Authorizer resource.
See: newGetAuthorizer smart constructor.
Constructors
| GetAuthorizer' Text Text |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> GetAuthorizer |
Create a value of GetAuthorizer 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:GetAuthorizer', getAuthorizer_restApiId - [Required] The string identifier of the associated RestApi.
$sel:authorizerId:GetAuthorizer', getAuthorizer_authorizerId - [Required] The identifier of the Authorizer resource.
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' (Maybe Text) (Maybe Text) (Maybe [Text]) (Maybe Text) (Maybe Text) (Maybe Int) (Maybe Text) (Maybe AuthorizerType) (Maybe Text) (Maybe Text) |
Instances
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
TOKENorCOGNITO_USER_POOLSauthorizer, 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 isAuth, the header mapping expression ismethod.request.header.Auth. - For the
REQUESTauthorizer, 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 anAuthheader, aNamequery string parameter are defined as identity sources, this value ismethod.request.header.Auth, method.request.querystring.Name. These parameters will be used to derive the authorization caching key and to perform runtime validation of theREQUESTauthorizer 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.
DeleteUsagePlan
data DeleteUsagePlan Source #
The DELETE request to delete a usage plan of a given plan Id.
See: newDeleteUsagePlan smart constructor.
Constructors
| DeleteUsagePlan' Text |
Instances
Arguments
| :: Text | |
| -> DeleteUsagePlan |
Create a value of DeleteUsagePlan 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:DeleteUsagePlan', deleteUsagePlan_usagePlanId - [Required] The Id of the to-be-deleted usage plan.
data DeleteUsagePlanResponse Source #
See: newDeleteUsagePlanResponse smart constructor.
Constructors
| DeleteUsagePlanResponse' | |
Instances
newDeleteUsagePlanResponse :: DeleteUsagePlanResponse Source #
Create a value of DeleteUsagePlanResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
UpdateUsagePlan
data UpdateUsagePlan Source #
The PATCH request to update a usage plan of a given plan Id.
See: newUpdateUsagePlan smart constructor.
Constructors
| UpdateUsagePlan' (Maybe [PatchOperation]) Text |
Instances
Arguments
| :: Text | |
| -> UpdateUsagePlan |
Create a value of UpdateUsagePlan 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:patchOperations:UpdateUsagePlan', updateUsagePlan_patchOperations - A list of update operations to be applied to the specified resource and
in the order specified in this list.
$sel:usagePlanId:UpdateUsagePlan', updateUsagePlan_usagePlanId - [Required] The Id of the to-be-updated usage plan.
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.
See: newUsagePlan smart constructor.
Constructors
| UsagePlan' (Maybe [ApiStage]) (Maybe Text) (Maybe Text) (Maybe ThrottleSettings) (Maybe QuotaSettings) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) |
Instances
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.
GetStage
Requests API Gateway to get information about a Stage resource.
See: newGetStage smart constructor.
Instances
Create a value of GetStage 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:GetStage', getStage_restApiId - [Required] The string identifier of the associated RestApi.
$sel:stageName:GetStage', getStage_stageName - [Required] The name of the Stage resource to get information about.
Represents a unique identifier for a version of a deployed RestApi that is callable by users.
See: newStage smart constructor.
Constructors
| Stage' (Maybe Text) (Maybe (HashMap Text Text)) (Maybe AccessLogSettings) (Maybe Text) (Maybe Text) (Maybe Bool) (Maybe POSIX) (Maybe CacheClusterStatus) (Maybe (HashMap Text MethodSetting)) (Maybe POSIX) (Maybe CacheClusterSize) (Maybe Text) (Maybe CanarySettings) (Maybe Bool) (Maybe Text) (Maybe Text) (Maybe (HashMap Text Text)) |
Instances
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.
GetExport
Request a new export of a RestApi for a particular Stage.
See: newGetExport smart constructor.
Instances
Create a value of GetExport 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:parameters:GetExport', getExport_parameters - A key-value map of query string parameters that specify properties of
the export, depending on the requested exportType. For exportType
oas30 and swagger, any combination of the following parameters are
supported: extensions='integrations' or extensions='apigateway'
will export the API with x-amazon-apigateway-integration extensions.
extensions='authorizers' will export the API with
x-amazon-apigateway-authorizer extensions. postman will export the API
with Postman extensions, allowing for import to the Postman tool
$sel:accepts:GetExport', getExport_accepts - The content-type of the export, for example application/json.
Currently application/json and application/yaml are supported for
exportType ofoas30 and swagger. This should be specified in the
Accept header for direct API requests.
$sel:restApiId:GetExport', getExport_restApiId - [Required] The string identifier of the associated RestApi.
$sel:stageName:GetExport', getExport_stageName - [Required] The name of the Stage that will be exported.
$sel:exportType:GetExport', getExport_exportType - [Required] The type of export. Acceptable values are 'oas30' for
OpenAPI 3.0.x and 'swagger' for Swagger/OpenAPI 2.0.
data GetExportResponse Source #
The binary blob response to GetExport, which contains the generated SDK.
See: newGetExportResponse smart constructor.
Constructors
| GetExportResponse' (Maybe ByteString) (Maybe Text) (Maybe Text) Int |
Instances
Arguments
| :: Int | |
| -> GetExportResponse |
Create a value of GetExportResponse 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:body:GetExportResponse', getExportResponse_body - The binary blob response to GetExport, which contains the export.
$sel:contentDisposition:GetExportResponse', getExportResponse_contentDisposition - The content-disposition header value in the HTTP response.
$sel:contentType:GetExportResponse', getExportResponse_contentType - The content-type header value in the HTTP response. This will correspond
to a valid 'accept' type in the request.
$sel:httpStatus:GetExportResponse', getExportResponse_httpStatus - The response's http status code.
GetSdk
Request a new generated client SDK for a RestApi and Stage.
See: newGetSdk smart constructor.
Instances
Create a value of GetSdk 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:parameters:GetSdk', getSdk_parameters - A string-to-string key-value map of query parameters sdkType-dependent
properties of the SDK. For sdkType of objectivec or swift, a
parameter named classPrefix is required. For sdkType of android,
parameters named groupId, artifactId, artifactVersion, and
invokerPackage are required. For sdkType of java, parameters named
serviceName and javaPackageName are required.
$sel:restApiId:GetSdk', getSdk_restApiId - [Required] The string identifier of the associated RestApi.
$sel:stageName:GetSdk', getSdk_stageName - [Required] The name of the Stage that the SDK will use.
$sel:sdkType:GetSdk', getSdk_sdkType - [Required] The language for the generated SDK. Currently java,
javascript, android, objectivec (for iOS), swift (for iOS), and
ruby are supported.
data GetSdkResponse Source #
The binary blob response to GetSdk, which contains the generated SDK.
See: newGetSdkResponse smart constructor.
Constructors
| GetSdkResponse' (Maybe ByteString) (Maybe Text) (Maybe Text) Int |
Instances
Arguments
| :: Int | |
| -> GetSdkResponse |
Create a value of GetSdkResponse 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:body:GetSdkResponse', getSdkResponse_body - The binary blob response to GetSdk, which contains the generated SDK.
$sel:contentDisposition:GetSdkResponse', getSdkResponse_contentDisposition - The content-disposition header value in the HTTP response.
$sel:contentType:GetSdkResponse', getSdkResponse_contentType - The content-type header value in the HTTP response.
$sel:httpStatus:GetSdkResponse', getSdkResponse_httpStatus - The response's http status code.
GetApiKeys (Paginated)
data GetApiKeys Source #
A request to get information about the current ApiKeys resource.
See: newGetApiKeys smart constructor.
Instances
newGetApiKeys :: GetApiKeys Source #
Create a value of GetApiKeys 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:includeValues:GetApiKeys', getApiKeys_includeValues - A boolean flag to specify whether (true) or not (false) the result
contains key values.
$sel:customerId:GetApiKeys', getApiKeys_customerId - The identifier of a customer in AWS Marketplace or an external system,
such as a developer portal.
$sel:nameQuery:GetApiKeys', getApiKeys_nameQuery - The name of queried API keys.
$sel:limit:GetApiKeys', getApiKeys_limit - The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
$sel:position:GetApiKeys', getApiKeys_position - The current pagination position in the paged result set.
data GetApiKeysResponse Source #
Represents a collection of API keys as represented by an ApiKeys resource.
See: newGetApiKeysResponse smart constructor.
Instances
newGetApiKeysResponse Source #
Arguments
| :: Int | |
| -> GetApiKeysResponse |
Create a value of GetApiKeysResponse 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:items:GetApiKeysResponse', getApiKeysResponse_items - The current page of elements from this collection.
$sel:warnings:GetApiKeysResponse', getApiKeysResponse_warnings - A list of warning messages logged during the import of API keys when the
failOnWarnings option is set to true.
$sel:position:GetApiKeys', getApiKeysResponse_position - Undocumented member.
$sel:httpStatus:GetApiKeysResponse', getApiKeysResponse_httpStatus - The response's http status code.
DeleteBasePathMapping
data DeleteBasePathMapping Source #
A request to delete the BasePathMapping resource.
See: newDeleteBasePathMapping smart constructor.
Constructors
| DeleteBasePathMapping' Text Text |
Instances
newDeleteBasePathMapping Source #
Arguments
| :: Text | |
| -> Text | |
| -> DeleteBasePathMapping |
Create a value of DeleteBasePathMapping 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:domainName:DeleteBasePathMapping', deleteBasePathMapping_domainName - [Required] The domain name of the BasePathMapping resource to delete.
$sel:basePath:DeleteBasePathMapping', deleteBasePathMapping_basePath - [Required] The base path name of the BasePathMapping resource to delete.
To specify an empty base path, set this parameter to '(none)'.
data DeleteBasePathMappingResponse Source #
See: newDeleteBasePathMappingResponse smart constructor.
Constructors
| DeleteBasePathMappingResponse' | |
Instances
| Eq DeleteBasePathMappingResponse Source # | |
Defined in Amazonka.APIGateway.DeleteBasePathMapping | |
| Read DeleteBasePathMappingResponse Source # | |
| Show DeleteBasePathMappingResponse Source # | |
Defined in Amazonka.APIGateway.DeleteBasePathMapping Methods showsPrec :: Int -> DeleteBasePathMappingResponse -> ShowS # show :: DeleteBasePathMappingResponse -> String # showList :: [DeleteBasePathMappingResponse] -> ShowS # | |
| Generic DeleteBasePathMappingResponse Source # | |
Defined in Amazonka.APIGateway.DeleteBasePathMapping Associated Types type Rep DeleteBasePathMappingResponse :: Type -> Type # | |
| NFData DeleteBasePathMappingResponse Source # | |
Defined in Amazonka.APIGateway.DeleteBasePathMapping Methods rnf :: DeleteBasePathMappingResponse -> () # | |
| type Rep DeleteBasePathMappingResponse Source # | |
Defined in Amazonka.APIGateway.DeleteBasePathMapping | |
newDeleteBasePathMappingResponse :: DeleteBasePathMappingResponse Source #
Create a value of DeleteBasePathMappingResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
UpdateBasePathMapping
data UpdateBasePathMapping Source #
A request to change information about the BasePathMapping resource.
See: newUpdateBasePathMapping smart constructor.
Constructors
| UpdateBasePathMapping' (Maybe [PatchOperation]) Text Text |
Instances
| Eq UpdateBasePathMapping Source # | |
Defined in Amazonka.APIGateway.UpdateBasePathMapping Methods (==) :: UpdateBasePathMapping -> UpdateBasePathMapping -> Bool # (/=) :: UpdateBasePathMapping -> UpdateBasePathMapping -> Bool # | |
| Read UpdateBasePathMapping Source # | |
Defined in Amazonka.APIGateway.UpdateBasePathMapping Methods readsPrec :: Int -> ReadS UpdateBasePathMapping # readList :: ReadS [UpdateBasePathMapping] # | |
| Show UpdateBasePathMapping Source # | |
Defined in Amazonka.APIGateway.UpdateBasePathMapping | |