packages feed

amazonka-apigateway 1.4.5 → 1.5.0

raw patch · 145 files changed

+7947/−4963 lines, 145 filesdep ~amazonka-apigatewaydep ~amazonka-coredep ~amazonka-testPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: amazonka-apigateway, amazonka-core, amazonka-test

API changes (from Hackage documentation)

- Network.AWS.APIGateway: CognitoUserPools :: AuthorizerType
- Network.AWS.APIGateway: Token :: AuthorizerType
- Network.AWS.APIGateway.Types: CognitoUserPools :: AuthorizerType
- Network.AWS.APIGateway.Types: Token :: AuthorizerType
+ Network.AWS.APIGateway: APIConfigurationError :: GatewayResponseType
+ Network.AWS.APIGateway: AccessDenied :: GatewayResponseType
+ Network.AWS.APIGateway: AuthorizerCognitoUserPools :: AuthorizerType
+ Network.AWS.APIGateway: AuthorizerConfigurationError :: GatewayResponseType
+ Network.AWS.APIGateway: AuthorizerFailure :: GatewayResponseType
+ Network.AWS.APIGateway: AuthorizerRequest :: AuthorizerType
+ Network.AWS.APIGateway: AuthorizerToken :: AuthorizerType
+ Network.AWS.APIGateway: BadRequestBody :: GatewayResponseType
+ Network.AWS.APIGateway: BadRequestParameters :: GatewayResponseType
+ Network.AWS.APIGateway: Default4XX :: GatewayResponseType
+ Network.AWS.APIGateway: Default5XX :: GatewayResponseType
+ Network.AWS.APIGateway: Edge :: EndpointType
+ Network.AWS.APIGateway: ExpiredToken :: GatewayResponseType
+ Network.AWS.APIGateway: IntegrationFailure :: GatewayResponseType
+ Network.AWS.APIGateway: IntegrationTimeout :: GatewayResponseType
+ Network.AWS.APIGateway: InvalidAPIKey :: GatewayResponseType
+ Network.AWS.APIGateway: InvalidSignature :: GatewayResponseType
+ Network.AWS.APIGateway: MissingAuthenticationToken :: GatewayResponseType
+ Network.AWS.APIGateway: QuotaExceeded :: GatewayResponseType
+ Network.AWS.APIGateway: Regional :: EndpointType
+ Network.AWS.APIGateway: RequestTooLarge :: GatewayResponseType
+ Network.AWS.APIGateway: ResourceNotFound :: GatewayResponseType
+ Network.AWS.APIGateway: Throttled :: GatewayResponseType
+ Network.AWS.APIGateway: Unauthorized :: GatewayResponseType
+ Network.AWS.APIGateway: UnsupportedMediaType :: GatewayResponseType
+ Network.AWS.APIGateway: data EndpointConfiguration
+ Network.AWS.APIGateway: data EndpointType
+ Network.AWS.APIGateway: data GatewayResponse
+ Network.AWS.APIGateway: data GatewayResponseType
+ Network.AWS.APIGateway: data RequestValidator
+ Network.AWS.APIGateway: data SDKConfigurationProperty
+ Network.AWS.APIGateway: data SDKType
+ Network.AWS.APIGateway: dnCertificateARN :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway: dnEndpointConfiguration :: Lens' DomainName (Maybe EndpointConfiguration)
+ Network.AWS.APIGateway: dnRegionalCertificateARN :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway: dnRegionalCertificateName :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway: dnRegionalDomainName :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway: ecTypes :: Lens' EndpointConfiguration [EndpointType]
+ Network.AWS.APIGateway: endpointConfiguration :: EndpointConfiguration
+ Network.AWS.APIGateway: gDefaultResponse :: Lens' GatewayResponse (Maybe Bool)
+ Network.AWS.APIGateway: gResponseParameters :: Lens' GatewayResponse (HashMap Text Text)
+ Network.AWS.APIGateway: gResponseTemplates :: Lens' GatewayResponse (HashMap Text Text)
+ Network.AWS.APIGateway: gResponseType :: Lens' GatewayResponse (Maybe GatewayResponseType)
+ Network.AWS.APIGateway: gStatusCode :: Lens' GatewayResponse (Maybe Text)
+ Network.AWS.APIGateway: gatewayResponse :: GatewayResponse
+ Network.AWS.APIGateway: mOperationName :: Lens' Method (Maybe Text)
+ Network.AWS.APIGateway: mRequestValidatorId :: Lens' Method (Maybe Text)
+ Network.AWS.APIGateway: raEndpointConfiguration :: Lens' RestAPI (Maybe EndpointConfiguration)
+ Network.AWS.APIGateway: requestValidator :: RequestValidator
+ Network.AWS.APIGateway: rvId :: Lens' RequestValidator (Maybe Text)
+ Network.AWS.APIGateway: rvName :: Lens' RequestValidator (Maybe Text)
+ Network.AWS.APIGateway: rvValidateRequestBody :: Lens' RequestValidator (Maybe Bool)
+ Network.AWS.APIGateway: rvValidateRequestParameters :: Lens' RequestValidator (Maybe Bool)
+ Network.AWS.APIGateway: scpDefaultValue :: Lens' SDKConfigurationProperty (Maybe Text)
+ Network.AWS.APIGateway: scpDescription :: Lens' SDKConfigurationProperty (Maybe Text)
+ Network.AWS.APIGateway: scpFriendlyName :: Lens' SDKConfigurationProperty (Maybe Text)
+ Network.AWS.APIGateway: scpName :: Lens' SDKConfigurationProperty (Maybe Text)
+ Network.AWS.APIGateway: scpRequired :: Lens' SDKConfigurationProperty (Maybe Bool)
+ Network.AWS.APIGateway: sdkConfigurationProperty :: SDKConfigurationProperty
+ Network.AWS.APIGateway: sdkType :: SDKType
+ Network.AWS.APIGateway: stConfigurationProperties :: Lens' SDKType [SDKConfigurationProperty]
+ Network.AWS.APIGateway: stDescription :: Lens' SDKType (Maybe Text)
+ Network.AWS.APIGateway: stFriendlyName :: Lens' SDKType (Maybe Text)
+ Network.AWS.APIGateway: stId :: Lens' SDKType (Maybe Text)
+ Network.AWS.APIGateway.CreateDomainName: cdnCertificateARN :: Lens' CreateDomainName (Maybe Text)
+ Network.AWS.APIGateway.CreateDomainName: cdnEndpointConfiguration :: Lens' CreateDomainName (Maybe EndpointConfiguration)
+ Network.AWS.APIGateway.CreateDomainName: cdnRegionalCertificateARN :: Lens' CreateDomainName (Maybe Text)
+ Network.AWS.APIGateway.CreateDomainName: cdnRegionalCertificateName :: Lens' CreateDomainName (Maybe Text)
+ Network.AWS.APIGateway.CreateDomainName: dnCertificateARN :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway.CreateDomainName: dnEndpointConfiguration :: Lens' DomainName (Maybe EndpointConfiguration)
+ Network.AWS.APIGateway.CreateDomainName: dnRegionalCertificateARN :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway.CreateDomainName: dnRegionalCertificateName :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway.CreateDomainName: dnRegionalDomainName :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway.CreateRequestValidator: createRequestValidator :: Text -> CreateRequestValidator
+ Network.AWS.APIGateway.CreateRequestValidator: crvName :: Lens' CreateRequestValidator (Maybe Text)
+ Network.AWS.APIGateway.CreateRequestValidator: crvRestAPIId :: Lens' CreateRequestValidator Text
+ Network.AWS.APIGateway.CreateRequestValidator: crvValidateRequestBody :: Lens' CreateRequestValidator (Maybe Bool)
+ Network.AWS.APIGateway.CreateRequestValidator: crvValidateRequestParameters :: Lens' CreateRequestValidator (Maybe Bool)
+ Network.AWS.APIGateway.CreateRequestValidator: data CreateRequestValidator
+ Network.AWS.APIGateway.CreateRequestValidator: data RequestValidator
+ Network.AWS.APIGateway.CreateRequestValidator: instance Control.DeepSeq.NFData Network.AWS.APIGateway.CreateRequestValidator.CreateRequestValidator
+ Network.AWS.APIGateway.CreateRequestValidator: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.APIGateway.CreateRequestValidator.CreateRequestValidator
+ Network.AWS.APIGateway.CreateRequestValidator: instance Data.Data.Data Network.AWS.APIGateway.CreateRequestValidator.CreateRequestValidator
+ Network.AWS.APIGateway.CreateRequestValidator: instance Data.Hashable.Class.Hashable Network.AWS.APIGateway.CreateRequestValidator.CreateRequestValidator
+ Network.AWS.APIGateway.CreateRequestValidator: instance GHC.Classes.Eq Network.AWS.APIGateway.CreateRequestValidator.CreateRequestValidator
+ Network.AWS.APIGateway.CreateRequestValidator: instance GHC.Generics.Generic Network.AWS.APIGateway.CreateRequestValidator.CreateRequestValidator
+ Network.AWS.APIGateway.CreateRequestValidator: instance GHC.Read.Read Network.AWS.APIGateway.CreateRequestValidator.CreateRequestValidator
+ Network.AWS.APIGateway.CreateRequestValidator: instance GHC.Show.Show Network.AWS.APIGateway.CreateRequestValidator.CreateRequestValidator
+ Network.AWS.APIGateway.CreateRequestValidator: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.APIGateway.CreateRequestValidator.CreateRequestValidator
+ Network.AWS.APIGateway.CreateRequestValidator: instance Network.AWS.Data.Path.ToPath Network.AWS.APIGateway.CreateRequestValidator.CreateRequestValidator
+ Network.AWS.APIGateway.CreateRequestValidator: instance Network.AWS.Data.Query.ToQuery Network.AWS.APIGateway.CreateRequestValidator.CreateRequestValidator
+ Network.AWS.APIGateway.CreateRequestValidator: instance Network.AWS.Types.AWSRequest Network.AWS.APIGateway.CreateRequestValidator.CreateRequestValidator
+ Network.AWS.APIGateway.CreateRequestValidator: requestValidator :: RequestValidator
+ Network.AWS.APIGateway.CreateRequestValidator: rvId :: Lens' RequestValidator (Maybe Text)
+ Network.AWS.APIGateway.CreateRequestValidator: rvName :: Lens' RequestValidator (Maybe Text)
+ Network.AWS.APIGateway.CreateRequestValidator: rvValidateRequestBody :: Lens' RequestValidator (Maybe Bool)
+ Network.AWS.APIGateway.CreateRequestValidator: rvValidateRequestParameters :: Lens' RequestValidator (Maybe Bool)
+ Network.AWS.APIGateway.CreateRestAPI: craEndpointConfiguration :: Lens' CreateRestAPI (Maybe EndpointConfiguration)
+ Network.AWS.APIGateway.CreateRestAPI: raEndpointConfiguration :: Lens' RestAPI (Maybe EndpointConfiguration)
+ Network.AWS.APIGateway.DeleteGatewayResponse: data DeleteGatewayResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: data DeleteGatewayResponseResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: deleteGatewayResponse :: Text -> GatewayResponseType -> DeleteGatewayResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: deleteGatewayResponseResponse :: DeleteGatewayResponseResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: dgResponseType :: Lens' DeleteGatewayResponse GatewayResponseType
+ Network.AWS.APIGateway.DeleteGatewayResponse: dgRestAPIId :: Lens' DeleteGatewayResponse Text
+ Network.AWS.APIGateway.DeleteGatewayResponse: instance Control.DeepSeq.NFData Network.AWS.APIGateway.DeleteGatewayResponse.DeleteGatewayResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: instance Control.DeepSeq.NFData Network.AWS.APIGateway.DeleteGatewayResponse.DeleteGatewayResponseResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: instance Data.Data.Data Network.AWS.APIGateway.DeleteGatewayResponse.DeleteGatewayResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: instance Data.Data.Data Network.AWS.APIGateway.DeleteGatewayResponse.DeleteGatewayResponseResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: instance Data.Hashable.Class.Hashable Network.AWS.APIGateway.DeleteGatewayResponse.DeleteGatewayResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: instance GHC.Classes.Eq Network.AWS.APIGateway.DeleteGatewayResponse.DeleteGatewayResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: instance GHC.Classes.Eq Network.AWS.APIGateway.DeleteGatewayResponse.DeleteGatewayResponseResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: instance GHC.Generics.Generic Network.AWS.APIGateway.DeleteGatewayResponse.DeleteGatewayResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: instance GHC.Generics.Generic Network.AWS.APIGateway.DeleteGatewayResponse.DeleteGatewayResponseResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: instance GHC.Read.Read Network.AWS.APIGateway.DeleteGatewayResponse.DeleteGatewayResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: instance GHC.Read.Read Network.AWS.APIGateway.DeleteGatewayResponse.DeleteGatewayResponseResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: instance GHC.Show.Show Network.AWS.APIGateway.DeleteGatewayResponse.DeleteGatewayResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: instance GHC.Show.Show Network.AWS.APIGateway.DeleteGatewayResponse.DeleteGatewayResponseResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.APIGateway.DeleteGatewayResponse.DeleteGatewayResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: instance Network.AWS.Data.Path.ToPath Network.AWS.APIGateway.DeleteGatewayResponse.DeleteGatewayResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: instance Network.AWS.Data.Query.ToQuery Network.AWS.APIGateway.DeleteGatewayResponse.DeleteGatewayResponse
+ Network.AWS.APIGateway.DeleteGatewayResponse: instance Network.AWS.Types.AWSRequest Network.AWS.APIGateway.DeleteGatewayResponse.DeleteGatewayResponse
+ Network.AWS.APIGateway.DeleteRequestValidator: data DeleteRequestValidator
+ Network.AWS.APIGateway.DeleteRequestValidator: data DeleteRequestValidatorResponse
+ Network.AWS.APIGateway.DeleteRequestValidator: deleteRequestValidator :: Text -> Text -> DeleteRequestValidator
+ Network.AWS.APIGateway.DeleteRequestValidator: deleteRequestValidatorResponse :: DeleteRequestValidatorResponse
+ Network.AWS.APIGateway.DeleteRequestValidator: drvRequestValidatorId :: Lens' DeleteRequestValidator Text
+ Network.AWS.APIGateway.DeleteRequestValidator: drvRestAPIId :: Lens' DeleteRequestValidator Text
+ Network.AWS.APIGateway.DeleteRequestValidator: instance Control.DeepSeq.NFData Network.AWS.APIGateway.DeleteRequestValidator.DeleteRequestValidator
+ Network.AWS.APIGateway.DeleteRequestValidator: instance Control.DeepSeq.NFData Network.AWS.APIGateway.DeleteRequestValidator.DeleteRequestValidatorResponse
+ Network.AWS.APIGateway.DeleteRequestValidator: instance Data.Data.Data Network.AWS.APIGateway.DeleteRequestValidator.DeleteRequestValidator
+ Network.AWS.APIGateway.DeleteRequestValidator: instance Data.Data.Data Network.AWS.APIGateway.DeleteRequestValidator.DeleteRequestValidatorResponse
+ Network.AWS.APIGateway.DeleteRequestValidator: instance Data.Hashable.Class.Hashable Network.AWS.APIGateway.DeleteRequestValidator.DeleteRequestValidator
+ Network.AWS.APIGateway.DeleteRequestValidator: instance GHC.Classes.Eq Network.AWS.APIGateway.DeleteRequestValidator.DeleteRequestValidator
+ Network.AWS.APIGateway.DeleteRequestValidator: instance GHC.Classes.Eq Network.AWS.APIGateway.DeleteRequestValidator.DeleteRequestValidatorResponse
+ Network.AWS.APIGateway.DeleteRequestValidator: instance GHC.Generics.Generic Network.AWS.APIGateway.DeleteRequestValidator.DeleteRequestValidator
+ Network.AWS.APIGateway.DeleteRequestValidator: instance GHC.Generics.Generic Network.AWS.APIGateway.DeleteRequestValidator.DeleteRequestValidatorResponse
+ Network.AWS.APIGateway.DeleteRequestValidator: instance GHC.Read.Read Network.AWS.APIGateway.DeleteRequestValidator.DeleteRequestValidator
+ Network.AWS.APIGateway.DeleteRequestValidator: instance GHC.Read.Read Network.AWS.APIGateway.DeleteRequestValidator.DeleteRequestValidatorResponse
+ Network.AWS.APIGateway.DeleteRequestValidator: instance GHC.Show.Show Network.AWS.APIGateway.DeleteRequestValidator.DeleteRequestValidator
+ Network.AWS.APIGateway.DeleteRequestValidator: instance GHC.Show.Show Network.AWS.APIGateway.DeleteRequestValidator.DeleteRequestValidatorResponse
+ Network.AWS.APIGateway.DeleteRequestValidator: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.APIGateway.DeleteRequestValidator.DeleteRequestValidator
+ Network.AWS.APIGateway.DeleteRequestValidator: instance Network.AWS.Data.Path.ToPath Network.AWS.APIGateway.DeleteRequestValidator.DeleteRequestValidator
+ Network.AWS.APIGateway.DeleteRequestValidator: instance Network.AWS.Data.Query.ToQuery Network.AWS.APIGateway.DeleteRequestValidator.DeleteRequestValidator
+ Network.AWS.APIGateway.DeleteRequestValidator: instance Network.AWS.Types.AWSRequest Network.AWS.APIGateway.DeleteRequestValidator.DeleteRequestValidator
+ Network.AWS.APIGateway.GetDeployment: gEmbed :: Lens' GetDeployment [Text]
+ Network.AWS.APIGateway.GetDomainName: dnCertificateARN :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway.GetDomainName: dnEndpointConfiguration :: Lens' DomainName (Maybe EndpointConfiguration)
+ Network.AWS.APIGateway.GetDomainName: dnRegionalCertificateARN :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway.GetDomainName: dnRegionalCertificateName :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway.GetDomainName: dnRegionalDomainName :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway.GetGatewayResponse: data GatewayResponse
+ Network.AWS.APIGateway.GetGatewayResponse: data GetGatewayResponse
+ Network.AWS.APIGateway.GetGatewayResponse: gDefaultResponse :: Lens' GatewayResponse (Maybe Bool)
+ Network.AWS.APIGateway.GetGatewayResponse: gResponseParameters :: Lens' GatewayResponse (HashMap Text Text)
+ Network.AWS.APIGateway.GetGatewayResponse: gResponseTemplates :: Lens' GatewayResponse (HashMap Text Text)
+ Network.AWS.APIGateway.GetGatewayResponse: gResponseType :: Lens' GatewayResponse (Maybe GatewayResponseType)
+ Network.AWS.APIGateway.GetGatewayResponse: gStatusCode :: Lens' GatewayResponse (Maybe Text)
+ Network.AWS.APIGateway.GetGatewayResponse: gatewayResponse :: GatewayResponse
+ Network.AWS.APIGateway.GetGatewayResponse: getGatewayResponse :: Text -> GatewayResponseType -> GetGatewayResponse
+ Network.AWS.APIGateway.GetGatewayResponse: gggResponseType :: Lens' GetGatewayResponse GatewayResponseType
+ Network.AWS.APIGateway.GetGatewayResponse: gggRestAPIId :: Lens' GetGatewayResponse Text
+ Network.AWS.APIGateway.GetGatewayResponse: instance Control.DeepSeq.NFData Network.AWS.APIGateway.GetGatewayResponse.GetGatewayResponse
+ Network.AWS.APIGateway.GetGatewayResponse: instance Data.Data.Data Network.AWS.APIGateway.GetGatewayResponse.GetGatewayResponse
+ Network.AWS.APIGateway.GetGatewayResponse: instance Data.Hashable.Class.Hashable Network.AWS.APIGateway.GetGatewayResponse.GetGatewayResponse
+ Network.AWS.APIGateway.GetGatewayResponse: instance GHC.Classes.Eq Network.AWS.APIGateway.GetGatewayResponse.GetGatewayResponse
+ Network.AWS.APIGateway.GetGatewayResponse: instance GHC.Generics.Generic Network.AWS.APIGateway.GetGatewayResponse.GetGatewayResponse
+ Network.AWS.APIGateway.GetGatewayResponse: instance GHC.Read.Read Network.AWS.APIGateway.GetGatewayResponse.GetGatewayResponse
+ Network.AWS.APIGateway.GetGatewayResponse: instance GHC.Show.Show Network.AWS.APIGateway.GetGatewayResponse.GetGatewayResponse
+ Network.AWS.APIGateway.GetGatewayResponse: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.APIGateway.GetGatewayResponse.GetGatewayResponse
+ Network.AWS.APIGateway.GetGatewayResponse: instance Network.AWS.Data.Path.ToPath Network.AWS.APIGateway.GetGatewayResponse.GetGatewayResponse
+ Network.AWS.APIGateway.GetGatewayResponse: instance Network.AWS.Data.Query.ToQuery Network.AWS.APIGateway.GetGatewayResponse.GetGatewayResponse
+ Network.AWS.APIGateway.GetGatewayResponse: instance Network.AWS.Types.AWSRequest Network.AWS.APIGateway.GetGatewayResponse.GetGatewayResponse
+ Network.AWS.APIGateway.GetGatewayResponses: data GetGatewayResponses
+ Network.AWS.APIGateway.GetGatewayResponses: data GetGatewayResponsesResponse
+ Network.AWS.APIGateway.GetGatewayResponses: getGatewayResponses :: Text -> GetGatewayResponses
+ Network.AWS.APIGateway.GetGatewayResponses: getGatewayResponsesResponse :: Int -> GetGatewayResponsesResponse
+ Network.AWS.APIGateway.GetGatewayResponses: ggrLimit :: Lens' GetGatewayResponses (Maybe Int)
+ Network.AWS.APIGateway.GetGatewayResponses: ggrPosition :: Lens' GetGatewayResponses (Maybe Text)
+ Network.AWS.APIGateway.GetGatewayResponses: ggrRestAPIId :: Lens' GetGatewayResponses Text
+ Network.AWS.APIGateway.GetGatewayResponses: ggrrsItems :: Lens' GetGatewayResponsesResponse [GatewayResponse]
+ Network.AWS.APIGateway.GetGatewayResponses: ggrrsPosition :: Lens' GetGatewayResponsesResponse (Maybe Text)
+ Network.AWS.APIGateway.GetGatewayResponses: ggrrsResponseStatus :: Lens' GetGatewayResponsesResponse Int
+ Network.AWS.APIGateway.GetGatewayResponses: instance Control.DeepSeq.NFData Network.AWS.APIGateway.GetGatewayResponses.GetGatewayResponses
+ Network.AWS.APIGateway.GetGatewayResponses: instance Control.DeepSeq.NFData Network.AWS.APIGateway.GetGatewayResponses.GetGatewayResponsesResponse
+ Network.AWS.APIGateway.GetGatewayResponses: instance Data.Data.Data Network.AWS.APIGateway.GetGatewayResponses.GetGatewayResponses
+ Network.AWS.APIGateway.GetGatewayResponses: instance Data.Data.Data Network.AWS.APIGateway.GetGatewayResponses.GetGatewayResponsesResponse
+ Network.AWS.APIGateway.GetGatewayResponses: instance Data.Hashable.Class.Hashable Network.AWS.APIGateway.GetGatewayResponses.GetGatewayResponses
+ Network.AWS.APIGateway.GetGatewayResponses: instance GHC.Classes.Eq Network.AWS.APIGateway.GetGatewayResponses.GetGatewayResponses
+ Network.AWS.APIGateway.GetGatewayResponses: instance GHC.Classes.Eq Network.AWS.APIGateway.GetGatewayResponses.GetGatewayResponsesResponse
+ Network.AWS.APIGateway.GetGatewayResponses: instance GHC.Generics.Generic Network.AWS.APIGateway.GetGatewayResponses.GetGatewayResponses
+ Network.AWS.APIGateway.GetGatewayResponses: instance GHC.Generics.Generic Network.AWS.APIGateway.GetGatewayResponses.GetGatewayResponsesResponse
+ Network.AWS.APIGateway.GetGatewayResponses: instance GHC.Read.Read Network.AWS.APIGateway.GetGatewayResponses.GetGatewayResponses
+ Network.AWS.APIGateway.GetGatewayResponses: instance GHC.Read.Read Network.AWS.APIGateway.GetGatewayResponses.GetGatewayResponsesResponse
+ Network.AWS.APIGateway.GetGatewayResponses: instance GHC.Show.Show Network.AWS.APIGateway.GetGatewayResponses.GetGatewayResponses
+ Network.AWS.APIGateway.GetGatewayResponses: instance GHC.Show.Show Network.AWS.APIGateway.GetGatewayResponses.GetGatewayResponsesResponse
+ Network.AWS.APIGateway.GetGatewayResponses: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.APIGateway.GetGatewayResponses.GetGatewayResponses
+ Network.AWS.APIGateway.GetGatewayResponses: instance Network.AWS.Data.Path.ToPath Network.AWS.APIGateway.GetGatewayResponses.GetGatewayResponses
+ Network.AWS.APIGateway.GetGatewayResponses: instance Network.AWS.Data.Query.ToQuery Network.AWS.APIGateway.GetGatewayResponses.GetGatewayResponses
+ Network.AWS.APIGateway.GetGatewayResponses: instance Network.AWS.Types.AWSRequest Network.AWS.APIGateway.GetGatewayResponses.GetGatewayResponses
+ Network.AWS.APIGateway.GetMethod: mOperationName :: Lens' Method (Maybe Text)
+ Network.AWS.APIGateway.GetMethod: mRequestValidatorId :: Lens' Method (Maybe Text)
+ Network.AWS.APIGateway.GetRequestValidator: data GetRequestValidator
+ Network.AWS.APIGateway.GetRequestValidator: data RequestValidator
+ Network.AWS.APIGateway.GetRequestValidator: getRequestValidator :: Text -> Text -> GetRequestValidator
+ Network.AWS.APIGateway.GetRequestValidator: grvrRequestValidatorId :: Lens' GetRequestValidator Text
+ Network.AWS.APIGateway.GetRequestValidator: grvrRestAPIId :: Lens' GetRequestValidator Text
+ Network.AWS.APIGateway.GetRequestValidator: instance Control.DeepSeq.NFData Network.AWS.APIGateway.GetRequestValidator.GetRequestValidator
+ Network.AWS.APIGateway.GetRequestValidator: instance Data.Data.Data Network.AWS.APIGateway.GetRequestValidator.GetRequestValidator
+ Network.AWS.APIGateway.GetRequestValidator: instance Data.Hashable.Class.Hashable Network.AWS.APIGateway.GetRequestValidator.GetRequestValidator
+ Network.AWS.APIGateway.GetRequestValidator: instance GHC.Classes.Eq Network.AWS.APIGateway.GetRequestValidator.GetRequestValidator
+ Network.AWS.APIGateway.GetRequestValidator: instance GHC.Generics.Generic Network.AWS.APIGateway.GetRequestValidator.GetRequestValidator
+ Network.AWS.APIGateway.GetRequestValidator: instance GHC.Read.Read Network.AWS.APIGateway.GetRequestValidator.GetRequestValidator
+ Network.AWS.APIGateway.GetRequestValidator: instance GHC.Show.Show Network.AWS.APIGateway.GetRequestValidator.GetRequestValidator
+ Network.AWS.APIGateway.GetRequestValidator: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.APIGateway.GetRequestValidator.GetRequestValidator
+ Network.AWS.APIGateway.GetRequestValidator: instance Network.AWS.Data.Path.ToPath Network.AWS.APIGateway.GetRequestValidator.GetRequestValidator
+ Network.AWS.APIGateway.GetRequestValidator: instance Network.AWS.Data.Query.ToQuery Network.AWS.APIGateway.GetRequestValidator.GetRequestValidator
+ Network.AWS.APIGateway.GetRequestValidator: instance Network.AWS.Types.AWSRequest Network.AWS.APIGateway.GetRequestValidator.GetRequestValidator
+ Network.AWS.APIGateway.GetRequestValidator: requestValidator :: RequestValidator
+ Network.AWS.APIGateway.GetRequestValidator: rvId :: Lens' RequestValidator (Maybe Text)
+ Network.AWS.APIGateway.GetRequestValidator: rvName :: Lens' RequestValidator (Maybe Text)
+ Network.AWS.APIGateway.GetRequestValidator: rvValidateRequestBody :: Lens' RequestValidator (Maybe Bool)
+ Network.AWS.APIGateway.GetRequestValidator: rvValidateRequestParameters :: Lens' RequestValidator (Maybe Bool)
+ Network.AWS.APIGateway.GetRequestValidators: data GetRequestValidators
+ Network.AWS.APIGateway.GetRequestValidators: data GetRequestValidatorsResponse
+ Network.AWS.APIGateway.GetRequestValidators: getRequestValidators :: Text -> GetRequestValidators
+ Network.AWS.APIGateway.GetRequestValidators: getRequestValidatorsResponse :: Int -> GetRequestValidatorsResponse
+ Network.AWS.APIGateway.GetRequestValidators: grvLimit :: Lens' GetRequestValidators (Maybe Int)
+ Network.AWS.APIGateway.GetRequestValidators: grvPosition :: Lens' GetRequestValidators (Maybe Text)
+ Network.AWS.APIGateway.GetRequestValidators: grvRestAPIId :: Lens' GetRequestValidators Text
+ Network.AWS.APIGateway.GetRequestValidators: grvrsItems :: Lens' GetRequestValidatorsResponse [RequestValidator]
+ Network.AWS.APIGateway.GetRequestValidators: grvrsPosition :: Lens' GetRequestValidatorsResponse (Maybe Text)
+ Network.AWS.APIGateway.GetRequestValidators: grvrsResponseStatus :: Lens' GetRequestValidatorsResponse Int
+ Network.AWS.APIGateway.GetRequestValidators: instance Control.DeepSeq.NFData Network.AWS.APIGateway.GetRequestValidators.GetRequestValidators
+ Network.AWS.APIGateway.GetRequestValidators: instance Control.DeepSeq.NFData Network.AWS.APIGateway.GetRequestValidators.GetRequestValidatorsResponse
+ Network.AWS.APIGateway.GetRequestValidators: instance Data.Data.Data Network.AWS.APIGateway.GetRequestValidators.GetRequestValidators
+ Network.AWS.APIGateway.GetRequestValidators: instance Data.Data.Data Network.AWS.APIGateway.GetRequestValidators.GetRequestValidatorsResponse
+ Network.AWS.APIGateway.GetRequestValidators: instance Data.Hashable.Class.Hashable Network.AWS.APIGateway.GetRequestValidators.GetRequestValidators
+ Network.AWS.APIGateway.GetRequestValidators: instance GHC.Classes.Eq Network.AWS.APIGateway.GetRequestValidators.GetRequestValidators
+ Network.AWS.APIGateway.GetRequestValidators: instance GHC.Classes.Eq Network.AWS.APIGateway.GetRequestValidators.GetRequestValidatorsResponse
+ Network.AWS.APIGateway.GetRequestValidators: instance GHC.Generics.Generic Network.AWS.APIGateway.GetRequestValidators.GetRequestValidators
+ Network.AWS.APIGateway.GetRequestValidators: instance GHC.Generics.Generic Network.AWS.APIGateway.GetRequestValidators.GetRequestValidatorsResponse
+ Network.AWS.APIGateway.GetRequestValidators: instance GHC.Read.Read Network.AWS.APIGateway.GetRequestValidators.GetRequestValidators
+ Network.AWS.APIGateway.GetRequestValidators: instance GHC.Read.Read Network.AWS.APIGateway.GetRequestValidators.GetRequestValidatorsResponse
+ Network.AWS.APIGateway.GetRequestValidators: instance GHC.Show.Show Network.AWS.APIGateway.GetRequestValidators.GetRequestValidators
+ Network.AWS.APIGateway.GetRequestValidators: instance GHC.Show.Show Network.AWS.APIGateway.GetRequestValidators.GetRequestValidatorsResponse
+ Network.AWS.APIGateway.GetRequestValidators: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.APIGateway.GetRequestValidators.GetRequestValidators
+ Network.AWS.APIGateway.GetRequestValidators: instance Network.AWS.Data.Path.ToPath Network.AWS.APIGateway.GetRequestValidators.GetRequestValidators
+ Network.AWS.APIGateway.GetRequestValidators: instance Network.AWS.Data.Query.ToQuery Network.AWS.APIGateway.GetRequestValidators.GetRequestValidators
+ Network.AWS.APIGateway.GetRequestValidators: instance Network.AWS.Types.AWSRequest Network.AWS.APIGateway.GetRequestValidators.GetRequestValidators
+ Network.AWS.APIGateway.GetResource: grEmbed :: Lens' GetResource [Text]
+ Network.AWS.APIGateway.GetResources: grsEmbed :: Lens' GetResources [Text]
+ Network.AWS.APIGateway.GetRestAPI: raEndpointConfiguration :: Lens' RestAPI (Maybe EndpointConfiguration)
+ Network.AWS.APIGateway.GetSDKType: data GetSDKType
+ Network.AWS.APIGateway.GetSDKType: data SDKType
+ Network.AWS.APIGateway.GetSDKType: getSDKType :: Text -> GetSDKType
+ Network.AWS.APIGateway.GetSDKType: gstId :: Lens' GetSDKType Text
+ Network.AWS.APIGateway.GetSDKType: instance Control.DeepSeq.NFData Network.AWS.APIGateway.GetSDKType.GetSDKType
+ Network.AWS.APIGateway.GetSDKType: instance Data.Data.Data Network.AWS.APIGateway.GetSDKType.GetSDKType
+ Network.AWS.APIGateway.GetSDKType: instance Data.Hashable.Class.Hashable Network.AWS.APIGateway.GetSDKType.GetSDKType
+ Network.AWS.APIGateway.GetSDKType: instance GHC.Classes.Eq Network.AWS.APIGateway.GetSDKType.GetSDKType
+ Network.AWS.APIGateway.GetSDKType: instance GHC.Generics.Generic Network.AWS.APIGateway.GetSDKType.GetSDKType
+ Network.AWS.APIGateway.GetSDKType: instance GHC.Read.Read Network.AWS.APIGateway.GetSDKType.GetSDKType
+ Network.AWS.APIGateway.GetSDKType: instance GHC.Show.Show Network.AWS.APIGateway.GetSDKType.GetSDKType
+ Network.AWS.APIGateway.GetSDKType: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.APIGateway.GetSDKType.GetSDKType
+ Network.AWS.APIGateway.GetSDKType: instance Network.AWS.Data.Path.ToPath Network.AWS.APIGateway.GetSDKType.GetSDKType
+ Network.AWS.APIGateway.GetSDKType: instance Network.AWS.Data.Query.ToQuery Network.AWS.APIGateway.GetSDKType.GetSDKType
+ Network.AWS.APIGateway.GetSDKType: instance Network.AWS.Types.AWSRequest Network.AWS.APIGateway.GetSDKType.GetSDKType
+ Network.AWS.APIGateway.GetSDKType: sdkType :: SDKType
+ Network.AWS.APIGateway.GetSDKType: stConfigurationProperties :: Lens' SDKType [SDKConfigurationProperty]
+ Network.AWS.APIGateway.GetSDKType: stDescription :: Lens' SDKType (Maybe Text)
+ Network.AWS.APIGateway.GetSDKType: stFriendlyName :: Lens' SDKType (Maybe Text)
+ Network.AWS.APIGateway.GetSDKType: stId :: Lens' SDKType (Maybe Text)
+ Network.AWS.APIGateway.GetSDKTypes: data GetSDKTypes
+ Network.AWS.APIGateway.GetSDKTypes: data GetSDKTypesResponse
+ Network.AWS.APIGateway.GetSDKTypes: getSDKTypes :: GetSDKTypes
+ Network.AWS.APIGateway.GetSDKTypes: getSDKTypesResponse :: Int -> GetSDKTypesResponse
+ Network.AWS.APIGateway.GetSDKTypes: gstLimit :: Lens' GetSDKTypes (Maybe Int)
+ Network.AWS.APIGateway.GetSDKTypes: gstPosition :: Lens' GetSDKTypes (Maybe Text)
+ Network.AWS.APIGateway.GetSDKTypes: gstrsItems :: Lens' GetSDKTypesResponse [SDKType]
+ Network.AWS.APIGateway.GetSDKTypes: gstrsPosition :: Lens' GetSDKTypesResponse (Maybe Text)
+ Network.AWS.APIGateway.GetSDKTypes: gstrsResponseStatus :: Lens' GetSDKTypesResponse Int
+ Network.AWS.APIGateway.GetSDKTypes: instance Control.DeepSeq.NFData Network.AWS.APIGateway.GetSDKTypes.GetSDKTypes
+ Network.AWS.APIGateway.GetSDKTypes: instance Control.DeepSeq.NFData Network.AWS.APIGateway.GetSDKTypes.GetSDKTypesResponse
+ Network.AWS.APIGateway.GetSDKTypes: instance Data.Data.Data Network.AWS.APIGateway.GetSDKTypes.GetSDKTypes
+ Network.AWS.APIGateway.GetSDKTypes: instance Data.Data.Data Network.AWS.APIGateway.GetSDKTypes.GetSDKTypesResponse
+ Network.AWS.APIGateway.GetSDKTypes: instance Data.Hashable.Class.Hashable Network.AWS.APIGateway.GetSDKTypes.GetSDKTypes
+ Network.AWS.APIGateway.GetSDKTypes: instance GHC.Classes.Eq Network.AWS.APIGateway.GetSDKTypes.GetSDKTypes
+ Network.AWS.APIGateway.GetSDKTypes: instance GHC.Classes.Eq Network.AWS.APIGateway.GetSDKTypes.GetSDKTypesResponse
+ Network.AWS.APIGateway.GetSDKTypes: instance GHC.Generics.Generic Network.AWS.APIGateway.GetSDKTypes.GetSDKTypes
+ Network.AWS.APIGateway.GetSDKTypes: instance GHC.Generics.Generic Network.AWS.APIGateway.GetSDKTypes.GetSDKTypesResponse
+ Network.AWS.APIGateway.GetSDKTypes: instance GHC.Read.Read Network.AWS.APIGateway.GetSDKTypes.GetSDKTypes
+ Network.AWS.APIGateway.GetSDKTypes: instance GHC.Read.Read Network.AWS.APIGateway.GetSDKTypes.GetSDKTypesResponse
+ Network.AWS.APIGateway.GetSDKTypes: instance GHC.Show.Show Network.AWS.APIGateway.GetSDKTypes.GetSDKTypes
+ Network.AWS.APIGateway.GetSDKTypes: instance GHC.Show.Show Network.AWS.APIGateway.GetSDKTypes.GetSDKTypesResponse
+ Network.AWS.APIGateway.GetSDKTypes: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.APIGateway.GetSDKTypes.GetSDKTypes
+ Network.AWS.APIGateway.GetSDKTypes: instance Network.AWS.Data.Path.ToPath Network.AWS.APIGateway.GetSDKTypes.GetSDKTypes
+ Network.AWS.APIGateway.GetSDKTypes: instance Network.AWS.Data.Query.ToQuery Network.AWS.APIGateway.GetSDKTypes.GetSDKTypes
+ Network.AWS.APIGateway.GetSDKTypes: instance Network.AWS.Types.AWSRequest Network.AWS.APIGateway.GetSDKTypes.GetSDKTypes
+ Network.AWS.APIGateway.GetUsage: instance Network.AWS.Pager.AWSPager Network.AWS.APIGateway.GetUsage.GetUsage
+ Network.AWS.APIGateway.GetUsagePlanKeys: instance Network.AWS.Pager.AWSPager Network.AWS.APIGateway.GetUsagePlanKeys.GetUsagePlanKeys
+ Network.AWS.APIGateway.GetUsagePlans: instance Network.AWS.Pager.AWSPager Network.AWS.APIGateway.GetUsagePlans.GetUsagePlans
+ Network.AWS.APIGateway.ImportRestAPI: raEndpointConfiguration :: Lens' RestAPI (Maybe EndpointConfiguration)
+ Network.AWS.APIGateway.PutGatewayResponse: data GatewayResponse
+ Network.AWS.APIGateway.PutGatewayResponse: data PutGatewayResponse
+ Network.AWS.APIGateway.PutGatewayResponse: gDefaultResponse :: Lens' GatewayResponse (Maybe Bool)
+ Network.AWS.APIGateway.PutGatewayResponse: gResponseParameters :: Lens' GatewayResponse (HashMap Text Text)
+ Network.AWS.APIGateway.PutGatewayResponse: gResponseTemplates :: Lens' GatewayResponse (HashMap Text Text)
+ Network.AWS.APIGateway.PutGatewayResponse: gResponseType :: Lens' GatewayResponse (Maybe GatewayResponseType)
+ Network.AWS.APIGateway.PutGatewayResponse: gStatusCode :: Lens' GatewayResponse (Maybe Text)
+ Network.AWS.APIGateway.PutGatewayResponse: gatewayResponse :: GatewayResponse
+ Network.AWS.APIGateway.PutGatewayResponse: instance Control.DeepSeq.NFData Network.AWS.APIGateway.PutGatewayResponse.PutGatewayResponse
+ Network.AWS.APIGateway.PutGatewayResponse: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.APIGateway.PutGatewayResponse.PutGatewayResponse
+ Network.AWS.APIGateway.PutGatewayResponse: instance Data.Data.Data Network.AWS.APIGateway.PutGatewayResponse.PutGatewayResponse
+ Network.AWS.APIGateway.PutGatewayResponse: instance Data.Hashable.Class.Hashable Network.AWS.APIGateway.PutGatewayResponse.PutGatewayResponse
+ Network.AWS.APIGateway.PutGatewayResponse: instance GHC.Classes.Eq Network.AWS.APIGateway.PutGatewayResponse.PutGatewayResponse
+ Network.AWS.APIGateway.PutGatewayResponse: instance GHC.Generics.Generic Network.AWS.APIGateway.PutGatewayResponse.PutGatewayResponse
+ Network.AWS.APIGateway.PutGatewayResponse: instance GHC.Read.Read Network.AWS.APIGateway.PutGatewayResponse.PutGatewayResponse
+ Network.AWS.APIGateway.PutGatewayResponse: instance GHC.Show.Show Network.AWS.APIGateway.PutGatewayResponse.PutGatewayResponse
+ Network.AWS.APIGateway.PutGatewayResponse: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.APIGateway.PutGatewayResponse.PutGatewayResponse
+ Network.AWS.APIGateway.PutGatewayResponse: instance Network.AWS.Data.Path.ToPath Network.AWS.APIGateway.PutGatewayResponse.PutGatewayResponse
+ Network.AWS.APIGateway.PutGatewayResponse: instance Network.AWS.Data.Query.ToQuery Network.AWS.APIGateway.PutGatewayResponse.PutGatewayResponse
+ Network.AWS.APIGateway.PutGatewayResponse: instance Network.AWS.Types.AWSRequest Network.AWS.APIGateway.PutGatewayResponse.PutGatewayResponse
+ Network.AWS.APIGateway.PutGatewayResponse: pgResponseParameters :: Lens' PutGatewayResponse (HashMap Text Text)
+ Network.AWS.APIGateway.PutGatewayResponse: pgResponseTemplates :: Lens' PutGatewayResponse (HashMap Text Text)
+ Network.AWS.APIGateway.PutGatewayResponse: pgResponseType :: Lens' PutGatewayResponse GatewayResponseType
+ Network.AWS.APIGateway.PutGatewayResponse: pgRestAPIId :: Lens' PutGatewayResponse Text
+ Network.AWS.APIGateway.PutGatewayResponse: pgStatusCode :: Lens' PutGatewayResponse (Maybe Text)
+ Network.AWS.APIGateway.PutGatewayResponse: putGatewayResponse :: Text -> GatewayResponseType -> PutGatewayResponse
+ Network.AWS.APIGateway.PutMethod: mOperationName :: Lens' Method (Maybe Text)
+ Network.AWS.APIGateway.PutMethod: mRequestValidatorId :: Lens' Method (Maybe Text)
+ Network.AWS.APIGateway.PutMethod: putOperationName :: Lens' PutMethod (Maybe Text)
+ Network.AWS.APIGateway.PutMethod: putRequestValidatorId :: Lens' PutMethod (Maybe Text)
+ Network.AWS.APIGateway.PutRestAPI: raEndpointConfiguration :: Lens' RestAPI (Maybe EndpointConfiguration)
+ Network.AWS.APIGateway.Types: APIConfigurationError :: GatewayResponseType
+ Network.AWS.APIGateway.Types: AccessDenied :: GatewayResponseType
+ Network.AWS.APIGateway.Types: AuthorizerCognitoUserPools :: AuthorizerType
+ Network.AWS.APIGateway.Types: AuthorizerConfigurationError :: GatewayResponseType
+ Network.AWS.APIGateway.Types: AuthorizerFailure :: GatewayResponseType
+ Network.AWS.APIGateway.Types: AuthorizerRequest :: AuthorizerType
+ Network.AWS.APIGateway.Types: AuthorizerToken :: AuthorizerType
+ Network.AWS.APIGateway.Types: BadRequestBody :: GatewayResponseType
+ Network.AWS.APIGateway.Types: BadRequestParameters :: GatewayResponseType
+ Network.AWS.APIGateway.Types: Default4XX :: GatewayResponseType
+ Network.AWS.APIGateway.Types: Default5XX :: GatewayResponseType
+ Network.AWS.APIGateway.Types: Edge :: EndpointType
+ Network.AWS.APIGateway.Types: ExpiredToken :: GatewayResponseType
+ Network.AWS.APIGateway.Types: IntegrationFailure :: GatewayResponseType
+ Network.AWS.APIGateway.Types: IntegrationTimeout :: GatewayResponseType
+ Network.AWS.APIGateway.Types: InvalidAPIKey :: GatewayResponseType
+ Network.AWS.APIGateway.Types: InvalidSignature :: GatewayResponseType
+ Network.AWS.APIGateway.Types: MissingAuthenticationToken :: GatewayResponseType
+ Network.AWS.APIGateway.Types: QuotaExceeded :: GatewayResponseType
+ Network.AWS.APIGateway.Types: Regional :: EndpointType
+ Network.AWS.APIGateway.Types: RequestTooLarge :: GatewayResponseType
+ Network.AWS.APIGateway.Types: ResourceNotFound :: GatewayResponseType
+ Network.AWS.APIGateway.Types: Throttled :: GatewayResponseType
+ Network.AWS.APIGateway.Types: Unauthorized :: GatewayResponseType
+ Network.AWS.APIGateway.Types: UnsupportedMediaType :: GatewayResponseType
+ Network.AWS.APIGateway.Types: data EndpointConfiguration
+ Network.AWS.APIGateway.Types: data EndpointType
+ Network.AWS.APIGateway.Types: data GatewayResponse
+ Network.AWS.APIGateway.Types: data GatewayResponseType
+ Network.AWS.APIGateway.Types: data RequestValidator
+ Network.AWS.APIGateway.Types: data SDKConfigurationProperty
+ Network.AWS.APIGateway.Types: data SDKType
+ Network.AWS.APIGateway.Types: dnCertificateARN :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway.Types: dnEndpointConfiguration :: Lens' DomainName (Maybe EndpointConfiguration)
+ Network.AWS.APIGateway.Types: dnRegionalCertificateARN :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway.Types: dnRegionalCertificateName :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway.Types: dnRegionalDomainName :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway.Types: ecTypes :: Lens' EndpointConfiguration [EndpointType]
+ Network.AWS.APIGateway.Types: endpointConfiguration :: EndpointConfiguration
+ Network.AWS.APIGateway.Types: gDefaultResponse :: Lens' GatewayResponse (Maybe Bool)
+ Network.AWS.APIGateway.Types: gResponseParameters :: Lens' GatewayResponse (HashMap Text Text)
+ Network.AWS.APIGateway.Types: gResponseTemplates :: Lens' GatewayResponse (HashMap Text Text)
+ Network.AWS.APIGateway.Types: gResponseType :: Lens' GatewayResponse (Maybe GatewayResponseType)
+ Network.AWS.APIGateway.Types: gStatusCode :: Lens' GatewayResponse (Maybe Text)
+ Network.AWS.APIGateway.Types: gatewayResponse :: GatewayResponse
+ Network.AWS.APIGateway.Types: mOperationName :: Lens' Method (Maybe Text)
+ Network.AWS.APIGateway.Types: mRequestValidatorId :: Lens' Method (Maybe Text)
+ Network.AWS.APIGateway.Types: raEndpointConfiguration :: Lens' RestAPI (Maybe EndpointConfiguration)
+ Network.AWS.APIGateway.Types: requestValidator :: RequestValidator
+ Network.AWS.APIGateway.Types: rvId :: Lens' RequestValidator (Maybe Text)
+ Network.AWS.APIGateway.Types: rvName :: Lens' RequestValidator (Maybe Text)
+ Network.AWS.APIGateway.Types: rvValidateRequestBody :: Lens' RequestValidator (Maybe Bool)
+ Network.AWS.APIGateway.Types: rvValidateRequestParameters :: Lens' RequestValidator (Maybe Bool)
+ Network.AWS.APIGateway.Types: scpDefaultValue :: Lens' SDKConfigurationProperty (Maybe Text)
+ Network.AWS.APIGateway.Types: scpDescription :: Lens' SDKConfigurationProperty (Maybe Text)
+ Network.AWS.APIGateway.Types: scpFriendlyName :: Lens' SDKConfigurationProperty (Maybe Text)
+ Network.AWS.APIGateway.Types: scpName :: Lens' SDKConfigurationProperty (Maybe Text)
+ Network.AWS.APIGateway.Types: scpRequired :: Lens' SDKConfigurationProperty (Maybe Bool)
+ Network.AWS.APIGateway.Types: sdkConfigurationProperty :: SDKConfigurationProperty
+ Network.AWS.APIGateway.Types: sdkType :: SDKType
+ Network.AWS.APIGateway.Types: stConfigurationProperties :: Lens' SDKType [SDKConfigurationProperty]
+ Network.AWS.APIGateway.Types: stDescription :: Lens' SDKType (Maybe Text)
+ Network.AWS.APIGateway.Types: stFriendlyName :: Lens' SDKType (Maybe Text)
+ Network.AWS.APIGateway.Types: stId :: Lens' SDKType (Maybe Text)
+ Network.AWS.APIGateway.UpdateDomainName: dnCertificateARN :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway.UpdateDomainName: dnEndpointConfiguration :: Lens' DomainName (Maybe EndpointConfiguration)
+ Network.AWS.APIGateway.UpdateDomainName: dnRegionalCertificateARN :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway.UpdateDomainName: dnRegionalCertificateName :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway.UpdateDomainName: dnRegionalDomainName :: Lens' DomainName (Maybe Text)
+ Network.AWS.APIGateway.UpdateGatewayResponse: data GatewayResponse
+ Network.AWS.APIGateway.UpdateGatewayResponse: data UpdateGatewayResponse
+ Network.AWS.APIGateway.UpdateGatewayResponse: gDefaultResponse :: Lens' GatewayResponse (Maybe Bool)
+ Network.AWS.APIGateway.UpdateGatewayResponse: gResponseParameters :: Lens' GatewayResponse (HashMap Text Text)
+ Network.AWS.APIGateway.UpdateGatewayResponse: gResponseTemplates :: Lens' GatewayResponse (HashMap Text Text)
+ Network.AWS.APIGateway.UpdateGatewayResponse: gResponseType :: Lens' GatewayResponse (Maybe GatewayResponseType)
+ Network.AWS.APIGateway.UpdateGatewayResponse: gStatusCode :: Lens' GatewayResponse (Maybe Text)
+ Network.AWS.APIGateway.UpdateGatewayResponse: gatewayResponse :: GatewayResponse
+ Network.AWS.APIGateway.UpdateGatewayResponse: instance Control.DeepSeq.NFData Network.AWS.APIGateway.UpdateGatewayResponse.UpdateGatewayResponse
+ Network.AWS.APIGateway.UpdateGatewayResponse: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.APIGateway.UpdateGatewayResponse.UpdateGatewayResponse
+ Network.AWS.APIGateway.UpdateGatewayResponse: instance Data.Data.Data Network.AWS.APIGateway.UpdateGatewayResponse.UpdateGatewayResponse
+ Network.AWS.APIGateway.UpdateGatewayResponse: instance Data.Hashable.Class.Hashable Network.AWS.APIGateway.UpdateGatewayResponse.UpdateGatewayResponse
+ Network.AWS.APIGateway.UpdateGatewayResponse: instance GHC.Classes.Eq Network.AWS.APIGateway.UpdateGatewayResponse.UpdateGatewayResponse
+ Network.AWS.APIGateway.UpdateGatewayResponse: instance GHC.Generics.Generic Network.AWS.APIGateway.UpdateGatewayResponse.UpdateGatewayResponse
+ Network.AWS.APIGateway.UpdateGatewayResponse: instance GHC.Read.Read Network.AWS.APIGateway.UpdateGatewayResponse.UpdateGatewayResponse
+ Network.AWS.APIGateway.UpdateGatewayResponse: instance GHC.Show.Show Network.AWS.APIGateway.UpdateGatewayResponse.UpdateGatewayResponse
+ Network.AWS.APIGateway.UpdateGatewayResponse: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.APIGateway.UpdateGatewayResponse.UpdateGatewayResponse
+ Network.AWS.APIGateway.UpdateGatewayResponse: instance Network.AWS.Data.Path.ToPath Network.AWS.APIGateway.UpdateGatewayResponse.UpdateGatewayResponse
+ Network.AWS.APIGateway.UpdateGatewayResponse: instance Network.AWS.Data.Query.ToQuery Network.AWS.APIGateway.UpdateGatewayResponse.UpdateGatewayResponse
+ Network.AWS.APIGateway.UpdateGatewayResponse: instance Network.AWS.Types.AWSRequest Network.AWS.APIGateway.UpdateGatewayResponse.UpdateGatewayResponse
+ Network.AWS.APIGateway.UpdateGatewayResponse: ugPatchOperations :: Lens' UpdateGatewayResponse [PatchOperation]
+ Network.AWS.APIGateway.UpdateGatewayResponse: ugResponseType :: Lens' UpdateGatewayResponse GatewayResponseType
+ Network.AWS.APIGateway.UpdateGatewayResponse: ugRestAPIId :: Lens' UpdateGatewayResponse Text
+ Network.AWS.APIGateway.UpdateGatewayResponse: updateGatewayResponse :: Text -> GatewayResponseType -> UpdateGatewayResponse
+ Network.AWS.APIGateway.UpdateMethod: mOperationName :: Lens' Method (Maybe Text)
+ Network.AWS.APIGateway.UpdateMethod: mRequestValidatorId :: Lens' Method (Maybe Text)
+ Network.AWS.APIGateway.UpdateRequestValidator: data RequestValidator
+ Network.AWS.APIGateway.UpdateRequestValidator: data UpdateRequestValidator
+ Network.AWS.APIGateway.UpdateRequestValidator: instance Control.DeepSeq.NFData Network.AWS.APIGateway.UpdateRequestValidator.UpdateRequestValidator
+ Network.AWS.APIGateway.UpdateRequestValidator: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.APIGateway.UpdateRequestValidator.UpdateRequestValidator
+ Network.AWS.APIGateway.UpdateRequestValidator: instance Data.Data.Data Network.AWS.APIGateway.UpdateRequestValidator.UpdateRequestValidator
+ Network.AWS.APIGateway.UpdateRequestValidator: instance Data.Hashable.Class.Hashable Network.AWS.APIGateway.UpdateRequestValidator.UpdateRequestValidator
+ Network.AWS.APIGateway.UpdateRequestValidator: instance GHC.Classes.Eq Network.AWS.APIGateway.UpdateRequestValidator.UpdateRequestValidator
+ Network.AWS.APIGateway.UpdateRequestValidator: instance GHC.Generics.Generic Network.AWS.APIGateway.UpdateRequestValidator.UpdateRequestValidator
+ Network.AWS.APIGateway.UpdateRequestValidator: instance GHC.Read.Read Network.AWS.APIGateway.UpdateRequestValidator.UpdateRequestValidator
+ Network.AWS.APIGateway.UpdateRequestValidator: instance GHC.Show.Show Network.AWS.APIGateway.UpdateRequestValidator.UpdateRequestValidator
+ Network.AWS.APIGateway.UpdateRequestValidator: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.APIGateway.UpdateRequestValidator.UpdateRequestValidator
+ Network.AWS.APIGateway.UpdateRequestValidator: instance Network.AWS.Data.Path.ToPath Network.AWS.APIGateway.UpdateRequestValidator.UpdateRequestValidator
+ Network.AWS.APIGateway.UpdateRequestValidator: instance Network.AWS.Data.Query.ToQuery Network.AWS.APIGateway.UpdateRequestValidator.UpdateRequestValidator
+ Network.AWS.APIGateway.UpdateRequestValidator: instance Network.AWS.Types.AWSRequest Network.AWS.APIGateway.UpdateRequestValidator.UpdateRequestValidator
+ Network.AWS.APIGateway.UpdateRequestValidator: requestValidator :: RequestValidator
+ Network.AWS.APIGateway.UpdateRequestValidator: rvId :: Lens' RequestValidator (Maybe Text)
+ Network.AWS.APIGateway.UpdateRequestValidator: rvName :: Lens' RequestValidator (Maybe Text)
+ Network.AWS.APIGateway.UpdateRequestValidator: rvValidateRequestBody :: Lens' RequestValidator (Maybe Bool)
+ Network.AWS.APIGateway.UpdateRequestValidator: rvValidateRequestParameters :: Lens' RequestValidator (Maybe Bool)
+ Network.AWS.APIGateway.UpdateRequestValidator: updateRequestValidator :: Text -> Text -> UpdateRequestValidator
+ Network.AWS.APIGateway.UpdateRequestValidator: urvPatchOperations :: Lens' UpdateRequestValidator [PatchOperation]
+ Network.AWS.APIGateway.UpdateRequestValidator: urvRequestValidatorId :: Lens' UpdateRequestValidator Text
+ Network.AWS.APIGateway.UpdateRequestValidator: urvRestAPIId :: Lens' UpdateRequestValidator Text
+ Network.AWS.APIGateway.UpdateRestAPI: raEndpointConfiguration :: Lens' RestAPI (Maybe EndpointConfiguration)
- Network.AWS.APIGateway.CreateAuthorizer: caIdentitySource :: Lens' CreateAuthorizer Text
+ Network.AWS.APIGateway.CreateAuthorizer: caIdentitySource :: Lens' CreateAuthorizer (Maybe Text)
- Network.AWS.APIGateway.CreateAuthorizer: createAuthorizer :: Text -> Text -> AuthorizerType -> Text -> CreateAuthorizer
+ Network.AWS.APIGateway.CreateAuthorizer: createAuthorizer :: Text -> Text -> AuthorizerType -> CreateAuthorizer
- Network.AWS.APIGateway.CreateDomainName: cdnCertificateBody :: Lens' CreateDomainName Text
+ Network.AWS.APIGateway.CreateDomainName: cdnCertificateBody :: Lens' CreateDomainName (Maybe Text)
- Network.AWS.APIGateway.CreateDomainName: cdnCertificateChain :: Lens' CreateDomainName Text
+ Network.AWS.APIGateway.CreateDomainName: cdnCertificateChain :: Lens' CreateDomainName (Maybe Text)
- Network.AWS.APIGateway.CreateDomainName: cdnCertificateName :: Lens' CreateDomainName Text
+ Network.AWS.APIGateway.CreateDomainName: cdnCertificateName :: Lens' CreateDomainName (Maybe Text)
- Network.AWS.APIGateway.CreateDomainName: cdnCertificatePrivateKey :: Lens' CreateDomainName Text
+ Network.AWS.APIGateway.CreateDomainName: cdnCertificatePrivateKey :: Lens' CreateDomainName (Maybe Text)
- Network.AWS.APIGateway.CreateDomainName: createDomainName :: Text -> Text -> Text -> Text -> Text -> CreateDomainName
+ Network.AWS.APIGateway.CreateDomainName: createDomainName :: Text -> CreateDomainName

Files

README.md view
@@ -8,7 +8,7 @@  ## Version -`1.4.5`+`1.5.0`   ## Description
amazonka-apigateway.cabal view
@@ -1,13 +1,13 @@ name:                  amazonka-apigateway-version:               1.4.5+version:               1.5.0 synopsis:              Amazon API Gateway SDK. homepage:              https://github.com/brendanhay/amazonka bug-reports:           https://github.com/brendanhay/amazonka/issues-license:               OtherLicense+license:               MPL-2.0 license-file:          LICENSE author:                Brendan Hay-maintainer:            Brendan Hay <brendan.g.hay@gmail.com>-copyright:             Copyright (c) 2013-2016 Brendan Hay+maintainer:            Brendan Hay <brendan.g.hay+amazonka@gmail.com>+copyright:             Copyright (c) 2013-2017 Brendan Hay category:              Network, AWS, Cloud, Distributed Computing build-type:            Simple cabal-version:         >= 1.10@@ -29,14 +29,19 @@     to get started.  source-repository head-    type:     git-    location: git://github.com/brendanhay/amazonka.git+    type:              git+    location:          git://github.com/brendanhay/amazonka.git+    subdir:            amazonka-apigateway  library     default-language:  Haskell2010     hs-source-dirs:    src gen -    ghc-options:       -Wall+    ghc-options:+        -Wall+        -fwarn-incomplete-uni-patterns+        -fwarn-incomplete-record-updates+        -funbox-strict-fields      exposed-modules:           Network.AWS.APIGateway@@ -48,6 +53,7 @@         , Network.AWS.APIGateway.CreateDocumentationVersion         , Network.AWS.APIGateway.CreateDomainName         , Network.AWS.APIGateway.CreateModel+        , Network.AWS.APIGateway.CreateRequestValidator         , Network.AWS.APIGateway.CreateResource         , Network.AWS.APIGateway.CreateRestAPI         , Network.AWS.APIGateway.CreateStage@@ -61,11 +67,13 @@         , Network.AWS.APIGateway.DeleteDocumentationPart         , Network.AWS.APIGateway.DeleteDocumentationVersion         , Network.AWS.APIGateway.DeleteDomainName+        , Network.AWS.APIGateway.DeleteGatewayResponse         , Network.AWS.APIGateway.DeleteIntegration         , Network.AWS.APIGateway.DeleteIntegrationResponse         , Network.AWS.APIGateway.DeleteMethod         , Network.AWS.APIGateway.DeleteMethodResponse         , Network.AWS.APIGateway.DeleteModel+        , Network.AWS.APIGateway.DeleteRequestValidator         , Network.AWS.APIGateway.DeleteResource         , Network.AWS.APIGateway.DeleteRestAPI         , Network.AWS.APIGateway.DeleteStage@@ -92,6 +100,8 @@         , Network.AWS.APIGateway.GetDomainName         , Network.AWS.APIGateway.GetDomainNames         , Network.AWS.APIGateway.GetExport+        , Network.AWS.APIGateway.GetGatewayResponse+        , Network.AWS.APIGateway.GetGatewayResponses         , Network.AWS.APIGateway.GetIntegration         , Network.AWS.APIGateway.GetIntegrationResponse         , Network.AWS.APIGateway.GetMethod@@ -99,11 +109,15 @@         , Network.AWS.APIGateway.GetModel         , Network.AWS.APIGateway.GetModelTemplate         , Network.AWS.APIGateway.GetModels+        , Network.AWS.APIGateway.GetRequestValidator+        , Network.AWS.APIGateway.GetRequestValidators         , Network.AWS.APIGateway.GetResource         , Network.AWS.APIGateway.GetResources         , Network.AWS.APIGateway.GetRestAPI         , Network.AWS.APIGateway.GetRestAPIs         , Network.AWS.APIGateway.GetSDK+        , Network.AWS.APIGateway.GetSDKType+        , Network.AWS.APIGateway.GetSDKTypes         , Network.AWS.APIGateway.GetStage         , Network.AWS.APIGateway.GetStages         , Network.AWS.APIGateway.GetUsage@@ -114,6 +128,7 @@         , Network.AWS.APIGateway.ImportAPIKeys         , Network.AWS.APIGateway.ImportDocumentationParts         , Network.AWS.APIGateway.ImportRestAPI+        , Network.AWS.APIGateway.PutGatewayResponse         , Network.AWS.APIGateway.PutIntegration         , Network.AWS.APIGateway.PutIntegrationResponse         , Network.AWS.APIGateway.PutMethod@@ -131,11 +146,13 @@         , Network.AWS.APIGateway.UpdateDocumentationPart         , Network.AWS.APIGateway.UpdateDocumentationVersion         , Network.AWS.APIGateway.UpdateDomainName+        , Network.AWS.APIGateway.UpdateGatewayResponse         , Network.AWS.APIGateway.UpdateIntegration         , Network.AWS.APIGateway.UpdateIntegrationResponse         , Network.AWS.APIGateway.UpdateMethod         , Network.AWS.APIGateway.UpdateMethodResponse         , Network.AWS.APIGateway.UpdateModel+        , Network.AWS.APIGateway.UpdateRequestValidator         , Network.AWS.APIGateway.UpdateResource         , Network.AWS.APIGateway.UpdateRestAPI         , Network.AWS.APIGateway.UpdateStage@@ -148,7 +165,7 @@         , Network.AWS.APIGateway.Types.Sum      build-depends:-          amazonka-core == 1.4.5.*+          amazonka-core == 1.5.0.*         , base          >= 4.7     && < 5  test-suite amazonka-apigateway-test@@ -168,9 +185,9 @@         , Test.AWS.APIGateway.Internal      build-depends:-          amazonka-core == 1.4.5.*-        , amazonka-test == 1.4.5.*-        , amazonka-apigateway == 1.4.5.*+          amazonka-core == 1.5.0.*+        , amazonka-test == 1.5.0.*+        , amazonka-apigateway         , base         , bytestring         , tasty
+ fixture/CreateRequestValidator.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  apigateway.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/CreateRequestValidatorResponse.proto view
+ fixture/DeleteGatewayResponse.yaml view
@@ -0,0 +1,10 @@+---+method: DELETE+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  apigateway.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/DeleteGatewayResponseResponse.proto view
+ fixture/DeleteRequestValidator.yaml view
@@ -0,0 +1,10 @@+---+method: DELETE+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  apigateway.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/DeleteRequestValidatorResponse.proto view
+ fixture/GetGatewayResponse.yaml view
@@ -0,0 +1,10 @@+---+method: GET+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  apigateway.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/GetGatewayResponseResponse.proto view
+ fixture/GetGatewayResponses.yaml view
@@ -0,0 +1,10 @@+---+method: GET+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  apigateway.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/GetGatewayResponsesResponse.proto view
+ fixture/GetRequestValidator.yaml view
@@ -0,0 +1,10 @@+---+method: GET+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  apigateway.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/GetRequestValidatorResponse.proto view
+ fixture/GetRequestValidators.yaml view
@@ -0,0 +1,10 @@+---+method: GET+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  apigateway.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/GetRequestValidatorsResponse.proto view
+ fixture/GetSDKType.yaml view
@@ -0,0 +1,10 @@+---+method: GET+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  apigateway.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/GetSDKTypeResponse.proto view
+ fixture/GetSDKTypes.yaml view
@@ -0,0 +1,10 @@+---+method: GET+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  apigateway.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/GetSDKTypesResponse.proto view
+ fixture/PutGatewayResponse.yaml view
@@ -0,0 +1,10 @@+---+method: PUT+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  apigateway.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/PutGatewayResponseResponse.proto view
+ fixture/UpdateGatewayResponse.yaml view
@@ -0,0 +1,10 @@+---+method: PATCH+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  apigateway.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/UpdateGatewayResponseResponse.proto view
+ fixture/UpdateRequestValidator.yaml view
@@ -0,0 +1,10 @@+---+method: PATCH+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  apigateway.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/UpdateRequestValidatorResponse.proto view
gen/Network/AWS/APIGateway.hs view
@@ -5,9 +5,9 @@  -- | -- Module      : Network.AWS.APIGateway--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -59,6 +59,12 @@     -- ** GetDeployment     , module Network.AWS.APIGateway.GetDeployment +    -- ** DeleteGatewayResponse+    , module Network.AWS.APIGateway.DeleteGatewayResponse++    -- ** UpdateGatewayResponse+    , module Network.AWS.APIGateway.UpdateGatewayResponse+     -- ** CreateUsagePlan     , module Network.AWS.APIGateway.CreateUsagePlan @@ -68,6 +74,12 @@     -- ** GetClientCertificate     , module Network.AWS.APIGateway.GetClientCertificate +    -- ** PutGatewayResponse+    , module Network.AWS.APIGateway.PutGatewayResponse++    -- ** GetSDKType+    , module Network.AWS.APIGateway.GetSDKType+     -- ** GetMethodResponse     , module Network.AWS.APIGateway.GetMethodResponse @@ -77,6 +89,9 @@     -- ** GetBasePathMapping     , module Network.AWS.APIGateway.GetBasePathMapping +    -- ** GetRequestValidators+    , module Network.AWS.APIGateway.GetRequestValidators+     -- ** PutMethodResponse     , module Network.AWS.APIGateway.PutMethodResponse @@ -134,10 +149,13 @@     -- ** UpdateResource     , module Network.AWS.APIGateway.UpdateResource +    -- ** CreateRequestValidator+    , module Network.AWS.APIGateway.CreateRequestValidator+     -- ** ImportDocumentationParts     , module Network.AWS.APIGateway.ImportDocumentationParts -    -- ** GetUsage+    -- ** GetUsage (Paginated)     , module Network.AWS.APIGateway.GetUsage      -- ** CreateModel@@ -152,6 +170,9 @@     -- ** FlushStageAuthorizersCache     , module Network.AWS.APIGateway.FlushStageAuthorizersCache +    -- ** GetGatewayResponses+    , module Network.AWS.APIGateway.GetGatewayResponses+     -- ** DeleteModel     , module Network.AWS.APIGateway.DeleteModel @@ -197,6 +218,9 @@     -- ** TestInvokeMethod     , module Network.AWS.APIGateway.TestInvokeMethod +    -- ** GetRequestValidator+    , module Network.AWS.APIGateway.GetRequestValidator+     -- ** GetDomainName     , module Network.AWS.APIGateway.GetDomainName @@ -215,7 +239,7 @@     -- ** PutIntegrationResponse     , module Network.AWS.APIGateway.PutIntegrationResponse -    -- ** GetUsagePlanKeys+    -- ** GetUsagePlanKeys (Paginated)     , module Network.AWS.APIGateway.GetUsagePlanKeys      -- ** FlushStageCache@@ -290,6 +314,9 @@     -- ** UpdateClientCertificate     , module Network.AWS.APIGateway.UpdateClientCertificate +    -- ** GetGatewayResponse+    , module Network.AWS.APIGateway.GetGatewayResponse+     -- ** CreateUsagePlanKey     , module Network.AWS.APIGateway.CreateUsagePlanKey @@ -311,7 +338,7 @@     -- ** CreateAPIKey     , module Network.AWS.APIGateway.CreateAPIKey -    -- ** GetUsagePlans+    -- ** GetUsagePlans (Paginated)     , module Network.AWS.APIGateway.GetUsagePlans      -- ** PutMethod@@ -332,6 +359,15 @@     -- ** UpdateMethod     , module Network.AWS.APIGateway.UpdateMethod +    -- ** UpdateRequestValidator+    , module Network.AWS.APIGateway.UpdateRequestValidator++    -- ** DeleteRequestValidator+    , module Network.AWS.APIGateway.DeleteRequestValidator++    -- ** GetSDKTypes+    , module Network.AWS.APIGateway.GetSDKTypes+     -- ** GetClientCertificates (Paginated)     , module Network.AWS.APIGateway.GetClientCertificates @@ -370,6 +406,12 @@     -- ** DocumentationPartType     , DocumentationPartType (..) +    -- ** EndpointType+    , EndpointType (..)++    -- ** GatewayResponseType+    , GatewayResponseType (..)+     -- ** IntegrationType     , IntegrationType (..) @@ -477,10 +519,29 @@     , DomainName     , domainName     , dnCertificateName+    , dnRegionalCertificateARN+    , dnCertificateARN     , dnDomainName+    , dnRegionalCertificateName+    , dnRegionalDomainName     , dnCertificateUploadDate     , dnDistributionDomainName+    , dnEndpointConfiguration +    -- ** EndpointConfiguration+    , EndpointConfiguration+    , endpointConfiguration+    , ecTypes++    -- ** GatewayResponse+    , GatewayResponse+    , gatewayResponse+    , gDefaultResponse+    , gResponseTemplates+    , gResponseType+    , gStatusCode+    , gResponseParameters+     -- ** Integration     , Integration     , integration@@ -510,9 +571,11 @@     , method     , mMethodResponses     , mHttpMethod+    , mRequestValidatorId     , mRequestModels     , mRequestParameters     , mAuthorizerId+    , mOperationName     , mAuthorizationType     , mApiKeyRequired     , mMethodIntegration@@ -568,6 +631,14 @@     , qsPeriod     , qsLimit +    -- ** RequestValidator+    , RequestValidator+    , requestValidator+    , rvValidateRequestParameters+    , rvName+    , rvValidateRequestBody+    , rvId+     -- ** Resource     , Resource     , resource@@ -586,8 +657,26 @@     , raName     , raVersion     , raId+    , raEndpointConfiguration     , raDescription +    -- ** SDKConfigurationProperty+    , SDKConfigurationProperty+    , sdkConfigurationProperty+    , scpFriendlyName+    , scpRequired+    , scpName+    , scpDefaultValue+    , scpDescription++    -- ** SDKType+    , SDKType+    , sdkType+    , stFriendlyName+    , stConfigurationProperties+    , stId+    , stDescription+     -- ** Stage     , Stage     , stage@@ -645,108 +734,120 @@     , upkType     ) where -import           Network.AWS.APIGateway.CreateAPIKey-import           Network.AWS.APIGateway.CreateAuthorizer-import           Network.AWS.APIGateway.CreateBasePathMapping-import           Network.AWS.APIGateway.CreateDeployment-import           Network.AWS.APIGateway.CreateDocumentationPart-import           Network.AWS.APIGateway.CreateDocumentationVersion-import           Network.AWS.APIGateway.CreateDomainName-import           Network.AWS.APIGateway.CreateModel-import           Network.AWS.APIGateway.CreateResource-import           Network.AWS.APIGateway.CreateRestAPI-import           Network.AWS.APIGateway.CreateStage-import           Network.AWS.APIGateway.CreateUsagePlan-import           Network.AWS.APIGateway.CreateUsagePlanKey-import           Network.AWS.APIGateway.DeleteAPIKey-import           Network.AWS.APIGateway.DeleteAuthorizer-import           Network.AWS.APIGateway.DeleteBasePathMapping-import           Network.AWS.APIGateway.DeleteClientCertificate-import           Network.AWS.APIGateway.DeleteDeployment-import           Network.AWS.APIGateway.DeleteDocumentationPart-import           Network.AWS.APIGateway.DeleteDocumentationVersion-import           Network.AWS.APIGateway.DeleteDomainName-import           Network.AWS.APIGateway.DeleteIntegration-import           Network.AWS.APIGateway.DeleteIntegrationResponse-import           Network.AWS.APIGateway.DeleteMethod-import           Network.AWS.APIGateway.DeleteMethodResponse-import           Network.AWS.APIGateway.DeleteModel-import           Network.AWS.APIGateway.DeleteResource-import           Network.AWS.APIGateway.DeleteRestAPI-import           Network.AWS.APIGateway.DeleteStage-import           Network.AWS.APIGateway.DeleteUsagePlan-import           Network.AWS.APIGateway.DeleteUsagePlanKey-import           Network.AWS.APIGateway.FlushStageAuthorizersCache-import           Network.AWS.APIGateway.FlushStageCache-import           Network.AWS.APIGateway.GenerateClientCertificate-import           Network.AWS.APIGateway.GetAccount-import           Network.AWS.APIGateway.GetAPIKey-import           Network.AWS.APIGateway.GetAPIKeys-import           Network.AWS.APIGateway.GetAuthorizer-import           Network.AWS.APIGateway.GetAuthorizers-import           Network.AWS.APIGateway.GetBasePathMapping-import           Network.AWS.APIGateway.GetBasePathMappings-import           Network.AWS.APIGateway.GetClientCertificate-import           Network.AWS.APIGateway.GetClientCertificates-import           Network.AWS.APIGateway.GetDeployment-import           Network.AWS.APIGateway.GetDeployments-import           Network.AWS.APIGateway.GetDocumentationPart-import           Network.AWS.APIGateway.GetDocumentationParts-import           Network.AWS.APIGateway.GetDocumentationVersion-import           Network.AWS.APIGateway.GetDocumentationVersions-import           Network.AWS.APIGateway.GetDomainName-import           Network.AWS.APIGateway.GetDomainNames-import           Network.AWS.APIGateway.GetExport-import           Network.AWS.APIGateway.GetIntegration-import           Network.AWS.APIGateway.GetIntegrationResponse-import           Network.AWS.APIGateway.GetMethod-import           Network.AWS.APIGateway.GetMethodResponse-import           Network.AWS.APIGateway.GetModel-import           Network.AWS.APIGateway.GetModels-import           Network.AWS.APIGateway.GetModelTemplate-import           Network.AWS.APIGateway.GetResource-import           Network.AWS.APIGateway.GetResources-import           Network.AWS.APIGateway.GetRestAPI-import           Network.AWS.APIGateway.GetRestAPIs-import           Network.AWS.APIGateway.GetSDK-import           Network.AWS.APIGateway.GetStage-import           Network.AWS.APIGateway.GetStages-import           Network.AWS.APIGateway.GetUsage-import           Network.AWS.APIGateway.GetUsagePlan-import           Network.AWS.APIGateway.GetUsagePlanKey-import           Network.AWS.APIGateway.GetUsagePlanKeys-import           Network.AWS.APIGateway.GetUsagePlans-import           Network.AWS.APIGateway.ImportAPIKeys-import           Network.AWS.APIGateway.ImportDocumentationParts-import           Network.AWS.APIGateway.ImportRestAPI-import           Network.AWS.APIGateway.PutIntegration-import           Network.AWS.APIGateway.PutIntegrationResponse-import           Network.AWS.APIGateway.PutMethod-import           Network.AWS.APIGateway.PutMethodResponse-import           Network.AWS.APIGateway.PutRestAPI-import           Network.AWS.APIGateway.TestInvokeAuthorizer-import           Network.AWS.APIGateway.TestInvokeMethod-import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.UpdateAccount-import           Network.AWS.APIGateway.UpdateAPIKey-import           Network.AWS.APIGateway.UpdateAuthorizer-import           Network.AWS.APIGateway.UpdateBasePathMapping-import           Network.AWS.APIGateway.UpdateClientCertificate-import           Network.AWS.APIGateway.UpdateDeployment-import           Network.AWS.APIGateway.UpdateDocumentationPart-import           Network.AWS.APIGateway.UpdateDocumentationVersion-import           Network.AWS.APIGateway.UpdateDomainName-import           Network.AWS.APIGateway.UpdateIntegration-import           Network.AWS.APIGateway.UpdateIntegrationResponse-import           Network.AWS.APIGateway.UpdateMethod-import           Network.AWS.APIGateway.UpdateMethodResponse-import           Network.AWS.APIGateway.UpdateModel-import           Network.AWS.APIGateway.UpdateResource-import           Network.AWS.APIGateway.UpdateRestAPI-import           Network.AWS.APIGateway.UpdateStage-import           Network.AWS.APIGateway.UpdateUsage-import           Network.AWS.APIGateway.UpdateUsagePlan-import           Network.AWS.APIGateway.Waiters+import Network.AWS.APIGateway.CreateAPIKey+import Network.AWS.APIGateway.CreateAuthorizer+import Network.AWS.APIGateway.CreateBasePathMapping+import Network.AWS.APIGateway.CreateDeployment+import Network.AWS.APIGateway.CreateDocumentationPart+import Network.AWS.APIGateway.CreateDocumentationVersion+import Network.AWS.APIGateway.CreateDomainName+import Network.AWS.APIGateway.CreateModel+import Network.AWS.APIGateway.CreateRequestValidator+import Network.AWS.APIGateway.CreateResource+import Network.AWS.APIGateway.CreateRestAPI+import Network.AWS.APIGateway.CreateStage+import Network.AWS.APIGateway.CreateUsagePlan+import Network.AWS.APIGateway.CreateUsagePlanKey+import Network.AWS.APIGateway.DeleteAPIKey+import Network.AWS.APIGateway.DeleteAuthorizer+import Network.AWS.APIGateway.DeleteBasePathMapping+import Network.AWS.APIGateway.DeleteClientCertificate+import Network.AWS.APIGateway.DeleteDeployment+import Network.AWS.APIGateway.DeleteDocumentationPart+import Network.AWS.APIGateway.DeleteDocumentationVersion+import Network.AWS.APIGateway.DeleteDomainName+import Network.AWS.APIGateway.DeleteGatewayResponse+import Network.AWS.APIGateway.DeleteIntegration+import Network.AWS.APIGateway.DeleteIntegrationResponse+import Network.AWS.APIGateway.DeleteMethod+import Network.AWS.APIGateway.DeleteMethodResponse+import Network.AWS.APIGateway.DeleteModel+import Network.AWS.APIGateway.DeleteRequestValidator+import Network.AWS.APIGateway.DeleteResource+import Network.AWS.APIGateway.DeleteRestAPI+import Network.AWS.APIGateway.DeleteStage+import Network.AWS.APIGateway.DeleteUsagePlan+import Network.AWS.APIGateway.DeleteUsagePlanKey+import Network.AWS.APIGateway.FlushStageAuthorizersCache+import Network.AWS.APIGateway.FlushStageCache+import Network.AWS.APIGateway.GenerateClientCertificate+import Network.AWS.APIGateway.GetAccount+import Network.AWS.APIGateway.GetAPIKey+import Network.AWS.APIGateway.GetAPIKeys+import Network.AWS.APIGateway.GetAuthorizer+import Network.AWS.APIGateway.GetAuthorizers+import Network.AWS.APIGateway.GetBasePathMapping+import Network.AWS.APIGateway.GetBasePathMappings+import Network.AWS.APIGateway.GetClientCertificate+import Network.AWS.APIGateway.GetClientCertificates+import Network.AWS.APIGateway.GetDeployment+import Network.AWS.APIGateway.GetDeployments+import Network.AWS.APIGateway.GetDocumentationPart+import Network.AWS.APIGateway.GetDocumentationParts+import Network.AWS.APIGateway.GetDocumentationVersion+import Network.AWS.APIGateway.GetDocumentationVersions+import Network.AWS.APIGateway.GetDomainName+import Network.AWS.APIGateway.GetDomainNames+import Network.AWS.APIGateway.GetExport+import Network.AWS.APIGateway.GetGatewayResponse+import Network.AWS.APIGateway.GetGatewayResponses+import Network.AWS.APIGateway.GetIntegration+import Network.AWS.APIGateway.GetIntegrationResponse+import Network.AWS.APIGateway.GetMethod+import Network.AWS.APIGateway.GetMethodResponse+import Network.AWS.APIGateway.GetModel+import Network.AWS.APIGateway.GetModels+import Network.AWS.APIGateway.GetModelTemplate+import Network.AWS.APIGateway.GetRequestValidator+import Network.AWS.APIGateway.GetRequestValidators+import Network.AWS.APIGateway.GetResource+import Network.AWS.APIGateway.GetResources+import Network.AWS.APIGateway.GetRestAPI+import Network.AWS.APIGateway.GetRestAPIs+import Network.AWS.APIGateway.GetSDK+import Network.AWS.APIGateway.GetSDKType+import Network.AWS.APIGateway.GetSDKTypes+import Network.AWS.APIGateway.GetStage+import Network.AWS.APIGateway.GetStages+import Network.AWS.APIGateway.GetUsage+import Network.AWS.APIGateway.GetUsagePlan+import Network.AWS.APIGateway.GetUsagePlanKey+import Network.AWS.APIGateway.GetUsagePlanKeys+import Network.AWS.APIGateway.GetUsagePlans+import Network.AWS.APIGateway.ImportAPIKeys+import Network.AWS.APIGateway.ImportDocumentationParts+import Network.AWS.APIGateway.ImportRestAPI+import Network.AWS.APIGateway.PutGatewayResponse+import Network.AWS.APIGateway.PutIntegration+import Network.AWS.APIGateway.PutIntegrationResponse+import Network.AWS.APIGateway.PutMethod+import Network.AWS.APIGateway.PutMethodResponse+import Network.AWS.APIGateway.PutRestAPI+import Network.AWS.APIGateway.TestInvokeAuthorizer+import Network.AWS.APIGateway.TestInvokeMethod+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.UpdateAccount+import Network.AWS.APIGateway.UpdateAPIKey+import Network.AWS.APIGateway.UpdateAuthorizer+import Network.AWS.APIGateway.UpdateBasePathMapping+import Network.AWS.APIGateway.UpdateClientCertificate+import Network.AWS.APIGateway.UpdateDeployment+import Network.AWS.APIGateway.UpdateDocumentationPart+import Network.AWS.APIGateway.UpdateDocumentationVersion+import Network.AWS.APIGateway.UpdateDomainName+import Network.AWS.APIGateway.UpdateGatewayResponse+import Network.AWS.APIGateway.UpdateIntegration+import Network.AWS.APIGateway.UpdateIntegrationResponse+import Network.AWS.APIGateway.UpdateMethod+import Network.AWS.APIGateway.UpdateMethodResponse+import Network.AWS.APIGateway.UpdateModel+import Network.AWS.APIGateway.UpdateRequestValidator+import Network.AWS.APIGateway.UpdateResource+import Network.AWS.APIGateway.UpdateRestAPI+import Network.AWS.APIGateway.UpdateStage+import Network.AWS.APIGateway.UpdateUsage+import Network.AWS.APIGateway.UpdateUsagePlan+import Network.AWS.APIGateway.Waiters  {- $errors Error matchers are designed for use with the functions provided by
gen/Network/AWS/APIGateway/CreateAPIKey.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.CreateAPIKey--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -51,12 +51,12 @@     , akDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to create an 'ApiKey' resource. --@@ -64,15 +64,16 @@ -- -- /See:/ 'createAPIKey' smart constructor. data CreateAPIKey = CreateAPIKey'-    { _cakEnabled            :: !(Maybe Bool)-    , _cakValue              :: !(Maybe Text)-    , _cakCustomerId         :: !(Maybe Text)-    , _cakGenerateDistinctId :: !(Maybe Bool)-    , _cakName               :: !(Maybe Text)-    , _cakStageKeys          :: !(Maybe [StageKey])-    , _cakDescription        :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cakEnabled            :: !(Maybe Bool)+  , _cakValue              :: !(Maybe Text)+  , _cakCustomerId         :: !(Maybe Text)+  , _cakGenerateDistinctId :: !(Maybe Bool)+  , _cakName               :: !(Maybe Text)+  , _cakStageKeys          :: !(Maybe [StageKey])+  , _cakDescription        :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateAPIKey' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -93,16 +94,17 @@ createAPIKey     :: CreateAPIKey createAPIKey =-    CreateAPIKey'-    { _cakEnabled = Nothing-    , _cakValue = Nothing-    , _cakCustomerId = Nothing-    , _cakGenerateDistinctId = Nothing-    , _cakName = Nothing-    , _cakStageKeys = Nothing-    , _cakDescription = Nothing-    }+  CreateAPIKey'+  { _cakEnabled = Nothing+  , _cakValue = Nothing+  , _cakCustomerId = Nothing+  , _cakGenerateDistinctId = Nothing+  , _cakName = Nothing+  , _cakStageKeys = Nothing+  , _cakDescription = Nothing+  } + -- | Specifies whether the 'ApiKey' can be used by callers. cakEnabled :: Lens' CreateAPIKey (Maybe Bool) cakEnabled = lens _cakEnabled (\ s a -> s{_cakEnabled = a});@@ -136,9 +138,9 @@         request = postJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable CreateAPIKey+instance Hashable CreateAPIKey where -instance NFData CreateAPIKey+instance NFData CreateAPIKey where  instance ToHeaders CreateAPIKey where         toHeaders
gen/Network/AWS/APIGateway/CreateAuthorizer.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.CreateAuthorizer--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -33,11 +33,11 @@     , caProviderARNs     , caAuthorizerResultTtlInSeconds     , caAuthType+    , caIdentitySource     , caAuthorizerCredentials     , caRestAPIId     , caName     , caType-    , caIdentitySource      -- * Destructuring the Response     , authorizer@@ -55,12 +55,12 @@     , aAuthorizerCredentials     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to add a new 'Authorizer' to an existing 'RestApi' resource. --@@ -68,86 +68,91 @@ -- -- /See:/ 'createAuthorizer' smart constructor. data CreateAuthorizer = CreateAuthorizer'-    { _caAuthorizerURI                :: !(Maybe Text)-    , _caIdentityValidationExpression :: !(Maybe Text)-    , _caProviderARNs                 :: !(Maybe [Text])-    , _caAuthorizerResultTtlInSeconds :: !(Maybe Int)-    , _caAuthType                     :: !(Maybe Text)-    , _caAuthorizerCredentials        :: !(Maybe Text)-    , _caRestAPIId                    :: !Text-    , _caName                         :: !Text-    , _caType                         :: !AuthorizerType-    , _caIdentitySource               :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _caAuthorizerURI                :: !(Maybe Text)+  , _caIdentityValidationExpression :: !(Maybe Text)+  , _caProviderARNs                 :: !(Maybe [Text])+  , _caAuthorizerResultTtlInSeconds :: !(Maybe Int)+  , _caAuthType                     :: !(Maybe Text)+  , _caIdentitySource               :: !(Maybe Text)+  , _caAuthorizerCredentials        :: !(Maybe Text)+  , _caRestAPIId                    :: !Text+  , _caName                         :: !Text+  , _caType                         :: !AuthorizerType+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateAuthorizer' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'caAuthorizerURI' - [Required] Specifies the authorizer's Uniform Resource Identifier (URI).+-- * 'caAuthorizerURI' - 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@ . ----- * 'caIdentityValidationExpression' - A validation expression for the incoming identity.+-- * 'caIdentityValidationExpression' - A validation expression for the incoming identity token. For @TOKEN@ authorizers, this value is a regular expression. Amazon API Gateway will match the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function 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. ----- * 'caProviderARNs' - A list of the Cognito Your User Pool authorizer's provider ARNs.+-- * 'caProviderARNs' - 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. ----- * 'caAuthorizerResultTtlInSeconds' - The TTL of cached authorizer results.+-- * 'caAuthorizerResultTtlInSeconds' - 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. ----- * 'caAuthType' - Optional customer-defined field, used in Swagger imports/exports. Has no functional impact.+-- * 'caAuthType' - Optional customer-defined field, used in Swagger imports and exports without functional impact. ----- * 'caAuthorizerCredentials' - Specifies the credentials required for the authorizer, if any.+-- * 'caIdentitySource' - The identity source for which authorization is requested.     * For a @TOKEN@ authorizer, this is required and specifies the request header mapping expression for the custom header holding the authorization token submitted by the client. For example, if the token header name is @Auth@ , the header mapping expression is @method.request.header.Auth@ .    * For the @REQUEST@ authorizer, this is required when authorization caching is enabled. The value is a comma-separated string of one or more mapping expressions of the specified request parameters. For example, if an @Auth@ header, a @Name@ query string parameter are defined as identity sources, this value is @method.request.header.Auth, method.request.querystring.Name@ . These parameters will be used to derive the authorization caching key and to perform runtime validation of the @REQUEST@ authorizer by verifying all of the identity-related request parameters are present, not null and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401 Unauthorized response without calling the Lambda function. The valid value is a string of comma-separated mapping expressions of the specified request parameters. When the authorization caching is not enabled, this property is optional.    * For a @COGNITO_USER_POOLS@ authorizer, this property is not used. ----- * 'caRestAPIId' - The 'RestApi' identifier under which the 'Authorizer' will be created.+-- * 'caAuthorizerCredentials' - Specifies the required credentials as an IAM role for Amazon API Gateway to invoke the authorizer. To specify an IAM role for Amazon API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null. ----- * 'caName' - [Required] The name of the authorizer.+-- * 'caRestAPIId' - The string identifier of the associated 'RestApi' . ----- * 'caType' - [Required] The type of the authorizer.+-- * 'caName' - [Required] The name of the authorizer. ----- * 'caIdentitySource' - [Required] The source of the identity in an incoming request.+-- * 'caType' - [Required] 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. createAuthorizer     :: Text -- ^ 'caRestAPIId'     -> Text -- ^ 'caName'     -> AuthorizerType -- ^ 'caType'-    -> Text -- ^ 'caIdentitySource'     -> CreateAuthorizer-createAuthorizer pRestAPIId_ pName_ pType_ pIdentitySource_ =-    CreateAuthorizer'-    { _caAuthorizerURI = Nothing-    , _caIdentityValidationExpression = Nothing-    , _caProviderARNs = Nothing-    , _caAuthorizerResultTtlInSeconds = Nothing-    , _caAuthType = Nothing-    , _caAuthorizerCredentials = Nothing-    , _caRestAPIId = pRestAPIId_-    , _caName = pName_-    , _caType = pType_-    , _caIdentitySource = pIdentitySource_-    }+createAuthorizer pRestAPIId_ pName_ pType_ =+  CreateAuthorizer'+  { _caAuthorizerURI = Nothing+  , _caIdentityValidationExpression = Nothing+  , _caProviderARNs = Nothing+  , _caAuthorizerResultTtlInSeconds = Nothing+  , _caAuthType = Nothing+  , _caIdentitySource = Nothing+  , _caAuthorizerCredentials = Nothing+  , _caRestAPIId = pRestAPIId_+  , _caName = pName_+  , _caType = pType_+  } --- | [Required] Specifies the authorizer's Uniform Resource Identifier (URI).++-- | 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@ . caAuthorizerURI :: Lens' CreateAuthorizer (Maybe Text) caAuthorizerURI = lens _caAuthorizerURI (\ s a -> s{_caAuthorizerURI = a}); --- | A validation expression for the incoming identity.+-- | A validation expression for the incoming identity token. For @TOKEN@ authorizers, this value is a regular expression. Amazon API Gateway will match the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function 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. caIdentityValidationExpression :: Lens' CreateAuthorizer (Maybe Text) caIdentityValidationExpression = lens _caIdentityValidationExpression (\ s a -> s{_caIdentityValidationExpression = a}); --- | A list of the Cognito Your User Pool authorizer's provider ARNs.+-- | 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. caProviderARNs :: Lens' CreateAuthorizer [Text] caProviderARNs = lens _caProviderARNs (\ s a -> s{_caProviderARNs = a}) . _Default . _Coerce; --- | The TTL of cached authorizer results.+-- | 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. caAuthorizerResultTtlInSeconds :: Lens' CreateAuthorizer (Maybe Int) caAuthorizerResultTtlInSeconds = lens _caAuthorizerResultTtlInSeconds (\ s a -> s{_caAuthorizerResultTtlInSeconds = a}); --- | Optional customer-defined field, used in Swagger imports/exports. Has no functional impact.+-- | Optional customer-defined field, used in Swagger imports and exports without functional impact. caAuthType :: Lens' CreateAuthorizer (Maybe Text) caAuthType = lens _caAuthType (\ s a -> s{_caAuthType = a}); --- | Specifies the credentials required for the authorizer, if any.+-- | The identity source for which authorization is requested.     * For a @TOKEN@ authorizer, this is required and specifies the request header mapping expression for the custom header holding the authorization token submitted by the client. For example, if the token header name is @Auth@ , the header mapping expression is @method.request.header.Auth@ .    * For the @REQUEST@ authorizer, this is required when authorization caching is enabled. The value is a comma-separated string of one or more mapping expressions of the specified request parameters. For example, if an @Auth@ header, a @Name@ query string parameter are defined as identity sources, this value is @method.request.header.Auth, method.request.querystring.Name@ . These parameters will be used to derive the authorization caching key and to perform runtime validation of the @REQUEST@ authorizer by verifying all of the identity-related request parameters are present, not null and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401 Unauthorized response without calling the Lambda function. The valid value is a string of comma-separated mapping expressions of the specified request parameters. When the authorization caching is not enabled, this property is optional.    * For a @COGNITO_USER_POOLS@ authorizer, this property is not used.+caIdentitySource :: Lens' CreateAuthorizer (Maybe Text)+caIdentitySource = lens _caIdentitySource (\ s a -> s{_caIdentitySource = a});++-- | Specifies the required credentials as an IAM role for Amazon API Gateway to invoke the authorizer. To specify an IAM role for Amazon API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null. caAuthorizerCredentials :: Lens' CreateAuthorizer (Maybe Text) caAuthorizerCredentials = lens _caAuthorizerCredentials (\ s a -> s{_caAuthorizerCredentials = a}); --- | The 'RestApi' identifier under which the 'Authorizer' will be created.+-- | The string identifier of the associated 'RestApi' . caRestAPIId :: Lens' CreateAuthorizer Text caRestAPIId = lens _caRestAPIId (\ s a -> s{_caRestAPIId = a}); @@ -155,22 +160,18 @@ caName :: Lens' CreateAuthorizer Text caName = lens _caName (\ s a -> s{_caName = a}); --- | [Required] The type of the authorizer.+-- | [Required] 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. caType :: Lens' CreateAuthorizer AuthorizerType caType = lens _caType (\ s a -> s{_caType = a}); --- | [Required] The source of the identity in an incoming request.-caIdentitySource :: Lens' CreateAuthorizer Text-caIdentitySource = lens _caIdentitySource (\ s a -> s{_caIdentitySource = a});- instance AWSRequest CreateAuthorizer where         type Rs CreateAuthorizer = Authorizer         request = postJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable CreateAuthorizer+instance Hashable CreateAuthorizer where -instance NFData CreateAuthorizer+instance NFData CreateAuthorizer where  instance ToHeaders CreateAuthorizer where         toHeaders@@ -189,10 +190,10 @@                   ("authorizerResultTtlInSeconds" .=) <$>                     _caAuthorizerResultTtlInSeconds,                   ("authType" .=) <$> _caAuthType,+                  ("identitySource" .=) <$> _caIdentitySource,                   ("authorizerCredentials" .=) <$>                     _caAuthorizerCredentials,-                  Just ("name" .= _caName), Just ("type" .= _caType),-                  Just ("identitySource" .= _caIdentitySource)])+                  Just ("name" .= _caName), Just ("type" .= _caType)])  instance ToPath CreateAuthorizer where         toPath CreateAuthorizer'{..}
gen/Network/AWS/APIGateway/CreateBasePathMapping.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.CreateBasePathMapping--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -41,12 +41,12 @@     , bpmRestAPIId     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Requests Amazon API Gateway to create a new 'BasePathMapping' resource. --@@ -54,12 +54,13 @@ -- -- /See:/ 'createBasePathMapping' smart constructor. data CreateBasePathMapping = CreateBasePathMapping'-    { _cbpmStage      :: !(Maybe Text)-    , _cbpmBasePath   :: !(Maybe Text)-    , _cbpmDomainName :: !Text-    , _cbpmRestAPIId  :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cbpmStage      :: !(Maybe Text)+  , _cbpmBasePath   :: !(Maybe Text)+  , _cbpmDomainName :: !Text+  , _cbpmRestAPIId  :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateBasePathMapping' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -70,19 +71,20 @@ -- -- * 'cbpmDomainName' - The domain name of the 'BasePathMapping' resource to create. ----- * 'cbpmRestAPIId' - The name of the API that you want to apply this mapping to.+-- * 'cbpmRestAPIId' - The string identifier of the associated 'RestApi' . createBasePathMapping     :: Text -- ^ 'cbpmDomainName'     -> Text -- ^ 'cbpmRestAPIId'     -> CreateBasePathMapping createBasePathMapping pDomainName_ pRestAPIId_ =-    CreateBasePathMapping'-    { _cbpmStage = Nothing-    , _cbpmBasePath = Nothing-    , _cbpmDomainName = pDomainName_-    , _cbpmRestAPIId = pRestAPIId_-    }+  CreateBasePathMapping'+  { _cbpmStage = Nothing+  , _cbpmBasePath = Nothing+  , _cbpmDomainName = pDomainName_+  , _cbpmRestAPIId = pRestAPIId_+  } + -- | The name of the API's stage that you want to use for this mapping. Leave this blank if you do not want callers to explicitly specify the stage name after any base path name. cbpmStage :: Lens' CreateBasePathMapping (Maybe Text) cbpmStage = lens _cbpmStage (\ s a -> s{_cbpmStage = a});@@ -95,7 +97,7 @@ cbpmDomainName :: Lens' CreateBasePathMapping Text cbpmDomainName = lens _cbpmDomainName (\ s a -> s{_cbpmDomainName = a}); --- | The name of the API that you want to apply this mapping to.+-- | The string identifier of the associated 'RestApi' . cbpmRestAPIId :: Lens' CreateBasePathMapping Text cbpmRestAPIId = lens _cbpmRestAPIId (\ s a -> s{_cbpmRestAPIId = a}); @@ -104,9 +106,9 @@         request = postJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable CreateBasePathMapping+instance Hashable CreateBasePathMapping where -instance NFData CreateBasePathMapping+instance NFData CreateBasePathMapping where  instance ToHeaders CreateBasePathMapping where         toHeaders
gen/Network/AWS/APIGateway/CreateDeployment.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.CreateDeployment--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -45,12 +45,12 @@     , dDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Requests Amazon API Gateway to create a 'Deployment' resource. --@@ -58,15 +58,16 @@ -- -- /See:/ 'createDeployment' smart constructor. data CreateDeployment = CreateDeployment'-    { _cdStageDescription    :: !(Maybe Text)-    , _cdVariables           :: !(Maybe (Map Text Text))-    , _cdCacheClusterSize    :: !(Maybe CacheClusterSize)-    , _cdCacheClusterEnabled :: !(Maybe Bool)-    , _cdStageName           :: !(Maybe Text)-    , _cdDescription         :: !(Maybe Text)-    , _cdRestAPIId           :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cdStageDescription    :: !(Maybe Text)+  , _cdVariables           :: !(Maybe (Map Text Text))+  , _cdCacheClusterSize    :: !(Maybe CacheClusterSize)+  , _cdCacheClusterEnabled :: !(Maybe Bool)+  , _cdStageName           :: !(Maybe Text)+  , _cdDescription         :: !(Maybe Text)+  , _cdRestAPIId           :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateDeployment' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -83,21 +84,22 @@ -- -- * 'cdDescription' - The description for the 'Deployment' resource to create. ----- * 'cdRestAPIId' - The 'RestApi' resource identifier for the 'Deployment' resource to create.+-- * 'cdRestAPIId' - The string identifier of the associated 'RestApi' . createDeployment     :: Text -- ^ 'cdRestAPIId'     -> CreateDeployment createDeployment pRestAPIId_ =-    CreateDeployment'-    { _cdStageDescription = Nothing-    , _cdVariables = Nothing-    , _cdCacheClusterSize = Nothing-    , _cdCacheClusterEnabled = Nothing-    , _cdStageName = Nothing-    , _cdDescription = Nothing-    , _cdRestAPIId = pRestAPIId_-    }+  CreateDeployment'+  { _cdStageDescription = Nothing+  , _cdVariables = Nothing+  , _cdCacheClusterSize = Nothing+  , _cdCacheClusterEnabled = Nothing+  , _cdStageName = Nothing+  , _cdDescription = Nothing+  , _cdRestAPIId = pRestAPIId_+  } + -- | The description of the 'Stage' resource for the 'Deployment' resource to create. cdStageDescription :: Lens' CreateDeployment (Maybe Text) cdStageDescription = lens _cdStageDescription (\ s a -> s{_cdStageDescription = a});@@ -122,7 +124,7 @@ cdDescription :: Lens' CreateDeployment (Maybe Text) cdDescription = lens _cdDescription (\ s a -> s{_cdDescription = a}); --- | The 'RestApi' resource identifier for the 'Deployment' resource to create.+-- | The string identifier of the associated 'RestApi' . cdRestAPIId :: Lens' CreateDeployment Text cdRestAPIId = lens _cdRestAPIId (\ s a -> s{_cdRestAPIId = a}); @@ -131,9 +133,9 @@         request = postJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable CreateDeployment+instance Hashable CreateDeployment where -instance NFData CreateDeployment+instance NFData CreateDeployment where  instance ToHeaders CreateDeployment where         toHeaders
gen/Network/AWS/APIGateway/CreateDocumentationPart.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.CreateDocumentationPart--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -38,12 +38,12 @@     , dpProperties     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Creates a new documentation part of a given API. --@@ -51,16 +51,17 @@ -- -- /See:/ 'createDocumentationPart' smart constructor. data CreateDocumentationPart = CreateDocumentationPart'-    { _cdpRestAPIId  :: !Text-    , _cdpLocation   :: !DocumentationPartLocation-    , _cdpProperties :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cdpRestAPIId  :: !Text+  , _cdpLocation   :: !DocumentationPartLocation+  , _cdpProperties :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateDocumentationPart' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cdpRestAPIId' - [Required] The identifier of an API of the to-be-created documentation part.+-- * 'cdpRestAPIId' - [Required] The string identifier of the associated 'RestApi' . -- -- * 'cdpLocation' - [Required] The location of the targeted API entity of the to-be-created documentation part. --@@ -71,13 +72,14 @@     -> Text -- ^ 'cdpProperties'     -> CreateDocumentationPart createDocumentationPart pRestAPIId_ pLocation_ pProperties_ =-    CreateDocumentationPart'-    { _cdpRestAPIId = pRestAPIId_-    , _cdpLocation = pLocation_-    , _cdpProperties = pProperties_-    }+  CreateDocumentationPart'+  { _cdpRestAPIId = pRestAPIId_+  , _cdpLocation = pLocation_+  , _cdpProperties = pProperties_+  } --- | [Required] The identifier of an API of the to-be-created documentation part.++-- | [Required] The string identifier of the associated 'RestApi' . cdpRestAPIId :: Lens' CreateDocumentationPart Text cdpRestAPIId = lens _cdpRestAPIId (\ s a -> s{_cdpRestAPIId = a}); @@ -94,9 +96,9 @@         request = postJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable CreateDocumentationPart+instance Hashable CreateDocumentationPart where -instance NFData CreateDocumentationPart+instance NFData CreateDocumentationPart where  instance ToHeaders CreateDocumentationPart where         toHeaders
gen/Network/AWS/APIGateway/CreateDocumentationVersion.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.CreateDocumentationVersion--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -39,12 +39,12 @@     , dvDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Creates a new documentation version of a given API. --@@ -52,12 +52,13 @@ -- -- /See:/ 'createDocumentationVersion' smart constructor. data CreateDocumentationVersion = CreateDocumentationVersion'-    { _cdvStageName            :: !(Maybe Text)-    , _cdvDescription          :: !(Maybe Text)-    , _cdvRestAPIId            :: !Text-    , _cdvDocumentationVersion :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cdvStageName            :: !(Maybe Text)+  , _cdvDescription          :: !(Maybe Text)+  , _cdvRestAPIId            :: !Text+  , _cdvDocumentationVersion :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateDocumentationVersion' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -66,7 +67,7 @@ -- -- * 'cdvDescription' - A description about the new documentation snapshot. ----- * 'cdvRestAPIId' - [Required] Specifies the API identifier of the to-be-created documentation version.+-- * 'cdvRestAPIId' - [Required] The string identifier of the associated 'RestApi' . -- -- * 'cdvDocumentationVersion' - [Required] The version identifier of the new snapshot. createDocumentationVersion@@ -74,13 +75,14 @@     -> Text -- ^ 'cdvDocumentationVersion'     -> CreateDocumentationVersion createDocumentationVersion pRestAPIId_ pDocumentationVersion_ =-    CreateDocumentationVersion'-    { _cdvStageName = Nothing-    , _cdvDescription = Nothing-    , _cdvRestAPIId = pRestAPIId_-    , _cdvDocumentationVersion = pDocumentationVersion_-    }+  CreateDocumentationVersion'+  { _cdvStageName = Nothing+  , _cdvDescription = Nothing+  , _cdvRestAPIId = pRestAPIId_+  , _cdvDocumentationVersion = pDocumentationVersion_+  } + -- | The stage name to be associated with the new documentation snapshot. cdvStageName :: Lens' CreateDocumentationVersion (Maybe Text) cdvStageName = lens _cdvStageName (\ s a -> s{_cdvStageName = a});@@ -89,7 +91,7 @@ cdvDescription :: Lens' CreateDocumentationVersion (Maybe Text) cdvDescription = lens _cdvDescription (\ s a -> s{_cdvDescription = a}); --- | [Required] Specifies the API identifier of the to-be-created documentation version.+-- | [Required] The string identifier of the associated 'RestApi' . cdvRestAPIId :: Lens' CreateDocumentationVersion Text cdvRestAPIId = lens _cdvRestAPIId (\ s a -> s{_cdvRestAPIId = a}); @@ -103,9 +105,9 @@         request = postJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable CreateDocumentationVersion+instance Hashable CreateDocumentationVersion where -instance NFData CreateDocumentationVersion+instance NFData CreateDocumentationVersion where  instance ToHeaders CreateDocumentationVersion where         toHeaders
gen/Network/AWS/APIGateway/CreateDomainName.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.CreateDomainName--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -27,28 +27,37 @@       createDomainName     , CreateDomainName     -- * Request Lenses-    , cdnDomainName     , cdnCertificateName-    , cdnCertificateBody+    , cdnRegionalCertificateARN+    , cdnCertificateARN     , cdnCertificatePrivateKey+    , cdnRegionalCertificateName+    , cdnCertificateBody     , cdnCertificateChain+    , cdnEndpointConfiguration+    , cdnDomainName      -- * Destructuring the Response     , domainName     , DomainName     -- * Response Lenses     , dnCertificateName+    , dnRegionalCertificateARN+    , dnCertificateARN     , dnDomainName+    , dnRegionalCertificateName+    , dnRegionalDomainName     , dnCertificateUploadDate     , dnDistributionDomainName+    , dnEndpointConfiguration     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A request to create a new domain name. --@@ -56,70 +65,100 @@ -- -- /See:/ 'createDomainName' smart constructor. data CreateDomainName = CreateDomainName'-    { _cdnDomainName            :: !Text-    , _cdnCertificateName       :: !Text-    , _cdnCertificateBody       :: !Text-    , _cdnCertificatePrivateKey :: !Text-    , _cdnCertificateChain      :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cdnCertificateName         :: !(Maybe Text)+  , _cdnRegionalCertificateARN  :: !(Maybe Text)+  , _cdnCertificateARN          :: !(Maybe Text)+  , _cdnCertificatePrivateKey   :: !(Maybe Text)+  , _cdnRegionalCertificateName :: !(Maybe Text)+  , _cdnCertificateBody         :: !(Maybe Text)+  , _cdnCertificateChain        :: !(Maybe Text)+  , _cdnEndpointConfiguration   :: !(Maybe EndpointConfiguration)+  , _cdnDomainName              :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateDomainName' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cdnDomainName' - The name of the 'DomainName' resource.+-- * 'cdnCertificateName' - The user-friendly name of the certificate that will be used by edge-optimized endpoint for this domain name. ----- * 'cdnCertificateName' - The name of the certificate.+-- * 'cdnRegionalCertificateARN' - 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. ----- * 'cdnCertificateBody' - The body of the server certificate provided by your certificate authority.+-- * 'cdnCertificateARN' - 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. ----- * 'cdnCertificatePrivateKey' - Your certificate's private key.+-- * 'cdnCertificatePrivateKey' - [Deprecated] Your edge-optimized endpoint's domain name certificate's private key. ----- * 'cdnCertificateChain' - The intermediate certificates and optionally the root certificate, one after the other without any blank lines. 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.+-- * 'cdnRegionalCertificateName' - The user-friendly name of the certificate that will be used by regional endpoint for this domain name.+--+-- * 'cdnCertificateBody' - [Deprecated] The body of the server certificate that will be used by edge-optimized endpoint for this domain name provided by your certificate authority.+--+-- * 'cdnCertificateChain' - [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.+--+-- * 'cdnEndpointConfiguration' - The endpoint configuration of this 'DomainName' showing the endpoint types of the domain name.+--+-- * 'cdnDomainName' - (Required) The name of the 'DomainName' resource. createDomainName     :: Text -- ^ 'cdnDomainName'-    -> Text -- ^ 'cdnCertificateName'-    -> Text -- ^ 'cdnCertificateBody'-    -> Text -- ^ 'cdnCertificatePrivateKey'-    -> Text -- ^ 'cdnCertificateChain'     -> CreateDomainName-createDomainName pDomainName_ pCertificateName_ pCertificateBody_ pCertificatePrivateKey_ pCertificateChain_ =-    CreateDomainName'-    { _cdnDomainName = pDomainName_-    , _cdnCertificateName = pCertificateName_-    , _cdnCertificateBody = pCertificateBody_-    , _cdnCertificatePrivateKey = pCertificatePrivateKey_-    , _cdnCertificateChain = pCertificateChain_-    }+createDomainName pDomainName_ =+  CreateDomainName'+  { _cdnCertificateName = Nothing+  , _cdnRegionalCertificateARN = Nothing+  , _cdnCertificateARN = Nothing+  , _cdnCertificatePrivateKey = Nothing+  , _cdnRegionalCertificateName = Nothing+  , _cdnCertificateBody = Nothing+  , _cdnCertificateChain = Nothing+  , _cdnEndpointConfiguration = Nothing+  , _cdnDomainName = pDomainName_+  } --- | The name of the 'DomainName' resource.-cdnDomainName :: Lens' CreateDomainName Text-cdnDomainName = lens _cdnDomainName (\ s a -> s{_cdnDomainName = a}); --- | The name of the certificate.-cdnCertificateName :: Lens' CreateDomainName Text+-- | The user-friendly name of the certificate that will be used by edge-optimized endpoint for this domain name.+cdnCertificateName :: Lens' CreateDomainName (Maybe Text) cdnCertificateName = lens _cdnCertificateName (\ s a -> s{_cdnCertificateName = a}); --- | The body of the server certificate provided by your certificate authority.-cdnCertificateBody :: Lens' CreateDomainName Text-cdnCertificateBody = lens _cdnCertificateBody (\ s a -> s{_cdnCertificateBody = a});+-- | 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.+cdnRegionalCertificateARN :: Lens' CreateDomainName (Maybe Text)+cdnRegionalCertificateARN = lens _cdnRegionalCertificateARN (\ s a -> s{_cdnRegionalCertificateARN = a}); --- | Your certificate's private key.-cdnCertificatePrivateKey :: Lens' CreateDomainName Text+-- | 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.+cdnCertificateARN :: Lens' CreateDomainName (Maybe Text)+cdnCertificateARN = lens _cdnCertificateARN (\ s a -> s{_cdnCertificateARN = a});++-- | [Deprecated] Your edge-optimized endpoint's domain name certificate's private key.+cdnCertificatePrivateKey :: Lens' CreateDomainName (Maybe Text) cdnCertificatePrivateKey = lens _cdnCertificatePrivateKey (\ s a -> s{_cdnCertificatePrivateKey = a}); --- | The intermediate certificates and optionally the root certificate, one after the other without any blank lines. 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.-cdnCertificateChain :: Lens' CreateDomainName Text+-- | The user-friendly name of the certificate that will be used by regional endpoint for this domain name.+cdnRegionalCertificateName :: Lens' CreateDomainName (Maybe Text)+cdnRegionalCertificateName = lens _cdnRegionalCertificateName (\ s a -> s{_cdnRegionalCertificateName = a});++-- | [Deprecated] The body of the server certificate that will be used by edge-optimized endpoint for this domain name provided by your certificate authority.+cdnCertificateBody :: Lens' CreateDomainName (Maybe Text)+cdnCertificateBody = lens _cdnCertificateBody (\ s a -> s{_cdnCertificateBody = a});++-- | [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.+cdnCertificateChain :: Lens' CreateDomainName (Maybe Text) cdnCertificateChain = lens _cdnCertificateChain (\ s a -> s{_cdnCertificateChain = a}); +-- | The endpoint configuration of this 'DomainName' showing the endpoint types of the domain name.+cdnEndpointConfiguration :: Lens' CreateDomainName (Maybe EndpointConfiguration)+cdnEndpointConfiguration = lens _cdnEndpointConfiguration (\ s a -> s{_cdnEndpointConfiguration = a});++-- | (Required) The name of the 'DomainName' resource.+cdnDomainName :: Lens' CreateDomainName Text+cdnDomainName = lens _cdnDomainName (\ s a -> s{_cdnDomainName = a});+ instance AWSRequest CreateDomainName where         type Rs CreateDomainName = DomainName         request = postJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable CreateDomainName+instance Hashable CreateDomainName where -instance NFData CreateDomainName+instance NFData CreateDomainName where  instance ToHeaders CreateDomainName where         toHeaders@@ -131,13 +170,19 @@         toJSON CreateDomainName'{..}           = object               (catMaybes-                 [Just ("domainName" .= _cdnDomainName),-                  Just ("certificateName" .= _cdnCertificateName),-                  Just ("certificateBody" .= _cdnCertificateBody),-                  Just-                    ("certificatePrivateKey" .=-                       _cdnCertificatePrivateKey),-                  Just ("certificateChain" .= _cdnCertificateChain)])+                 [("certificateName" .=) <$> _cdnCertificateName,+                  ("regionalCertificateArn" .=) <$>+                    _cdnRegionalCertificateARN,+                  ("certificateArn" .=) <$> _cdnCertificateARN,+                  ("certificatePrivateKey" .=) <$>+                    _cdnCertificatePrivateKey,+                  ("regionalCertificateName" .=) <$>+                    _cdnRegionalCertificateName,+                  ("certificateBody" .=) <$> _cdnCertificateBody,+                  ("certificateChain" .=) <$> _cdnCertificateChain,+                  ("endpointConfiguration" .=) <$>+                    _cdnEndpointConfiguration,+                  Just ("domainName" .= _cdnDomainName)])  instance ToPath CreateDomainName where         toPath = const "/domainnames"
gen/Network/AWS/APIGateway/CreateModel.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.CreateModel--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -44,12 +44,12 @@     , mContentType     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to add a new 'Model' to an existing 'RestApi' resource. --@@ -57,13 +57,14 @@ -- -- /See:/ 'createModel' smart constructor. data CreateModel = CreateModel'-    { _cmSchema      :: !(Maybe Text)-    , _cmDescription :: !(Maybe Text)-    , _cmRestAPIId   :: !Text-    , _cmName        :: !Text-    , _cmContentType :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cmSchema      :: !(Maybe Text)+  , _cmDescription :: !(Maybe Text)+  , _cmRestAPIId   :: !Text+  , _cmName        :: !Text+  , _cmContentType :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateModel' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -74,7 +75,7 @@ -- -- * 'cmRestAPIId' - The 'RestApi' identifier under which the 'Model' will be created. ----- * 'cmName' - The name of the model.+-- * 'cmName' - The name of the model. Must be alphanumeric. -- -- * 'cmContentType' - The content-type for the model. createModel@@ -83,14 +84,15 @@     -> Text -- ^ 'cmContentType'     -> CreateModel createModel pRestAPIId_ pName_ pContentType_ =-    CreateModel'-    { _cmSchema = Nothing-    , _cmDescription = Nothing-    , _cmRestAPIId = pRestAPIId_-    , _cmName = pName_-    , _cmContentType = pContentType_-    }+  CreateModel'+  { _cmSchema = Nothing+  , _cmDescription = Nothing+  , _cmRestAPIId = pRestAPIId_+  , _cmName = pName_+  , _cmContentType = pContentType_+  } + -- | The schema for the model. For @application/json@ models, this should be <http://json-schema.org/documentation.html JSON-schema draft v4> model. cmSchema :: Lens' CreateModel (Maybe Text) cmSchema = lens _cmSchema (\ s a -> s{_cmSchema = a});@@ -103,7 +105,7 @@ cmRestAPIId :: Lens' CreateModel Text cmRestAPIId = lens _cmRestAPIId (\ s a -> s{_cmRestAPIId = a}); --- | The name of the model.+-- | The name of the model. Must be alphanumeric. cmName :: Lens' CreateModel Text cmName = lens _cmName (\ s a -> s{_cmName = a}); @@ -116,9 +118,9 @@         request = postJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable CreateModel+instance Hashable CreateModel where -instance NFData CreateModel+instance NFData CreateModel where  instance ToHeaders CreateModel where         toHeaders
+ gen/Network/AWS/APIGateway/CreateRequestValidator.hs view
@@ -0,0 +1,136 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.APIGateway.CreateRequestValidator+-- Copyright   : (c) 2013-2017 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)+--+-- Creates a 'ReqeustValidator' of a given 'RestApi' .+--+--+module Network.AWS.APIGateway.CreateRequestValidator+    (+    -- * Creating a Request+      createRequestValidator+    , CreateRequestValidator+    -- * Request Lenses+    , crvValidateRequestParameters+    , crvName+    , crvValidateRequestBody+    , crvRestAPIId++    -- * Destructuring the Response+    , requestValidator+    , RequestValidator+    -- * Response Lenses+    , rvValidateRequestParameters+    , rvName+    , rvValidateRequestBody+    , rvId+    ) where++import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | Creates a 'RequestValidator' of a given 'RestApi' .+--+--+--+-- /See:/ 'createRequestValidator' smart constructor.+data CreateRequestValidator = CreateRequestValidator'+  { _crvValidateRequestParameters :: !(Maybe Bool)+  , _crvName                      :: !(Maybe Text)+  , _crvValidateRequestBody       :: !(Maybe Bool)+  , _crvRestAPIId                 :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateRequestValidator' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'crvValidateRequestParameters' - A Boolean flag to indicate whether to validate request parameters, @true@ , or not @false@ .+--+-- * 'crvName' - The name of the to-be-created 'RequestValidator' .+--+-- * 'crvValidateRequestBody' - A Boolean flag to indicate whether to validate request body according to the configured model schema for the method (@true@ ) or not (@false@ ).+--+-- * 'crvRestAPIId' - The string identifier of the associated 'RestApi' .+createRequestValidator+    :: Text -- ^ 'crvRestAPIId'+    -> CreateRequestValidator+createRequestValidator pRestAPIId_ =+  CreateRequestValidator'+  { _crvValidateRequestParameters = Nothing+  , _crvName = Nothing+  , _crvValidateRequestBody = Nothing+  , _crvRestAPIId = pRestAPIId_+  }+++-- | A Boolean flag to indicate whether to validate request parameters, @true@ , or not @false@ .+crvValidateRequestParameters :: Lens' CreateRequestValidator (Maybe Bool)+crvValidateRequestParameters = lens _crvValidateRequestParameters (\ s a -> s{_crvValidateRequestParameters = a});++-- | The name of the to-be-created 'RequestValidator' .+crvName :: Lens' CreateRequestValidator (Maybe Text)+crvName = lens _crvName (\ s a -> s{_crvName = a});++-- | A Boolean flag to indicate whether to validate request body according to the configured model schema for the method (@true@ ) or not (@false@ ).+crvValidateRequestBody :: Lens' CreateRequestValidator (Maybe Bool)+crvValidateRequestBody = lens _crvValidateRequestBody (\ s a -> s{_crvValidateRequestBody = a});++-- | The string identifier of the associated 'RestApi' .+crvRestAPIId :: Lens' CreateRequestValidator Text+crvRestAPIId = lens _crvRestAPIId (\ s a -> s{_crvRestAPIId = a});++instance AWSRequest CreateRequestValidator where+        type Rs CreateRequestValidator = RequestValidator+        request = postJSON apiGateway+        response = receiveJSON (\ s h x -> eitherParseJSON x)++instance Hashable CreateRequestValidator where++instance NFData CreateRequestValidator where++instance ToHeaders CreateRequestValidator where+        toHeaders+          = const+              (mconcat+                 ["Accept" =# ("application/json" :: ByteString)])++instance ToJSON CreateRequestValidator where+        toJSON CreateRequestValidator'{..}+          = object+              (catMaybes+                 [("validateRequestParameters" .=) <$>+                    _crvValidateRequestParameters,+                  ("name" .=) <$> _crvName,+                  ("validateRequestBody" .=) <$>+                    _crvValidateRequestBody])++instance ToPath CreateRequestValidator where+        toPath CreateRequestValidator'{..}+          = mconcat+              ["/restapis/", toBS _crvRestAPIId,+               "/requestvalidators"]++instance ToQuery CreateRequestValidator where+        toQuery = const mempty
gen/Network/AWS/APIGateway/CreateResource.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.CreateResource--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -42,12 +42,12 @@     , rParentId     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Requests Amazon API Gateway to create a 'Resource' resource. --@@ -55,16 +55,17 @@ -- -- /See:/ 'createResource' smart constructor. data CreateResource = CreateResource'-    { _crRestAPIId :: !Text-    , _crParentId  :: !Text-    , _crPathPart  :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _crRestAPIId :: !Text+  , _crParentId  :: !Text+  , _crPathPart  :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateResource' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'crRestAPIId' - The identifier of the 'RestApi' for the resource.+-- * 'crRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'crParentId' - The parent resource's identifier. --@@ -75,13 +76,14 @@     -> Text -- ^ 'crPathPart'     -> CreateResource createResource pRestAPIId_ pParentId_ pPathPart_ =-    CreateResource'-    { _crRestAPIId = pRestAPIId_-    , _crParentId = pParentId_-    , _crPathPart = pPathPart_-    }+  CreateResource'+  { _crRestAPIId = pRestAPIId_+  , _crParentId = pParentId_+  , _crPathPart = pPathPart_+  } --- | The identifier of the 'RestApi' for the resource.++-- | The string identifier of the associated 'RestApi' . crRestAPIId :: Lens' CreateResource Text crRestAPIId = lens _crRestAPIId (\ s a -> s{_crRestAPIId = a}); @@ -98,9 +100,9 @@         request = postJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable CreateResource+instance Hashable CreateResource where -instance NFData CreateResource+instance NFData CreateResource where  instance ToHeaders CreateResource where         toHeaders
gen/Network/AWS/APIGateway/CreateRestAPI.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.CreateRestAPI--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -30,6 +30,7 @@     , craBinaryMediaTypes     , craVersion     , craCloneFrom+    , craEndpointConfiguration     , craDescription     , craName @@ -43,15 +44,16 @@     , raName     , raVersion     , raId+    , raEndpointConfiguration     , raDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | The POST Request to add a new 'RestApi' resource to your collection. --@@ -59,13 +61,15 @@ -- -- /See:/ 'createRestAPI' smart constructor. data CreateRestAPI = CreateRestAPI'-    { _craBinaryMediaTypes :: !(Maybe [Text])-    , _craVersion          :: !(Maybe Text)-    , _craCloneFrom        :: !(Maybe Text)-    , _craDescription      :: !(Maybe Text)-    , _craName             :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _craBinaryMediaTypes      :: !(Maybe [Text])+  , _craVersion               :: !(Maybe Text)+  , _craCloneFrom             :: !(Maybe Text)+  , _craEndpointConfiguration :: !(Maybe EndpointConfiguration)+  , _craDescription           :: !(Maybe Text)+  , _craName                  :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateRestAPI' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -76,6 +80,8 @@ -- -- * 'craCloneFrom' - The ID of the 'RestApi' that you want to clone from. --+-- * 'craEndpointConfiguration' - The endpoint configuration of this 'RestApi' showing the endpoint types of the API.+-- -- * 'craDescription' - The description of the 'RestApi' . -- -- * 'craName' - The name of the 'RestApi' .@@ -83,14 +89,16 @@     :: Text -- ^ 'craName'     -> CreateRestAPI createRestAPI pName_ =-    CreateRestAPI'-    { _craBinaryMediaTypes = Nothing-    , _craVersion = Nothing-    , _craCloneFrom = Nothing-    , _craDescription = Nothing-    , _craName = pName_-    }+  CreateRestAPI'+  { _craBinaryMediaTypes = Nothing+  , _craVersion = Nothing+  , _craCloneFrom = Nothing+  , _craEndpointConfiguration = Nothing+  , _craDescription = Nothing+  , _craName = pName_+  } + -- | The list of binary media types supported by the 'RestApi' . By default, the 'RestApi' supports only UTF-8-encoded text payloads. craBinaryMediaTypes :: Lens' CreateRestAPI [Text] craBinaryMediaTypes = lens _craBinaryMediaTypes (\ s a -> s{_craBinaryMediaTypes = a}) . _Default . _Coerce;@@ -103,6 +111,10 @@ craCloneFrom :: Lens' CreateRestAPI (Maybe Text) craCloneFrom = lens _craCloneFrom (\ s a -> s{_craCloneFrom = a}); +-- | The endpoint configuration of this 'RestApi' showing the endpoint types of the API.+craEndpointConfiguration :: Lens' CreateRestAPI (Maybe EndpointConfiguration)+craEndpointConfiguration = lens _craEndpointConfiguration (\ s a -> s{_craEndpointConfiguration = a});+ -- | The description of the 'RestApi' . craDescription :: Lens' CreateRestAPI (Maybe Text) craDescription = lens _craDescription (\ s a -> s{_craDescription = a});@@ -116,9 +128,9 @@         request = postJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable CreateRestAPI+instance Hashable CreateRestAPI where -instance NFData CreateRestAPI+instance NFData CreateRestAPI where  instance ToHeaders CreateRestAPI where         toHeaders@@ -133,6 +145,8 @@                  [("binaryMediaTypes" .=) <$> _craBinaryMediaTypes,                   ("version" .=) <$> _craVersion,                   ("cloneFrom" .=) <$> _craCloneFrom,+                  ("endpointConfiguration" .=) <$>+                    _craEndpointConfiguration,                   ("description" .=) <$> _craDescription,                   Just ("name" .= _craName)]) 
gen/Network/AWS/APIGateway/CreateStage.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.CreateStage--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -54,12 +54,12 @@     , sDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Requests Amazon API Gateway to create a 'Stage' resource. --@@ -67,16 +67,17 @@ -- -- /See:/ 'createStage' smart constructor. data CreateStage = CreateStage'-    { _csVariables            :: !(Maybe (Map Text Text))-    , _csDocumentationVersion :: !(Maybe Text)-    , _csCacheClusterSize     :: !(Maybe CacheClusterSize)-    , _csCacheClusterEnabled  :: !(Maybe Bool)-    , _csDescription          :: !(Maybe Text)-    , _csRestAPIId            :: !Text-    , _csStageName            :: !Text-    , _csDeploymentId         :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _csVariables            :: !(Maybe (Map Text Text))+  , _csDocumentationVersion :: !(Maybe Text)+  , _csCacheClusterSize     :: !(Maybe CacheClusterSize)+  , _csCacheClusterEnabled  :: !(Maybe Bool)+  , _csDescription          :: !(Maybe Text)+  , _csRestAPIId            :: !Text+  , _csStageName            :: !Text+  , _csDeploymentId         :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateStage' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -91,7 +92,7 @@ -- -- * 'csDescription' - The description of the 'Stage' resource. ----- * 'csRestAPIId' - The identifier of the 'RestApi' resource for the 'Stage' resource to create.+-- * 'csRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'csStageName' - The name for the 'Stage' resource. --@@ -102,17 +103,18 @@     -> Text -- ^ 'csDeploymentId'     -> CreateStage createStage pRestAPIId_ pStageName_ pDeploymentId_ =-    CreateStage'-    { _csVariables = Nothing-    , _csDocumentationVersion = Nothing-    , _csCacheClusterSize = Nothing-    , _csCacheClusterEnabled = Nothing-    , _csDescription = Nothing-    , _csRestAPIId = pRestAPIId_-    , _csStageName = pStageName_-    , _csDeploymentId = pDeploymentId_-    }+  CreateStage'+  { _csVariables = Nothing+  , _csDocumentationVersion = Nothing+  , _csCacheClusterSize = Nothing+  , _csCacheClusterEnabled = Nothing+  , _csDescription = Nothing+  , _csRestAPIId = pRestAPIId_+  , _csStageName = pStageName_+  , _csDeploymentId = pDeploymentId_+  } + -- | A map that defines the stage variables for the new 'Stage' resource. Variable names can have alphanumeric and underscore characters, and the values must match @[A-Za-z0-9-._~:/?#&=,]+@ . csVariables :: Lens' CreateStage (HashMap Text Text) csVariables = lens _csVariables (\ s a -> s{_csVariables = a}) . _Default . _Map;@@ -133,7 +135,7 @@ csDescription :: Lens' CreateStage (Maybe Text) csDescription = lens _csDescription (\ s a -> s{_csDescription = a}); --- | The identifier of the 'RestApi' resource for the 'Stage' resource to create.+-- | The string identifier of the associated 'RestApi' . csRestAPIId :: Lens' CreateStage Text csRestAPIId = lens _csRestAPIId (\ s a -> s{_csRestAPIId = a}); @@ -150,9 +152,9 @@         request = postJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable CreateStage+instance Hashable CreateStage where -instance NFData CreateStage+instance NFData CreateStage where  instance ToHeaders CreateStage where         toHeaders
gen/Network/AWS/APIGateway/CreateUsagePlan.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.CreateUsagePlan--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -46,12 +46,12 @@     , upProductCode     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | 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. --@@ -59,13 +59,14 @@ -- -- /See:/ 'createUsagePlan' smart constructor. data CreateUsagePlan = CreateUsagePlan'-    { _cupApiStages   :: !(Maybe [APIStage])-    , _cupThrottle    :: !(Maybe ThrottleSettings)-    , _cupQuota       :: !(Maybe QuotaSettings)-    , _cupDescription :: !(Maybe Text)-    , _cupName        :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cupApiStages   :: !(Maybe [APIStage])+  , _cupThrottle    :: !(Maybe ThrottleSettings)+  , _cupQuota       :: !(Maybe QuotaSettings)+  , _cupDescription :: !(Maybe Text)+  , _cupName        :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateUsagePlan' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -83,14 +84,15 @@     :: Text -- ^ 'cupName'     -> CreateUsagePlan createUsagePlan pName_ =-    CreateUsagePlan'-    { _cupApiStages = Nothing-    , _cupThrottle = Nothing-    , _cupQuota = Nothing-    , _cupDescription = Nothing-    , _cupName = pName_-    }+  CreateUsagePlan'+  { _cupApiStages = Nothing+  , _cupThrottle = Nothing+  , _cupQuota = Nothing+  , _cupDescription = Nothing+  , _cupName = pName_+  } + -- | The associated API stages of the usage plan. cupApiStages :: Lens' CreateUsagePlan [APIStage] cupApiStages = lens _cupApiStages (\ s a -> s{_cupApiStages = a}) . _Default . _Coerce;@@ -116,9 +118,9 @@         request = postJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable CreateUsagePlan+instance Hashable CreateUsagePlan where -instance NFData CreateUsagePlan+instance NFData CreateUsagePlan where  instance ToHeaders CreateUsagePlan where         toHeaders
gen/Network/AWS/APIGateway/CreateUsagePlanKey.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.CreateUsagePlanKey--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -41,12 +41,12 @@     , upkType     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | The POST request to create a usage plan key for adding an existing API key to a usage plan. --@@ -54,11 +54,12 @@ -- -- /See:/ 'createUsagePlanKey' smart constructor. data CreateUsagePlanKey = CreateUsagePlanKey'-    { _cupkUsagePlanId :: !Text-    , _cupkKeyId       :: !Text-    , _cupkKeyType     :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _cupkUsagePlanId :: !Text+  , _cupkKeyId       :: !Text+  , _cupkKeyType     :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'CreateUsagePlanKey' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -74,12 +75,13 @@     -> Text -- ^ 'cupkKeyType'     -> CreateUsagePlanKey createUsagePlanKey pUsagePlanId_ pKeyId_ pKeyType_ =-    CreateUsagePlanKey'-    { _cupkUsagePlanId = pUsagePlanId_-    , _cupkKeyId = pKeyId_-    , _cupkKeyType = pKeyType_-    }+  CreateUsagePlanKey'+  { _cupkUsagePlanId = pUsagePlanId_+  , _cupkKeyId = pKeyId_+  , _cupkKeyType = pKeyType_+  } + -- | The Id of the 'UsagePlan' resource representing the usage plan containing the to-be-created 'UsagePlanKey' resource representing a plan customer. cupkUsagePlanId :: Lens' CreateUsagePlanKey Text cupkUsagePlanId = lens _cupkUsagePlanId (\ s a -> s{_cupkUsagePlanId = a});@@ -97,9 +99,9 @@         request = postJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable CreateUsagePlanKey+instance Hashable CreateUsagePlanKey where -instance NFData CreateUsagePlanKey+instance NFData CreateUsagePlanKey where  instance ToHeaders CreateUsagePlanKey where         toHeaders
gen/Network/AWS/APIGateway/DeleteAPIKey.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.DeleteAPIKey--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -34,12 +34,12 @@     , DeleteAPIKeyResponse     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A request to delete the 'ApiKey' resource. --@@ -47,9 +47,10 @@ -- -- /See:/ 'deleteAPIKey' smart constructor. newtype DeleteAPIKey = DeleteAPIKey'-    { _dakApiKey :: Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _dakApiKey :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteAPIKey' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -58,11 +59,9 @@ deleteAPIKey     :: Text -- ^ 'dakApiKey'     -> DeleteAPIKey-deleteAPIKey pApiKey_ =-    DeleteAPIKey'-    { _dakApiKey = pApiKey_-    }+deleteAPIKey pApiKey_ = DeleteAPIKey' {_dakApiKey = pApiKey_} + -- | The identifier of the 'ApiKey' resource to be deleted. dakApiKey :: Lens' DeleteAPIKey Text dakApiKey = lens _dakApiKey (\ s a -> s{_dakApiKey = a});@@ -72,9 +71,9 @@         request = delete apiGateway         response = receiveNull DeleteAPIKeyResponse' -instance Hashable DeleteAPIKey+instance Hashable DeleteAPIKey where -instance NFData DeleteAPIKey+instance NFData DeleteAPIKey where  instance ToHeaders DeleteAPIKey where         toHeaders@@ -91,13 +90,15 @@  -- | /See:/ 'deleteAPIKeyResponse' smart constructor. data DeleteAPIKeyResponse =-    DeleteAPIKeyResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteAPIKeyResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteAPIKeyResponse' with the minimum fields required to make a request. -- deleteAPIKeyResponse     :: DeleteAPIKeyResponse deleteAPIKeyResponse = DeleteAPIKeyResponse' -instance NFData DeleteAPIKeyResponse++instance NFData DeleteAPIKeyResponse where
gen/Network/AWS/APIGateway/DeleteAuthorizer.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.DeleteAuthorizer--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -36,12 +36,12 @@     , DeleteAuthorizerResponse     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to delete an existing 'Authorizer' resource. --@@ -49,15 +49,16 @@ -- -- /See:/ 'deleteAuthorizer' smart constructor. data DeleteAuthorizer = DeleteAuthorizer'-    { _daRestAPIId    :: !Text-    , _daAuthorizerId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _daRestAPIId    :: !Text+  , _daAuthorizerId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteAuthorizer' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'daRestAPIId' - The 'RestApi' identifier for the 'Authorizer' resource.+-- * 'daRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'daAuthorizerId' - The identifier of the 'Authorizer' resource. deleteAuthorizer@@ -65,12 +66,11 @@     -> Text -- ^ 'daAuthorizerId'     -> DeleteAuthorizer deleteAuthorizer pRestAPIId_ pAuthorizerId_ =-    DeleteAuthorizer'-    { _daRestAPIId = pRestAPIId_-    , _daAuthorizerId = pAuthorizerId_-    }+  DeleteAuthorizer'+  {_daRestAPIId = pRestAPIId_, _daAuthorizerId = pAuthorizerId_} --- | The 'RestApi' identifier for the 'Authorizer' resource.++-- | The string identifier of the associated 'RestApi' . daRestAPIId :: Lens' DeleteAuthorizer Text daRestAPIId = lens _daRestAPIId (\ s a -> s{_daRestAPIId = a}); @@ -83,9 +83,9 @@         request = delete apiGateway         response = receiveNull DeleteAuthorizerResponse' -instance Hashable DeleteAuthorizer+instance Hashable DeleteAuthorizer where -instance NFData DeleteAuthorizer+instance NFData DeleteAuthorizer where  instance ToHeaders DeleteAuthorizer where         toHeaders@@ -104,13 +104,15 @@  -- | /See:/ 'deleteAuthorizerResponse' smart constructor. data DeleteAuthorizerResponse =-    DeleteAuthorizerResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteAuthorizerResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteAuthorizerResponse' with the minimum fields required to make a request. -- deleteAuthorizerResponse     :: DeleteAuthorizerResponse deleteAuthorizerResponse = DeleteAuthorizerResponse' -instance NFData DeleteAuthorizerResponse++instance NFData DeleteAuthorizerResponse where
gen/Network/AWS/APIGateway/DeleteBasePathMapping.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.DeleteBasePathMapping--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -35,12 +35,12 @@     , DeleteBasePathMappingResponse     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A request to delete the 'BasePathMapping' resource. --@@ -48,10 +48,11 @@ -- -- /See:/ 'deleteBasePathMapping' smart constructor. data DeleteBasePathMapping = DeleteBasePathMapping'-    { _dbpmDomainName :: !Text-    , _dbpmBasePath   :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _dbpmDomainName :: !Text+  , _dbpmBasePath   :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteBasePathMapping' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -64,11 +65,10 @@     -> Text -- ^ 'dbpmBasePath'     -> DeleteBasePathMapping deleteBasePathMapping pDomainName_ pBasePath_ =-    DeleteBasePathMapping'-    { _dbpmDomainName = pDomainName_-    , _dbpmBasePath = pBasePath_-    }+  DeleteBasePathMapping'+  {_dbpmDomainName = pDomainName_, _dbpmBasePath = pBasePath_} + -- | The domain name of the 'BasePathMapping' resource to delete. dbpmDomainName :: Lens' DeleteBasePathMapping Text dbpmDomainName = lens _dbpmDomainName (\ s a -> s{_dbpmDomainName = a});@@ -83,9 +83,9 @@         request = delete apiGateway         response = receiveNull DeleteBasePathMappingResponse' -instance Hashable DeleteBasePathMapping+instance Hashable DeleteBasePathMapping where -instance NFData DeleteBasePathMapping+instance NFData DeleteBasePathMapping where  instance ToHeaders DeleteBasePathMapping where         toHeaders@@ -104,13 +104,15 @@  -- | /See:/ 'deleteBasePathMappingResponse' smart constructor. data DeleteBasePathMappingResponse =-    DeleteBasePathMappingResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteBasePathMappingResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteBasePathMappingResponse' with the minimum fields required to make a request. -- deleteBasePathMappingResponse     :: DeleteBasePathMappingResponse deleteBasePathMappingResponse = DeleteBasePathMappingResponse' -instance NFData DeleteBasePathMappingResponse++instance NFData DeleteBasePathMappingResponse where
gen/Network/AWS/APIGateway/DeleteClientCertificate.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.DeleteClientCertificate--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -34,12 +34,12 @@     , DeleteClientCertificateResponse     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A request to delete the 'ClientCertificate' resource. --@@ -47,9 +47,10 @@ -- -- /See:/ 'deleteClientCertificate' smart constructor. newtype DeleteClientCertificate = DeleteClientCertificate'-    { _dccClientCertificateId :: Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _dccClientCertificateId :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteClientCertificate' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -59,10 +60,9 @@     :: Text -- ^ 'dccClientCertificateId'     -> DeleteClientCertificate deleteClientCertificate pClientCertificateId_ =-    DeleteClientCertificate'-    { _dccClientCertificateId = pClientCertificateId_-    }+  DeleteClientCertificate' {_dccClientCertificateId = pClientCertificateId_} + -- | The identifier of the 'ClientCertificate' resource to be deleted. dccClientCertificateId :: Lens' DeleteClientCertificate Text dccClientCertificateId = lens _dccClientCertificateId (\ s a -> s{_dccClientCertificateId = a});@@ -74,9 +74,9 @@         response           = receiveNull DeleteClientCertificateResponse' -instance Hashable DeleteClientCertificate+instance Hashable DeleteClientCertificate where -instance NFData DeleteClientCertificate+instance NFData DeleteClientCertificate where  instance ToHeaders DeleteClientCertificate where         toHeaders@@ -95,13 +95,15 @@  -- | /See:/ 'deleteClientCertificateResponse' smart constructor. data DeleteClientCertificateResponse =-    DeleteClientCertificateResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteClientCertificateResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteClientCertificateResponse' with the minimum fields required to make a request. -- deleteClientCertificateResponse     :: DeleteClientCertificateResponse deleteClientCertificateResponse = DeleteClientCertificateResponse' -instance NFData DeleteClientCertificateResponse++instance NFData DeleteClientCertificateResponse where
gen/Network/AWS/APIGateway/DeleteDeployment.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.DeleteDeployment--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -35,12 +35,12 @@     , DeleteDeploymentResponse     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Requests Amazon API Gateway to delete a 'Deployment' resource. --@@ -48,15 +48,16 @@ -- -- /See:/ 'deleteDeployment' smart constructor. data DeleteDeployment = DeleteDeployment'-    { _ddRestAPIId    :: !Text-    , _ddDeploymentId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _ddRestAPIId    :: !Text+  , _ddDeploymentId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteDeployment' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ddRestAPIId' - The identifier of the 'RestApi' resource for the 'Deployment' resource to delete.+-- * 'ddRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'ddDeploymentId' - The identifier of the 'Deployment' resource to delete. deleteDeployment@@ -64,12 +65,11 @@     -> Text -- ^ 'ddDeploymentId'     -> DeleteDeployment deleteDeployment pRestAPIId_ pDeploymentId_ =-    DeleteDeployment'-    { _ddRestAPIId = pRestAPIId_-    , _ddDeploymentId = pDeploymentId_-    }+  DeleteDeployment'+  {_ddRestAPIId = pRestAPIId_, _ddDeploymentId = pDeploymentId_} --- | The identifier of the 'RestApi' resource for the 'Deployment' resource to delete.++-- | The string identifier of the associated 'RestApi' . ddRestAPIId :: Lens' DeleteDeployment Text ddRestAPIId = lens _ddRestAPIId (\ s a -> s{_ddRestAPIId = a}); @@ -82,9 +82,9 @@         request = delete apiGateway         response = receiveNull DeleteDeploymentResponse' -instance Hashable DeleteDeployment+instance Hashable DeleteDeployment where -instance NFData DeleteDeployment+instance NFData DeleteDeployment where  instance ToHeaders DeleteDeployment where         toHeaders@@ -103,13 +103,15 @@  -- | /See:/ 'deleteDeploymentResponse' smart constructor. data DeleteDeploymentResponse =-    DeleteDeploymentResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteDeploymentResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteDeploymentResponse' with the minimum fields required to make a request. -- deleteDeploymentResponse     :: DeleteDeploymentResponse deleteDeploymentResponse = DeleteDeploymentResponse' -instance NFData DeleteDeploymentResponse++instance NFData DeleteDeploymentResponse where
gen/Network/AWS/APIGateway/DeleteDocumentationPart.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.DeleteDocumentationPart--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -33,12 +33,12 @@     , DeleteDocumentationPartResponse     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Deletes an existing documentation part of an API. --@@ -46,15 +46,16 @@ -- -- /See:/ 'deleteDocumentationPart' smart constructor. data DeleteDocumentationPart = DeleteDocumentationPart'-    { _ddpRestAPIId           :: !Text-    , _ddpDocumentationPartId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _ddpRestAPIId           :: !Text+  , _ddpDocumentationPartId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteDocumentationPart' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ddpRestAPIId' - [Required] Specifies the identifier of an API of the to-be-deleted documentation part.+-- * 'ddpRestAPIId' - [Required] The string identifier of the associated 'RestApi' . -- -- * 'ddpDocumentationPartId' - [Required] The identifier of the to-be-deleted documentation part. deleteDocumentationPart@@ -62,12 +63,11 @@     -> Text -- ^ 'ddpDocumentationPartId'     -> DeleteDocumentationPart deleteDocumentationPart pRestAPIId_ pDocumentationPartId_ =-    DeleteDocumentationPart'-    { _ddpRestAPIId = pRestAPIId_-    , _ddpDocumentationPartId = pDocumentationPartId_-    }+  DeleteDocumentationPart'+  {_ddpRestAPIId = pRestAPIId_, _ddpDocumentationPartId = pDocumentationPartId_} --- | [Required] Specifies the identifier of an API of the to-be-deleted documentation part.++-- | [Required] The string identifier of the associated 'RestApi' . ddpRestAPIId :: Lens' DeleteDocumentationPart Text ddpRestAPIId = lens _ddpRestAPIId (\ s a -> s{_ddpRestAPIId = a}); @@ -82,9 +82,9 @@         response           = receiveNull DeleteDocumentationPartResponse' -instance Hashable DeleteDocumentationPart+instance Hashable DeleteDocumentationPart where -instance NFData DeleteDocumentationPart+instance NFData DeleteDocumentationPart where  instance ToHeaders DeleteDocumentationPart where         toHeaders@@ -104,13 +104,15 @@  -- | /See:/ 'deleteDocumentationPartResponse' smart constructor. data DeleteDocumentationPartResponse =-    DeleteDocumentationPartResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteDocumentationPartResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteDocumentationPartResponse' with the minimum fields required to make a request. -- deleteDocumentationPartResponse     :: DeleteDocumentationPartResponse deleteDocumentationPartResponse = DeleteDocumentationPartResponse' -instance NFData DeleteDocumentationPartResponse++instance NFData DeleteDocumentationPartResponse where
gen/Network/AWS/APIGateway/DeleteDocumentationVersion.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.DeleteDocumentationVersion--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -33,12 +33,12 @@     , DeleteDocumentationVersionResponse     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Deletes an existing documentation version of an API. --@@ -46,15 +46,16 @@ -- -- /See:/ 'deleteDocumentationVersion' smart constructor. data DeleteDocumentationVersion = DeleteDocumentationVersion'-    { _ddvRestAPIId            :: !Text-    , _ddvDocumentationVersion :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _ddvRestAPIId            :: !Text+  , _ddvDocumentationVersion :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteDocumentationVersion' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ddvRestAPIId' - [Required] The identifier of an API of a to-be-deleted documentation snapshot.+-- * 'ddvRestAPIId' - [Required] The string identifier of the associated 'RestApi' . -- -- * 'ddvDocumentationVersion' - [Required] The version identifier of a to-be-deleted documentation snapshot. deleteDocumentationVersion@@ -62,12 +63,13 @@     -> Text -- ^ 'ddvDocumentationVersion'     -> DeleteDocumentationVersion deleteDocumentationVersion pRestAPIId_ pDocumentationVersion_ =-    DeleteDocumentationVersion'-    { _ddvRestAPIId = pRestAPIId_-    , _ddvDocumentationVersion = pDocumentationVersion_-    }+  DeleteDocumentationVersion'+  { _ddvRestAPIId = pRestAPIId_+  , _ddvDocumentationVersion = pDocumentationVersion_+  } --- | [Required] The identifier of an API of a to-be-deleted documentation snapshot.++-- | [Required] The string identifier of the associated 'RestApi' . ddvRestAPIId :: Lens' DeleteDocumentationVersion Text ddvRestAPIId = lens _ddvRestAPIId (\ s a -> s{_ddvRestAPIId = a}); @@ -82,9 +84,9 @@         response           = receiveNull DeleteDocumentationVersionResponse' -instance Hashable DeleteDocumentationVersion+instance Hashable DeleteDocumentationVersion where -instance NFData DeleteDocumentationVersion+instance NFData DeleteDocumentationVersion where  instance ToHeaders DeleteDocumentationVersion where         toHeaders@@ -104,13 +106,16 @@  -- | /See:/ 'deleteDocumentationVersionResponse' smart constructor. data DeleteDocumentationVersionResponse =-    DeleteDocumentationVersionResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteDocumentationVersionResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteDocumentationVersionResponse' with the minimum fields required to make a request. -- deleteDocumentationVersionResponse     :: DeleteDocumentationVersionResponse deleteDocumentationVersionResponse = DeleteDocumentationVersionResponse' + instance NFData DeleteDocumentationVersionResponse+         where
gen/Network/AWS/APIGateway/DeleteDomainName.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.DeleteDomainName--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -34,12 +34,12 @@     , DeleteDomainNameResponse     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A request to delete the 'DomainName' resource. --@@ -47,9 +47,10 @@ -- -- /See:/ 'deleteDomainName' smart constructor. newtype DeleteDomainName = DeleteDomainName'-    { _ddnDomainName :: Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _ddnDomainName :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteDomainName' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -59,10 +60,9 @@     :: Text -- ^ 'ddnDomainName'     -> DeleteDomainName deleteDomainName pDomainName_ =-    DeleteDomainName'-    { _ddnDomainName = pDomainName_-    }+  DeleteDomainName' {_ddnDomainName = pDomainName_} + -- | The name of the 'DomainName' resource to be deleted. ddnDomainName :: Lens' DeleteDomainName Text ddnDomainName = lens _ddnDomainName (\ s a -> s{_ddnDomainName = a});@@ -72,9 +72,9 @@         request = delete apiGateway         response = receiveNull DeleteDomainNameResponse' -instance Hashable DeleteDomainName+instance Hashable DeleteDomainName where -instance NFData DeleteDomainName+instance NFData DeleteDomainName where  instance ToHeaders DeleteDomainName where         toHeaders@@ -91,13 +91,15 @@  -- | /See:/ 'deleteDomainNameResponse' smart constructor. data DeleteDomainNameResponse =-    DeleteDomainNameResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteDomainNameResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteDomainNameResponse' with the minimum fields required to make a request. -- deleteDomainNameResponse     :: DeleteDomainNameResponse deleteDomainNameResponse = DeleteDomainNameResponse' -instance NFData DeleteDomainNameResponse++instance NFData DeleteDomainNameResponse where
+ gen/Network/AWS/APIGateway/DeleteGatewayResponse.hs view
@@ -0,0 +1,118 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.APIGateway.DeleteGatewayResponse+-- Copyright   : (c) 2013-2017 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)+--+-- Clears any customization of a 'GatewayResponse' of a specified response type on the given 'RestApi' and resets it with the default settings.+--+--+module Network.AWS.APIGateway.DeleteGatewayResponse+    (+    -- * Creating a Request+      deleteGatewayResponse+    , DeleteGatewayResponse+    -- * Request Lenses+    , dgRestAPIId+    , dgResponseType++    -- * Destructuring the Response+    , deleteGatewayResponseResponse+    , DeleteGatewayResponseResponse+    ) where++import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | Clears any customization of a 'GatewayResponse' of a specified response type on the given 'RestApi' and resets it with the default settings.+--+--+--+-- /See:/ 'deleteGatewayResponse' smart constructor.+data DeleteGatewayResponse = DeleteGatewayResponse'+  { _dgRestAPIId    :: !Text+  , _dgResponseType :: !GatewayResponseType+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteGatewayResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dgRestAPIId' - The string identifier of the associated 'RestApi' .+--+-- * 'dgResponseType' - The response type of the associated 'GatewayResponse' . Valid values are     * ACCESS_DENIED    * API_CONFIGURATION_ERROR    * AUTHORIZER_FAILURE    * AUTHORIZER_CONFIGURATION_ERROR    * BAD_REQUEST_PARAMETERS    * BAD_REQUEST_BODY    * DEFAULT_4XX    * DEFAULT_5XX    * EXPIRED_TOKEN    * INVALID_SIGNATURE    * INTEGRATION_FAILURE    * INTEGRATION_TIMEOUT    * INVALID_API_KEY    * MISSING_AUTHENTICATION_TOKEN    * QUOTA_EXCEEDED    * REQUEST_TOO_LARGE    * RESOURCE_NOT_FOUND    * THROTTLED    * UNAUTHORIZED    * UNSUPPORTED_MEDIA_TYPES+deleteGatewayResponse+    :: Text -- ^ 'dgRestAPIId'+    -> GatewayResponseType -- ^ 'dgResponseType'+    -> DeleteGatewayResponse+deleteGatewayResponse pRestAPIId_ pResponseType_ =+  DeleteGatewayResponse'+  {_dgRestAPIId = pRestAPIId_, _dgResponseType = pResponseType_}+++-- | The string identifier of the associated 'RestApi' .+dgRestAPIId :: Lens' DeleteGatewayResponse Text+dgRestAPIId = lens _dgRestAPIId (\ s a -> s{_dgRestAPIId = a});++-- | The response type of the associated 'GatewayResponse' . Valid values are     * ACCESS_DENIED    * API_CONFIGURATION_ERROR    * AUTHORIZER_FAILURE    * AUTHORIZER_CONFIGURATION_ERROR    * BAD_REQUEST_PARAMETERS    * BAD_REQUEST_BODY    * DEFAULT_4XX    * DEFAULT_5XX    * EXPIRED_TOKEN    * INVALID_SIGNATURE    * INTEGRATION_FAILURE    * INTEGRATION_TIMEOUT    * INVALID_API_KEY    * MISSING_AUTHENTICATION_TOKEN    * QUOTA_EXCEEDED    * REQUEST_TOO_LARGE    * RESOURCE_NOT_FOUND    * THROTTLED    * UNAUTHORIZED    * UNSUPPORTED_MEDIA_TYPES+dgResponseType :: Lens' DeleteGatewayResponse GatewayResponseType+dgResponseType = lens _dgResponseType (\ s a -> s{_dgResponseType = a});++instance AWSRequest DeleteGatewayResponse where+        type Rs DeleteGatewayResponse =+             DeleteGatewayResponseResponse+        request = delete apiGateway+        response = receiveNull DeleteGatewayResponseResponse'++instance Hashable DeleteGatewayResponse where++instance NFData DeleteGatewayResponse where++instance ToHeaders DeleteGatewayResponse where+        toHeaders+          = const+              (mconcat+                 ["Accept" =# ("application/json" :: ByteString)])++instance ToPath DeleteGatewayResponse where+        toPath DeleteGatewayResponse'{..}+          = mconcat+              ["/restapis/", toBS _dgRestAPIId,+               "/gatewayresponses/", toBS _dgResponseType]++instance ToQuery DeleteGatewayResponse where+        toQuery = const mempty++-- | /See:/ 'deleteGatewayResponseResponse' smart constructor.+data DeleteGatewayResponseResponse =+  DeleteGatewayResponseResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteGatewayResponseResponse' with the minimum fields required to make a request.+--+deleteGatewayResponseResponse+    :: DeleteGatewayResponseResponse+deleteGatewayResponseResponse = DeleteGatewayResponseResponse'+++instance NFData DeleteGatewayResponseResponse where
gen/Network/AWS/APIGateway/DeleteIntegration.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.DeleteIntegration--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -36,12 +36,12 @@     , DeleteIntegrationResponse'     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents a delete integration request. --@@ -49,16 +49,17 @@ -- -- /See:/ 'deleteIntegration' smart constructor. data DeleteIntegration = DeleteIntegration'-    { _delRestAPIId  :: !Text-    , _delResourceId :: !Text-    , _delHttpMethod :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _delRestAPIId  :: !Text+  , _delResourceId :: !Text+  , _delHttpMethod :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteIntegration' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'delRestAPIId' - Specifies a delete integration request's API identifier.+-- * 'delRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'delResourceId' - Specifies a delete integration request's resource identifier. --@@ -69,13 +70,14 @@     -> Text -- ^ 'delHttpMethod'     -> DeleteIntegration deleteIntegration pRestAPIId_ pResourceId_ pHttpMethod_ =-    DeleteIntegration'-    { _delRestAPIId = pRestAPIId_-    , _delResourceId = pResourceId_-    , _delHttpMethod = pHttpMethod_-    }+  DeleteIntegration'+  { _delRestAPIId = pRestAPIId_+  , _delResourceId = pResourceId_+  , _delHttpMethod = pHttpMethod_+  } --- | Specifies a delete integration request's API identifier.++-- | The string identifier of the associated 'RestApi' . delRestAPIId :: Lens' DeleteIntegration Text delRestAPIId = lens _delRestAPIId (\ s a -> s{_delRestAPIId = a}); @@ -93,9 +95,9 @@         request = delete apiGateway         response = receiveNull DeleteIntegrationResponse'' -instance Hashable DeleteIntegration+instance Hashable DeleteIntegration where -instance NFData DeleteIntegration+instance NFData DeleteIntegration where  instance ToHeaders DeleteIntegration where         toHeaders@@ -115,13 +117,15 @@  -- | /See:/ 'deleteIntegrationResponse'' smart constructor. data DeleteIntegrationResponse' =-    DeleteIntegrationResponse''-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteIntegrationResponse''+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteIntegrationResponse'' with the minimum fields required to make a request. -- deleteIntegrationResponse'     :: DeleteIntegrationResponse' deleteIntegrationResponse' = DeleteIntegrationResponse'' -instance NFData DeleteIntegrationResponse'++instance NFData DeleteIntegrationResponse' where
gen/Network/AWS/APIGateway/DeleteIntegrationResponse.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.DeleteIntegrationResponse--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -37,12 +37,12 @@     , DeleteIntegrationResponseResponse     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents a delete integration response request. --@@ -50,17 +50,18 @@ -- -- /See:/ 'deleteIntegrationResponse' smart constructor. data DeleteIntegrationResponse = DeleteIntegrationResponse'-    { _diRestAPIId  :: !Text-    , _diResourceId :: !Text-    , _diHttpMethod :: !Text-    , _diStatusCode :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _diRestAPIId  :: !Text+  , _diResourceId :: !Text+  , _diHttpMethod :: !Text+  , _diStatusCode :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteIntegrationResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'diRestAPIId' - Specifies a delete integration response request's API identifier.+-- * 'diRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'diResourceId' - Specifies a delete integration response request's resource identifier. --@@ -74,14 +75,15 @@     -> Text -- ^ 'diStatusCode'     -> DeleteIntegrationResponse deleteIntegrationResponse pRestAPIId_ pResourceId_ pHttpMethod_ pStatusCode_ =-    DeleteIntegrationResponse'-    { _diRestAPIId = pRestAPIId_-    , _diResourceId = pResourceId_-    , _diHttpMethod = pHttpMethod_-    , _diStatusCode = pStatusCode_-    }+  DeleteIntegrationResponse'+  { _diRestAPIId = pRestAPIId_+  , _diResourceId = pResourceId_+  , _diHttpMethod = pHttpMethod_+  , _diStatusCode = pStatusCode_+  } --- | Specifies a delete integration response request's API identifier.++-- | The string identifier of the associated 'RestApi' . diRestAPIId :: Lens' DeleteIntegrationResponse Text diRestAPIId = lens _diRestAPIId (\ s a -> s{_diRestAPIId = a}); @@ -104,9 +106,9 @@         response           = receiveNull DeleteIntegrationResponseResponse' -instance Hashable DeleteIntegrationResponse+instance Hashable DeleteIntegrationResponse where -instance NFData DeleteIntegrationResponse+instance NFData DeleteIntegrationResponse where  instance ToHeaders DeleteIntegrationResponse where         toHeaders@@ -126,13 +128,16 @@  -- | /See:/ 'deleteIntegrationResponseResponse' smart constructor. data DeleteIntegrationResponseResponse =-    DeleteIntegrationResponseResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteIntegrationResponseResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteIntegrationResponseResponse' with the minimum fields required to make a request. -- deleteIntegrationResponseResponse     :: DeleteIntegrationResponseResponse deleteIntegrationResponseResponse = DeleteIntegrationResponseResponse' + instance NFData DeleteIntegrationResponseResponse+         where
gen/Network/AWS/APIGateway/DeleteMethod.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.DeleteMethod--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -36,12 +36,12 @@     , DeleteMethodResponse'     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to delete an existing 'Method' resource. --@@ -49,16 +49,17 @@ -- -- /See:/ 'deleteMethod' smart constructor. data DeleteMethod = DeleteMethod'-    { _dmmRestAPIId  :: !Text-    , _dmmResourceId :: !Text-    , _dmmHttpMethod :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _dmmRestAPIId  :: !Text+  , _dmmResourceId :: !Text+  , _dmmHttpMethod :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteMethod' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dmmRestAPIId' - The 'RestApi' identifier for the 'Method' resource.+-- * 'dmmRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'dmmResourceId' - The 'Resource' identifier for the 'Method' resource. --@@ -69,13 +70,14 @@     -> Text -- ^ 'dmmHttpMethod'     -> DeleteMethod deleteMethod pRestAPIId_ pResourceId_ pHttpMethod_ =-    DeleteMethod'-    { _dmmRestAPIId = pRestAPIId_-    , _dmmResourceId = pResourceId_-    , _dmmHttpMethod = pHttpMethod_-    }+  DeleteMethod'+  { _dmmRestAPIId = pRestAPIId_+  , _dmmResourceId = pResourceId_+  , _dmmHttpMethod = pHttpMethod_+  } --- | The 'RestApi' identifier for the 'Method' resource.++-- | The string identifier of the associated 'RestApi' . dmmRestAPIId :: Lens' DeleteMethod Text dmmRestAPIId = lens _dmmRestAPIId (\ s a -> s{_dmmRestAPIId = a}); @@ -92,9 +94,9 @@         request = delete apiGateway         response = receiveNull DeleteMethodResponse'' -instance Hashable DeleteMethod+instance Hashable DeleteMethod where -instance NFData DeleteMethod+instance NFData DeleteMethod where  instance ToHeaders DeleteMethod where         toHeaders@@ -114,13 +116,15 @@  -- | /See:/ 'deleteMethodResponse'' smart constructor. data DeleteMethodResponse' =-    DeleteMethodResponse''-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteMethodResponse''+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteMethodResponse'' with the minimum fields required to make a request. -- deleteMethodResponse'     :: DeleteMethodResponse' deleteMethodResponse' = DeleteMethodResponse'' -instance NFData DeleteMethodResponse'++instance NFData DeleteMethodResponse' where
gen/Network/AWS/APIGateway/DeleteMethodResponse.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.DeleteMethodResponse--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -37,12 +37,12 @@     , DeleteMethodResponseResponse     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A request to delete an existing 'MethodResponse' resource. --@@ -50,17 +50,18 @@ -- -- /See:/ 'deleteMethodResponse' smart constructor. data DeleteMethodResponse = DeleteMethodResponse'-    { _dmRestAPIId  :: !Text-    , _dmResourceId :: !Text-    , _dmHttpMethod :: !Text-    , _dmStatusCode :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _dmRestAPIId  :: !Text+  , _dmResourceId :: !Text+  , _dmHttpMethod :: !Text+  , _dmStatusCode :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteMethodResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dmRestAPIId' - The 'RestApi' identifier for the 'MethodResponse' resource.+-- * 'dmRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'dmResourceId' - The 'Resource' identifier for the 'MethodResponse' resource. --@@ -74,14 +75,15 @@     -> Text -- ^ 'dmStatusCode'     -> DeleteMethodResponse deleteMethodResponse pRestAPIId_ pResourceId_ pHttpMethod_ pStatusCode_ =-    DeleteMethodResponse'-    { _dmRestAPIId = pRestAPIId_-    , _dmResourceId = pResourceId_-    , _dmHttpMethod = pHttpMethod_-    , _dmStatusCode = pStatusCode_-    }+  DeleteMethodResponse'+  { _dmRestAPIId = pRestAPIId_+  , _dmResourceId = pResourceId_+  , _dmHttpMethod = pHttpMethod_+  , _dmStatusCode = pStatusCode_+  } --- | The 'RestApi' identifier for the 'MethodResponse' resource.++-- | The string identifier of the associated 'RestApi' . dmRestAPIId :: Lens' DeleteMethodResponse Text dmRestAPIId = lens _dmRestAPIId (\ s a -> s{_dmRestAPIId = a}); @@ -103,9 +105,9 @@         request = delete apiGateway         response = receiveNull DeleteMethodResponseResponse' -instance Hashable DeleteMethodResponse+instance Hashable DeleteMethodResponse where -instance NFData DeleteMethodResponse+instance NFData DeleteMethodResponse where  instance ToHeaders DeleteMethodResponse where         toHeaders@@ -125,13 +127,15 @@  -- | /See:/ 'deleteMethodResponseResponse' smart constructor. data DeleteMethodResponseResponse =-    DeleteMethodResponseResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteMethodResponseResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteMethodResponseResponse' with the minimum fields required to make a request. -- deleteMethodResponseResponse     :: DeleteMethodResponseResponse deleteMethodResponseResponse = DeleteMethodResponseResponse' -instance NFData DeleteMethodResponseResponse++instance NFData DeleteMethodResponseResponse where
gen/Network/AWS/APIGateway/DeleteModel.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.DeleteModel--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -35,12 +35,12 @@     , DeleteModelResponse     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to delete an existing model in an existing 'RestApi' resource. --@@ -48,15 +48,16 @@ -- -- /See:/ 'deleteModel' smart constructor. data DeleteModel = DeleteModel'-    { _dRestAPIId :: !Text-    , _dModelName :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _dRestAPIId :: !Text+  , _dModelName :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteModel' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dRestAPIId' - The 'RestApi' under which the model will be deleted.+-- * 'dRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'dModelName' - The name of the model to delete. deleteModel@@ -64,12 +65,10 @@     -> Text -- ^ 'dModelName'     -> DeleteModel deleteModel pRestAPIId_ pModelName_ =-    DeleteModel'-    { _dRestAPIId = pRestAPIId_-    , _dModelName = pModelName_-    }+  DeleteModel' {_dRestAPIId = pRestAPIId_, _dModelName = pModelName_} --- | The 'RestApi' under which the model will be deleted.++-- | The string identifier of the associated 'RestApi' . dRestAPIId :: Lens' DeleteModel Text dRestAPIId = lens _dRestAPIId (\ s a -> s{_dRestAPIId = a}); @@ -82,9 +81,9 @@         request = delete apiGateway         response = receiveNull DeleteModelResponse' -instance Hashable DeleteModel+instance Hashable DeleteModel where -instance NFData DeleteModel+instance NFData DeleteModel where  instance ToHeaders DeleteModel where         toHeaders@@ -103,13 +102,15 @@  -- | /See:/ 'deleteModelResponse' smart constructor. data DeleteModelResponse =-    DeleteModelResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteModelResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteModelResponse' with the minimum fields required to make a request. -- deleteModelResponse     :: DeleteModelResponse deleteModelResponse = DeleteModelResponse' -instance NFData DeleteModelResponse++instance NFData DeleteModelResponse where
+ gen/Network/AWS/APIGateway/DeleteRequestValidator.hs view
@@ -0,0 +1,119 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.APIGateway.DeleteRequestValidator+-- Copyright   : (c) 2013-2017 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)+--+-- Deletes a 'RequestValidator' of a given 'RestApi' .+--+--+module Network.AWS.APIGateway.DeleteRequestValidator+    (+    -- * Creating a Request+      deleteRequestValidator+    , DeleteRequestValidator+    -- * Request Lenses+    , drvRestAPIId+    , drvRequestValidatorId++    -- * Destructuring the Response+    , deleteRequestValidatorResponse+    , DeleteRequestValidatorResponse+    ) where++import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | Deletes a specified 'RequestValidator' of a given 'RestApi' .+--+--+--+-- /See:/ 'deleteRequestValidator' smart constructor.+data DeleteRequestValidator = DeleteRequestValidator'+  { _drvRestAPIId          :: !Text+  , _drvRequestValidatorId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteRequestValidator' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'drvRestAPIId' - The string identifier of the associated 'RestApi' .+--+-- * 'drvRequestValidatorId' - [Required] The identifier of the 'RequestValidator' to be deleted.+deleteRequestValidator+    :: Text -- ^ 'drvRestAPIId'+    -> Text -- ^ 'drvRequestValidatorId'+    -> DeleteRequestValidator+deleteRequestValidator pRestAPIId_ pRequestValidatorId_ =+  DeleteRequestValidator'+  {_drvRestAPIId = pRestAPIId_, _drvRequestValidatorId = pRequestValidatorId_}+++-- | The string identifier of the associated 'RestApi' .+drvRestAPIId :: Lens' DeleteRequestValidator Text+drvRestAPIId = lens _drvRestAPIId (\ s a -> s{_drvRestAPIId = a});++-- | [Required] The identifier of the 'RequestValidator' to be deleted.+drvRequestValidatorId :: Lens' DeleteRequestValidator Text+drvRequestValidatorId = lens _drvRequestValidatorId (\ s a -> s{_drvRequestValidatorId = a});++instance AWSRequest DeleteRequestValidator where+        type Rs DeleteRequestValidator =+             DeleteRequestValidatorResponse+        request = delete apiGateway+        response+          = receiveNull DeleteRequestValidatorResponse'++instance Hashable DeleteRequestValidator where++instance NFData DeleteRequestValidator where++instance ToHeaders DeleteRequestValidator where+        toHeaders+          = const+              (mconcat+                 ["Accept" =# ("application/json" :: ByteString)])++instance ToPath DeleteRequestValidator where+        toPath DeleteRequestValidator'{..}+          = mconcat+              ["/restapis/", toBS _drvRestAPIId,+               "/requestvalidators/", toBS _drvRequestValidatorId]++instance ToQuery DeleteRequestValidator where+        toQuery = const mempty++-- | /See:/ 'deleteRequestValidatorResponse' smart constructor.+data DeleteRequestValidatorResponse =+  DeleteRequestValidatorResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteRequestValidatorResponse' with the minimum fields required to make a request.+--+deleteRequestValidatorResponse+    :: DeleteRequestValidatorResponse+deleteRequestValidatorResponse = DeleteRequestValidatorResponse'+++instance NFData DeleteRequestValidatorResponse where
gen/Network/AWS/APIGateway/DeleteResource.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.DeleteResource--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -35,12 +35,12 @@     , DeleteResourceResponse     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to delete a 'Resource' . --@@ -48,15 +48,16 @@ -- -- /See:/ 'deleteResource' smart constructor. data DeleteResource = DeleteResource'-    { _drRestAPIId  :: !Text-    , _drResourceId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _drRestAPIId  :: !Text+  , _drResourceId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteResource' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'drRestAPIId' - The 'RestApi' identifier for the 'Resource' resource.+-- * 'drRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'drResourceId' - The identifier of the 'Resource' resource. deleteResource@@ -64,12 +65,10 @@     -> Text -- ^ 'drResourceId'     -> DeleteResource deleteResource pRestAPIId_ pResourceId_ =-    DeleteResource'-    { _drRestAPIId = pRestAPIId_-    , _drResourceId = pResourceId_-    }+  DeleteResource' {_drRestAPIId = pRestAPIId_, _drResourceId = pResourceId_} --- | The 'RestApi' identifier for the 'Resource' resource.++-- | The string identifier of the associated 'RestApi' . drRestAPIId :: Lens' DeleteResource Text drRestAPIId = lens _drRestAPIId (\ s a -> s{_drRestAPIId = a}); @@ -82,9 +81,9 @@         request = delete apiGateway         response = receiveNull DeleteResourceResponse' -instance Hashable DeleteResource+instance Hashable DeleteResource where -instance NFData DeleteResource+instance NFData DeleteResource where  instance ToHeaders DeleteResource where         toHeaders@@ -103,13 +102,15 @@  -- | /See:/ 'deleteResourceResponse' smart constructor. data DeleteResourceResponse =-    DeleteResourceResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteResourceResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteResourceResponse' with the minimum fields required to make a request. -- deleteResourceResponse     :: DeleteResourceResponse deleteResourceResponse = DeleteResourceResponse' -instance NFData DeleteResourceResponse++instance NFData DeleteResourceResponse where
gen/Network/AWS/APIGateway/DeleteRestAPI.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.DeleteRestAPI--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -34,12 +34,12 @@     , DeleteRestAPIResponse     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to delete the specified API from your collection. --@@ -47,23 +47,22 @@ -- -- /See:/ 'deleteRestAPI' smart constructor. newtype DeleteRestAPI = DeleteRestAPI'-    { _draRestAPIId :: Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _draRestAPIId :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteRestAPI' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'draRestAPIId' - The ID of the 'RestApi' you want to delete.+-- * 'draRestAPIId' - The string identifier of the associated 'RestApi' . deleteRestAPI     :: Text -- ^ 'draRestAPIId'     -> DeleteRestAPI-deleteRestAPI pRestAPIId_ =-    DeleteRestAPI'-    { _draRestAPIId = pRestAPIId_-    }+deleteRestAPI pRestAPIId_ = DeleteRestAPI' {_draRestAPIId = pRestAPIId_} --- | The ID of the 'RestApi' you want to delete.++-- | The string identifier of the associated 'RestApi' . draRestAPIId :: Lens' DeleteRestAPI Text draRestAPIId = lens _draRestAPIId (\ s a -> s{_draRestAPIId = a}); @@ -72,9 +71,9 @@         request = delete apiGateway         response = receiveNull DeleteRestAPIResponse' -instance Hashable DeleteRestAPI+instance Hashable DeleteRestAPI where -instance NFData DeleteRestAPI+instance NFData DeleteRestAPI where  instance ToHeaders DeleteRestAPI where         toHeaders@@ -91,13 +90,15 @@  -- | /See:/ 'deleteRestAPIResponse' smart constructor. data DeleteRestAPIResponse =-    DeleteRestAPIResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteRestAPIResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteRestAPIResponse' with the minimum fields required to make a request. -- deleteRestAPIResponse     :: DeleteRestAPIResponse deleteRestAPIResponse = DeleteRestAPIResponse' -instance NFData DeleteRestAPIResponse++instance NFData DeleteRestAPIResponse where
gen/Network/AWS/APIGateway/DeleteStage.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.DeleteStage--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -35,12 +35,12 @@     , DeleteStageResponse     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Requests Amazon API Gateway to delete a 'Stage' resource. --@@ -48,15 +48,16 @@ -- -- /See:/ 'deleteStage' smart constructor. data DeleteStage = DeleteStage'-    { _dsRestAPIId :: !Text-    , _dsStageName :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _dsRestAPIId :: !Text+  , _dsStageName :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteStage' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dsRestAPIId' - The identifier of the 'RestApi' resource for the 'Stage' resource to delete.+-- * 'dsRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'dsStageName' - The name of the 'Stage' resource to delete. deleteStage@@ -64,12 +65,10 @@     -> Text -- ^ 'dsStageName'     -> DeleteStage deleteStage pRestAPIId_ pStageName_ =-    DeleteStage'-    { _dsRestAPIId = pRestAPIId_-    , _dsStageName = pStageName_-    }+  DeleteStage' {_dsRestAPIId = pRestAPIId_, _dsStageName = pStageName_} --- | The identifier of the 'RestApi' resource for the 'Stage' resource to delete.++-- | The string identifier of the associated 'RestApi' . dsRestAPIId :: Lens' DeleteStage Text dsRestAPIId = lens _dsRestAPIId (\ s a -> s{_dsRestAPIId = a}); @@ -82,9 +81,9 @@         request = delete apiGateway         response = receiveNull DeleteStageResponse' -instance Hashable DeleteStage+instance Hashable DeleteStage where -instance NFData DeleteStage+instance NFData DeleteStage where  instance ToHeaders DeleteStage where         toHeaders@@ -103,13 +102,15 @@  -- | /See:/ 'deleteStageResponse' smart constructor. data DeleteStageResponse =-    DeleteStageResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteStageResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteStageResponse' with the minimum fields required to make a request. -- deleteStageResponse     :: DeleteStageResponse deleteStageResponse = DeleteStageResponse' -instance NFData DeleteStageResponse++instance NFData DeleteStageResponse where
gen/Network/AWS/APIGateway/DeleteUsagePlan.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.DeleteUsagePlan--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -34,22 +34,23 @@     , DeleteUsagePlanResponse     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response --- | The DELETE request to delete a uasge plan of a given plan Id.+-- | The DELETE request to delete a usage plan of a given plan Id. -- -- -- -- /See:/ 'deleteUsagePlan' smart constructor. newtype DeleteUsagePlan = DeleteUsagePlan'-    { _dupUsagePlanId :: Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _dupUsagePlanId :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteUsagePlan' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -59,10 +60,9 @@     :: Text -- ^ 'dupUsagePlanId'     -> DeleteUsagePlan deleteUsagePlan pUsagePlanId_ =-    DeleteUsagePlan'-    { _dupUsagePlanId = pUsagePlanId_-    }+  DeleteUsagePlan' {_dupUsagePlanId = pUsagePlanId_} + -- | The Id of the to-be-deleted usage plan. dupUsagePlanId :: Lens' DeleteUsagePlan Text dupUsagePlanId = lens _dupUsagePlanId (\ s a -> s{_dupUsagePlanId = a});@@ -72,9 +72,9 @@         request = delete apiGateway         response = receiveNull DeleteUsagePlanResponse' -instance Hashable DeleteUsagePlan+instance Hashable DeleteUsagePlan where -instance NFData DeleteUsagePlan+instance NFData DeleteUsagePlan where  instance ToHeaders DeleteUsagePlan where         toHeaders@@ -91,13 +91,15 @@  -- | /See:/ 'deleteUsagePlanResponse' smart constructor. data DeleteUsagePlanResponse =-    DeleteUsagePlanResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteUsagePlanResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteUsagePlanResponse' with the minimum fields required to make a request. -- deleteUsagePlanResponse     :: DeleteUsagePlanResponse deleteUsagePlanResponse = DeleteUsagePlanResponse' -instance NFData DeleteUsagePlanResponse++instance NFData DeleteUsagePlanResponse where
gen/Network/AWS/APIGateway/DeleteUsagePlanKey.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.DeleteUsagePlanKey--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -35,12 +35,12 @@     , DeleteUsagePlanKeyResponse     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | The DELETE request to delete a usage plan key and remove the underlying API key from the associated usage plan. --@@ -48,10 +48,11 @@ -- -- /See:/ 'deleteUsagePlanKey' smart constructor. data DeleteUsagePlanKey = DeleteUsagePlanKey'-    { _dupkUsagePlanId :: !Text-    , _dupkKeyId       :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _dupkUsagePlanId :: !Text+  , _dupkKeyId       :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteUsagePlanKey' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -64,11 +65,9 @@     -> Text -- ^ 'dupkKeyId'     -> DeleteUsagePlanKey deleteUsagePlanKey pUsagePlanId_ pKeyId_ =-    DeleteUsagePlanKey'-    { _dupkUsagePlanId = pUsagePlanId_-    , _dupkKeyId = pKeyId_-    }+  DeleteUsagePlanKey' {_dupkUsagePlanId = pUsagePlanId_, _dupkKeyId = pKeyId_} + -- | The Id of the 'UsagePlan' resource representing the usage plan containing the to-be-deleted 'UsagePlanKey' resource representing a plan customer. dupkUsagePlanId :: Lens' DeleteUsagePlanKey Text dupkUsagePlanId = lens _dupkUsagePlanId (\ s a -> s{_dupkUsagePlanId = a});@@ -83,9 +82,9 @@         request = delete apiGateway         response = receiveNull DeleteUsagePlanKeyResponse' -instance Hashable DeleteUsagePlanKey+instance Hashable DeleteUsagePlanKey where -instance NFData DeleteUsagePlanKey+instance NFData DeleteUsagePlanKey where  instance ToHeaders DeleteUsagePlanKey where         toHeaders@@ -104,13 +103,15 @@  -- | /See:/ 'deleteUsagePlanKeyResponse' smart constructor. data DeleteUsagePlanKeyResponse =-    DeleteUsagePlanKeyResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  DeleteUsagePlanKeyResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'DeleteUsagePlanKeyResponse' with the minimum fields required to make a request. -- deleteUsagePlanKeyResponse     :: DeleteUsagePlanKeyResponse deleteUsagePlanKeyResponse = DeleteUsagePlanKeyResponse' -instance NFData DeleteUsagePlanKeyResponse++instance NFData DeleteUsagePlanKeyResponse where
gen/Network/AWS/APIGateway/FlushStageAuthorizersCache.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.FlushStageAuthorizersCache--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -35,12 +35,12 @@     , FlushStageAuthorizersCacheResponse     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to flush authorizer cache entries on a specified stage. --@@ -48,15 +48,16 @@ -- -- /See:/ 'flushStageAuthorizersCache' smart constructor. data FlushStageAuthorizersCache = FlushStageAuthorizersCache'-    { _fsacRestAPIId :: !Text-    , _fsacStageName :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _fsacRestAPIId :: !Text+  , _fsacStageName :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'FlushStageAuthorizersCache' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'fsacRestAPIId' - The API identifier of the stage to flush.+-- * 'fsacRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'fsacStageName' - The name of the stage to flush. flushStageAuthorizersCache@@ -64,12 +65,11 @@     -> Text -- ^ 'fsacStageName'     -> FlushStageAuthorizersCache flushStageAuthorizersCache pRestAPIId_ pStageName_ =-    FlushStageAuthorizersCache'-    { _fsacRestAPIId = pRestAPIId_-    , _fsacStageName = pStageName_-    }+  FlushStageAuthorizersCache'+  {_fsacRestAPIId = pRestAPIId_, _fsacStageName = pStageName_} --- | The API identifier of the stage to flush.++-- | The string identifier of the associated 'RestApi' . fsacRestAPIId :: Lens' FlushStageAuthorizersCache Text fsacRestAPIId = lens _fsacRestAPIId (\ s a -> s{_fsacRestAPIId = a}); @@ -84,9 +84,9 @@         response           = receiveNull FlushStageAuthorizersCacheResponse' -instance Hashable FlushStageAuthorizersCache+instance Hashable FlushStageAuthorizersCache where -instance NFData FlushStageAuthorizersCache+instance NFData FlushStageAuthorizersCache where  instance ToHeaders FlushStageAuthorizersCache where         toHeaders@@ -105,13 +105,16 @@  -- | /See:/ 'flushStageAuthorizersCacheResponse' smart constructor. data FlushStageAuthorizersCacheResponse =-    FlushStageAuthorizersCacheResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  FlushStageAuthorizersCacheResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'FlushStageAuthorizersCacheResponse' with the minimum fields required to make a request. -- flushStageAuthorizersCacheResponse     :: FlushStageAuthorizersCacheResponse flushStageAuthorizersCacheResponse = FlushStageAuthorizersCacheResponse' + instance NFData FlushStageAuthorizersCacheResponse+         where
gen/Network/AWS/APIGateway/FlushStageCache.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.FlushStageCache--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -35,12 +35,12 @@     , FlushStageCacheResponse     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Requests Amazon API Gateway to flush a stage's cache. --@@ -48,15 +48,16 @@ -- -- /See:/ 'flushStageCache' smart constructor. data FlushStageCache = FlushStageCache'-    { _fscRestAPIId :: !Text-    , _fscStageName :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _fscRestAPIId :: !Text+  , _fscStageName :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'FlushStageCache' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'fscRestAPIId' - The API identifier of the stage to flush its cache.+-- * 'fscRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'fscStageName' - The name of the stage to flush its cache. flushStageCache@@ -64,12 +65,10 @@     -> Text -- ^ 'fscStageName'     -> FlushStageCache flushStageCache pRestAPIId_ pStageName_ =-    FlushStageCache'-    { _fscRestAPIId = pRestAPIId_-    , _fscStageName = pStageName_-    }+  FlushStageCache' {_fscRestAPIId = pRestAPIId_, _fscStageName = pStageName_} --- | The API identifier of the stage to flush its cache.++-- | The string identifier of the associated 'RestApi' . fscRestAPIId :: Lens' FlushStageCache Text fscRestAPIId = lens _fscRestAPIId (\ s a -> s{_fscRestAPIId = a}); @@ -82,9 +81,9 @@         request = delete apiGateway         response = receiveNull FlushStageCacheResponse' -instance Hashable FlushStageCache+instance Hashable FlushStageCache where -instance NFData FlushStageCache+instance NFData FlushStageCache where  instance ToHeaders FlushStageCache where         toHeaders@@ -103,13 +102,15 @@  -- | /See:/ 'flushStageCacheResponse' smart constructor. data FlushStageCacheResponse =-    FlushStageCacheResponse'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  FlushStageCacheResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'FlushStageCacheResponse' with the minimum fields required to make a request. -- flushStageCacheResponse     :: FlushStageCacheResponse flushStageCacheResponse = FlushStageCacheResponse' -instance NFData FlushStageCacheResponse++instance NFData FlushStageCacheResponse where
gen/Network/AWS/APIGateway/GenerateClientCertificate.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GenerateClientCertificate--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -40,12 +40,12 @@     , ccDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A request to generate a 'ClientCertificate' resource. --@@ -53,9 +53,10 @@ -- -- /See:/ 'generateClientCertificate' smart constructor. newtype GenerateClientCertificate = GenerateClientCertificate'-    { _gccDescription :: Maybe Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gccDescription :: Maybe Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GenerateClientCertificate' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -64,10 +65,9 @@ generateClientCertificate     :: GenerateClientCertificate generateClientCertificate =-    GenerateClientCertificate'-    { _gccDescription = Nothing-    }+  GenerateClientCertificate' {_gccDescription = Nothing} + -- | The description of the 'ClientCertificate' . gccDescription :: Lens' GenerateClientCertificate (Maybe Text) gccDescription = lens _gccDescription (\ s a -> s{_gccDescription = a});@@ -77,9 +77,9 @@         request = postJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GenerateClientCertificate+instance Hashable GenerateClientCertificate where -instance NFData GenerateClientCertificate+instance NFData GenerateClientCertificate where  instance ToHeaders GenerateClientCertificate where         toHeaders
gen/Network/AWS/APIGateway/GetAPIKey.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetAPIKey--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -45,12 +45,12 @@     , akDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A request to get information about the current 'ApiKey' resource. --@@ -58,10 +58,11 @@ -- -- /See:/ 'getAPIKey' smart constructor. data GetAPIKey = GetAPIKey'-    { _gakIncludeValue :: !(Maybe Bool)-    , _gakApiKey       :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gakIncludeValue :: !(Maybe Bool)+  , _gakApiKey       :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetAPIKey' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -73,11 +74,9 @@     :: Text -- ^ 'gakApiKey'     -> GetAPIKey getAPIKey pApiKey_ =-    GetAPIKey'-    { _gakIncludeValue = Nothing-    , _gakApiKey = pApiKey_-    }+  GetAPIKey' {_gakIncludeValue = Nothing, _gakApiKey = pApiKey_} + -- | A boolean flag to specify whether (@true@ ) or not (@false@ ) the result contains the key value. gakIncludeValue :: Lens' GetAPIKey (Maybe Bool) gakIncludeValue = lens _gakIncludeValue (\ s a -> s{_gakIncludeValue = a});@@ -91,9 +90,9 @@         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetAPIKey+instance Hashable GetAPIKey where -instance NFData GetAPIKey+instance NFData GetAPIKey where  instance ToHeaders GetAPIKey where         toHeaders
gen/Network/AWS/APIGateway/GetAPIKeys.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetAPIKeys--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -45,13 +45,13 @@     , gakrsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Pager-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Pager+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A request to get information about the current 'ApiKeys' resource. --@@ -59,13 +59,14 @@ -- -- /See:/ 'getAPIKeys' smart constructor. data GetAPIKeys = GetAPIKeys'-    { _gakIncludeValues :: !(Maybe Bool)-    , _gakCustomerId    :: !(Maybe Text)-    , _gakNameQuery     :: !(Maybe Text)-    , _gakLimit         :: !(Maybe Int)-    , _gakPosition      :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gakIncludeValues :: !(Maybe Bool)+  , _gakCustomerId    :: !(Maybe Text)+  , _gakNameQuery     :: !(Maybe Text)+  , _gakLimit         :: !(Maybe Int)+  , _gakPosition      :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetAPIKeys' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -76,20 +77,21 @@ -- -- * 'gakNameQuery' - The name of queried API keys. ----- * 'gakLimit' - The maximum number of 'ApiKeys' to get information about.+-- * 'gakLimit' - The maximum number of returned results per page. ----- * 'gakPosition' - The position of the current 'ApiKeys' resource to get information about.+-- * 'gakPosition' - The current pagination position in the paged result set. getAPIKeys     :: GetAPIKeys getAPIKeys =-    GetAPIKeys'-    { _gakIncludeValues = Nothing-    , _gakCustomerId = Nothing-    , _gakNameQuery = Nothing-    , _gakLimit = Nothing-    , _gakPosition = Nothing-    }+  GetAPIKeys'+  { _gakIncludeValues = Nothing+  , _gakCustomerId = Nothing+  , _gakNameQuery = Nothing+  , _gakLimit = Nothing+  , _gakPosition = Nothing+  } + -- | A boolean flag to specify whether (@true@ ) or not (@false@ ) the result contains key values. gakIncludeValues :: Lens' GetAPIKeys (Maybe Bool) gakIncludeValues = lens _gakIncludeValues (\ s a -> s{_gakIncludeValues = a});@@ -102,11 +104,11 @@ gakNameQuery :: Lens' GetAPIKeys (Maybe Text) gakNameQuery = lens _gakNameQuery (\ s a -> s{_gakNameQuery = a}); --- | The maximum number of 'ApiKeys' to get information about.+-- | The maximum number of returned results per page. gakLimit :: Lens' GetAPIKeys (Maybe Int) gakLimit = lens _gakLimit (\ s a -> s{_gakLimit = a}); --- | The position of the current 'ApiKeys' resource to get information about.+-- | The current pagination position in the paged result set. gakPosition :: Lens' GetAPIKeys (Maybe Text) gakPosition = lens _gakPosition (\ s a -> s{_gakPosition = a}); @@ -129,9 +131,9 @@                      <*> (x .?> "position")                      <*> (pure (fromEnum s))) -instance Hashable GetAPIKeys+instance Hashable GetAPIKeys where -instance NFData GetAPIKeys+instance NFData GetAPIKeys where  instance ToHeaders GetAPIKeys where         toHeaders@@ -157,17 +159,18 @@ -- -- /See:/ 'getAPIKeysResponse' smart constructor. data GetAPIKeysResponse = GetAPIKeysResponse'-    { _gakrsItems          :: !(Maybe [APIKey])-    , _gakrsWarnings       :: !(Maybe [Text])-    , _gakrsPosition       :: !(Maybe Text)-    , _gakrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gakrsItems          :: !(Maybe [APIKey])+  , _gakrsWarnings       :: !(Maybe [Text])+  , _gakrsPosition       :: !(Maybe Text)+  , _gakrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetAPIKeysResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gakrsItems' - The current page of any 'ApiKey' resources in the collection of 'ApiKey' resources.+-- * 'gakrsItems' - The current page of elements from this collection. -- -- * 'gakrsWarnings' - A list of warning messages logged during the import of API keys when the @failOnWarnings@ option is set to true. --@@ -178,14 +181,15 @@     :: Int -- ^ 'gakrsResponseStatus'     -> GetAPIKeysResponse getAPIKeysResponse pResponseStatus_ =-    GetAPIKeysResponse'-    { _gakrsItems = Nothing-    , _gakrsWarnings = Nothing-    , _gakrsPosition = Nothing-    , _gakrsResponseStatus = pResponseStatus_-    }+  GetAPIKeysResponse'+  { _gakrsItems = Nothing+  , _gakrsWarnings = Nothing+  , _gakrsPosition = Nothing+  , _gakrsResponseStatus = pResponseStatus_+  } --- | The current page of any 'ApiKey' resources in the collection of 'ApiKey' resources.++-- | The current page of elements from this collection. gakrsItems :: Lens' GetAPIKeysResponse [APIKey] gakrsItems = lens _gakrsItems (\ s a -> s{_gakrsItems = a}) . _Default . _Coerce; @@ -201,4 +205,4 @@ gakrsResponseStatus :: Lens' GetAPIKeysResponse Int gakrsResponseStatus = lens _gakrsResponseStatus (\ s a -> s{_gakrsResponseStatus = a}); -instance NFData GetAPIKeysResponse+instance NFData GetAPIKeysResponse where
gen/Network/AWS/APIGateway/GetAccount.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetAccount--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -37,12 +37,12 @@     , aThrottleSettings     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Requests Amazon API Gateway to get information about the current 'Account' resource. --@@ -50,23 +50,25 @@ -- -- /See:/ 'getAccount' smart constructor. data GetAccount =-    GetAccount'-    deriving (Eq,Read,Show,Data,Typeable,Generic)+  GetAccount'+  deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetAccount' with the minimum fields required to make a request. -- getAccount     :: GetAccount getAccount = GetAccount' + instance AWSRequest GetAccount where         type Rs GetAccount = Account         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetAccount+instance Hashable GetAccount where -instance NFData GetAccount+instance NFData GetAccount where  instance ToHeaders GetAccount where         toHeaders
gen/Network/AWS/APIGateway/GetAuthorizer.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetAuthorizer--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -47,12 +47,12 @@     , aAuthorizerCredentials     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to describe an existing 'Authorizer' resource. --@@ -60,15 +60,16 @@ -- -- /See:/ 'getAuthorizer' smart constructor. data GetAuthorizer = GetAuthorizer'-    { _gaaRestAPIId    :: !Text-    , _gaaAuthorizerId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gaaRestAPIId    :: !Text+  , _gaaAuthorizerId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetAuthorizer' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gaaRestAPIId' - The 'RestApi' identifier for the 'Authorizer' resource.+-- * 'gaaRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'gaaAuthorizerId' - The identifier of the 'Authorizer' resource. getAuthorizer@@ -76,12 +77,11 @@     -> Text -- ^ 'gaaAuthorizerId'     -> GetAuthorizer getAuthorizer pRestAPIId_ pAuthorizerId_ =-    GetAuthorizer'-    { _gaaRestAPIId = pRestAPIId_-    , _gaaAuthorizerId = pAuthorizerId_-    }+  GetAuthorizer'+  {_gaaRestAPIId = pRestAPIId_, _gaaAuthorizerId = pAuthorizerId_} --- | The 'RestApi' identifier for the 'Authorizer' resource.++-- | The string identifier of the associated 'RestApi' . gaaRestAPIId :: Lens' GetAuthorizer Text gaaRestAPIId = lens _gaaRestAPIId (\ s a -> s{_gaaRestAPIId = a}); @@ -94,9 +94,9 @@         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetAuthorizer+instance Hashable GetAuthorizer where -instance NFData GetAuthorizer+instance NFData GetAuthorizer where  instance ToHeaders GetAuthorizer where         toHeaders
gen/Network/AWS/APIGateway/GetAuthorizers.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetAuthorizers--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -41,12 +41,12 @@     , garsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to describe an existing 'Authorizers' resource. --@@ -54,39 +54,38 @@ -- -- /See:/ 'getAuthorizers' smart constructor. data GetAuthorizers = GetAuthorizers'-    { _gaLimit     :: !(Maybe Int)-    , _gaPosition  :: !(Maybe Text)-    , _gaRestAPIId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gaLimit     :: !(Maybe Int)+  , _gaPosition  :: !(Maybe Text)+  , _gaRestAPIId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetAuthorizers' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gaLimit' - Limit the number of 'Authorizer' resources in the response.+-- * 'gaLimit' - The maximum number of returned results per page. ----- * 'gaPosition' - If not all 'Authorizer' resources in the response were present, the position will specify where to start the next page of results.+-- * 'gaPosition' - The current pagination position in the paged result set. ----- * 'gaRestAPIId' - The 'RestApi' identifier for the 'Authorizers' resource.+-- * 'gaRestAPIId' - The string identifier of the associated 'RestApi' . getAuthorizers     :: Text -- ^ 'gaRestAPIId'     -> GetAuthorizers getAuthorizers pRestAPIId_ =-    GetAuthorizers'-    { _gaLimit = Nothing-    , _gaPosition = Nothing-    , _gaRestAPIId = pRestAPIId_-    }+  GetAuthorizers'+  {_gaLimit = Nothing, _gaPosition = Nothing, _gaRestAPIId = pRestAPIId_} --- | Limit the number of 'Authorizer' resources in the response.++-- | The maximum number of returned results per page. gaLimit :: Lens' GetAuthorizers (Maybe Int) gaLimit = lens _gaLimit (\ s a -> s{_gaLimit = a}); --- | If not all 'Authorizer' resources in the response were present, the position will specify where to start the next page of results.+-- | The current pagination position in the paged result set. gaPosition :: Lens' GetAuthorizers (Maybe Text) gaPosition = lens _gaPosition (\ s a -> s{_gaPosition = a}); --- | The 'RestApi' identifier for the 'Authorizers' resource.+-- | The string identifier of the associated 'RestApi' . gaRestAPIId :: Lens' GetAuthorizers Text gaRestAPIId = lens _gaRestAPIId (\ s a -> s{_gaRestAPIId = a}); @@ -100,9 +99,9 @@                    (x .?> "item" .!@ mempty) <*> (x .?> "position") <*>                      (pure (fromEnum s))) -instance Hashable GetAuthorizers+instance Hashable GetAuthorizers where -instance NFData GetAuthorizers+instance NFData GetAuthorizers where  instance ToHeaders GetAuthorizers where         toHeaders@@ -127,16 +126,17 @@ -- -- /See:/ 'getAuthorizersResponse' smart constructor. data GetAuthorizersResponse = GetAuthorizersResponse'-    { _garsItems          :: !(Maybe [Authorizer])-    , _garsPosition       :: !(Maybe Text)-    , _garsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _garsItems          :: !(Maybe [Authorizer])+  , _garsPosition       :: !(Maybe Text)+  , _garsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetAuthorizersResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'garsItems' - Gets the current list of 'Authorizer' resources in the collection.+-- * 'garsItems' - The current page of elements from this collection. -- -- * 'garsPosition' - Undocumented member. --@@ -145,13 +145,14 @@     :: Int -- ^ 'garsResponseStatus'     -> GetAuthorizersResponse getAuthorizersResponse pResponseStatus_ =-    GetAuthorizersResponse'-    { _garsItems = Nothing-    , _garsPosition = Nothing-    , _garsResponseStatus = pResponseStatus_-    }+  GetAuthorizersResponse'+  { _garsItems = Nothing+  , _garsPosition = Nothing+  , _garsResponseStatus = pResponseStatus_+  } --- | Gets the current list of 'Authorizer' resources in the collection.++-- | The current page of elements from this collection. garsItems :: Lens' GetAuthorizersResponse [Authorizer] garsItems = lens _garsItems (\ s a -> s{_garsItems = a}) . _Default . _Coerce; @@ -163,4 +164,4 @@ garsResponseStatus :: Lens' GetAuthorizersResponse Int garsResponseStatus = lens _garsResponseStatus (\ s a -> s{_garsResponseStatus = a}); -instance NFData GetAuthorizersResponse+instance NFData GetAuthorizersResponse where
gen/Network/AWS/APIGateway/GetBasePathMapping.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetBasePathMapping--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -39,12 +39,12 @@     , bpmRestAPIId     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to describe a 'BasePathMapping' resource. --@@ -52,10 +52,11 @@ -- -- /See:/ 'getBasePathMapping' smart constructor. data GetBasePathMapping = GetBasePathMapping'-    { _gbpmDomainName :: !Text-    , _gbpmBasePath   :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gbpmDomainName :: !Text+  , _gbpmBasePath   :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetBasePathMapping' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -68,11 +69,10 @@     -> Text -- ^ 'gbpmBasePath'     -> GetBasePathMapping getBasePathMapping pDomainName_ pBasePath_ =-    GetBasePathMapping'-    { _gbpmDomainName = pDomainName_-    , _gbpmBasePath = pBasePath_-    }+  GetBasePathMapping'+  {_gbpmDomainName = pDomainName_, _gbpmBasePath = pBasePath_} + -- | The domain name of the 'BasePathMapping' resource to be described. gbpmDomainName :: Lens' GetBasePathMapping Text gbpmDomainName = lens _gbpmDomainName (\ s a -> s{_gbpmDomainName = a});@@ -86,9 +86,9 @@         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetBasePathMapping+instance Hashable GetBasePathMapping where -instance NFData GetBasePathMapping+instance NFData GetBasePathMapping where  instance ToHeaders GetBasePathMapping where         toHeaders
gen/Network/AWS/APIGateway/GetBasePathMappings.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetBasePathMappings--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -42,13 +42,13 @@     , gbpmrsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Pager-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Pager+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A request to get information about a collection of 'BasePathMapping' resources. --@@ -56,35 +56,34 @@ -- -- /See:/ 'getBasePathMappings' smart constructor. data GetBasePathMappings = GetBasePathMappings'-    { _gLimit      :: !(Maybe Int)-    , _gPosition   :: !(Maybe Text)-    , _gDomainName :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gLimit      :: !(Maybe Int)+  , _gPosition   :: !(Maybe Text)+  , _gDomainName :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetBasePathMappings' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gLimit' - The maximum number of 'BasePathMapping' resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.+-- * 'gLimit' - The maximum number of returned results per page. The value is 25 by default and could be between 1 - 500. ----- * 'gPosition' - The position of the current 'BasePathMapping' resource in the collection to get information about.+-- * 'gPosition' - The current pagination position in the paged result set. -- -- * 'gDomainName' - The domain name of a 'BasePathMapping' resource. getBasePathMappings     :: Text -- ^ 'gDomainName'     -> GetBasePathMappings getBasePathMappings pDomainName_ =-    GetBasePathMappings'-    { _gLimit = Nothing-    , _gPosition = Nothing-    , _gDomainName = pDomainName_-    }+  GetBasePathMappings'+  {_gLimit = Nothing, _gPosition = Nothing, _gDomainName = pDomainName_} --- | The maximum number of 'BasePathMapping' resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.++-- | The maximum number of returned results per page. The value is 25 by default and could be between 1 - 500. gLimit :: Lens' GetBasePathMappings (Maybe Int) gLimit = lens _gLimit (\ s a -> s{_gLimit = a}); --- | The position of the current 'BasePathMapping' resource in the collection to get information about.+-- | The current pagination position in the paged result set. gPosition :: Lens' GetBasePathMappings (Maybe Text) gPosition = lens _gPosition (\ s a -> s{_gPosition = a}); @@ -110,9 +109,9 @@                    (x .?> "item" .!@ mempty) <*> (x .?> "position") <*>                      (pure (fromEnum s))) -instance Hashable GetBasePathMappings+instance Hashable GetBasePathMappings where -instance NFData GetBasePathMappings+instance NFData GetBasePathMappings where  instance ToHeaders GetBasePathMappings where         toHeaders@@ -138,16 +137,17 @@ -- -- /See:/ 'getBasePathMappingsResponse' smart constructor. data GetBasePathMappingsResponse = GetBasePathMappingsResponse'-    { _gbpmrsItems          :: !(Maybe [BasePathMapping])-    , _gbpmrsPosition       :: !(Maybe Text)-    , _gbpmrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gbpmrsItems          :: !(Maybe [BasePathMapping])+  , _gbpmrsPosition       :: !(Maybe Text)+  , _gbpmrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetBasePathMappingsResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gbpmrsItems' - The current page of any 'BasePathMapping' resources in the collection of base path mapping resources.+-- * 'gbpmrsItems' - The current page of elements from this collection. -- -- * 'gbpmrsPosition' - Undocumented member. --@@ -156,13 +156,14 @@     :: Int -- ^ 'gbpmrsResponseStatus'     -> GetBasePathMappingsResponse getBasePathMappingsResponse pResponseStatus_ =-    GetBasePathMappingsResponse'-    { _gbpmrsItems = Nothing-    , _gbpmrsPosition = Nothing-    , _gbpmrsResponseStatus = pResponseStatus_-    }+  GetBasePathMappingsResponse'+  { _gbpmrsItems = Nothing+  , _gbpmrsPosition = Nothing+  , _gbpmrsResponseStatus = pResponseStatus_+  } --- | The current page of any 'BasePathMapping' resources in the collection of base path mapping resources.++-- | The current page of elements from this collection. gbpmrsItems :: Lens' GetBasePathMappingsResponse [BasePathMapping] gbpmrsItems = lens _gbpmrsItems (\ s a -> s{_gbpmrsItems = a}) . _Default . _Coerce; @@ -174,4 +175,4 @@ gbpmrsResponseStatus :: Lens' GetBasePathMappingsResponse Int gbpmrsResponseStatus = lens _gbpmrsResponseStatus (\ s a -> s{_gbpmrsResponseStatus = a}); -instance NFData GetBasePathMappingsResponse+instance NFData GetBasePathMappingsResponse where
gen/Network/AWS/APIGateway/GetClientCertificate.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetClientCertificate--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -40,12 +40,12 @@     , ccDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A request to get information about the current 'ClientCertificate' resource. --@@ -53,9 +53,10 @@ -- -- /See:/ 'getClientCertificate' smart constructor. newtype GetClientCertificate = GetClientCertificate'-    { _gccClientCertificateId :: Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gccClientCertificateId :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetClientCertificate' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -65,10 +66,9 @@     :: Text -- ^ 'gccClientCertificateId'     -> GetClientCertificate getClientCertificate pClientCertificateId_ =-    GetClientCertificate'-    { _gccClientCertificateId = pClientCertificateId_-    }+  GetClientCertificate' {_gccClientCertificateId = pClientCertificateId_} + -- | The identifier of the 'ClientCertificate' resource to be described. gccClientCertificateId :: Lens' GetClientCertificate Text gccClientCertificateId = lens _gccClientCertificateId (\ s a -> s{_gccClientCertificateId = a});@@ -78,9 +78,9 @@         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetClientCertificate+instance Hashable GetClientCertificate where -instance NFData GetClientCertificate+instance NFData GetClientCertificate where  instance ToHeaders GetClientCertificate where         toHeaders
gen/Network/AWS/APIGateway/GetClientCertificates.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetClientCertificates--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -41,13 +41,13 @@     , gccrsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Pager-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Pager+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A request to get information about a collection of 'ClientCertificate' resources. --@@ -55,30 +55,29 @@ -- -- /See:/ 'getClientCertificates' smart constructor. data GetClientCertificates = GetClientCertificates'-    { _gccLimit    :: !(Maybe Int)-    , _gccPosition :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gccLimit    :: !(Maybe Int)+  , _gccPosition :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetClientCertificates' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gccLimit' - The maximum number of 'ClientCertificate' resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.+-- * 'gccLimit' - The maximum number of returned results per page. The value is 25 by default and could be between 1 - 500. ----- * 'gccPosition' - The position of the current 'ClientCertificate' resource in the collection to get information about.+-- * 'gccPosition' - The current pagination position in the paged result set. getClientCertificates     :: GetClientCertificates getClientCertificates =-    GetClientCertificates'-    { _gccLimit = Nothing-    , _gccPosition = Nothing-    }+  GetClientCertificates' {_gccLimit = Nothing, _gccPosition = Nothing} --- | The maximum number of 'ClientCertificate' resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.++-- | The maximum number of returned results per page. The value is 25 by default and could be between 1 - 500. gccLimit :: Lens' GetClientCertificates (Maybe Int) gccLimit = lens _gccLimit (\ s a -> s{_gccLimit = a}); --- | The position of the current 'ClientCertificate' resource in the collection to get information about.+-- | The current pagination position in the paged result set. gccPosition :: Lens' GetClientCertificates (Maybe Text) gccPosition = lens _gccPosition (\ s a -> s{_gccPosition = a}); @@ -100,9 +99,9 @@                    (x .?> "item" .!@ mempty) <*> (x .?> "position") <*>                      (pure (fromEnum s))) -instance Hashable GetClientCertificates+instance Hashable GetClientCertificates where -instance NFData GetClientCertificates+instance NFData GetClientCertificates where  instance ToHeaders GetClientCertificates where         toHeaders@@ -125,16 +124,17 @@ -- -- /See:/ 'getClientCertificatesResponse' smart constructor. data GetClientCertificatesResponse = GetClientCertificatesResponse'-    { _gccrsItems          :: !(Maybe [ClientCertificate])-    , _gccrsPosition       :: !(Maybe Text)-    , _gccrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gccrsItems          :: !(Maybe [ClientCertificate])+  , _gccrsPosition       :: !(Maybe Text)+  , _gccrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetClientCertificatesResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gccrsItems' - The current page of any 'ClientCertificate' resources in the collection of 'ClientCertificate' resources.+-- * 'gccrsItems' - The current page of elements from this collection. -- -- * 'gccrsPosition' - Undocumented member. --@@ -143,13 +143,14 @@     :: Int -- ^ 'gccrsResponseStatus'     -> GetClientCertificatesResponse getClientCertificatesResponse pResponseStatus_ =-    GetClientCertificatesResponse'-    { _gccrsItems = Nothing-    , _gccrsPosition = Nothing-    , _gccrsResponseStatus = pResponseStatus_-    }+  GetClientCertificatesResponse'+  { _gccrsItems = Nothing+  , _gccrsPosition = Nothing+  , _gccrsResponseStatus = pResponseStatus_+  } --- | The current page of any 'ClientCertificate' resources in the collection of 'ClientCertificate' resources.++-- | The current page of elements from this collection. gccrsItems :: Lens' GetClientCertificatesResponse [ClientCertificate] gccrsItems = lens _gccrsItems (\ s a -> s{_gccrsItems = a}) . _Default . _Coerce; @@ -161,4 +162,4 @@ gccrsResponseStatus :: Lens' GetClientCertificatesResponse Int gccrsResponseStatus = lens _gccrsResponseStatus (\ s a -> s{_gccrsResponseStatus = a}); -instance NFData GetClientCertificatesResponse+instance NFData GetClientCertificatesResponse where
gen/Network/AWS/APIGateway/GetDeployment.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetDeployment--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -27,6 +27,7 @@       getDeployment     , GetDeployment     -- * Request Lenses+    , gEmbed     , gRestAPIId     , gDeploymentId @@ -40,12 +41,12 @@     , dDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Requests Amazon API Gateway to get information about a 'Deployment' resource. --@@ -53,28 +54,38 @@ -- -- /See:/ 'getDeployment' smart constructor. data GetDeployment = GetDeployment'-    { _gRestAPIId    :: !Text-    , _gDeploymentId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gEmbed        :: !(Maybe [Text])+  , _gRestAPIId    :: !Text+  , _gDeploymentId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetDeployment' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gRestAPIId' - The identifier of the 'RestApi' resource for the 'Deployment' resource to get information about.+-- * 'gEmbed' - 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@ . --+-- * 'gRestAPIId' - The string identifier of the associated 'RestApi' .+-- -- * 'gDeploymentId' - The identifier of the 'Deployment' resource to get information about. getDeployment     :: Text -- ^ 'gRestAPIId'     -> Text -- ^ 'gDeploymentId'     -> GetDeployment getDeployment pRestAPIId_ pDeploymentId_ =-    GetDeployment'-    { _gRestAPIId = pRestAPIId_-    , _gDeploymentId = pDeploymentId_-    }+  GetDeployment'+  { _gEmbed = Nothing+  , _gRestAPIId = pRestAPIId_+  , _gDeploymentId = pDeploymentId_+  } --- | The identifier of the 'RestApi' resource for the 'Deployment' resource to get information about.++-- | 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@ .+gEmbed :: Lens' GetDeployment [Text]+gEmbed = lens _gEmbed (\ s a -> s{_gEmbed = a}) . _Default . _Coerce;++-- | The string identifier of the associated 'RestApi' . gRestAPIId :: Lens' GetDeployment Text gRestAPIId = lens _gRestAPIId (\ s a -> s{_gRestAPIId = a}); @@ -87,9 +98,9 @@         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetDeployment+instance Hashable GetDeployment where -instance NFData GetDeployment+instance NFData GetDeployment where  instance ToHeaders GetDeployment where         toHeaders@@ -104,4 +115,7 @@                toBS _gDeploymentId]  instance ToQuery GetDeployment where-        toQuery = const mempty+        toQuery GetDeployment'{..}+          = mconcat+              ["embed" =:+                 toQuery (toQueryList "member" <$> _gEmbed)]
gen/Network/AWS/APIGateway/GetDeployments.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetDeployments--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -42,13 +42,13 @@     , gdrsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Pager-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Pager+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Requests Amazon API Gateway to get information about a 'Deployments' collection. --@@ -56,39 +56,38 @@ -- -- /See:/ 'getDeployments' smart constructor. data GetDeployments = GetDeployments'-    { _gdLimit     :: !(Maybe Int)-    , _gdPosition  :: !(Maybe Text)-    , _gdRestAPIId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gdLimit     :: !(Maybe Int)+  , _gdPosition  :: !(Maybe Text)+  , _gdRestAPIId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetDeployments' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gdLimit' - The maximum number of 'Deployment' resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.+-- * 'gdLimit' - The maximum number of returned results per page. The value is 25 by default and could be between 1 - 500. ----- * 'gdPosition' - The position of the current 'Deployment' resource in the collection to get information about.+-- * 'gdPosition' - The current pagination position in the paged result set. ----- * 'gdRestAPIId' - The identifier of the 'RestApi' resource for the collection of 'Deployment' resources to get information about.+-- * 'gdRestAPIId' - The string identifier of the associated 'RestApi' . getDeployments     :: Text -- ^ 'gdRestAPIId'     -> GetDeployments getDeployments pRestAPIId_ =-    GetDeployments'-    { _gdLimit = Nothing-    , _gdPosition = Nothing-    , _gdRestAPIId = pRestAPIId_-    }+  GetDeployments'+  {_gdLimit = Nothing, _gdPosition = Nothing, _gdRestAPIId = pRestAPIId_} --- | The maximum number of 'Deployment' resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.++-- | The maximum number of returned results per page. The value is 25 by default and could be between 1 - 500. gdLimit :: Lens' GetDeployments (Maybe Int) gdLimit = lens _gdLimit (\ s a -> s{_gdLimit = a}); --- | The position of the current 'Deployment' resource in the collection to get information about.+-- | The current pagination position in the paged result set. gdPosition :: Lens' GetDeployments (Maybe Text) gdPosition = lens _gdPosition (\ s a -> s{_gdPosition = a}); --- | The identifier of the 'RestApi' resource for the collection of 'Deployment' resources to get information about.+-- | The string identifier of the associated 'RestApi' . gdRestAPIId :: Lens' GetDeployments Text gdRestAPIId = lens _gdRestAPIId (\ s a -> s{_gdRestAPIId = a}); @@ -109,9 +108,9 @@                    (x .?> "item" .!@ mempty) <*> (x .?> "position") <*>                      (pure (fromEnum s))) -instance Hashable GetDeployments+instance Hashable GetDeployments where -instance NFData GetDeployments+instance NFData GetDeployments where  instance ToHeaders GetDeployments where         toHeaders@@ -136,16 +135,17 @@ -- -- /See:/ 'getDeploymentsResponse' smart constructor. data GetDeploymentsResponse = GetDeploymentsResponse'-    { _gdrsItems          :: !(Maybe [Deployment])-    , _gdrsPosition       :: !(Maybe Text)-    , _gdrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gdrsItems          :: !(Maybe [Deployment])+  , _gdrsPosition       :: !(Maybe Text)+  , _gdrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetDeploymentsResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gdrsItems' - The current page of any 'Deployment' resources in the collection of deployment resources.+-- * 'gdrsItems' - The current page of elements from this collection. -- -- * 'gdrsPosition' - Undocumented member. --@@ -154,13 +154,14 @@     :: Int -- ^ 'gdrsResponseStatus'     -> GetDeploymentsResponse getDeploymentsResponse pResponseStatus_ =-    GetDeploymentsResponse'-    { _gdrsItems = Nothing-    , _gdrsPosition = Nothing-    , _gdrsResponseStatus = pResponseStatus_-    }+  GetDeploymentsResponse'+  { _gdrsItems = Nothing+  , _gdrsPosition = Nothing+  , _gdrsResponseStatus = pResponseStatus_+  } --- | The current page of any 'Deployment' resources in the collection of deployment resources.++-- | The current page of elements from this collection. gdrsItems :: Lens' GetDeploymentsResponse [Deployment] gdrsItems = lens _gdrsItems (\ s a -> s{_gdrsItems = a}) . _Default . _Coerce; @@ -172,4 +173,4 @@ gdrsResponseStatus :: Lens' GetDeploymentsResponse Int gdrsResponseStatus = lens _gdrsResponseStatus (\ s a -> s{_gdrsResponseStatus = a}); -instance NFData GetDeploymentsResponse+instance NFData GetDeploymentsResponse where
gen/Network/AWS/APIGateway/GetDocumentationPart.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetDocumentationPart--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -37,12 +37,12 @@     , dpProperties     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Gets a specified documentation part of a given API. --@@ -50,32 +50,32 @@ -- -- /See:/ 'getDocumentationPart' smart constructor. data GetDocumentationPart = GetDocumentationPart'-    { _getRestAPIId           :: !Text-    , _getDocumentationPartId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _getRestAPIId           :: !Text+  , _getDocumentationPartId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetDocumentationPart' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'getRestAPIId' - [Required] The identifier of an API of the to-be-retrieved documentation part.+-- * 'getRestAPIId' - [Required] The string identifier of the associated 'RestApi' . ----- * 'getDocumentationPartId' - [Required] The identifier of the to-be-retrieved documentation part.+-- * 'getDocumentationPartId' - [Required] The string identifier of the associated 'RestApi' . getDocumentationPart     :: Text -- ^ 'getRestAPIId'     -> Text -- ^ 'getDocumentationPartId'     -> GetDocumentationPart getDocumentationPart pRestAPIId_ pDocumentationPartId_ =-    GetDocumentationPart'-    { _getRestAPIId = pRestAPIId_-    , _getDocumentationPartId = pDocumentationPartId_-    }+  GetDocumentationPart'+  {_getRestAPIId = pRestAPIId_, _getDocumentationPartId = pDocumentationPartId_} --- | [Required] The identifier of an API of the to-be-retrieved documentation part.++-- | [Required] The string identifier of the associated 'RestApi' . getRestAPIId :: Lens' GetDocumentationPart Text getRestAPIId = lens _getRestAPIId (\ s a -> s{_getRestAPIId = a}); --- | [Required] The identifier of the to-be-retrieved documentation part.+-- | [Required] The string identifier of the associated 'RestApi' . getDocumentationPartId :: Lens' GetDocumentationPart Text getDocumentationPartId = lens _getDocumentationPartId (\ s a -> s{_getDocumentationPartId = a}); @@ -84,9 +84,9 @@         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetDocumentationPart+instance Hashable GetDocumentationPart where -instance NFData GetDocumentationPart+instance NFData GetDocumentationPart where  instance ToHeaders GetDocumentationPart where         toHeaders
gen/Network/AWS/APIGateway/GetDocumentationParts.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetDocumentationParts--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -41,12 +41,12 @@     , gdprsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Gets the documentation parts of an API. The result may be filtered by the type, name, or path of API entities (targets). --@@ -54,14 +54,15 @@ -- -- /See:/ 'getDocumentationParts' smart constructor. data GetDocumentationParts = GetDocumentationParts'-    { _gdpPath      :: !(Maybe Text)-    , _gdpNameQuery :: !(Maybe Text)-    , _gdpLimit     :: !(Maybe Int)-    , _gdpType      :: !(Maybe DocumentationPartType)-    , _gdpPosition  :: !(Maybe Text)-    , _gdpRestAPIId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gdpPath      :: !(Maybe Text)+  , _gdpNameQuery :: !(Maybe Text)+  , _gdpLimit     :: !(Maybe Int)+  , _gdpType      :: !(Maybe DocumentationPartType)+  , _gdpPosition  :: !(Maybe Text)+  , _gdpRestAPIId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetDocumentationParts' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -70,26 +71,27 @@ -- -- * 'gdpNameQuery' - The name of API entities of the to-be-retrieved documentation parts. ----- * 'gdpLimit' - The size of the paged results.+-- * 'gdpLimit' - The maximum number of returned results per page. -- -- * 'gdpType' - The type of API entities of the to-be-retrieved documentation parts. ----- * 'gdpPosition' - The position of the to-be-retrieved documentation part in the 'DocumentationParts' collection.+-- * 'gdpPosition' - The current pagination position in the paged result set. ----- * 'gdpRestAPIId' - [Required] The identifier of the API of the to-be-retrieved documentation parts.+-- * 'gdpRestAPIId' - [Required] The string identifier of the associated 'RestApi' . getDocumentationParts     :: Text -- ^ 'gdpRestAPIId'     -> GetDocumentationParts getDocumentationParts pRestAPIId_ =-    GetDocumentationParts'-    { _gdpPath = Nothing-    , _gdpNameQuery = Nothing-    , _gdpLimit = Nothing-    , _gdpType = Nothing-    , _gdpPosition = Nothing-    , _gdpRestAPIId = pRestAPIId_-    }+  GetDocumentationParts'+  { _gdpPath = Nothing+  , _gdpNameQuery = Nothing+  , _gdpLimit = Nothing+  , _gdpType = Nothing+  , _gdpPosition = Nothing+  , _gdpRestAPIId = pRestAPIId_+  } + -- | The path of API entities of the to-be-retrieved documentation parts. gdpPath :: Lens' GetDocumentationParts (Maybe Text) gdpPath = lens _gdpPath (\ s a -> s{_gdpPath = a});@@ -98,7 +100,7 @@ gdpNameQuery :: Lens' GetDocumentationParts (Maybe Text) gdpNameQuery = lens _gdpNameQuery (\ s a -> s{_gdpNameQuery = a}); --- | The size of the paged results.+-- | The maximum number of returned results per page. gdpLimit :: Lens' GetDocumentationParts (Maybe Int) gdpLimit = lens _gdpLimit (\ s a -> s{_gdpLimit = a}); @@ -106,11 +108,11 @@ gdpType :: Lens' GetDocumentationParts (Maybe DocumentationPartType) gdpType = lens _gdpType (\ s a -> s{_gdpType = a}); --- | The position of the to-be-retrieved documentation part in the 'DocumentationParts' collection.+-- | The current pagination position in the paged result set. gdpPosition :: Lens' GetDocumentationParts (Maybe Text) gdpPosition = lens _gdpPosition (\ s a -> s{_gdpPosition = a}); --- | [Required] The identifier of the API of the to-be-retrieved documentation parts.+-- | [Required] The string identifier of the associated 'RestApi' . gdpRestAPIId :: Lens' GetDocumentationParts Text gdpRestAPIId = lens _gdpRestAPIId (\ s a -> s{_gdpRestAPIId = a}); @@ -125,9 +127,9 @@                    (x .?> "item" .!@ mempty) <*> (x .?> "position") <*>                      (pure (fromEnum s))) -instance Hashable GetDocumentationParts+instance Hashable GetDocumentationParts where -instance NFData GetDocumentationParts+instance NFData GetDocumentationParts where  instance ToHeaders GetDocumentationParts where         toHeaders@@ -155,16 +157,17 @@ -- -- /See:/ 'getDocumentationPartsResponse' smart constructor. data GetDocumentationPartsResponse = GetDocumentationPartsResponse'-    { _gdprsItems          :: !(Maybe [DocumentationPart])-    , _gdprsPosition       :: !(Maybe Text)-    , _gdprsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gdprsItems          :: !(Maybe [DocumentationPart])+  , _gdprsPosition       :: !(Maybe Text)+  , _gdprsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetDocumentationPartsResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gdprsItems' - The current page of 'DocumentationPart' resources in the 'DocumentationParts' collection.+-- * 'gdprsItems' - The current page of elements from this collection. -- -- * 'gdprsPosition' - Undocumented member. --@@ -173,13 +176,14 @@     :: Int -- ^ 'gdprsResponseStatus'     -> GetDocumentationPartsResponse getDocumentationPartsResponse pResponseStatus_ =-    GetDocumentationPartsResponse'-    { _gdprsItems = Nothing-    , _gdprsPosition = Nothing-    , _gdprsResponseStatus = pResponseStatus_-    }+  GetDocumentationPartsResponse'+  { _gdprsItems = Nothing+  , _gdprsPosition = Nothing+  , _gdprsResponseStatus = pResponseStatus_+  } --- | The current page of 'DocumentationPart' resources in the 'DocumentationParts' collection.++-- | The current page of elements from this collection. gdprsItems :: Lens' GetDocumentationPartsResponse [DocumentationPart] gdprsItems = lens _gdprsItems (\ s a -> s{_gdprsItems = a}) . _Default . _Coerce; @@ -191,4 +195,4 @@ gdprsResponseStatus :: Lens' GetDocumentationPartsResponse Int gdprsResponseStatus = lens _gdprsResponseStatus (\ s a -> s{_gdprsResponseStatus = a}); -instance NFData GetDocumentationPartsResponse+instance NFData GetDocumentationPartsResponse where
gen/Network/AWS/APIGateway/GetDocumentationVersion.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetDocumentationVersion--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -37,12 +37,12 @@     , dvDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Gets a documentation snapshot of an API. --@@ -50,15 +50,16 @@ -- -- /See:/ 'getDocumentationVersion' smart constructor. data GetDocumentationVersion = GetDocumentationVersion'-    { _gdvdRestAPIId            :: !Text-    , _gdvdDocumentationVersion :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gdvdRestAPIId            :: !Text+  , _gdvdDocumentationVersion :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetDocumentationVersion' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gdvdRestAPIId' - [Required] The identifier of the API of the to-be-retrieved documentation snapshot.+-- * 'gdvdRestAPIId' - [Required] The string identifier of the associated 'RestApi' . -- -- * 'gdvdDocumentationVersion' - [Required] The version identifier of the to-be-retrieved documentation snapshot. getDocumentationVersion@@ -66,12 +67,13 @@     -> Text -- ^ 'gdvdDocumentationVersion'     -> GetDocumentationVersion getDocumentationVersion pRestAPIId_ pDocumentationVersion_ =-    GetDocumentationVersion'-    { _gdvdRestAPIId = pRestAPIId_-    , _gdvdDocumentationVersion = pDocumentationVersion_-    }+  GetDocumentationVersion'+  { _gdvdRestAPIId = pRestAPIId_+  , _gdvdDocumentationVersion = pDocumentationVersion_+  } --- | [Required] The identifier of the API of the to-be-retrieved documentation snapshot.++-- | [Required] The string identifier of the associated 'RestApi' . gdvdRestAPIId :: Lens' GetDocumentationVersion Text gdvdRestAPIId = lens _gdvdRestAPIId (\ s a -> s{_gdvdRestAPIId = a}); @@ -85,9 +87,9 @@         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetDocumentationVersion+instance Hashable GetDocumentationVersion where -instance NFData GetDocumentationVersion+instance NFData GetDocumentationVersion where  instance ToHeaders GetDocumentationVersion where         toHeaders
gen/Network/AWS/APIGateway/GetDocumentationVersions.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetDocumentationVersions--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -38,12 +38,12 @@     , gdvrsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Gets the documentation versions of an API. --@@ -51,39 +51,38 @@ -- -- /See:/ 'getDocumentationVersions' smart constructor. data GetDocumentationVersions = GetDocumentationVersions'-    { _gdvLimit     :: !(Maybe Int)-    , _gdvPosition  :: !(Maybe Text)-    , _gdvRestAPIId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gdvLimit     :: !(Maybe Int)+  , _gdvPosition  :: !(Maybe Text)+  , _gdvRestAPIId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetDocumentationVersions' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gdvLimit' - The page size of the returned documentation versions.+-- * 'gdvLimit' - The maximum number of returned results per page. ----- * 'gdvPosition' - The position of the returned @DocumentationVersion@ in the 'DocumentationVersions' collection.+-- * 'gdvPosition' - The current pagination position in the paged result set. ----- * 'gdvRestAPIId' - [Required] The identifier of an API of the to-be-retrieved documentation versions.+-- * 'gdvRestAPIId' - [Required] The string identifier of the associated 'RestApi' . getDocumentationVersions     :: Text -- ^ 'gdvRestAPIId'     -> GetDocumentationVersions getDocumentationVersions pRestAPIId_ =-    GetDocumentationVersions'-    { _gdvLimit = Nothing-    , _gdvPosition = Nothing-    , _gdvRestAPIId = pRestAPIId_-    }+  GetDocumentationVersions'+  {_gdvLimit = Nothing, _gdvPosition = Nothing, _gdvRestAPIId = pRestAPIId_} --- | The page size of the returned documentation versions.++-- | The maximum number of returned results per page. gdvLimit :: Lens' GetDocumentationVersions (Maybe Int) gdvLimit = lens _gdvLimit (\ s a -> s{_gdvLimit = a}); --- | The position of the returned @DocumentationVersion@ in the 'DocumentationVersions' collection.+-- | The current pagination position in the paged result set. gdvPosition :: Lens' GetDocumentationVersions (Maybe Text) gdvPosition = lens _gdvPosition (\ s a -> s{_gdvPosition = a}); --- | [Required] The identifier of an API of the to-be-retrieved documentation versions.+-- | [Required] The string identifier of the associated 'RestApi' . gdvRestAPIId :: Lens' GetDocumentationVersions Text gdvRestAPIId = lens _gdvRestAPIId (\ s a -> s{_gdvRestAPIId = a}); @@ -98,9 +97,9 @@                    (x .?> "item" .!@ mempty) <*> (x .?> "position") <*>                      (pure (fromEnum s))) -instance Hashable GetDocumentationVersions+instance Hashable GetDocumentationVersions where -instance NFData GetDocumentationVersions+instance NFData GetDocumentationVersions where  instance ToHeaders GetDocumentationVersions where         toHeaders@@ -128,16 +127,17 @@ -- -- /See:/ 'getDocumentationVersionsResponse' smart constructor. data GetDocumentationVersionsResponse = GetDocumentationVersionsResponse'-    { _gdvrsItems          :: !(Maybe [DocumentationVersion])-    , _gdvrsPosition       :: !(Maybe Text)-    , _gdvrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gdvrsItems          :: !(Maybe [DocumentationVersion])+  , _gdvrsPosition       :: !(Maybe Text)+  , _gdvrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetDocumentationVersionsResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gdvrsItems' - The current page of 'DocumentationVersion' items from the 'DocumentationVersions' collection of an API.+-- * 'gdvrsItems' - The current page of elements from this collection. -- -- * 'gdvrsPosition' - Undocumented member. --@@ -146,13 +146,14 @@     :: Int -- ^ 'gdvrsResponseStatus'     -> GetDocumentationVersionsResponse getDocumentationVersionsResponse pResponseStatus_ =-    GetDocumentationVersionsResponse'-    { _gdvrsItems = Nothing-    , _gdvrsPosition = Nothing-    , _gdvrsResponseStatus = pResponseStatus_-    }+  GetDocumentationVersionsResponse'+  { _gdvrsItems = Nothing+  , _gdvrsPosition = Nothing+  , _gdvrsResponseStatus = pResponseStatus_+  } --- | The current page of 'DocumentationVersion' items from the 'DocumentationVersions' collection of an API.++-- | The current page of elements from this collection. gdvrsItems :: Lens' GetDocumentationVersionsResponse [DocumentationVersion] gdvrsItems = lens _gdvrsItems (\ s a -> s{_gdvrsItems = a}) . _Default . _Coerce; @@ -165,3 +166,4 @@ gdvrsResponseStatus = lens _gdvrsResponseStatus (\ s a -> s{_gdvrsResponseStatus = a});  instance NFData GetDocumentationVersionsResponse+         where
gen/Network/AWS/APIGateway/GetDomainName.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetDomainName--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -34,17 +34,22 @@     , DomainName     -- * Response Lenses     , dnCertificateName+    , dnRegionalCertificateARN+    , dnCertificateARN     , dnDomainName+    , dnRegionalCertificateName+    , dnRegionalDomainName     , dnCertificateUploadDate     , dnDistributionDomainName+    , dnEndpointConfiguration     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to get the name of a 'DomainName' resource. --@@ -52,9 +57,10 @@ -- -- /See:/ 'getDomainName' smart constructor. newtype GetDomainName = GetDomainName'-    { _gdnDomainName :: Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gdnDomainName :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetDomainName' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -63,11 +69,9 @@ getDomainName     :: Text -- ^ 'gdnDomainName'     -> GetDomainName-getDomainName pDomainName_ =-    GetDomainName'-    { _gdnDomainName = pDomainName_-    }+getDomainName pDomainName_ = GetDomainName' {_gdnDomainName = pDomainName_} + -- | The name of the 'DomainName' resource. gdnDomainName :: Lens' GetDomainName Text gdnDomainName = lens _gdnDomainName (\ s a -> s{_gdnDomainName = a});@@ -77,9 +81,9 @@         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetDomainName+instance Hashable GetDomainName where -instance NFData GetDomainName+instance NFData GetDomainName where  instance ToHeaders GetDomainName where         toHeaders
gen/Network/AWS/APIGateway/GetDomainNames.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetDomainNames--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -41,13 +41,13 @@     , gdnrsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Pager-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Pager+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to describe a collection of 'DomainName' resources. --@@ -55,30 +55,28 @@ -- -- /See:/ 'getDomainNames' smart constructor. data GetDomainNames = GetDomainNames'-    { _gdnLimit    :: !(Maybe Int)-    , _gdnPosition :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gdnLimit    :: !(Maybe Int)+  , _gdnPosition :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetDomainNames' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gdnLimit' - The maximum number of 'DomainName' resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.+-- * 'gdnLimit' - The maximum number of returned results per page. The value is 25 by default and could be between 1 - 500. ----- * 'gdnPosition' - The position of the current domain names to get information about.+-- * 'gdnPosition' - The current pagination position in the paged result set. getDomainNames     :: GetDomainNames-getDomainNames =-    GetDomainNames'-    { _gdnLimit = Nothing-    , _gdnPosition = Nothing-    }+getDomainNames = GetDomainNames' {_gdnLimit = Nothing, _gdnPosition = Nothing} --- | The maximum number of 'DomainName' resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.++-- | The maximum number of returned results per page. The value is 25 by default and could be between 1 - 500. gdnLimit :: Lens' GetDomainNames (Maybe Int) gdnLimit = lens _gdnLimit (\ s a -> s{_gdnLimit = a}); --- | The position of the current domain names to get information about.+-- | The current pagination position in the paged result set. gdnPosition :: Lens' GetDomainNames (Maybe Text) gdnPosition = lens _gdnPosition (\ s a -> s{_gdnPosition = a}); @@ -99,9 +97,9 @@                    (x .?> "item" .!@ mempty) <*> (x .?> "position") <*>                      (pure (fromEnum s))) -instance Hashable GetDomainNames+instance Hashable GetDomainNames where -instance NFData GetDomainNames+instance NFData GetDomainNames where  instance ToHeaders GetDomainNames where         toHeaders@@ -124,16 +122,17 @@ -- -- /See:/ 'getDomainNamesResponse' smart constructor. data GetDomainNamesResponse = GetDomainNamesResponse'-    { _gdnrsItems          :: !(Maybe [DomainName])-    , _gdnrsPosition       :: !(Maybe Text)-    , _gdnrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gdnrsItems          :: !(Maybe [DomainName])+  , _gdnrsPosition       :: !(Maybe Text)+  , _gdnrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetDomainNamesResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gdnrsItems' - The current page of any 'DomainName' resources in the collection of 'DomainName' resources.+-- * 'gdnrsItems' - The current page of elements from this collection. -- -- * 'gdnrsPosition' - Undocumented member. --@@ -142,13 +141,14 @@     :: Int -- ^ 'gdnrsResponseStatus'     -> GetDomainNamesResponse getDomainNamesResponse pResponseStatus_ =-    GetDomainNamesResponse'-    { _gdnrsItems = Nothing-    , _gdnrsPosition = Nothing-    , _gdnrsResponseStatus = pResponseStatus_-    }+  GetDomainNamesResponse'+  { _gdnrsItems = Nothing+  , _gdnrsPosition = Nothing+  , _gdnrsResponseStatus = pResponseStatus_+  } --- | The current page of any 'DomainName' resources in the collection of 'DomainName' resources.++-- | The current page of elements from this collection. gdnrsItems :: Lens' GetDomainNamesResponse [DomainName] gdnrsItems = lens _gdnrsItems (\ s a -> s{_gdnrsItems = a}) . _Default . _Coerce; @@ -160,4 +160,4 @@ gdnrsResponseStatus :: Lens' GetDomainNamesResponse Int gdnrsResponseStatus = lens _gdnrsResponseStatus (\ s a -> s{_gdnrsResponseStatus = a}); -instance NFData GetDomainNamesResponse+instance NFData GetDomainNamesResponse where
gen/Network/AWS/APIGateway/GetExport.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetExport--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -43,12 +43,12 @@     , gersResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request a new export of a 'RestApi' for a particular 'Stage' . --@@ -56,13 +56,14 @@ -- -- /See:/ 'getExport' smart constructor. data GetExport = GetExport'-    { _geParameters :: !(Maybe (Map Text Text))-    , _geAccepts    :: !(Maybe Text)-    , _geRestAPIId  :: !Text-    , _geStageName  :: !Text-    , _geExportType :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _geParameters :: !(Maybe (Map Text Text))+  , _geAccepts    :: !(Maybe Text)+  , _geRestAPIId  :: !Text+  , _geStageName  :: !Text+  , _geExportType :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetExport' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -71,7 +72,7 @@ -- -- * 'geAccepts' - The content-type of the export, for example @application/json@ . Currently @application/json@ and @application/yaml@ are supported for @exportType@ of @swagger@ . This should be specified in the @Accept@ header for direct API requests. ----- * 'geRestAPIId' - The identifier of the 'RestApi' to be exported.+-- * 'geRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'geStageName' - The name of the 'Stage' that will be exported. --@@ -82,14 +83,15 @@     -> Text -- ^ 'geExportType'     -> GetExport getExport pRestAPIId_ pStageName_ pExportType_ =-    GetExport'-    { _geParameters = Nothing-    , _geAccepts = Nothing-    , _geRestAPIId = pRestAPIId_-    , _geStageName = pStageName_-    , _geExportType = pExportType_-    }+  GetExport'+  { _geParameters = Nothing+  , _geAccepts = Nothing+  , _geRestAPIId = pRestAPIId_+  , _geStageName = pStageName_+  , _geExportType = pExportType_+  } + -- | A key-value map of query string parameters that specify properties of the export, depending on the requested @exportType@ . For @exportType@ @swagger@ , any combination of the following parameters are supported: @integrations@ will export the API with x-amazon-apigateway-integration 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 geParameters :: Lens' GetExport (HashMap Text Text) geParameters = lens _geParameters (\ s a -> s{_geParameters = a}) . _Default . _Map;@@ -98,7 +100,7 @@ geAccepts :: Lens' GetExport (Maybe Text) geAccepts = lens _geAccepts (\ s a -> s{_geAccepts = a}); --- | The identifier of the 'RestApi' to be exported.+-- | The string identifier of the associated 'RestApi' . geRestAPIId :: Lens' GetExport Text geRestAPIId = lens _geRestAPIId (\ s a -> s{_geRestAPIId = a}); @@ -121,9 +123,9 @@                      (h .#? "Content-Type")                      <*> (pure (fromEnum s))) -instance Hashable GetExport+instance Hashable GetExport where -instance NFData GetExport+instance NFData GetExport where  instance ToHeaders GetExport where         toHeaders GetExport'{..}@@ -150,12 +152,13 @@ -- -- /See:/ 'getExportResponse' smart constructor. data GetExportResponse = GetExportResponse'-    { _gersBody               :: !(Maybe (HashMap Text Value))-    , _gersContentDisposition :: !(Maybe Text)-    , _gersContentType        :: !(Maybe Text)-    , _gersResponseStatus     :: !Int-    } deriving (Eq,Show,Data,Typeable,Generic)+  { _gersBody               :: !(Maybe (HashMap Text Value))+  , _gersContentDisposition :: !(Maybe Text)+  , _gersContentType        :: !(Maybe Text)+  , _gersResponseStatus     :: !Int+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetExportResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -171,13 +174,14 @@     :: Int -- ^ 'gersResponseStatus'     -> GetExportResponse getExportResponse pResponseStatus_ =-    GetExportResponse'-    { _gersBody = Nothing-    , _gersContentDisposition = Nothing-    , _gersContentType = Nothing-    , _gersResponseStatus = pResponseStatus_-    }+  GetExportResponse'+  { _gersBody = Nothing+  , _gersContentDisposition = Nothing+  , _gersContentType = Nothing+  , _gersResponseStatus = pResponseStatus_+  } + -- | The binary blob response to 'GetExport' , which contains the export. gersBody :: Lens' GetExportResponse (Maybe (HashMap Text Value)) gersBody = lens _gersBody (\ s a -> s{_gersBody = a});@@ -194,4 +198,4 @@ gersResponseStatus :: Lens' GetExportResponse Int gersResponseStatus = lens _gersResponseStatus (\ s a -> s{_gersResponseStatus = a}); -instance NFData GetExportResponse+instance NFData GetExportResponse where
+ gen/Network/AWS/APIGateway/GetGatewayResponse.hs view
@@ -0,0 +1,108 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.APIGateway.GetGatewayResponse+-- Copyright   : (c) 2013-2017 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)+--+-- Gets a 'GatewayResponse' of a specified response type on the given 'RestApi' .+--+--+module Network.AWS.APIGateway.GetGatewayResponse+    (+    -- * Creating a Request+      getGatewayResponse+    , GetGatewayResponse+    -- * Request Lenses+    , gggRestAPIId+    , gggResponseType++    -- * Destructuring the Response+    , gatewayResponse+    , GatewayResponse+    -- * Response Lenses+    , gDefaultResponse+    , gResponseTemplates+    , gResponseType+    , gStatusCode+    , gResponseParameters+    ) where++import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | Gets a 'GatewayResponse' of a specified response type on the given 'RestApi' .+--+--+--+-- /See:/ 'getGatewayResponse' smart constructor.+data GetGatewayResponse = GetGatewayResponse'+  { _gggRestAPIId    :: !Text+  , _gggResponseType :: !GatewayResponseType+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetGatewayResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'gggRestAPIId' - The string identifier of the associated 'RestApi' .+--+-- * 'gggResponseType' - The response type of the associated 'GatewayResponse' . Valid values are     * ACCESS_DENIED    * API_CONFIGURATION_ERROR    * AUTHORIZER_FAILURE    * AUTHORIZER_CONFIGURATION_ERROR    * BAD_REQUEST_PARAMETERS    * BAD_REQUEST_BODY    * DEFAULT_4XX    * DEFAULT_5XX    * EXPIRED_TOKEN    * INVALID_SIGNATURE    * INTEGRATION_FAILURE    * INTEGRATION_TIMEOUT    * INVALID_API_KEY    * MISSING_AUTHENTICATION_TOKEN    * QUOTA_EXCEEDED    * REQUEST_TOO_LARGE    * RESOURCE_NOT_FOUND    * THROTTLED    * UNAUTHORIZED    * UNSUPPORTED_MEDIA_TYPES+getGatewayResponse+    :: Text -- ^ 'gggRestAPIId'+    -> GatewayResponseType -- ^ 'gggResponseType'+    -> GetGatewayResponse+getGatewayResponse pRestAPIId_ pResponseType_ =+  GetGatewayResponse'+  {_gggRestAPIId = pRestAPIId_, _gggResponseType = pResponseType_}+++-- | The string identifier of the associated 'RestApi' .+gggRestAPIId :: Lens' GetGatewayResponse Text+gggRestAPIId = lens _gggRestAPIId (\ s a -> s{_gggRestAPIId = a});++-- | The response type of the associated 'GatewayResponse' . Valid values are     * ACCESS_DENIED    * API_CONFIGURATION_ERROR    * AUTHORIZER_FAILURE    * AUTHORIZER_CONFIGURATION_ERROR    * BAD_REQUEST_PARAMETERS    * BAD_REQUEST_BODY    * DEFAULT_4XX    * DEFAULT_5XX    * EXPIRED_TOKEN    * INVALID_SIGNATURE    * INTEGRATION_FAILURE    * INTEGRATION_TIMEOUT    * INVALID_API_KEY    * MISSING_AUTHENTICATION_TOKEN    * QUOTA_EXCEEDED    * REQUEST_TOO_LARGE    * RESOURCE_NOT_FOUND    * THROTTLED    * UNAUTHORIZED    * UNSUPPORTED_MEDIA_TYPES+gggResponseType :: Lens' GetGatewayResponse GatewayResponseType+gggResponseType = lens _gggResponseType (\ s a -> s{_gggResponseType = a});++instance AWSRequest GetGatewayResponse where+        type Rs GetGatewayResponse = GatewayResponse+        request = get apiGateway+        response = receiveJSON (\ s h x -> eitherParseJSON x)++instance Hashable GetGatewayResponse where++instance NFData GetGatewayResponse where++instance ToHeaders GetGatewayResponse where+        toHeaders+          = const+              (mconcat+                 ["Accept" =# ("application/json" :: ByteString)])++instance ToPath GetGatewayResponse where+        toPath GetGatewayResponse'{..}+          = mconcat+              ["/restapis/", toBS _gggRestAPIId,+               "/gatewayresponses/", toBS _gggResponseType]++instance ToQuery GetGatewayResponse where+        toQuery = const mempty
+ gen/Network/AWS/APIGateway/GetGatewayResponses.hs view
@@ -0,0 +1,179 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.APIGateway.GetGatewayResponses+-- Copyright   : (c) 2013-2017 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)+--+-- 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 Amazon API Gateway-generated default 'GatewayResponses' collection for the supported response types.+--+--+module Network.AWS.APIGateway.GetGatewayResponses+    (+    -- * Creating a Request+      getGatewayResponses+    , GetGatewayResponses+    -- * Request Lenses+    , ggrLimit+    , ggrPosition+    , ggrRestAPIId++    -- * Destructuring the Response+    , getGatewayResponsesResponse+    , GetGatewayResponsesResponse+    -- * Response Lenses+    , ggrrsItems+    , ggrrsPosition+    , ggrrsResponseStatus+    ) where++import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | 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 Amazon API Gateway-generated default 'GatewayResponses' collection for the supported response types.+--+--+--+-- /See:/ 'getGatewayResponses' smart constructor.+data GetGatewayResponses = GetGatewayResponses'+  { _ggrLimit     :: !(Maybe Int)+  , _ggrPosition  :: !(Maybe Text)+  , _ggrRestAPIId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetGatewayResponses' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ggrLimit' - The maximum number of returned results per page. The 'GatewayResponses' collection does not support pagination and the limit does not apply here.+--+-- * 'ggrPosition' - The current pagination position in the paged result set. The 'GatewayResponse' collection does not support pagination and the position does not apply here.+--+-- * 'ggrRestAPIId' - The string identifier of the associated 'RestApi' .+getGatewayResponses+    :: Text -- ^ 'ggrRestAPIId'+    -> GetGatewayResponses+getGatewayResponses pRestAPIId_ =+  GetGatewayResponses'+  {_ggrLimit = Nothing, _ggrPosition = Nothing, _ggrRestAPIId = pRestAPIId_}+++-- | The maximum number of returned results per page. The 'GatewayResponses' collection does not support pagination and the limit does not apply here.+ggrLimit :: Lens' GetGatewayResponses (Maybe Int)+ggrLimit = lens _ggrLimit (\ s a -> s{_ggrLimit = a});++-- | The current pagination position in the paged result set. The 'GatewayResponse' collection does not support pagination and the position does not apply here.+ggrPosition :: Lens' GetGatewayResponses (Maybe Text)+ggrPosition = lens _ggrPosition (\ s a -> s{_ggrPosition = a});++-- | The string identifier of the associated 'RestApi' .+ggrRestAPIId :: Lens' GetGatewayResponses Text+ggrRestAPIId = lens _ggrRestAPIId (\ s a -> s{_ggrRestAPIId = a});++instance AWSRequest GetGatewayResponses where+        type Rs GetGatewayResponses =+             GetGatewayResponsesResponse+        request = get apiGateway+        response+          = receiveJSON+              (\ s h x ->+                 GetGatewayResponsesResponse' <$>+                   (x .?> "item" .!@ mempty) <*> (x .?> "position") <*>+                     (pure (fromEnum s)))++instance Hashable GetGatewayResponses where++instance NFData GetGatewayResponses where++instance ToHeaders GetGatewayResponses where+        toHeaders+          = const+              (mconcat+                 ["Accept" =# ("application/json" :: ByteString)])++instance ToPath GetGatewayResponses where+        toPath GetGatewayResponses'{..}+          = mconcat+              ["/restapis/", toBS _ggrRestAPIId,+               "/gatewayresponses"]++instance ToQuery GetGatewayResponses where+        toQuery GetGatewayResponses'{..}+          = mconcat+              ["limit" =: _ggrLimit, "position" =: _ggrPosition]++-- | 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 <http://docs.aws.amazon.com/apigateway/latest/developerguide/supported-gateway-response-types.html Gateway Response Types Supported by Amazon 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-0645d52cb515 @ @+--+-- __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" }, "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" } ] } }@ @+--+-- <http://docs.aws.amazon.com/apigateway/latest/developerguide/customize-gateway-responses.html Customize Gateway Responses>+--+-- /See:/ 'getGatewayResponsesResponse' smart constructor.+data GetGatewayResponsesResponse = GetGatewayResponsesResponse'+  { _ggrrsItems          :: !(Maybe [GatewayResponse])+  , _ggrrsPosition       :: !(Maybe Text)+  , _ggrrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetGatewayResponsesResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ggrrsItems' - Returns the entire collection, because of no pagination support.+--+-- * 'ggrrsPosition' - Undocumented member.+--+-- * 'ggrrsResponseStatus' - -- | The response status code.+getGatewayResponsesResponse+    :: Int -- ^ 'ggrrsResponseStatus'+    -> GetGatewayResponsesResponse+getGatewayResponsesResponse pResponseStatus_ =+  GetGatewayResponsesResponse'+  { _ggrrsItems = Nothing+  , _ggrrsPosition = Nothing+  , _ggrrsResponseStatus = pResponseStatus_+  }+++-- | Returns the entire collection, because of no pagination support.+ggrrsItems :: Lens' GetGatewayResponsesResponse [GatewayResponse]+ggrrsItems = lens _ggrrsItems (\ s a -> s{_ggrrsItems = a}) . _Default . _Coerce;++-- | Undocumented member.+ggrrsPosition :: Lens' GetGatewayResponsesResponse (Maybe Text)+ggrrsPosition = lens _ggrrsPosition (\ s a -> s{_ggrrsPosition = a});++-- | -- | The response status code.+ggrrsResponseStatus :: Lens' GetGatewayResponsesResponse Int+ggrrsResponseStatus = lens _ggrrsResponseStatus (\ s a -> s{_ggrrsResponseStatus = a});++instance NFData GetGatewayResponsesResponse where
gen/Network/AWS/APIGateway/GetIntegration.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetIntegration--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -48,12 +48,12 @@     , iCacheKeyParameters     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents a get integration request. --@@ -61,16 +61,17 @@ -- -- /See:/ 'getIntegration' smart constructor. data GetIntegration = GetIntegration'-    { _giRestAPIId  :: !Text-    , _giResourceId :: !Text-    , _giHttpMethod :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _giRestAPIId  :: !Text+  , _giResourceId :: !Text+  , _giHttpMethod :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetIntegration' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'giRestAPIId' - Specifies a get integration request's API identifier.+-- * 'giRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'giResourceId' - Specifies a get integration request's resource identifier --@@ -81,13 +82,14 @@     -> Text -- ^ 'giHttpMethod'     -> GetIntegration getIntegration pRestAPIId_ pResourceId_ pHttpMethod_ =-    GetIntegration'-    { _giRestAPIId = pRestAPIId_-    , _giResourceId = pResourceId_-    , _giHttpMethod = pHttpMethod_-    }+  GetIntegration'+  { _giRestAPIId = pRestAPIId_+  , _giResourceId = pResourceId_+  , _giHttpMethod = pHttpMethod_+  } --- | Specifies a get integration request's API identifier.++-- | The string identifier of the associated 'RestApi' . giRestAPIId :: Lens' GetIntegration Text giRestAPIId = lens _giRestAPIId (\ s a -> s{_giRestAPIId = a}); @@ -104,9 +106,9 @@         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetIntegration+instance Hashable GetIntegration where -instance NFData GetIntegration+instance NFData GetIntegration where  instance ToHeaders GetIntegration where         toHeaders
gen/Network/AWS/APIGateway/GetIntegrationResponse.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetIntegrationResponse--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -43,12 +43,12 @@     , intResponseParameters     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents a get integration response request. --@@ -56,17 +56,18 @@ -- -- /See:/ 'getIntegrationResponse' smart constructor. data GetIntegrationResponse = GetIntegrationResponse'-    { _giiRestAPIId  :: !Text-    , _giiResourceId :: !Text-    , _giiHttpMethod :: !Text-    , _giiStatusCode :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _giiRestAPIId  :: !Text+  , _giiResourceId :: !Text+  , _giiHttpMethod :: !Text+  , _giiStatusCode :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetIntegrationResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'giiRestAPIId' - Specifies a get integration response request's API identifier.+-- * 'giiRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'giiResourceId' - Specifies a get integration response request's resource identifier. --@@ -80,14 +81,15 @@     -> Text -- ^ 'giiStatusCode'     -> GetIntegrationResponse getIntegrationResponse pRestAPIId_ pResourceId_ pHttpMethod_ pStatusCode_ =-    GetIntegrationResponse'-    { _giiRestAPIId = pRestAPIId_-    , _giiResourceId = pResourceId_-    , _giiHttpMethod = pHttpMethod_-    , _giiStatusCode = pStatusCode_-    }+  GetIntegrationResponse'+  { _giiRestAPIId = pRestAPIId_+  , _giiResourceId = pResourceId_+  , _giiHttpMethod = pHttpMethod_+  , _giiStatusCode = pStatusCode_+  } --- | Specifies a get integration response request's API identifier.++-- | The string identifier of the associated 'RestApi' . giiRestAPIId :: Lens' GetIntegrationResponse Text giiRestAPIId = lens _giiRestAPIId (\ s a -> s{_giiRestAPIId = a}); @@ -108,9 +110,9 @@         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetIntegrationResponse+instance Hashable GetIntegrationResponse where -instance NFData GetIntegrationResponse+instance NFData GetIntegrationResponse where  instance ToHeaders GetIntegrationResponse where         toHeaders
gen/Network/AWS/APIGateway/GetMethod.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetMethod--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -37,20 +37,22 @@     -- * Response Lenses     , mMethodResponses     , mHttpMethod+    , mRequestValidatorId     , mRequestModels     , mRequestParameters     , mAuthorizerId+    , mOperationName     , mAuthorizationType     , mApiKeyRequired     , mMethodIntegration     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to describe an existing 'Method' resource. --@@ -58,16 +60,17 @@ -- -- /See:/ 'getMethod' smart constructor. data GetMethod = GetMethod'-    { _gmmRestAPIId  :: !Text-    , _gmmResourceId :: !Text-    , _gmmHttpMethod :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gmmRestAPIId  :: !Text+  , _gmmResourceId :: !Text+  , _gmmHttpMethod :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetMethod' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gmmRestAPIId' - The 'RestApi' identifier for the 'Method' resource.+-- * 'gmmRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'gmmResourceId' - The 'Resource' identifier for the 'Method' resource. --@@ -78,13 +81,14 @@     -> Text -- ^ 'gmmHttpMethod'     -> GetMethod getMethod pRestAPIId_ pResourceId_ pHttpMethod_ =-    GetMethod'-    { _gmmRestAPIId = pRestAPIId_-    , _gmmResourceId = pResourceId_-    , _gmmHttpMethod = pHttpMethod_-    }+  GetMethod'+  { _gmmRestAPIId = pRestAPIId_+  , _gmmResourceId = pResourceId_+  , _gmmHttpMethod = pHttpMethod_+  } --- | The 'RestApi' identifier for the 'Method' resource.++-- | The string identifier of the associated 'RestApi' . gmmRestAPIId :: Lens' GetMethod Text gmmRestAPIId = lens _gmmRestAPIId (\ s a -> s{_gmmRestAPIId = a}); @@ -101,9 +105,9 @@         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetMethod+instance Hashable GetMethod where -instance NFData GetMethod+instance NFData GetMethod where  instance ToHeaders GetMethod where         toHeaders
gen/Network/AWS/APIGateway/GetMethodResponse.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetMethodResponse--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -41,12 +41,12 @@     , mResponseParameters     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to describe a 'MethodResponse' resource. --@@ -54,17 +54,18 @@ -- -- /See:/ 'getMethodResponse' smart constructor. data GetMethodResponse = GetMethodResponse'-    { _gmRestAPIId  :: !Text-    , _gmResourceId :: !Text-    , _gmHttpMethod :: !Text-    , _gmStatusCode :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gmRestAPIId  :: !Text+  , _gmResourceId :: !Text+  , _gmHttpMethod :: !Text+  , _gmStatusCode :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetMethodResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gmRestAPIId' - The 'RestApi' identifier for the 'MethodResponse' resource.+-- * 'gmRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'gmResourceId' - The 'Resource' identifier for the 'MethodResponse' resource. --@@ -78,14 +79,15 @@     -> Text -- ^ 'gmStatusCode'     -> GetMethodResponse getMethodResponse pRestAPIId_ pResourceId_ pHttpMethod_ pStatusCode_ =-    GetMethodResponse'-    { _gmRestAPIId = pRestAPIId_-    , _gmResourceId = pResourceId_-    , _gmHttpMethod = pHttpMethod_-    , _gmStatusCode = pStatusCode_-    }+  GetMethodResponse'+  { _gmRestAPIId = pRestAPIId_+  , _gmResourceId = pResourceId_+  , _gmHttpMethod = pHttpMethod_+  , _gmStatusCode = pStatusCode_+  } --- | The 'RestApi' identifier for the 'MethodResponse' resource.++-- | The string identifier of the associated 'RestApi' . gmRestAPIId :: Lens' GetMethodResponse Text gmRestAPIId = lens _gmRestAPIId (\ s a -> s{_gmRestAPIId = a}); @@ -106,9 +108,9 @@         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetMethodResponse+instance Hashable GetMethodResponse where -instance NFData GetMethodResponse+instance NFData GetMethodResponse where  instance ToHeaders GetMethodResponse where         toHeaders
gen/Network/AWS/APIGateway/GetModel.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetModel--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -42,12 +42,12 @@     , mContentType     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to list information about a model in an existing 'RestApi' resource. --@@ -55,11 +55,12 @@ -- -- /See:/ 'getModel' smart constructor. data GetModel = GetModel'-    { _ggFlatten   :: !(Maybe Bool)-    , _ggRestAPIId :: !Text-    , _ggModelName :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _ggFlatten   :: !(Maybe Bool)+  , _ggRestAPIId :: !Text+  , _ggModelName :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetModel' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -74,12 +75,10 @@     -> Text -- ^ 'ggModelName'     -> GetModel getModel pRestAPIId_ pModelName_ =-    GetModel'-    { _ggFlatten = Nothing-    , _ggRestAPIId = pRestAPIId_-    , _ggModelName = pModelName_-    }+  GetModel'+  {_ggFlatten = Nothing, _ggRestAPIId = pRestAPIId_, _ggModelName = pModelName_} + -- | 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@ . ggFlatten :: Lens' GetModel (Maybe Bool) ggFlatten = lens _ggFlatten (\ s a -> s{_ggFlatten = a});@@ -97,9 +96,9 @@         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetModel+instance Hashable GetModel where -instance NFData GetModel+instance NFData GetModel where  instance ToHeaders GetModel where         toHeaders
gen/Network/AWS/APIGateway/GetModelTemplate.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetModelTemplate--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -38,12 +38,12 @@     , gmtrsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to generate a sample mapping template used to transform the payload. --@@ -51,15 +51,16 @@ -- -- /See:/ 'getModelTemplate' smart constructor. data GetModelTemplate = GetModelTemplate'-    { _gmtRestAPIId :: !Text-    , _gmtModelName :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gmtRestAPIId :: !Text+  , _gmtModelName :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetModelTemplate' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gmtRestAPIId' - The ID of the 'RestApi' under which the model exists.+-- * 'gmtRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'gmtModelName' - The name of the model for which to generate a template. getModelTemplate@@ -67,12 +68,10 @@     -> Text -- ^ 'gmtModelName'     -> GetModelTemplate getModelTemplate pRestAPIId_ pModelName_ =-    GetModelTemplate'-    { _gmtRestAPIId = pRestAPIId_-    , _gmtModelName = pModelName_-    }+  GetModelTemplate' {_gmtRestAPIId = pRestAPIId_, _gmtModelName = pModelName_} --- | The ID of the 'RestApi' under which the model exists.++-- | The string identifier of the associated 'RestApi' . gmtRestAPIId :: Lens' GetModelTemplate Text gmtRestAPIId = lens _gmtRestAPIId (\ s a -> s{_gmtRestAPIId = a}); @@ -89,9 +88,9 @@                  GetModelTemplateResponse' <$>                    (x .?> "value") <*> (pure (fromEnum s))) -instance Hashable GetModelTemplate+instance Hashable GetModelTemplate where -instance NFData GetModelTemplate+instance NFData GetModelTemplate where  instance ToHeaders GetModelTemplate where         toHeaders@@ -115,10 +114,11 @@ -- -- /See:/ 'getModelTemplateResponse' smart constructor. data GetModelTemplateResponse = GetModelTemplateResponse'-    { _gmtrsValue          :: !(Maybe Text)-    , _gmtrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gmtrsValue          :: !(Maybe Text)+  , _gmtrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetModelTemplateResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -130,11 +130,10 @@     :: Int -- ^ 'gmtrsResponseStatus'     -> GetModelTemplateResponse getModelTemplateResponse pResponseStatus_ =-    GetModelTemplateResponse'-    { _gmtrsValue = Nothing-    , _gmtrsResponseStatus = pResponseStatus_-    }+  GetModelTemplateResponse'+  {_gmtrsValue = Nothing, _gmtrsResponseStatus = pResponseStatus_} + -- | The Apache <http://velocity.apache.org/engine/devel/vtl-reference-guide.html Velocity Template Language (VTL)> template content used for the template resource. gmtrsValue :: Lens' GetModelTemplateResponse (Maybe Text) gmtrsValue = lens _gmtrsValue (\ s a -> s{_gmtrsValue = a});@@ -143,4 +142,4 @@ gmtrsResponseStatus :: Lens' GetModelTemplateResponse Int gmtrsResponseStatus = lens _gmtrsResponseStatus (\ s a -> s{_gmtrsResponseStatus = a}); -instance NFData GetModelTemplateResponse+instance NFData GetModelTemplateResponse where
gen/Network/AWS/APIGateway/GetModels.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetModels--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -42,13 +42,13 @@     , gmrsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Pager-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Pager+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to list existing 'Models' defined for a 'RestApi' resource. --@@ -56,39 +56,38 @@ -- -- /See:/ 'getModels' smart constructor. data GetModels = GetModels'-    { _gmsLimit     :: !(Maybe Int)-    , _gmsPosition  :: !(Maybe Text)-    , _gmsRestAPIId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gmsLimit     :: !(Maybe Int)+  , _gmsPosition  :: !(Maybe Text)+  , _gmsRestAPIId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetModels' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gmsLimit' - The maximum number of models in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.+-- * 'gmsLimit' - The maximum number of returned results per page. The value is 25 by default and could be between 1 - 500. ----- * 'gmsPosition' - The position of the next set of results in the 'Models' resource to get information about.+-- * 'gmsPosition' - The current pagination position in the paged result set. ----- * 'gmsRestAPIId' - The 'RestApi' identifier.+-- * 'gmsRestAPIId' - The string identifier of the associated 'RestApi' . getModels     :: Text -- ^ 'gmsRestAPIId'     -> GetModels getModels pRestAPIId_ =-    GetModels'-    { _gmsLimit = Nothing-    , _gmsPosition = Nothing-    , _gmsRestAPIId = pRestAPIId_-    }+  GetModels'+  {_gmsLimit = Nothing, _gmsPosition = Nothing, _gmsRestAPIId = pRestAPIId_} --- | The maximum number of models in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.++-- | The maximum number of returned results per page. The value is 25 by default and could be between 1 - 500. gmsLimit :: Lens' GetModels (Maybe Int) gmsLimit = lens _gmsLimit (\ s a -> s{_gmsLimit = a}); --- | The position of the next set of results in the 'Models' resource to get information about.+-- | The current pagination position in the paged result set. gmsPosition :: Lens' GetModels (Maybe Text) gmsPosition = lens _gmsPosition (\ s a -> s{_gmsPosition = a}); --- | The 'RestApi' identifier.+-- | The string identifier of the associated 'RestApi' . gmsRestAPIId :: Lens' GetModels Text gmsRestAPIId = lens _gmsRestAPIId (\ s a -> s{_gmsRestAPIId = a}); @@ -109,9 +108,9 @@                    (x .?> "item" .!@ mempty) <*> (x .?> "position") <*>                      (pure (fromEnum s))) -instance Hashable GetModels+instance Hashable GetModels where -instance NFData GetModels+instance NFData GetModels where  instance ToHeaders GetModels where         toHeaders@@ -136,16 +135,17 @@ -- -- /See:/ 'getModelsResponse' smart constructor. data GetModelsResponse = GetModelsResponse'-    { _gmrsItems          :: !(Maybe [Model])-    , _gmrsPosition       :: !(Maybe Text)-    , _gmrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gmrsItems          :: !(Maybe [Model])+  , _gmrsPosition       :: !(Maybe Text)+  , _gmrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetModelsResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gmrsItems' - Gets the current 'Model' resource in the collection.+-- * 'gmrsItems' - The current page of elements from this collection. -- -- * 'gmrsPosition' - Undocumented member. --@@ -154,13 +154,14 @@     :: Int -- ^ 'gmrsResponseStatus'     -> GetModelsResponse getModelsResponse pResponseStatus_ =-    GetModelsResponse'-    { _gmrsItems = Nothing-    , _gmrsPosition = Nothing-    , _gmrsResponseStatus = pResponseStatus_-    }+  GetModelsResponse'+  { _gmrsItems = Nothing+  , _gmrsPosition = Nothing+  , _gmrsResponseStatus = pResponseStatus_+  } --- | Gets the current 'Model' resource in the collection.++-- | The current page of elements from this collection. gmrsItems :: Lens' GetModelsResponse [Model] gmrsItems = lens _gmrsItems (\ s a -> s{_gmrsItems = a}) . _Default . _Coerce; @@ -172,4 +173,4 @@ gmrsResponseStatus :: Lens' GetModelsResponse Int gmrsResponseStatus = lens _gmrsResponseStatus (\ s a -> s{_gmrsResponseStatus = a}); -instance NFData GetModelsResponse+instance NFData GetModelsResponse where
+ gen/Network/AWS/APIGateway/GetRequestValidator.hs view
@@ -0,0 +1,107 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.APIGateway.GetRequestValidator+-- Copyright   : (c) 2013-2017 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)+--+-- Gets a 'RequestValidator' of a given 'RestApi' .+--+--+module Network.AWS.APIGateway.GetRequestValidator+    (+    -- * Creating a Request+      getRequestValidator+    , GetRequestValidator+    -- * Request Lenses+    , grvrRestAPIId+    , grvrRequestValidatorId++    -- * Destructuring the Response+    , requestValidator+    , RequestValidator+    -- * Response Lenses+    , rvValidateRequestParameters+    , rvName+    , rvValidateRequestBody+    , rvId+    ) where++import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | Gets a 'RequestValidator' of a given 'RestApi' .+--+--+--+-- /See:/ 'getRequestValidator' smart constructor.+data GetRequestValidator = GetRequestValidator'+  { _grvrRestAPIId          :: !Text+  , _grvrRequestValidatorId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetRequestValidator' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'grvrRestAPIId' - The string identifier of the associated 'RestApi' .+--+-- * 'grvrRequestValidatorId' - [Required] The identifier of the 'RequestValidator' to be retrieved.+getRequestValidator+    :: Text -- ^ 'grvrRestAPIId'+    -> Text -- ^ 'grvrRequestValidatorId'+    -> GetRequestValidator+getRequestValidator pRestAPIId_ pRequestValidatorId_ =+  GetRequestValidator'+  {_grvrRestAPIId = pRestAPIId_, _grvrRequestValidatorId = pRequestValidatorId_}+++-- | The string identifier of the associated 'RestApi' .+grvrRestAPIId :: Lens' GetRequestValidator Text+grvrRestAPIId = lens _grvrRestAPIId (\ s a -> s{_grvrRestAPIId = a});++-- | [Required] The identifier of the 'RequestValidator' to be retrieved.+grvrRequestValidatorId :: Lens' GetRequestValidator Text+grvrRequestValidatorId = lens _grvrRequestValidatorId (\ s a -> s{_grvrRequestValidatorId = a});++instance AWSRequest GetRequestValidator where+        type Rs GetRequestValidator = RequestValidator+        request = get apiGateway+        response = receiveJSON (\ s h x -> eitherParseJSON x)++instance Hashable GetRequestValidator where++instance NFData GetRequestValidator where++instance ToHeaders GetRequestValidator where+        toHeaders+          = const+              (mconcat+                 ["Accept" =# ("application/json" :: ByteString)])++instance ToPath GetRequestValidator where+        toPath GetRequestValidator'{..}+          = mconcat+              ["/restapis/", toBS _grvrRestAPIId,+               "/requestvalidators/", toBS _grvrRequestValidatorId]++instance ToQuery GetRequestValidator where+        toQuery = const mempty
+ gen/Network/AWS/APIGateway/GetRequestValidators.hs view
@@ -0,0 +1,170 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.APIGateway.GetRequestValidators+-- Copyright   : (c) 2013-2017 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)+--+-- Gets the 'RequestValidators' collection of a given 'RestApi' .+--+--+module Network.AWS.APIGateway.GetRequestValidators+    (+    -- * Creating a Request+      getRequestValidators+    , GetRequestValidators+    -- * Request Lenses+    , grvLimit+    , grvPosition+    , grvRestAPIId++    -- * Destructuring the Response+    , getRequestValidatorsResponse+    , GetRequestValidatorsResponse+    -- * Response Lenses+    , grvrsItems+    , grvrsPosition+    , grvrsResponseStatus+    ) where++import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | Gets the 'RequestValidators' collection of a given 'RestApi' .+--+--+--+-- /See:/ 'getRequestValidators' smart constructor.+data GetRequestValidators = GetRequestValidators'+  { _grvLimit     :: !(Maybe Int)+  , _grvPosition  :: !(Maybe Text)+  , _grvRestAPIId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetRequestValidators' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'grvLimit' - The maximum number of returned results per page.+--+-- * 'grvPosition' - The current pagination position in the paged result set.+--+-- * 'grvRestAPIId' - The string identifier of the associated 'RestApi' .+getRequestValidators+    :: Text -- ^ 'grvRestAPIId'+    -> GetRequestValidators+getRequestValidators pRestAPIId_ =+  GetRequestValidators'+  {_grvLimit = Nothing, _grvPosition = Nothing, _grvRestAPIId = pRestAPIId_}+++-- | The maximum number of returned results per page.+grvLimit :: Lens' GetRequestValidators (Maybe Int)+grvLimit = lens _grvLimit (\ s a -> s{_grvLimit = a});++-- | The current pagination position in the paged result set.+grvPosition :: Lens' GetRequestValidators (Maybe Text)+grvPosition = lens _grvPosition (\ s a -> s{_grvPosition = a});++-- | The string identifier of the associated 'RestApi' .+grvRestAPIId :: Lens' GetRequestValidators Text+grvRestAPIId = lens _grvRestAPIId (\ s a -> s{_grvRestAPIId = a});++instance AWSRequest GetRequestValidators where+        type Rs GetRequestValidators =+             GetRequestValidatorsResponse+        request = get apiGateway+        response+          = receiveJSON+              (\ s h x ->+                 GetRequestValidatorsResponse' <$>+                   (x .?> "item" .!@ mempty) <*> (x .?> "position") <*>+                     (pure (fromEnum s)))++instance Hashable GetRequestValidators where++instance NFData GetRequestValidators where++instance ToHeaders GetRequestValidators where+        toHeaders+          = const+              (mconcat+                 ["Accept" =# ("application/json" :: ByteString)])++instance ToPath GetRequestValidators where+        toPath GetRequestValidators'{..}+          = mconcat+              ["/restapis/", toBS _grvRestAPIId,+               "/requestvalidators"]++instance ToQuery GetRequestValidators where+        toQuery GetRequestValidators'{..}+          = mconcat+              ["limit" =: _grvLimit, "position" =: _grvPosition]++-- | A collection of 'RequestValidator' resources of a given 'RestApi' .+--+--+-- In Swagger, the 'RequestValidators' of an API is defined by the <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-swagger-extensions.html#api-gateway-swagger-extensions-request-validators.html x-amazon-apigateway-request-validators> extension.+--+-- <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-method-request-validation.html Enable Basic Request Validation in API Gateway>+--+-- /See:/ 'getRequestValidatorsResponse' smart constructor.+data GetRequestValidatorsResponse = GetRequestValidatorsResponse'+  { _grvrsItems          :: !(Maybe [RequestValidator])+  , _grvrsPosition       :: !(Maybe Text)+  , _grvrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetRequestValidatorsResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'grvrsItems' - The current page of elements from this collection.+--+-- * 'grvrsPosition' - Undocumented member.+--+-- * 'grvrsResponseStatus' - -- | The response status code.+getRequestValidatorsResponse+    :: Int -- ^ 'grvrsResponseStatus'+    -> GetRequestValidatorsResponse+getRequestValidatorsResponse pResponseStatus_ =+  GetRequestValidatorsResponse'+  { _grvrsItems = Nothing+  , _grvrsPosition = Nothing+  , _grvrsResponseStatus = pResponseStatus_+  }+++-- | The current page of elements from this collection.+grvrsItems :: Lens' GetRequestValidatorsResponse [RequestValidator]+grvrsItems = lens _grvrsItems (\ s a -> s{_grvrsItems = a}) . _Default . _Coerce;++-- | Undocumented member.+grvrsPosition :: Lens' GetRequestValidatorsResponse (Maybe Text)+grvrsPosition = lens _grvrsPosition (\ s a -> s{_grvrsPosition = a});++-- | -- | The response status code.+grvrsResponseStatus :: Lens' GetRequestValidatorsResponse Int+grvrsResponseStatus = lens _grvrsResponseStatus (\ s a -> s{_grvrsResponseStatus = a});++instance NFData GetRequestValidatorsResponse where
gen/Network/AWS/APIGateway/GetResource.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetResource--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -27,6 +27,7 @@       getResource     , GetResource     -- * Request Lenses+    , grEmbed     , grRestAPIId     , grResourceId @@ -41,12 +42,12 @@     , rParentId     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to list information about a resource. --@@ -54,28 +55,35 @@ -- -- /See:/ 'getResource' smart constructor. data GetResource = GetResource'-    { _grRestAPIId  :: !Text-    , _grResourceId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _grEmbed      :: !(Maybe [Text])+  , _grRestAPIId  :: !Text+  , _grResourceId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetResource' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'grRestAPIId' - The 'RestApi' identifier for the resource.+-- * 'grEmbed' - 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@ . --+-- * 'grRestAPIId' - The string identifier of the associated 'RestApi' .+-- -- * 'grResourceId' - The identifier for the 'Resource' resource. getResource     :: Text -- ^ 'grRestAPIId'     -> Text -- ^ 'grResourceId'     -> GetResource getResource pRestAPIId_ pResourceId_ =-    GetResource'-    { _grRestAPIId = pRestAPIId_-    , _grResourceId = pResourceId_-    }+  GetResource'+  {_grEmbed = Nothing, _grRestAPIId = pRestAPIId_, _grResourceId = pResourceId_} --- | The 'RestApi' identifier for the resource.++-- | 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@ .+grEmbed :: Lens' GetResource [Text]+grEmbed = lens _grEmbed (\ s a -> s{_grEmbed = a}) . _Default . _Coerce;++-- | The string identifier of the associated 'RestApi' . grRestAPIId :: Lens' GetResource Text grRestAPIId = lens _grRestAPIId (\ s a -> s{_grRestAPIId = a}); @@ -88,9 +96,9 @@         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetResource+instance Hashable GetResource where -instance NFData GetResource+instance NFData GetResource where  instance ToHeaders GetResource where         toHeaders@@ -105,4 +113,7 @@                toBS _grResourceId]  instance ToQuery GetResource where-        toQuery = const mempty+        toQuery GetResource'{..}+          = mconcat+              ["embed" =:+                 toQuery (toQueryList "member" <$> _grEmbed)]
gen/Network/AWS/APIGateway/GetResources.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetResources--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -29,6 +29,7 @@       getResources     , GetResources     -- * Request Lenses+    , grsEmbed     , grsLimit     , grsPosition     , grsRestAPIId@@ -42,13 +43,13 @@     , grrsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Pager-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Pager+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to list information about a collection of resources. --@@ -56,39 +57,49 @@ -- -- /See:/ 'getResources' smart constructor. data GetResources = GetResources'-    { _grsLimit     :: !(Maybe Int)-    , _grsPosition  :: !(Maybe Text)-    , _grsRestAPIId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _grsEmbed     :: !(Maybe [Text])+  , _grsLimit     :: !(Maybe Int)+  , _grsPosition  :: !(Maybe Text)+  , _grsRestAPIId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetResources' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'grsLimit' - The maximum number of 'Resource' resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.+-- * 'grsEmbed' - 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@ . ----- * 'grsPosition' - The position of the next set of results in the current 'Resources' resource to get information about.+-- * 'grsLimit' - The maximum number of returned results per page. The value is 25 by default and could be between 1 - 500. ----- * 'grsRestAPIId' - The 'RestApi' identifier for the Resource.+-- * 'grsPosition' - The current pagination position in the paged result set.+--+-- * 'grsRestAPIId' - The string identifier of the associated 'RestApi' . getResources     :: Text -- ^ 'grsRestAPIId'     -> GetResources getResources pRestAPIId_ =-    GetResources'-    { _grsLimit = Nothing-    , _grsPosition = Nothing-    , _grsRestAPIId = pRestAPIId_-    }+  GetResources'+  { _grsEmbed = Nothing+  , _grsLimit = Nothing+  , _grsPosition = Nothing+  , _grsRestAPIId = pRestAPIId_+  } --- | The maximum number of 'Resource' resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.++-- | 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@ .+grsEmbed :: Lens' GetResources [Text]+grsEmbed = lens _grsEmbed (\ s a -> s{_grsEmbed = a}) . _Default . _Coerce;++-- | The maximum number of returned results per page. The value is 25 by default and could be between 1 - 500. grsLimit :: Lens' GetResources (Maybe Int) grsLimit = lens _grsLimit (\ s a -> s{_grsLimit = a}); --- | The position of the next set of results in the current 'Resources' resource to get information about.+-- | The current pagination position in the paged result set. grsPosition :: Lens' GetResources (Maybe Text) grsPosition = lens _grsPosition (\ s a -> s{_grsPosition = a}); --- | The 'RestApi' identifier for the Resource.+-- | The string identifier of the associated 'RestApi' . grsRestAPIId :: Lens' GetResources Text grsRestAPIId = lens _grsRestAPIId (\ s a -> s{_grsRestAPIId = a}); @@ -109,9 +120,9 @@                    (x .?> "item" .!@ mempty) <*> (x .?> "position") <*>                      (pure (fromEnum s))) -instance Hashable GetResources+instance Hashable GetResources where -instance NFData GetResources+instance NFData GetResources where  instance ToHeaders GetResources where         toHeaders@@ -127,7 +138,9 @@ instance ToQuery GetResources where         toQuery GetResources'{..}           = mconcat-              ["limit" =: _grsLimit, "position" =: _grsPosition]+              ["embed" =:+                 toQuery (toQueryList "member" <$> _grsEmbed),+               "limit" =: _grsLimit, "position" =: _grsPosition]  -- | Represents a collection of 'Resource' resources. --@@ -136,16 +149,17 @@ -- -- /See:/ 'getResourcesResponse' smart constructor. data GetResourcesResponse = GetResourcesResponse'-    { _grrsItems          :: !(Maybe [Resource])-    , _grrsPosition       :: !(Maybe Text)-    , _grrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _grrsItems          :: !(Maybe [Resource])+  , _grrsPosition       :: !(Maybe Text)+  , _grrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetResourcesResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'grrsItems' - Gets the current 'Resource' resource in the collection.+-- * 'grrsItems' - The current page of elements from this collection. -- -- * 'grrsPosition' - Undocumented member. --@@ -154,13 +168,14 @@     :: Int -- ^ 'grrsResponseStatus'     -> GetResourcesResponse getResourcesResponse pResponseStatus_ =-    GetResourcesResponse'-    { _grrsItems = Nothing-    , _grrsPosition = Nothing-    , _grrsResponseStatus = pResponseStatus_-    }+  GetResourcesResponse'+  { _grrsItems = Nothing+  , _grrsPosition = Nothing+  , _grrsResponseStatus = pResponseStatus_+  } --- | Gets the current 'Resource' resource in the collection.++-- | The current page of elements from this collection. grrsItems :: Lens' GetResourcesResponse [Resource] grrsItems = lens _grrsItems (\ s a -> s{_grrsItems = a}) . _Default . _Coerce; @@ -172,4 +187,4 @@ grrsResponseStatus :: Lens' GetResourcesResponse Int grrsResponseStatus = lens _grrsResponseStatus (\ s a -> s{_grrsResponseStatus = a}); -instance NFData GetResourcesResponse+instance NFData GetResourcesResponse where
gen/Network/AWS/APIGateway/GetRestAPI.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetRestAPI--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -39,15 +39,16 @@     , raName     , raVersion     , raId+    , raEndpointConfiguration     , raDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | The GET request to list an existing 'RestApi' defined for your collection. --@@ -55,9 +56,10 @@ -- -- /See:/ 'getRestAPI' smart constructor. newtype GetRestAPI = GetRestAPI'-    { _graRestAPIId :: Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _graRestAPIId :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetRestAPI' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -66,11 +68,9 @@ getRestAPI     :: Text -- ^ 'graRestAPIId'     -> GetRestAPI-getRestAPI pRestAPIId_ =-    GetRestAPI'-    { _graRestAPIId = pRestAPIId_-    }+getRestAPI pRestAPIId_ = GetRestAPI' {_graRestAPIId = pRestAPIId_} + -- | The identifier of the 'RestApi' resource. graRestAPIId :: Lens' GetRestAPI Text graRestAPIId = lens _graRestAPIId (\ s a -> s{_graRestAPIId = a});@@ -80,9 +80,9 @@         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetRestAPI+instance Hashable GetRestAPI where -instance NFData GetRestAPI+instance NFData GetRestAPI where  instance ToHeaders GetRestAPI where         toHeaders
gen/Network/AWS/APIGateway/GetRestAPIs.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetRestAPIs--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -41,13 +41,13 @@     , grarsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Pager-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Pager+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | The GET request to list existing 'RestApis' defined for your collection. --@@ -55,30 +55,28 @@ -- -- /See:/ 'getRestAPIs' smart constructor. data GetRestAPIs = GetRestAPIs'-    { _graLimit    :: !(Maybe Int)-    , _graPosition :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _graLimit    :: !(Maybe Int)+  , _graPosition :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetRestAPIs' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'graLimit' - The maximum number of 'RestApi' resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.+-- * 'graLimit' - The maximum number of returned results per page. The value is 25 by default and could be between 1 - 500. ----- * 'graPosition' - The position of the current 'RestApis' resource in the collection to get information about.+-- * 'graPosition' - The current pagination position in the paged result set. getRestAPIs     :: GetRestAPIs-getRestAPIs =-    GetRestAPIs'-    { _graLimit = Nothing-    , _graPosition = Nothing-    }+getRestAPIs = GetRestAPIs' {_graLimit = Nothing, _graPosition = Nothing} --- | The maximum number of 'RestApi' resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.++-- | The maximum number of returned results per page. The value is 25 by default and could be between 1 - 500. graLimit :: Lens' GetRestAPIs (Maybe Int) graLimit = lens _graLimit (\ s a -> s{_graLimit = a}); --- | The position of the current 'RestApis' resource in the collection to get information about.+-- | The current pagination position in the paged result set. graPosition :: Lens' GetRestAPIs (Maybe Text) graPosition = lens _graPosition (\ s a -> s{_graPosition = a}); @@ -99,9 +97,9 @@                    (x .?> "item" .!@ mempty) <*> (x .?> "position") <*>                      (pure (fromEnum s))) -instance Hashable GetRestAPIs+instance Hashable GetRestAPIs where -instance NFData GetRestAPIs+instance NFData GetRestAPIs where  instance ToHeaders GetRestAPIs where         toHeaders@@ -124,16 +122,17 @@ -- -- /See:/ 'getRestAPIsResponse' smart constructor. data GetRestAPIsResponse = GetRestAPIsResponse'-    { _grarsItems          :: !(Maybe [RestAPI])-    , _grarsPosition       :: !(Maybe Text)-    , _grarsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _grarsItems          :: !(Maybe [RestAPI])+  , _grarsPosition       :: !(Maybe Text)+  , _grarsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetRestAPIsResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'grarsItems' - An array of links to the current page of 'RestApi' resources.+-- * 'grarsItems' - The current page of elements from this collection. -- -- * 'grarsPosition' - Undocumented member. --@@ -142,13 +141,14 @@     :: Int -- ^ 'grarsResponseStatus'     -> GetRestAPIsResponse getRestAPIsResponse pResponseStatus_ =-    GetRestAPIsResponse'-    { _grarsItems = Nothing-    , _grarsPosition = Nothing-    , _grarsResponseStatus = pResponseStatus_-    }+  GetRestAPIsResponse'+  { _grarsItems = Nothing+  , _grarsPosition = Nothing+  , _grarsResponseStatus = pResponseStatus_+  } --- | An array of links to the current page of 'RestApi' resources.++-- | The current page of elements from this collection. grarsItems :: Lens' GetRestAPIsResponse [RestAPI] grarsItems = lens _grarsItems (\ s a -> s{_grarsItems = a}) . _Default . _Coerce; @@ -160,4 +160,4 @@ grarsResponseStatus :: Lens' GetRestAPIsResponse Int grarsResponseStatus = lens _grarsResponseStatus (\ s a -> s{_grarsResponseStatus = a}); -instance NFData GetRestAPIsResponse+instance NFData GetRestAPIsResponse where
gen/Network/AWS/APIGateway/GetSDK.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetSDK--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -42,12 +42,12 @@     , gsdkrsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request a new generated client SDK for a 'RestApi' and 'Stage' . --@@ -55,41 +55,43 @@ -- -- /See:/ 'getSDK' smart constructor. data GetSDK = GetSDK'-    { _gsdkParameters :: !(Maybe (Map Text Text))-    , _gsdkRestAPIId  :: !Text-    , _gsdkStageName  :: !Text-    , _gsdkSdkType    :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gsdkParameters :: !(Maybe (Map Text Text))+  , _gsdkRestAPIId  :: !Text+  , _gsdkStageName  :: !Text+  , _gsdkSdkType    :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetSDK' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gsdkParameters' - A key-value map of query string parameters that specify properties of the SDK, depending on the requested @sdkType@ . For @sdkType@ of @objectivec@ , a parameter named @classPrefix@ is required. For @sdkType@ of @android@ , parameters named @groupId@ , @artifactId@ , @artifactVersion@ , and @invokerPackage@ are required.+-- * 'gsdkParameters' - 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. ----- * 'gsdkRestAPIId' - The identifier of the 'RestApi' that the SDK will use.+-- * 'gsdkRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'gsdkStageName' - The name of the 'Stage' that the SDK will use. ----- * 'gsdkSdkType' - The language for the generated SDK. Currently @javascript@ , @android@ , and @objectivec@ (for iOS) are supported.+-- * 'gsdkSdkType' - The language for the generated SDK. Currently @java@ , @javascript@ , @android@ , @objectivec@ and @swift@ (for iOS) are supported. getSDK     :: Text -- ^ 'gsdkRestAPIId'     -> Text -- ^ 'gsdkStageName'     -> Text -- ^ 'gsdkSdkType'     -> GetSDK getSDK pRestAPIId_ pStageName_ pSdkType_ =-    GetSDK'-    { _gsdkParameters = Nothing-    , _gsdkRestAPIId = pRestAPIId_-    , _gsdkStageName = pStageName_-    , _gsdkSdkType = pSdkType_-    }+  GetSDK'+  { _gsdkParameters = Nothing+  , _gsdkRestAPIId = pRestAPIId_+  , _gsdkStageName = pStageName_+  , _gsdkSdkType = pSdkType_+  } --- | A key-value map of query string parameters that specify properties of the SDK, depending on the requested @sdkType@ . For @sdkType@ of @objectivec@ , a parameter named @classPrefix@ is required. For @sdkType@ of @android@ , parameters named @groupId@ , @artifactId@ , @artifactVersion@ , and @invokerPackage@ are required.++-- | 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. gsdkParameters :: Lens' GetSDK (HashMap Text Text) gsdkParameters = lens _gsdkParameters (\ s a -> s{_gsdkParameters = a}) . _Default . _Map; --- | The identifier of the 'RestApi' that the SDK will use.+-- | The string identifier of the associated 'RestApi' . gsdkRestAPIId :: Lens' GetSDK Text gsdkRestAPIId = lens _gsdkRestAPIId (\ s a -> s{_gsdkRestAPIId = a}); @@ -97,7 +99,7 @@ gsdkStageName :: Lens' GetSDK Text gsdkStageName = lens _gsdkStageName (\ s a -> s{_gsdkStageName = a}); --- | The language for the generated SDK. Currently @javascript@ , @android@ , and @objectivec@ (for iOS) are supported.+-- | The language for the generated SDK. Currently @java@ , @javascript@ , @android@ , @objectivec@ and @swift@ (for iOS) are supported. gsdkSdkType :: Lens' GetSDK Text gsdkSdkType = lens _gsdkSdkType (\ s a -> s{_gsdkSdkType = a}); @@ -112,9 +114,9 @@                      (h .#? "Content-Type")                      <*> (pure (fromEnum s))) -instance Hashable GetSDK+instance Hashable GetSDK where -instance NFData GetSDK+instance NFData GetSDK where  instance ToHeaders GetSDK where         toHeaders@@ -142,12 +144,13 @@ -- -- /See:/ 'getSDKResponse' smart constructor. data GetSDKResponse = GetSDKResponse'-    { _gsdkrsBody               :: !(Maybe (HashMap Text Value))-    , _gsdkrsContentDisposition :: !(Maybe Text)-    , _gsdkrsContentType        :: !(Maybe Text)-    , _gsdkrsResponseStatus     :: !Int-    } deriving (Eq,Show,Data,Typeable,Generic)+  { _gsdkrsBody               :: !(Maybe (HashMap Text Value))+  , _gsdkrsContentDisposition :: !(Maybe Text)+  , _gsdkrsContentType        :: !(Maybe Text)+  , _gsdkrsResponseStatus     :: !Int+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetSDKResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -163,13 +166,14 @@     :: Int -- ^ 'gsdkrsResponseStatus'     -> GetSDKResponse getSDKResponse pResponseStatus_ =-    GetSDKResponse'-    { _gsdkrsBody = Nothing-    , _gsdkrsContentDisposition = Nothing-    , _gsdkrsContentType = Nothing-    , _gsdkrsResponseStatus = pResponseStatus_-    }+  GetSDKResponse'+  { _gsdkrsBody = Nothing+  , _gsdkrsContentDisposition = Nothing+  , _gsdkrsContentType = Nothing+  , _gsdkrsResponseStatus = pResponseStatus_+  } + -- | The binary blob response to 'GetSdk' , which contains the generated SDK. gsdkrsBody :: Lens' GetSDKResponse (Maybe (HashMap Text Value)) gsdkrsBody = lens _gsdkrsBody (\ s a -> s{_gsdkrsBody = a});@@ -186,4 +190,4 @@ gsdkrsResponseStatus :: Lens' GetSDKResponse Int gsdkrsResponseStatus = lens _gsdkrsResponseStatus (\ s a -> s{_gsdkrsResponseStatus = a}); -instance NFData GetSDKResponse+instance NFData GetSDKResponse where
+ gen/Network/AWS/APIGateway/GetSDKType.hs view
@@ -0,0 +1,92 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.APIGateway.GetSDKType+-- Copyright   : (c) 2013-2017 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)+--+-- Undocumented operation.+module Network.AWS.APIGateway.GetSDKType+    (+    -- * Creating a Request+      getSDKType+    , GetSDKType+    -- * Request Lenses+    , gstId++    -- * Destructuring the Response+    , sdkType+    , SDKType+    -- * Response Lenses+    , stFriendlyName+    , stConfigurationProperties+    , stId+    , stDescription+    ) where++import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | Get an 'SdkType' instance.+--+--+--+-- /See:/ 'getSDKType' smart constructor.+newtype GetSDKType = GetSDKType'+  { _gstId :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetSDKType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'gstId' - The identifier of the queried 'SdkType' instance.+getSDKType+    :: Text -- ^ 'gstId'+    -> GetSDKType+getSDKType pId_ = GetSDKType' {_gstId = pId_}+++-- | The identifier of the queried 'SdkType' instance.+gstId :: Lens' GetSDKType Text+gstId = lens _gstId (\ s a -> s{_gstId = a});++instance AWSRequest GetSDKType where+        type Rs GetSDKType = SDKType+        request = get apiGateway+        response = receiveJSON (\ s h x -> eitherParseJSON x)++instance Hashable GetSDKType where++instance NFData GetSDKType where++instance ToHeaders GetSDKType where+        toHeaders+          = const+              (mconcat+                 ["Accept" =# ("application/json" :: ByteString)])++instance ToPath GetSDKType where+        toPath GetSDKType'{..}+          = mconcat ["/sdktypes/", toBS _gstId]++instance ToQuery GetSDKType where+        toQuery = const mempty
+ gen/Network/AWS/APIGateway/GetSDKTypes.hs view
@@ -0,0 +1,150 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.APIGateway.GetSDKTypes+-- Copyright   : (c) 2013-2017 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)+--+-- Undocumented operation.+module Network.AWS.APIGateway.GetSDKTypes+    (+    -- * Creating a Request+      getSDKTypes+    , GetSDKTypes+    -- * Request Lenses+    , gstLimit+    , gstPosition++    -- * Destructuring the Response+    , getSDKTypesResponse+    , GetSDKTypesResponse+    -- * Response Lenses+    , gstrsItems+    , gstrsPosition+    , gstrsResponseStatus+    ) where++import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | Get the 'SdkTypes' collection.+--+--+--+-- /See:/ 'getSDKTypes' smart constructor.+data GetSDKTypes = GetSDKTypes'+  { _gstLimit    :: !(Maybe Int)+  , _gstPosition :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetSDKTypes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'gstLimit' - The maximum number of returned results per page.+--+-- * 'gstPosition' - The current pagination position in the paged result set.+getSDKTypes+    :: GetSDKTypes+getSDKTypes = GetSDKTypes' {_gstLimit = Nothing, _gstPosition = Nothing}+++-- | The maximum number of returned results per page.+gstLimit :: Lens' GetSDKTypes (Maybe Int)+gstLimit = lens _gstLimit (\ s a -> s{_gstLimit = a});++-- | The current pagination position in the paged result set.+gstPosition :: Lens' GetSDKTypes (Maybe Text)+gstPosition = lens _gstPosition (\ s a -> s{_gstPosition = a});++instance AWSRequest GetSDKTypes where+        type Rs GetSDKTypes = GetSDKTypesResponse+        request = get apiGateway+        response+          = receiveJSON+              (\ s h x ->+                 GetSDKTypesResponse' <$>+                   (x .?> "item" .!@ mempty) <*> (x .?> "position") <*>+                     (pure (fromEnum s)))++instance Hashable GetSDKTypes where++instance NFData GetSDKTypes where++instance ToHeaders GetSDKTypes where+        toHeaders+          = const+              (mconcat+                 ["Accept" =# ("application/json" :: ByteString)])++instance ToPath GetSDKTypes where+        toPath = const "/sdktypes"++instance ToQuery GetSDKTypes where+        toQuery GetSDKTypes'{..}+          = mconcat+              ["limit" =: _gstLimit, "position" =: _gstPosition]++-- | The collection of 'SdkType' instances.+--+--+--+-- /See:/ 'getSDKTypesResponse' smart constructor.+data GetSDKTypesResponse = GetSDKTypesResponse'+  { _gstrsItems          :: !(Maybe [SDKType])+  , _gstrsPosition       :: !(Maybe Text)+  , _gstrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetSDKTypesResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'gstrsItems' - The current page of elements from this collection.+--+-- * 'gstrsPosition' - Undocumented member.+--+-- * 'gstrsResponseStatus' - -- | The response status code.+getSDKTypesResponse+    :: Int -- ^ 'gstrsResponseStatus'+    -> GetSDKTypesResponse+getSDKTypesResponse pResponseStatus_ =+  GetSDKTypesResponse'+  { _gstrsItems = Nothing+  , _gstrsPosition = Nothing+  , _gstrsResponseStatus = pResponseStatus_+  }+++-- | The current page of elements from this collection.+gstrsItems :: Lens' GetSDKTypesResponse [SDKType]+gstrsItems = lens _gstrsItems (\ s a -> s{_gstrsItems = a}) . _Default . _Coerce;++-- | Undocumented member.+gstrsPosition :: Lens' GetSDKTypesResponse (Maybe Text)+gstrsPosition = lens _gstrsPosition (\ s a -> s{_gstrsPosition = a});++-- | -- | The response status code.+gstrsResponseStatus :: Lens' GetSDKTypesResponse Int+gstrsResponseStatus = lens _gstrsResponseStatus (\ s a -> s{_gstrsResponseStatus = a});++instance NFData GetSDKTypesResponse where
gen/Network/AWS/APIGateway/GetStage.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetStage--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -48,12 +48,12 @@     , sDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Requests Amazon API Gateway to get information about a 'Stage' resource. --@@ -61,15 +61,16 @@ -- -- /See:/ 'getStage' smart constructor. data GetStage = GetStage'-    { _gssRestAPIId :: !Text-    , _gssStageName :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gssRestAPIId :: !Text+  , _gssStageName :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetStage' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gssRestAPIId' - The identifier of the 'RestApi' resource for the 'Stage' resource to get information about.+-- * 'gssRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'gssStageName' - The name of the 'Stage' resource to get information about. getStage@@ -77,12 +78,10 @@     -> Text -- ^ 'gssStageName'     -> GetStage getStage pRestAPIId_ pStageName_ =-    GetStage'-    { _gssRestAPIId = pRestAPIId_-    , _gssStageName = pStageName_-    }+  GetStage' {_gssRestAPIId = pRestAPIId_, _gssStageName = pStageName_} --- | The identifier of the 'RestApi' resource for the 'Stage' resource to get information about.++-- | The string identifier of the associated 'RestApi' . gssRestAPIId :: Lens' GetStage Text gssRestAPIId = lens _gssRestAPIId (\ s a -> s{_gssRestAPIId = a}); @@ -95,9 +94,9 @@         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetStage+instance Hashable GetStage where -instance NFData GetStage+instance NFData GetStage where  instance ToHeaders GetStage where         toHeaders
gen/Network/AWS/APIGateway/GetStages.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetStages--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -38,12 +38,12 @@     , gsrsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Requests Amazon API Gateway to get information about one or more 'Stage' resources. --@@ -51,31 +51,30 @@ -- -- /See:/ 'getStages' smart constructor. data GetStages = GetStages'-    { _gsDeploymentId :: !(Maybe Text)-    , _gsRestAPIId    :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gsDeploymentId :: !(Maybe Text)+  , _gsRestAPIId    :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetStages' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'gsDeploymentId' - The stages' deployment identifiers. ----- * 'gsRestAPIId' - The stages' API identifiers.+-- * 'gsRestAPIId' - The string identifier of the associated 'RestApi' . getStages     :: Text -- ^ 'gsRestAPIId'     -> GetStages getStages pRestAPIId_ =-    GetStages'-    { _gsDeploymentId = Nothing-    , _gsRestAPIId = pRestAPIId_-    }+  GetStages' {_gsDeploymentId = Nothing, _gsRestAPIId = pRestAPIId_} + -- | The stages' deployment identifiers. gsDeploymentId :: Lens' GetStages (Maybe Text) gsDeploymentId = lens _gsDeploymentId (\ s a -> s{_gsDeploymentId = a}); --- | The stages' API identifiers.+-- | The string identifier of the associated 'RestApi' . gsRestAPIId :: Lens' GetStages Text gsRestAPIId = lens _gsRestAPIId (\ s a -> s{_gsRestAPIId = a}); @@ -88,9 +87,9 @@                  GetStagesResponse' <$>                    (x .?> "item" .!@ mempty) <*> (pure (fromEnum s))) -instance Hashable GetStages+instance Hashable GetStages where -instance NFData GetStages+instance NFData GetStages where  instance ToHeaders GetStages where         toHeaders@@ -114,27 +113,27 @@ -- -- /See:/ 'getStagesResponse' smart constructor. data GetStagesResponse = GetStagesResponse'-    { _gsrsItem           :: !(Maybe [Stage])-    , _gsrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gsrsItem           :: !(Maybe [Stage])+  , _gsrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetStagesResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gsrsItem' - An individual 'Stage' resource.+-- * 'gsrsItem' - The current page of elements from this collection. -- -- * 'gsrsResponseStatus' - -- | The response status code. getStagesResponse     :: Int -- ^ 'gsrsResponseStatus'     -> GetStagesResponse getStagesResponse pResponseStatus_ =-    GetStagesResponse'-    { _gsrsItem = Nothing-    , _gsrsResponseStatus = pResponseStatus_-    }+  GetStagesResponse'+  {_gsrsItem = Nothing, _gsrsResponseStatus = pResponseStatus_} --- | An individual 'Stage' resource.++-- | The current page of elements from this collection. gsrsItem :: Lens' GetStagesResponse [Stage] gsrsItem = lens _gsrsItem (\ s a -> s{_gsrsItem = a}) . _Default . _Coerce; @@ -142,4 +141,4 @@ gsrsResponseStatus :: Lens' GetStagesResponse Int gsrsResponseStatus = lens _gsrsResponseStatus (\ s a -> s{_gsrsResponseStatus = a}); -instance NFData GetStagesResponse+instance NFData GetStagesResponse where
gen/Network/AWS/APIGateway/GetUsage.hs view
@@ -12,15 +12,17 @@  -- | -- Module      : Network.AWS.APIGateway.GetUsage--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- -- Gets the usage data of a usage plan in a specified time interval. -- --+--+-- This operation returns paginated results. module Network.AWS.APIGateway.GetUsage     (     -- * Creating a Request@@ -45,12 +47,13 @@     , uPosition     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Pager+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | The GET request to get the usage data of a usage plan in a specified time interval. --@@ -58,23 +61,24 @@ -- -- /See:/ 'getUsage' smart constructor. data GetUsage = GetUsage'-    { _guKeyId       :: !(Maybe Text)-    , _guLimit       :: !(Maybe Int)-    , _guPosition    :: !(Maybe Text)-    , _guUsagePlanId :: !Text-    , _guStartDate   :: !Text-    , _guEndDate     :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _guKeyId       :: !(Maybe Text)+  , _guLimit       :: !(Maybe Int)+  , _guPosition    :: !(Maybe Text)+  , _guUsagePlanId :: !Text+  , _guStartDate   :: !Text+  , _guEndDate     :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetUsage' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'guKeyId' - The Id of the API key associated with the resultant usage data. ----- * 'guLimit' - The maximum number of results to be returned.+-- * 'guLimit' - The maximum number of returned results per page. ----- * 'guPosition' - Position+-- * 'guPosition' - The current pagination position in the paged result set. -- -- * 'guUsagePlanId' - The Id of the usage plan associated with the usage data. --@@ -87,24 +91,25 @@     -> Text -- ^ 'guEndDate'     -> GetUsage getUsage pUsagePlanId_ pStartDate_ pEndDate_ =-    GetUsage'-    { _guKeyId = Nothing-    , _guLimit = Nothing-    , _guPosition = Nothing-    , _guUsagePlanId = pUsagePlanId_-    , _guStartDate = pStartDate_-    , _guEndDate = pEndDate_-    }+  GetUsage'+  { _guKeyId = Nothing+  , _guLimit = Nothing+  , _guPosition = Nothing+  , _guUsagePlanId = pUsagePlanId_+  , _guStartDate = pStartDate_+  , _guEndDate = pEndDate_+  } + -- | The Id of the API key associated with the resultant usage data. guKeyId :: Lens' GetUsage (Maybe Text) guKeyId = lens _guKeyId (\ s a -> s{_guKeyId = a}); --- | The maximum number of results to be returned.+-- | The maximum number of returned results per page. guLimit :: Lens' GetUsage (Maybe Int) guLimit = lens _guLimit (\ s a -> s{_guLimit = a}); --- | Position+-- | The current pagination position in the paged result set. guPosition :: Lens' GetUsage (Maybe Text) guPosition = lens _guPosition (\ s a -> s{_guPosition = a}); @@ -120,14 +125,21 @@ guEndDate :: Lens' GetUsage Text guEndDate = lens _guEndDate (\ s a -> s{_guEndDate = a}); +instance AWSPager GetUsage where+        page rq rs+          | stop (rs ^. uPosition) = Nothing+          | stop (rs ^. uItems) = Nothing+          | otherwise =+            Just $ rq & guPosition .~ rs ^. uPosition+ instance AWSRequest GetUsage where         type Rs GetUsage = Usage         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetUsage+instance Hashable GetUsage where -instance NFData GetUsage+instance NFData GetUsage where  instance ToHeaders GetUsage where         toHeaders
gen/Network/AWS/APIGateway/GetUsagePlan.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetUsagePlan--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -42,12 +42,12 @@     , upProductCode     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | The GET request to get a usage plan of a given plan identifier. --@@ -55,9 +55,10 @@ -- -- /See:/ 'getUsagePlan' smart constructor. newtype GetUsagePlan = GetUsagePlan'-    { _gupUsagePlanId :: Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gupUsagePlanId :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetUsagePlan' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -66,11 +67,9 @@ getUsagePlan     :: Text -- ^ 'gupUsagePlanId'     -> GetUsagePlan-getUsagePlan pUsagePlanId_ =-    GetUsagePlan'-    { _gupUsagePlanId = pUsagePlanId_-    }+getUsagePlan pUsagePlanId_ = GetUsagePlan' {_gupUsagePlanId = pUsagePlanId_} + -- | The identifier of the 'UsagePlan' resource to be retrieved. gupUsagePlanId :: Lens' GetUsagePlan Text gupUsagePlanId = lens _gupUsagePlanId (\ s a -> s{_gupUsagePlanId = a});@@ -80,9 +79,9 @@         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetUsagePlan+instance Hashable GetUsagePlan where -instance NFData GetUsagePlan+instance NFData GetUsagePlan where  instance ToHeaders GetUsagePlan where         toHeaders
gen/Network/AWS/APIGateway/GetUsagePlanKey.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.GetUsagePlanKey--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -40,12 +40,12 @@     , upkType     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | The GET request to get a usage plan key of a given key identifier. --@@ -53,10 +53,11 @@ -- -- /See:/ 'getUsagePlanKey' smart constructor. data GetUsagePlanKey = GetUsagePlanKey'-    { _gUsagePlanId :: !Text-    , _gKeyId       :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gUsagePlanId :: !Text+  , _gKeyId       :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetUsagePlanKey' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -69,11 +70,9 @@     -> Text -- ^ 'gKeyId'     -> GetUsagePlanKey getUsagePlanKey pUsagePlanId_ pKeyId_ =-    GetUsagePlanKey'-    { _gUsagePlanId = pUsagePlanId_-    , _gKeyId = pKeyId_-    }+  GetUsagePlanKey' {_gUsagePlanId = pUsagePlanId_, _gKeyId = pKeyId_} + -- | The Id of the 'UsagePlan' resource representing the usage plan containing the to-be-retrieved 'UsagePlanKey' resource representing a plan customer. gUsagePlanId :: Lens' GetUsagePlanKey Text gUsagePlanId = lens _gUsagePlanId (\ s a -> s{_gUsagePlanId = a});@@ -87,9 +86,9 @@         request = get apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable GetUsagePlanKey+instance Hashable GetUsagePlanKey where -instance NFData GetUsagePlanKey+instance NFData GetUsagePlanKey where  instance ToHeaders GetUsagePlanKey where         toHeaders
gen/Network/AWS/APIGateway/GetUsagePlanKeys.hs view
@@ -12,15 +12,17 @@  -- | -- Module      : Network.AWS.APIGateway.GetUsagePlanKeys--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- -- Gets all the usage plan keys representing the API keys added to a specified usage plan. -- --+--+-- This operation returns paginated results. module Network.AWS.APIGateway.GetUsagePlanKeys     (     -- * Creating a Request@@ -41,12 +43,13 @@     , gupkrsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Pager+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | The GET request to get all the usage plan keys representing the API keys added to a specified usage plan. --@@ -54,43 +57,45 @@ -- -- /See:/ 'getUsagePlanKeys' smart constructor. data GetUsagePlanKeys = GetUsagePlanKeys'-    { _gupkNameQuery   :: !(Maybe Text)-    , _gupkLimit       :: !(Maybe Int)-    , _gupkPosition    :: !(Maybe Text)-    , _gupkUsagePlanId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gupkNameQuery   :: !(Maybe Text)+  , _gupkLimit       :: !(Maybe Int)+  , _gupkPosition    :: !(Maybe Text)+  , _gupkUsagePlanId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetUsagePlanKeys' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'gupkNameQuery' - A query parameter specifying the name of the to-be-returned usage plan keys. ----- * 'gupkLimit' - A query parameter specifying the maximum number usage plan keys returned by the GET request.+-- * 'gupkLimit' - The maximum number of returned results per page. ----- * 'gupkPosition' - A query parameter specifying the zero-based index specifying the position of a usage plan key.+-- * 'gupkPosition' - The current pagination position in the paged result set. -- -- * 'gupkUsagePlanId' - The Id of the 'UsagePlan' resource representing the usage plan containing the to-be-retrieved 'UsagePlanKey' resource representing a plan customer. getUsagePlanKeys     :: Text -- ^ 'gupkUsagePlanId'     -> GetUsagePlanKeys getUsagePlanKeys pUsagePlanId_ =-    GetUsagePlanKeys'-    { _gupkNameQuery = Nothing-    , _gupkLimit = Nothing-    , _gupkPosition = Nothing-    , _gupkUsagePlanId = pUsagePlanId_-    }+  GetUsagePlanKeys'+  { _gupkNameQuery = Nothing+  , _gupkLimit = Nothing+  , _gupkPosition = Nothing+  , _gupkUsagePlanId = pUsagePlanId_+  } + -- | A query parameter specifying the name of the to-be-returned usage plan keys. gupkNameQuery :: Lens' GetUsagePlanKeys (Maybe Text) gupkNameQuery = lens _gupkNameQuery (\ s a -> s{_gupkNameQuery = a}); --- | A query parameter specifying the maximum number usage plan keys returned by the GET request.+-- | The maximum number of returned results per page. gupkLimit :: Lens' GetUsagePlanKeys (Maybe Int) gupkLimit = lens _gupkLimit (\ s a -> s{_gupkLimit = a}); --- | A query parameter specifying the zero-based index specifying the position of a usage plan key.+-- | The current pagination position in the paged result set. gupkPosition :: Lens' GetUsagePlanKeys (Maybe Text) gupkPosition = lens _gupkPosition (\ s a -> s{_gupkPosition = a}); @@ -98,6 +103,13 @@ gupkUsagePlanId :: Lens' GetUsagePlanKeys Text gupkUsagePlanId = lens _gupkUsagePlanId (\ s a -> s{_gupkUsagePlanId = a}); +instance AWSPager GetUsagePlanKeys where+        page rq rs+          | stop (rs ^. gupkrsPosition) = Nothing+          | stop (rs ^. gupkrsItems) = Nothing+          | otherwise =+            Just $ rq & gupkPosition .~ rs ^. gupkrsPosition+ instance AWSRequest GetUsagePlanKeys where         type Rs GetUsagePlanKeys = GetUsagePlanKeysResponse         request = get apiGateway@@ -108,9 +120,9 @@                    (x .?> "item" .!@ mempty) <*> (x .?> "position") <*>                      (pure (fromEnum s))) -instance Hashable GetUsagePlanKeys+instance Hashable GetUsagePlanKeys where -instance NFData GetUsagePlanKeys+instance NFData GetUsagePlanKeys where  instance ToHeaders GetUsagePlanKeys where         toHeaders@@ -136,16 +148,17 @@ -- -- /See:/ 'getUsagePlanKeysResponse' smart constructor. data GetUsagePlanKeysResponse = GetUsagePlanKeysResponse'-    { _gupkrsItems          :: !(Maybe [UsagePlanKey])-    , _gupkrsPosition       :: !(Maybe Text)-    , _gupkrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gupkrsItems          :: !(Maybe [UsagePlanKey])+  , _gupkrsPosition       :: !(Maybe Text)+  , _gupkrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetUsagePlanKeysResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gupkrsItems' - Gets the current item of the usage plan keys collection.+-- * 'gupkrsItems' - The current page of elements from this collection. -- -- * 'gupkrsPosition' - Undocumented member. --@@ -154,13 +167,14 @@     :: Int -- ^ 'gupkrsResponseStatus'     -> GetUsagePlanKeysResponse getUsagePlanKeysResponse pResponseStatus_ =-    GetUsagePlanKeysResponse'-    { _gupkrsItems = Nothing-    , _gupkrsPosition = Nothing-    , _gupkrsResponseStatus = pResponseStatus_-    }+  GetUsagePlanKeysResponse'+  { _gupkrsItems = Nothing+  , _gupkrsPosition = Nothing+  , _gupkrsResponseStatus = pResponseStatus_+  } --- | Gets the current item of the usage plan keys collection.++-- | The current page of elements from this collection. gupkrsItems :: Lens' GetUsagePlanKeysResponse [UsagePlanKey] gupkrsItems = lens _gupkrsItems (\ s a -> s{_gupkrsItems = a}) . _Default . _Coerce; @@ -172,4 +186,4 @@ gupkrsResponseStatus :: Lens' GetUsagePlanKeysResponse Int gupkrsResponseStatus = lens _gupkrsResponseStatus (\ s a -> s{_gupkrsResponseStatus = a}); -instance NFData GetUsagePlanKeysResponse+instance NFData GetUsagePlanKeysResponse where
gen/Network/AWS/APIGateway/GetUsagePlans.hs view
@@ -12,15 +12,17 @@  -- | -- Module      : Network.AWS.APIGateway.GetUsagePlans--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- -- Gets all the usage plans of the caller's account. -- --+--+-- This operation returns paginated results. module Network.AWS.APIGateway.GetUsagePlans     (     -- * Creating a Request@@ -40,12 +42,13 @@     , guprsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Pager+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | The GET request to get all the usage plans of the caller's account. --@@ -53,41 +56,47 @@ -- -- /See:/ 'getUsagePlans' smart constructor. data GetUsagePlans = GetUsagePlans'-    { _gupKeyId    :: !(Maybe Text)-    , _gupLimit    :: !(Maybe Int)-    , _gupPosition :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _gupKeyId    :: !(Maybe Text)+  , _gupLimit    :: !(Maybe Int)+  , _gupPosition :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetUsagePlans' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'gupKeyId' - The identifier of the API key associated with the usage plans. ----- * 'gupLimit' - The number of 'UsagePlan' resources to be returned as the result.+-- * 'gupLimit' - The maximum number of returned results per page. ----- * 'gupPosition' - The zero-based array index specifying the position of the to-be-retrieved 'UsagePlan' resource.+-- * 'gupPosition' - The current pagination position in the paged result set. getUsagePlans     :: GetUsagePlans getUsagePlans =-    GetUsagePlans'-    { _gupKeyId = Nothing-    , _gupLimit = Nothing-    , _gupPosition = Nothing-    }+  GetUsagePlans'+  {_gupKeyId = Nothing, _gupLimit = Nothing, _gupPosition = Nothing} + -- | The identifier of the API key associated with the usage plans. gupKeyId :: Lens' GetUsagePlans (Maybe Text) gupKeyId = lens _gupKeyId (\ s a -> s{_gupKeyId = a}); --- | The number of 'UsagePlan' resources to be returned as the result.+-- | The maximum number of returned results per page. gupLimit :: Lens' GetUsagePlans (Maybe Int) gupLimit = lens _gupLimit (\ s a -> s{_gupLimit = a}); --- | The zero-based array index specifying the position of the to-be-retrieved 'UsagePlan' resource.+-- | The current pagination position in the paged result set. gupPosition :: Lens' GetUsagePlans (Maybe Text) gupPosition = lens _gupPosition (\ s a -> s{_gupPosition = a}); +instance AWSPager GetUsagePlans where+        page rq rs+          | stop (rs ^. guprsPosition) = Nothing+          | stop (rs ^. guprsItems) = Nothing+          | otherwise =+            Just $ rq & gupPosition .~ rs ^. guprsPosition+ instance AWSRequest GetUsagePlans where         type Rs GetUsagePlans = GetUsagePlansResponse         request = get apiGateway@@ -98,9 +107,9 @@                    (x .?> "item" .!@ mempty) <*> (x .?> "position") <*>                      (pure (fromEnum s))) -instance Hashable GetUsagePlans+instance Hashable GetUsagePlans where -instance NFData GetUsagePlans+instance NFData GetUsagePlans where  instance ToHeaders GetUsagePlans where         toHeaders@@ -124,16 +133,17 @@ -- -- /See:/ 'getUsagePlansResponse' smart constructor. data GetUsagePlansResponse = GetUsagePlansResponse'-    { _guprsItems          :: !(Maybe [UsagePlan])-    , _guprsPosition       :: !(Maybe Text)-    , _guprsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _guprsItems          :: !(Maybe [UsagePlan])+  , _guprsPosition       :: !(Maybe Text)+  , _guprsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GetUsagePlansResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'guprsItems' - Gets the current item when enumerating the collection of 'UsagePlan' .+-- * 'guprsItems' - The current page of elements from this collection. -- -- * 'guprsPosition' - Undocumented member. --@@ -142,13 +152,14 @@     :: Int -- ^ 'guprsResponseStatus'     -> GetUsagePlansResponse getUsagePlansResponse pResponseStatus_ =-    GetUsagePlansResponse'-    { _guprsItems = Nothing-    , _guprsPosition = Nothing-    , _guprsResponseStatus = pResponseStatus_-    }+  GetUsagePlansResponse'+  { _guprsItems = Nothing+  , _guprsPosition = Nothing+  , _guprsResponseStatus = pResponseStatus_+  } --- | Gets the current item when enumerating the collection of 'UsagePlan' .++-- | The current page of elements from this collection. guprsItems :: Lens' GetUsagePlansResponse [UsagePlan] guprsItems = lens _guprsItems (\ s a -> s{_guprsItems = a}) . _Default . _Coerce; @@ -160,4 +171,4 @@ guprsResponseStatus :: Lens' GetUsagePlansResponse Int guprsResponseStatus = lens _guprsResponseStatus (\ s a -> s{_guprsResponseStatus = a}); -instance NFData GetUsagePlansResponse+instance NFData GetUsagePlansResponse where
gen/Network/AWS/APIGateway/ImportAPIKeys.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.ImportAPIKeys--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -40,12 +40,12 @@     , iakrsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | The POST request to import API keys from an external source, such as a CSV-formatted file. --@@ -53,11 +53,12 @@ -- -- /See:/ 'importAPIKeys' smart constructor. data ImportAPIKeys = ImportAPIKeys'-    { _iakFailOnWarnings :: !(Maybe Bool)-    , _iakBody           :: !(HashMap Text Value)-    , _iakFormat         :: !APIKeysFormat-    } deriving (Eq,Show,Data,Typeable,Generic)+  { _iakFailOnWarnings :: !(Maybe Bool)+  , _iakBody           :: !(HashMap Text Value)+  , _iakFormat         :: !APIKeysFormat+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'ImportAPIKeys' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -72,12 +73,10 @@     -> APIKeysFormat -- ^ 'iakFormat'     -> ImportAPIKeys importAPIKeys pBody_ pFormat_ =-    ImportAPIKeys'-    { _iakFailOnWarnings = Nothing-    , _iakBody = pBody_-    , _iakFormat = pFormat_-    }+  ImportAPIKeys'+  {_iakFailOnWarnings = Nothing, _iakBody = pBody_, _iakFormat = pFormat_} + -- | A query parameter to indicate whether to rollback 'ApiKey' importation (@true@ ) or not (@false@ ) when error is encountered. iakFailOnWarnings :: Lens' ImportAPIKeys (Maybe Bool) iakFailOnWarnings = lens _iakFailOnWarnings (\ s a -> s{_iakFailOnWarnings = a});@@ -101,9 +100,9 @@                      (x .?> "warnings" .!@ mempty)                      <*> (pure (fromEnum s))) -instance Hashable ImportAPIKeys+instance Hashable ImportAPIKeys where -instance NFData ImportAPIKeys+instance NFData ImportAPIKeys where  instance ToBody ImportAPIKeys where         toBody = toBody . _iakBody@@ -129,11 +128,12 @@ -- -- /See:/ 'importAPIKeysResponse' smart constructor. data ImportAPIKeysResponse = ImportAPIKeysResponse'-    { _iakrsIds            :: !(Maybe [Text])-    , _iakrsWarnings       :: !(Maybe [Text])-    , _iakrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _iakrsIds            :: !(Maybe [Text])+  , _iakrsWarnings       :: !(Maybe [Text])+  , _iakrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'ImportAPIKeysResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -147,12 +147,13 @@     :: Int -- ^ 'iakrsResponseStatus'     -> ImportAPIKeysResponse importAPIKeysResponse pResponseStatus_ =-    ImportAPIKeysResponse'-    { _iakrsIds = Nothing-    , _iakrsWarnings = Nothing-    , _iakrsResponseStatus = pResponseStatus_-    }+  ImportAPIKeysResponse'+  { _iakrsIds = Nothing+  , _iakrsWarnings = Nothing+  , _iakrsResponseStatus = pResponseStatus_+  } + -- | A list of all the 'ApiKey' identifiers. iakrsIds :: Lens' ImportAPIKeysResponse [Text] iakrsIds = lens _iakrsIds (\ s a -> s{_iakrsIds = a}) . _Default . _Coerce;@@ -165,4 +166,4 @@ iakrsResponseStatus :: Lens' ImportAPIKeysResponse Int iakrsResponseStatus = lens _iakrsResponseStatus (\ s a -> s{_iakrsResponseStatus = a}); -instance NFData ImportAPIKeysResponse+instance NFData ImportAPIKeysResponse where
gen/Network/AWS/APIGateway/ImportDocumentationParts.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.ImportDocumentationParts--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -39,12 +39,12 @@     , idprsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Import documentation parts from an external (e.g., Swagger) definition file. --@@ -52,12 +52,13 @@ -- -- /See:/ 'importDocumentationParts' smart constructor. data ImportDocumentationParts = ImportDocumentationParts'-    { _idpMode           :: !(Maybe PutMode)-    , _idpFailOnWarnings :: !(Maybe Bool)-    , _idpRestAPIId      :: !Text-    , _idpBody           :: !(HashMap Text Value)-    } deriving (Eq,Show,Data,Typeable,Generic)+  { _idpMode           :: !(Maybe PutMode)+  , _idpFailOnWarnings :: !(Maybe Bool)+  , _idpRestAPIId      :: !Text+  , _idpBody           :: !(HashMap Text Value)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'ImportDocumentationParts' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -66,7 +67,7 @@ -- -- * 'idpFailOnWarnings' - 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@ . ----- * 'idpRestAPIId' - [Required] The identifier of an API of the to-be-imported documentation parts.+-- * 'idpRestAPIId' - [Required] The string identifier of the associated 'RestApi' . -- -- * 'idpBody' - [Required] Raw byte array representing the to-be-imported documentation parts. To import from a Swagger file, this is a JSON object. importDocumentationParts@@ -74,13 +75,14 @@     -> HashMap Text Value -- ^ 'idpBody'     -> ImportDocumentationParts importDocumentationParts pRestAPIId_ pBody_ =-    ImportDocumentationParts'-    { _idpMode = Nothing-    , _idpFailOnWarnings = Nothing-    , _idpRestAPIId = pRestAPIId_-    , _idpBody = pBody_-    }+  ImportDocumentationParts'+  { _idpMode = Nothing+  , _idpFailOnWarnings = Nothing+  , _idpRestAPIId = pRestAPIId_+  , _idpBody = pBody_+  } + -- | 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@ . idpMode :: Lens' ImportDocumentationParts (Maybe PutMode) idpMode = lens _idpMode (\ s a -> s{_idpMode = a});@@ -89,7 +91,7 @@ idpFailOnWarnings :: Lens' ImportDocumentationParts (Maybe Bool) idpFailOnWarnings = lens _idpFailOnWarnings (\ s a -> s{_idpFailOnWarnings = a}); --- | [Required] The identifier of an API of the to-be-imported documentation parts.+-- | [Required] The string identifier of the associated 'RestApi' . idpRestAPIId :: Lens' ImportDocumentationParts Text idpRestAPIId = lens _idpRestAPIId (\ s a -> s{_idpRestAPIId = a}); @@ -109,9 +111,9 @@                      (x .?> "warnings" .!@ mempty)                      <*> (pure (fromEnum s))) -instance Hashable ImportDocumentationParts+instance Hashable ImportDocumentationParts where -instance NFData ImportDocumentationParts+instance NFData ImportDocumentationParts where  instance ToBody ImportDocumentationParts where         toBody = toBody . _idpBody@@ -141,11 +143,12 @@ -- -- /See:/ 'importDocumentationPartsResponse' smart constructor. data ImportDocumentationPartsResponse = ImportDocumentationPartsResponse'-    { _idprsIds            :: !(Maybe [Text])-    , _idprsWarnings       :: !(Maybe [Text])-    , _idprsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _idprsIds            :: !(Maybe [Text])+  , _idprsWarnings       :: !(Maybe [Text])+  , _idprsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'ImportDocumentationPartsResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -159,12 +162,13 @@     :: Int -- ^ 'idprsResponseStatus'     -> ImportDocumentationPartsResponse importDocumentationPartsResponse pResponseStatus_ =-    ImportDocumentationPartsResponse'-    { _idprsIds = Nothing-    , _idprsWarnings = Nothing-    , _idprsResponseStatus = pResponseStatus_-    }+  ImportDocumentationPartsResponse'+  { _idprsIds = Nothing+  , _idprsWarnings = Nothing+  , _idprsResponseStatus = pResponseStatus_+  } + -- | A list of the returned documentation part identifiers. idprsIds :: Lens' ImportDocumentationPartsResponse [Text] idprsIds = lens _idprsIds (\ s a -> s{_idprsIds = a}) . _Default . _Coerce;@@ -178,3 +182,4 @@ idprsResponseStatus = lens _idprsResponseStatus (\ s a -> s{_idprsResponseStatus = a});  instance NFData ImportDocumentationPartsResponse+         where
gen/Network/AWS/APIGateway/ImportRestAPI.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.ImportRestAPI--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -41,15 +41,16 @@     , raName     , raVersion     , raId+    , raEndpointConfiguration     , raDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A POST request to import an API to Amazon API Gateway using an input of an API definition file. --@@ -57,39 +58,38 @@ -- -- /See:/ 'importRestAPI' smart constructor. data ImportRestAPI = ImportRestAPI'-    { _iraFailOnWarnings :: !(Maybe Bool)-    , _iraParameters     :: !(Maybe (Map Text Text))-    , _iraBody           :: !(HashMap Text Value)-    } deriving (Eq,Show,Data,Typeable,Generic)+  { _iraFailOnWarnings :: !(Maybe Bool)+  , _iraParameters     :: !(Maybe (Map Text Text))+  , _iraBody           :: !(HashMap Text Value)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'ImportRestAPI' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'iraFailOnWarnings' - 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@ . ----- * 'iraParameters' - Custom header parameters as part of the request.+-- * 'iraParameters' - 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@ . ----- * 'iraBody' - The POST request body containing external API definitions. Currently, only Swagger definition JSON files are supported.+-- * 'iraBody' - The POST request body containing external API definitions. Currently, only Swagger definition JSON files are supported. The maximum size of the API definition file is 2MB. importRestAPI     :: HashMap Text Value -- ^ 'iraBody'     -> ImportRestAPI importRestAPI pBody_ =-    ImportRestAPI'-    { _iraFailOnWarnings = Nothing-    , _iraParameters = Nothing-    , _iraBody = pBody_-    }+  ImportRestAPI'+  {_iraFailOnWarnings = Nothing, _iraParameters = Nothing, _iraBody = pBody_} + -- | 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@ . iraFailOnWarnings :: Lens' ImportRestAPI (Maybe Bool) iraFailOnWarnings = lens _iraFailOnWarnings (\ s a -> s{_iraFailOnWarnings = a}); --- | Custom header parameters as part of the request.+-- | 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@ . iraParameters :: Lens' ImportRestAPI (HashMap Text Text) iraParameters = lens _iraParameters (\ s a -> s{_iraParameters = a}) . _Default . _Map; --- | The POST request body containing external API definitions. Currently, only Swagger definition JSON files are supported.+-- | The POST request body containing external API definitions. Currently, only Swagger definition JSON files are supported. The maximum size of the API definition file is 2MB. iraBody :: Lens' ImportRestAPI (HashMap Text Value) iraBody = lens _iraBody (\ s a -> s{_iraBody = a}); @@ -98,9 +98,9 @@         request = postBody apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable ImportRestAPI+instance Hashable ImportRestAPI where -instance NFData ImportRestAPI+instance NFData ImportRestAPI where  instance ToBody ImportRestAPI where         toBody = toBody . _iraBody
+ gen/Network/AWS/APIGateway/PutGatewayResponse.hs view
@@ -0,0 +1,145 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.APIGateway.PutGatewayResponse+-- Copyright   : (c) 2013-2017 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)+--+-- Creates a customization of a 'GatewayResponse' of a specified response type and status code on the given 'RestApi' .+--+--+module Network.AWS.APIGateway.PutGatewayResponse+    (+    -- * Creating a Request+      putGatewayResponse+    , PutGatewayResponse+    -- * Request Lenses+    , pgResponseTemplates+    , pgStatusCode+    , pgResponseParameters+    , pgRestAPIId+    , pgResponseType++    -- * Destructuring the Response+    , gatewayResponse+    , GatewayResponse+    -- * Response Lenses+    , gDefaultResponse+    , gResponseTemplates+    , gResponseType+    , gStatusCode+    , gResponseParameters+    ) where++import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | Creates a customization of a 'GatewayResponse' of a specified response type and status code on the given 'RestApi' .+--+--+--+-- /See:/ 'putGatewayResponse' smart constructor.+data PutGatewayResponse = PutGatewayResponse'+  { _pgResponseTemplates  :: !(Maybe (Map Text Text))+  , _pgStatusCode         :: !(Maybe Text)+  , _pgResponseParameters :: !(Maybe (Map Text Text))+  , _pgRestAPIId          :: !Text+  , _pgResponseType       :: !GatewayResponseType+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'PutGatewayResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'pgResponseTemplates' - Response templates of the 'GatewayResponse' as a string-to-string map of key-value pairs.+--+-- * 'pgStatusCode' - 'GatewayResponse'+--+-- * 'pgResponseParameters' - Response parameters (paths, query strings and headers) of the 'GatewayResponse' as a string-to-string map of key-value pairs.+--+-- * 'pgRestAPIId' - The string identifier of the associated 'RestApi' .+--+-- * 'pgResponseType' - The response type of the associated 'GatewayResponse' . Valid values are     * ACCESS_DENIED    * API_CONFIGURATION_ERROR    * AUTHORIZER_FAILURE    * AUTHORIZER_CONFIGURATION_ERROR    * BAD_REQUEST_PARAMETERS    * BAD_REQUEST_BODY    * DEFAULT_4XX    * DEFAULT_5XX    * EXPIRED_TOKEN    * INVALID_SIGNATURE    * INTEGRATION_FAILURE    * INTEGRATION_TIMEOUT    * INVALID_API_KEY    * MISSING_AUTHENTICATION_TOKEN    * QUOTA_EXCEEDED    * REQUEST_TOO_LARGE    * RESOURCE_NOT_FOUND    * THROTTLED    * UNAUTHORIZED    * UNSUPPORTED_MEDIA_TYPES+putGatewayResponse+    :: Text -- ^ 'pgRestAPIId'+    -> GatewayResponseType -- ^ 'pgResponseType'+    -> PutGatewayResponse+putGatewayResponse pRestAPIId_ pResponseType_ =+  PutGatewayResponse'+  { _pgResponseTemplates = Nothing+  , _pgStatusCode = Nothing+  , _pgResponseParameters = Nothing+  , _pgRestAPIId = pRestAPIId_+  , _pgResponseType = pResponseType_+  }+++-- | Response templates of the 'GatewayResponse' as a string-to-string map of key-value pairs.+pgResponseTemplates :: Lens' PutGatewayResponse (HashMap Text Text)+pgResponseTemplates = lens _pgResponseTemplates (\ s a -> s{_pgResponseTemplates = a}) . _Default . _Map;++-- | 'GatewayResponse'+pgStatusCode :: Lens' PutGatewayResponse (Maybe Text)+pgStatusCode = lens _pgStatusCode (\ s a -> s{_pgStatusCode = a});++-- | Response parameters (paths, query strings and headers) of the 'GatewayResponse' as a string-to-string map of key-value pairs.+pgResponseParameters :: Lens' PutGatewayResponse (HashMap Text Text)+pgResponseParameters = lens _pgResponseParameters (\ s a -> s{_pgResponseParameters = a}) . _Default . _Map;++-- | The string identifier of the associated 'RestApi' .+pgRestAPIId :: Lens' PutGatewayResponse Text+pgRestAPIId = lens _pgRestAPIId (\ s a -> s{_pgRestAPIId = a});++-- | The response type of the associated 'GatewayResponse' . Valid values are     * ACCESS_DENIED    * API_CONFIGURATION_ERROR    * AUTHORIZER_FAILURE    * AUTHORIZER_CONFIGURATION_ERROR    * BAD_REQUEST_PARAMETERS    * BAD_REQUEST_BODY    * DEFAULT_4XX    * DEFAULT_5XX    * EXPIRED_TOKEN    * INVALID_SIGNATURE    * INTEGRATION_FAILURE    * INTEGRATION_TIMEOUT    * INVALID_API_KEY    * MISSING_AUTHENTICATION_TOKEN    * QUOTA_EXCEEDED    * REQUEST_TOO_LARGE    * RESOURCE_NOT_FOUND    * THROTTLED    * UNAUTHORIZED    * UNSUPPORTED_MEDIA_TYPES+pgResponseType :: Lens' PutGatewayResponse GatewayResponseType+pgResponseType = lens _pgResponseType (\ s a -> s{_pgResponseType = a});++instance AWSRequest PutGatewayResponse where+        type Rs PutGatewayResponse = GatewayResponse+        request = putJSON apiGateway+        response = receiveJSON (\ s h x -> eitherParseJSON x)++instance Hashable PutGatewayResponse where++instance NFData PutGatewayResponse where++instance ToHeaders PutGatewayResponse where+        toHeaders+          = const+              (mconcat+                 ["Accept" =# ("application/json" :: ByteString)])++instance ToJSON PutGatewayResponse where+        toJSON PutGatewayResponse'{..}+          = object+              (catMaybes+                 [("responseTemplates" .=) <$> _pgResponseTemplates,+                  ("statusCode" .=) <$> _pgStatusCode,+                  ("responseParameters" .=) <$> _pgResponseParameters])++instance ToPath PutGatewayResponse where+        toPath PutGatewayResponse'{..}+          = mconcat+              ["/restapis/", toBS _pgRestAPIId,+               "/gatewayresponses/", toBS _pgResponseType]++instance ToQuery PutGatewayResponse where+        toQuery = const mempty
gen/Network/AWS/APIGateway/PutIntegration.hs view
@@ -12,13 +12,13 @@  -- | -- Module      : Network.AWS.APIGateway.PutIntegration--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Represents a put integration.+-- Sets up a method's integration. -- -- module Network.AWS.APIGateway.PutIntegration@@ -58,34 +58,35 @@     , iCacheKeyParameters     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response --- | Represents a put integration request.+-- | Sets up a method's integration. -- -- -- -- /See:/ 'putIntegration' smart constructor. data PutIntegration = PutIntegration'-    { _pRequestTemplates      :: !(Maybe (Map Text Text))-    , _pCredentials           :: !(Maybe Text)-    , _pRequestParameters     :: !(Maybe (Map Text Text))-    , _pContentHandling       :: !(Maybe ContentHandlingStrategy)-    , _pPassthroughBehavior   :: !(Maybe Text)-    , _pUri                   :: !(Maybe Text)-    , _pCacheNamespace        :: !(Maybe Text)-    , _pIntegrationHTTPMethod :: !(Maybe Text)-    , _pCacheKeyParameters    :: !(Maybe [Text])-    , _pRestAPIId             :: !Text-    , _pResourceId            :: !Text-    , _pHttpMethod            :: !Text-    , _pType                  :: !IntegrationType-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _pRequestTemplates      :: !(Maybe (Map Text Text))+  , _pCredentials           :: !(Maybe Text)+  , _pRequestParameters     :: !(Maybe (Map Text Text))+  , _pContentHandling       :: !(Maybe ContentHandlingStrategy)+  , _pPassthroughBehavior   :: !(Maybe Text)+  , _pUri                   :: !(Maybe Text)+  , _pCacheNamespace        :: !(Maybe Text)+  , _pIntegrationHTTPMethod :: !(Maybe Text)+  , _pCacheKeyParameters    :: !(Maybe [Text])+  , _pRestAPIId             :: !Text+  , _pResourceId            :: !Text+  , _pHttpMethod            :: !Text+  , _pType                  :: !IntegrationType+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'PutIntegration' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -100,7 +101,7 @@ -- -- * 'pPassthroughBehavior' - 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_MATCH@ passes the request body for unmapped content types through to the integration back end without transformation.     * @NEVER@ rejects unmapped content types with an HTTP 415 'Unsupported Media Type' response.     * @WHEN_NO_TEMPLATES@ allows 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. ----- * 'pUri' - Specifies a put integration input's Uniform Resource Identifier (URI). When the integration type is HTTP or AWS, this field is required. For integration with Lambda as an AWS service proxy, this value is of the 'arn:aws:apigateway:<region>:lambda:path/2015-03-31/functions/<functionArn>/invocations' format.+-- * 'pUri' - Specifies the integration's Uniform Resource Identifier (URI). For HTTP integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the <https://en.wikipedia.org/wiki/Uniform_Resource_Identifier RFC-3986 specification> . For AWS integrations, the URI should be of the form @arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}@ . @Region@ , @subdomain@ and @service@ are used to determine the right endpoint. For AWS services that use the @Action=@ query string parameter, @service_api@ should be a valid action for the desired service. For RESTful AWS service APIs, @path@ is used to indicate that the remaining substring in the URI should be treated as the path to the resource, including the initial @/@ . -- -- * 'pCacheNamespace' - Specifies a put integration input's cache namespace. --@@ -108,7 +109,7 @@ -- -- * 'pCacheKeyParameters' - Specifies a put integration input's cache key parameters. ----- * 'pRestAPIId' - Specifies a put integration request's API identifier.+-- * 'pRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'pResourceId' - Specifies a put integration request's resource ID. --@@ -122,22 +123,23 @@     -> IntegrationType -- ^ 'pType'     -> PutIntegration putIntegration pRestAPIId_ pResourceId_ pHttpMethod_ pType_ =-    PutIntegration'-    { _pRequestTemplates = Nothing-    , _pCredentials = Nothing-    , _pRequestParameters = Nothing-    , _pContentHandling = Nothing-    , _pPassthroughBehavior = Nothing-    , _pUri = Nothing-    , _pCacheNamespace = Nothing-    , _pIntegrationHTTPMethod = Nothing-    , _pCacheKeyParameters = Nothing-    , _pRestAPIId = pRestAPIId_-    , _pResourceId = pResourceId_-    , _pHttpMethod = pHttpMethod_-    , _pType = pType_-    }+  PutIntegration'+  { _pRequestTemplates = Nothing+  , _pCredentials = Nothing+  , _pRequestParameters = Nothing+  , _pContentHandling = Nothing+  , _pPassthroughBehavior = Nothing+  , _pUri = Nothing+  , _pCacheNamespace = Nothing+  , _pIntegrationHTTPMethod = Nothing+  , _pCacheKeyParameters = Nothing+  , _pRestAPIId = pRestAPIId_+  , _pResourceId = pResourceId_+  , _pHttpMethod = pHttpMethod_+  , _pType = pType_+  } + -- | 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. pRequestTemplates :: Lens' PutIntegration (HashMap Text Text) pRequestTemplates = lens _pRequestTemplates (\ s a -> s{_pRequestTemplates = a}) . _Default . _Map;@@ -158,7 +160,7 @@ pPassthroughBehavior :: Lens' PutIntegration (Maybe Text) pPassthroughBehavior = lens _pPassthroughBehavior (\ s a -> s{_pPassthroughBehavior = a}); --- | Specifies a put integration input's Uniform Resource Identifier (URI). When the integration type is HTTP or AWS, this field is required. For integration with Lambda as an AWS service proxy, this value is of the 'arn:aws:apigateway:<region>:lambda:path/2015-03-31/functions/<functionArn>/invocations' format.+-- | Specifies the integration's Uniform Resource Identifier (URI). For HTTP integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the <https://en.wikipedia.org/wiki/Uniform_Resource_Identifier RFC-3986 specification> . For AWS integrations, the URI should be of the form @arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}@ . @Region@ , @subdomain@ and @service@ are used to determine the right endpoint. For AWS services that use the @Action=@ query string parameter, @service_api@ should be a valid action for the desired service. For RESTful AWS service APIs, @path@ is used to indicate that the remaining substring in the URI should be treated as the path to the resource, including the initial @/@ . pUri :: Lens' PutIntegration (Maybe Text) pUri = lens _pUri (\ s a -> s{_pUri = a}); @@ -174,7 +176,7 @@ pCacheKeyParameters :: Lens' PutIntegration [Text] pCacheKeyParameters = lens _pCacheKeyParameters (\ s a -> s{_pCacheKeyParameters = a}) . _Default . _Coerce; --- | Specifies a put integration request's API identifier.+-- | The string identifier of the associated 'RestApi' . pRestAPIId :: Lens' PutIntegration Text pRestAPIId = lens _pRestAPIId (\ s a -> s{_pRestAPIId = a}); @@ -195,9 +197,9 @@         request = putJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable PutIntegration+instance Hashable PutIntegration where -instance NFData PutIntegration+instance NFData PutIntegration where  instance ToHeaders PutIntegration where         toHeaders
gen/Network/AWS/APIGateway/PutIntegrationResponse.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.PutIntegrationResponse--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -47,12 +47,12 @@     , intResponseParameters     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents a put integration response request. --@@ -60,16 +60,17 @@ -- -- /See:/ 'putIntegrationResponse' smart constructor. data PutIntegrationResponse = PutIntegrationResponse'-    { _piContentHandling    :: !(Maybe ContentHandlingStrategy)-    , _piResponseTemplates  :: !(Maybe (Map Text Text))-    , _piSelectionPattern   :: !(Maybe Text)-    , _piResponseParameters :: !(Maybe (Map Text Text))-    , _piRestAPIId          :: !Text-    , _piResourceId         :: !Text-    , _piHttpMethod         :: !Text-    , _piStatusCode         :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _piContentHandling    :: !(Maybe ContentHandlingStrategy)+  , _piResponseTemplates  :: !(Maybe (Map Text Text))+  , _piSelectionPattern   :: !(Maybe Text)+  , _piResponseParameters :: !(Maybe (Map Text Text))+  , _piRestAPIId          :: !Text+  , _piResourceId         :: !Text+  , _piHttpMethod         :: !Text+  , _piStatusCode         :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'PutIntegrationResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -82,7 +83,7 @@ -- -- * 'piResponseParameters' - 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. ----- * 'piRestAPIId' - Specifies a put integration response request's API identifier.+-- * 'piRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'piResourceId' - Specifies a put integration response request's resource identifier. --@@ -96,17 +97,18 @@     -> Text -- ^ 'piStatusCode'     -> PutIntegrationResponse putIntegrationResponse pRestAPIId_ pResourceId_ pHttpMethod_ pStatusCode_ =-    PutIntegrationResponse'-    { _piContentHandling = Nothing-    , _piResponseTemplates = Nothing-    , _piSelectionPattern = Nothing-    , _piResponseParameters = Nothing-    , _piRestAPIId = pRestAPIId_-    , _piResourceId = pResourceId_-    , _piHttpMethod = pHttpMethod_-    , _piStatusCode = pStatusCode_-    }+  PutIntegrationResponse'+  { _piContentHandling = Nothing+  , _piResponseTemplates = Nothing+  , _piSelectionPattern = Nothing+  , _piResponseParameters = Nothing+  , _piRestAPIId = pRestAPIId_+  , _piResourceId = pResourceId_+  , _piHttpMethod = pHttpMethod_+  , _piStatusCode = pStatusCode_+  } + -- | 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. piContentHandling :: Lens' PutIntegrationResponse (Maybe ContentHandlingStrategy) piContentHandling = lens _piContentHandling (\ s a -> s{_piContentHandling = a});@@ -123,7 +125,7 @@ piResponseParameters :: Lens' PutIntegrationResponse (HashMap Text Text) piResponseParameters = lens _piResponseParameters (\ s a -> s{_piResponseParameters = a}) . _Default . _Map; --- | Specifies a put integration response request's API identifier.+-- | The string identifier of the associated 'RestApi' . piRestAPIId :: Lens' PutIntegrationResponse Text piRestAPIId = lens _piRestAPIId (\ s a -> s{_piRestAPIId = a}); @@ -144,9 +146,9 @@         request = putJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable PutIntegrationResponse+instance Hashable PutIntegrationResponse where -instance NFData PutIntegrationResponse+instance NFData PutIntegrationResponse where  instance ToHeaders PutIntegrationResponse where         toHeaders
gen/Network/AWS/APIGateway/PutMethod.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.PutMethod--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -27,9 +27,11 @@       putMethod     , PutMethod     -- * Request Lenses+    , putRequestValidatorId     , putRequestModels     , putRequestParameters     , putAuthorizerId+    , putOperationName     , putApiKeyRequired     , putRestAPIId     , putResourceId@@ -42,20 +44,22 @@     -- * Response Lenses     , mMethodResponses     , mHttpMethod+    , mRequestValidatorId     , mRequestModels     , mRequestParameters     , mAuthorizerId+    , mOperationName     , mAuthorizationType     , mApiKeyRequired     , mMethodIntegration     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to add a method to an existing 'Resource' resource. --@@ -63,35 +67,42 @@ -- -- /See:/ 'putMethod' smart constructor. data PutMethod = PutMethod'-    { _putRequestModels     :: !(Maybe (Map Text Text))-    , _putRequestParameters :: !(Maybe (Map Text Bool))-    , _putAuthorizerId      :: !(Maybe Text)-    , _putApiKeyRequired    :: !(Maybe Bool)-    , _putRestAPIId         :: !Text-    , _putResourceId        :: !Text-    , _putHttpMethod        :: !Text-    , _putAuthorizationType :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _putRequestValidatorId :: !(Maybe Text)+  , _putRequestModels      :: !(Maybe (Map Text Text))+  , _putRequestParameters  :: !(Maybe (Map Text Bool))+  , _putAuthorizerId       :: !(Maybe Text)+  , _putOperationName      :: !(Maybe Text)+  , _putApiKeyRequired     :: !(Maybe Bool)+  , _putRestAPIId          :: !Text+  , _putResourceId         :: !Text+  , _putHttpMethod         :: !Text+  , _putAuthorizationType  :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'PutMethod' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: --+-- * 'putRequestValidatorId' - The identifier of a 'RequestValidator' for validating the method request.+-- -- * 'putRequestModels' - Specifies the 'Model' resources used for the request's content type. Request models are represented as a key/value map, with a content type as the key and a 'Model' name as the value. -- -- * 'putRequestParameters' - A key-value map defining required or optional method request parameters that can be accepted by Amazon API Gateway. A key defines 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 body-mapping templates. -- -- * 'putAuthorizerId' - Specifies the identifier of an 'Authorizer' to use on this Method, if the type is CUSTOM. --+-- * 'putOperationName' - A human-friendly operation identifier for the method. For example, you can assign the @operationName@ of @ListPets@ for the @GET /pets@ method in <http://petstore-demo-endpoint.execute-api.com/petstore/pets PetStore> example.+-- -- * 'putApiKeyRequired' - Specifies whether the method required a valid 'ApiKey' . ----- * 'putRestAPIId' - The 'RestApi' identifier for the new 'Method' resource.+-- * 'putRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'putResourceId' - The 'Resource' identifier for the new 'Method' resource. -- -- * 'putHttpMethod' - Specifies the method request's HTTP method type. ----- * 'putAuthorizationType' - Specifies the type of authorization used for the method.+-- * 'putAuthorizationType' - 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. putMethod     :: Text -- ^ 'putRestAPIId'     -> Text -- ^ 'putResourceId'@@ -99,17 +110,24 @@     -> Text -- ^ 'putAuthorizationType'     -> PutMethod putMethod pRestAPIId_ pResourceId_ pHttpMethod_ pAuthorizationType_ =-    PutMethod'-    { _putRequestModels = Nothing-    , _putRequestParameters = Nothing-    , _putAuthorizerId = Nothing-    , _putApiKeyRequired = Nothing-    , _putRestAPIId = pRestAPIId_-    , _putResourceId = pResourceId_-    , _putHttpMethod = pHttpMethod_-    , _putAuthorizationType = pAuthorizationType_-    }+  PutMethod'+  { _putRequestValidatorId = Nothing+  , _putRequestModels = Nothing+  , _putRequestParameters = Nothing+  , _putAuthorizerId = Nothing+  , _putOperationName = Nothing+  , _putApiKeyRequired = Nothing+  , _putRestAPIId = pRestAPIId_+  , _putResourceId = pResourceId_+  , _putHttpMethod = pHttpMethod_+  , _putAuthorizationType = pAuthorizationType_+  } ++-- | The identifier of a 'RequestValidator' for validating the method request.+putRequestValidatorId :: Lens' PutMethod (Maybe Text)+putRequestValidatorId = lens _putRequestValidatorId (\ s a -> s{_putRequestValidatorId = a});+ -- | Specifies the 'Model' resources used for the request's content type. Request models are represented as a key/value map, with a content type as the key and a 'Model' name as the value. putRequestModels :: Lens' PutMethod (HashMap Text Text) putRequestModels = lens _putRequestModels (\ s a -> s{_putRequestModels = a}) . _Default . _Map;@@ -122,11 +140,15 @@ putAuthorizerId :: Lens' PutMethod (Maybe Text) putAuthorizerId = lens _putAuthorizerId (\ s a -> s{_putAuthorizerId = a}); +-- | A human-friendly operation identifier for the method. For example, you can assign the @operationName@ of @ListPets@ for the @GET /pets@ method in <http://petstore-demo-endpoint.execute-api.com/petstore/pets PetStore> example.+putOperationName :: Lens' PutMethod (Maybe Text)+putOperationName = lens _putOperationName (\ s a -> s{_putOperationName = a});+ -- | Specifies whether the method required a valid 'ApiKey' . putApiKeyRequired :: Lens' PutMethod (Maybe Bool) putApiKeyRequired = lens _putApiKeyRequired (\ s a -> s{_putApiKeyRequired = a}); --- | The 'RestApi' identifier for the new 'Method' resource.+-- | The string identifier of the associated 'RestApi' . putRestAPIId :: Lens' PutMethod Text putRestAPIId = lens _putRestAPIId (\ s a -> s{_putRestAPIId = a}); @@ -138,7 +160,7 @@ putHttpMethod :: Lens' PutMethod Text putHttpMethod = lens _putHttpMethod (\ s a -> s{_putHttpMethod = a}); --- | Specifies the type of authorization used for the method.+-- | 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. putAuthorizationType :: Lens' PutMethod Text putAuthorizationType = lens _putAuthorizationType (\ s a -> s{_putAuthorizationType = a}); @@ -147,9 +169,9 @@         request = putJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable PutMethod+instance Hashable PutMethod where -instance NFData PutMethod+instance NFData PutMethod where  instance ToHeaders PutMethod where         toHeaders@@ -161,9 +183,12 @@         toJSON PutMethod'{..}           = object               (catMaybes-                 [("requestModels" .=) <$> _putRequestModels,+                 [("requestValidatorId" .=) <$>+                    _putRequestValidatorId,+                  ("requestModels" .=) <$> _putRequestModels,                   ("requestParameters" .=) <$> _putRequestParameters,                   ("authorizerId" .=) <$> _putAuthorizerId,+                  ("operationName" .=) <$> _putOperationName,                   ("apiKeyRequired" .=) <$> _putApiKeyRequired,                   Just ("authorizationType" .= _putAuthorizationType)]) 
gen/Network/AWS/APIGateway/PutMethodResponse.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.PutMethodResponse--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -43,12 +43,12 @@     , mResponseParameters     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to add a 'MethodResponse' to an existing 'Method' resource. --@@ -56,14 +56,15 @@ -- -- /See:/ 'putMethodResponse' smart constructor. data PutMethodResponse = PutMethodResponse'-    { _pmResponseModels     :: !(Maybe (Map Text Text))-    , _pmResponseParameters :: !(Maybe (Map Text Bool))-    , _pmRestAPIId          :: !Text-    , _pmResourceId         :: !Text-    , _pmHttpMethod         :: !Text-    , _pmStatusCode         :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _pmResponseModels     :: !(Maybe (Map Text Text))+  , _pmResponseParameters :: !(Maybe (Map Text Bool))+  , _pmRestAPIId          :: !Text+  , _pmResourceId         :: !Text+  , _pmHttpMethod         :: !Text+  , _pmStatusCode         :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'PutMethodResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -72,7 +73,7 @@ -- -- * 'pmResponseParameters' - A key-value map specifying required or optional response parameters that Amazon 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.) ----- * 'pmRestAPIId' - The 'RestApi' identifier for the 'Method' resource.+-- * 'pmRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'pmResourceId' - The 'Resource' identifier for the 'Method' resource. --@@ -86,15 +87,16 @@     -> Text -- ^ 'pmStatusCode'     -> PutMethodResponse putMethodResponse pRestAPIId_ pResourceId_ pHttpMethod_ pStatusCode_ =-    PutMethodResponse'-    { _pmResponseModels = Nothing-    , _pmResponseParameters = Nothing-    , _pmRestAPIId = pRestAPIId_-    , _pmResourceId = pResourceId_-    , _pmHttpMethod = pHttpMethod_-    , _pmStatusCode = pStatusCode_-    }+  PutMethodResponse'+  { _pmResponseModels = Nothing+  , _pmResponseParameters = Nothing+  , _pmRestAPIId = pRestAPIId_+  , _pmResourceId = pResourceId_+  , _pmHttpMethod = pHttpMethod_+  , _pmStatusCode = pStatusCode_+  } + -- | 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. pmResponseModels :: Lens' PutMethodResponse (HashMap Text Text) pmResponseModels = lens _pmResponseModels (\ s a -> s{_pmResponseModels = a}) . _Default . _Map;@@ -103,7 +105,7 @@ pmResponseParameters :: Lens' PutMethodResponse (HashMap Text Bool) pmResponseParameters = lens _pmResponseParameters (\ s a -> s{_pmResponseParameters = a}) . _Default . _Map; --- | The 'RestApi' identifier for the 'Method' resource.+-- | The string identifier of the associated 'RestApi' . pmRestAPIId :: Lens' PutMethodResponse Text pmRestAPIId = lens _pmRestAPIId (\ s a -> s{_pmRestAPIId = a}); @@ -124,9 +126,9 @@         request = putJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable PutMethodResponse+instance Hashable PutMethodResponse where -instance NFData PutMethodResponse+instance NFData PutMethodResponse where  instance ToHeaders PutMethodResponse where         toHeaders
gen/Network/AWS/APIGateway/PutRestAPI.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.PutRestAPI--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -43,15 +43,16 @@     , raName     , raVersion     , raId+    , raEndpointConfiguration     , raDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A PUT request to update an existing API, with external API definitions specified as the request body. --@@ -59,13 +60,14 @@ -- -- /See:/ 'putRestAPI' smart constructor. data PutRestAPI = PutRestAPI'-    { _praMode           :: !(Maybe PutMode)-    , _praFailOnWarnings :: !(Maybe Bool)-    , _praParameters     :: !(Maybe (Map Text Text))-    , _praRestAPIId      :: !Text-    , _praBody           :: !(HashMap Text Value)-    } deriving (Eq,Show,Data,Typeable,Generic)+  { _praMode           :: !(Maybe PutMode)+  , _praFailOnWarnings :: !(Maybe Bool)+  , _praParameters     :: !(Maybe (Map Text Text))+  , _praRestAPIId      :: !Text+  , _praBody           :: !(HashMap Text Value)+  } deriving (Eq, Show, Data, Typeable, Generic) + -- | Creates a value of 'PutRestAPI' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -74,24 +76,25 @@ -- -- * 'praFailOnWarnings' - 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@ . ----- * 'praParameters' - Custom headers supplied as part of the request.+-- * 'praParameters' - 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@ . ----- * 'praRestAPIId' - The identifier of the 'RestApi' to be updated.+-- * 'praRestAPIId' - The string identifier of the associated 'RestApi' . ----- * 'praBody' - The PUT request body containing external API definitions. Currently, only Swagger definition JSON files are supported.+-- * 'praBody' - The PUT request body containing external API definitions. Currently, only Swagger definition JSON files are supported. The maximum size of the API definition file is 2MB. putRestAPI     :: Text -- ^ 'praRestAPIId'     -> HashMap Text Value -- ^ 'praBody'     -> PutRestAPI putRestAPI pRestAPIId_ pBody_ =-    PutRestAPI'-    { _praMode = Nothing-    , _praFailOnWarnings = Nothing-    , _praParameters = Nothing-    , _praRestAPIId = pRestAPIId_-    , _praBody = pBody_-    }+  PutRestAPI'+  { _praMode = Nothing+  , _praFailOnWarnings = Nothing+  , _praParameters = Nothing+  , _praRestAPIId = pRestAPIId_+  , _praBody = pBody_+  } + -- | The @mode@ query parameter to specify the update mode. Valid values are "merge" and "overwrite". By default, the update mode is "merge". praMode :: Lens' PutRestAPI (Maybe PutMode) praMode = lens _praMode (\ s a -> s{_praMode = a});@@ -100,15 +103,15 @@ praFailOnWarnings :: Lens' PutRestAPI (Maybe Bool) praFailOnWarnings = lens _praFailOnWarnings (\ s a -> s{_praFailOnWarnings = a}); --- | Custom headers supplied as part of the request.+-- | 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@ . praParameters :: Lens' PutRestAPI (HashMap Text Text) praParameters = lens _praParameters (\ s a -> s{_praParameters = a}) . _Default . _Map; --- | The identifier of the 'RestApi' to be updated.+-- | The string identifier of the associated 'RestApi' . praRestAPIId :: Lens' PutRestAPI Text praRestAPIId = lens _praRestAPIId (\ s a -> s{_praRestAPIId = a}); --- | The PUT request body containing external API definitions. Currently, only Swagger definition JSON files are supported.+-- | The PUT request body containing external API definitions. Currently, only Swagger definition JSON files are supported. The maximum size of the API definition file is 2MB. praBody :: Lens' PutRestAPI (HashMap Text Value) praBody = lens _praBody (\ s a -> s{_praBody = a}); @@ -117,9 +120,9 @@         request = putBody apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable PutRestAPI+instance Hashable PutRestAPI where -instance NFData PutRestAPI+instance NFData PutRestAPI where  instance ToBody PutRestAPI where         toBody = toBody . _praBody
gen/Network/AWS/APIGateway/TestInvokeAuthorizer.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.TestInvokeAuthorizer--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -50,12 +50,12 @@     , tiarsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Make a request to simulate the execution of an 'Authorizer' . --@@ -63,15 +63,16 @@ -- -- /See:/ 'testInvokeAuthorizer' smart constructor. data TestInvokeAuthorizer = TestInvokeAuthorizer'-    { _tiaPathWithQueryString :: !(Maybe Text)-    , _tiaBody                :: !(Maybe Text)-    , _tiaAdditionalContext   :: !(Maybe (Map Text Text))-    , _tiaStageVariables      :: !(Maybe (Map Text Text))-    , _tiaHeaders             :: !(Maybe (Map Text Text))-    , _tiaRestAPIId           :: !Text-    , _tiaAuthorizerId        :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _tiaPathWithQueryString :: !(Maybe Text)+  , _tiaBody                :: !(Maybe Text)+  , _tiaAdditionalContext   :: !(Maybe (Map Text Text))+  , _tiaStageVariables      :: !(Maybe (Map Text Text))+  , _tiaHeaders             :: !(Maybe (Map Text Text))+  , _tiaRestAPIId           :: !Text+  , _tiaAuthorizerId        :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'TestInvokeAuthorizer' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -86,7 +87,7 @@ -- -- * 'tiaHeaders' - [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. ----- * 'tiaRestAPIId' - Specifies a test invoke authorizer request's 'RestApi' identifier.+-- * 'tiaRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'tiaAuthorizerId' - Specifies a test invoke authorizer request's 'Authorizer' ID. testInvokeAuthorizer@@ -94,16 +95,17 @@     -> Text -- ^ 'tiaAuthorizerId'     -> TestInvokeAuthorizer testInvokeAuthorizer pRestAPIId_ pAuthorizerId_ =-    TestInvokeAuthorizer'-    { _tiaPathWithQueryString = Nothing-    , _tiaBody = Nothing-    , _tiaAdditionalContext = Nothing-    , _tiaStageVariables = Nothing-    , _tiaHeaders = Nothing-    , _tiaRestAPIId = pRestAPIId_-    , _tiaAuthorizerId = pAuthorizerId_-    }+  TestInvokeAuthorizer'+  { _tiaPathWithQueryString = Nothing+  , _tiaBody = Nothing+  , _tiaAdditionalContext = Nothing+  , _tiaStageVariables = Nothing+  , _tiaHeaders = Nothing+  , _tiaRestAPIId = pRestAPIId_+  , _tiaAuthorizerId = pAuthorizerId_+  } + -- | [Optional] The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters. tiaPathWithQueryString :: Lens' TestInvokeAuthorizer (Maybe Text) tiaPathWithQueryString = lens _tiaPathWithQueryString (\ s a -> s{_tiaPathWithQueryString = a});@@ -124,7 +126,7 @@ tiaHeaders :: Lens' TestInvokeAuthorizer (HashMap Text Text) tiaHeaders = lens _tiaHeaders (\ s a -> s{_tiaHeaders = a}) . _Default . _Map; --- | Specifies a test invoke authorizer request's 'RestApi' identifier.+-- | The string identifier of the associated 'RestApi' . tiaRestAPIId :: Lens' TestInvokeAuthorizer Text tiaRestAPIId = lens _tiaRestAPIId (\ s a -> s{_tiaRestAPIId = a}); @@ -148,9 +150,9 @@                      <*> (x .?> "policy")                      <*> (pure (fromEnum s))) -instance Hashable TestInvokeAuthorizer+instance Hashable TestInvokeAuthorizer where -instance NFData TestInvokeAuthorizer+instance NFData TestInvokeAuthorizer where  instance ToHeaders TestInvokeAuthorizer where         toHeaders@@ -184,16 +186,17 @@ -- -- /See:/ 'testInvokeAuthorizerResponse' smart constructor. data TestInvokeAuthorizerResponse = TestInvokeAuthorizerResponse'-    { _tiarsLog            :: !(Maybe Text)-    , _tiarsPrincipalId    :: !(Maybe Text)-    , _tiarsLatency        :: !(Maybe Integer)-    , _tiarsAuthorization  :: !(Maybe (Map Text [Text]))-    , _tiarsClaims         :: !(Maybe (Map Text Text))-    , _tiarsClientStatus   :: !(Maybe Int)-    , _tiarsPolicy         :: !(Maybe Text)-    , _tiarsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _tiarsLog            :: !(Maybe Text)+  , _tiarsPrincipalId    :: !(Maybe Text)+  , _tiarsLatency        :: !(Maybe Integer)+  , _tiarsAuthorization  :: !(Maybe (Map Text [Text]))+  , _tiarsClaims         :: !(Maybe (Map Text Text))+  , _tiarsClientStatus   :: !(Maybe Int)+  , _tiarsPolicy         :: !(Maybe Text)+  , _tiarsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'TestInvokeAuthorizerResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -217,17 +220,18 @@     :: Int -- ^ 'tiarsResponseStatus'     -> TestInvokeAuthorizerResponse testInvokeAuthorizerResponse pResponseStatus_ =-    TestInvokeAuthorizerResponse'-    { _tiarsLog = Nothing-    , _tiarsPrincipalId = Nothing-    , _tiarsLatency = Nothing-    , _tiarsAuthorization = Nothing-    , _tiarsClaims = Nothing-    , _tiarsClientStatus = Nothing-    , _tiarsPolicy = Nothing-    , _tiarsResponseStatus = pResponseStatus_-    }+  TestInvokeAuthorizerResponse'+  { _tiarsLog = Nothing+  , _tiarsPrincipalId = Nothing+  , _tiarsLatency = Nothing+  , _tiarsAuthorization = Nothing+  , _tiarsClaims = Nothing+  , _tiarsClientStatus = Nothing+  , _tiarsPolicy = Nothing+  , _tiarsResponseStatus = pResponseStatus_+  } + -- | The Amazon API Gateway execution log for the test authorizer request. tiarsLog :: Lens' TestInvokeAuthorizerResponse (Maybe Text) tiarsLog = lens _tiarsLog (\ s a -> s{_tiarsLog = a});@@ -260,4 +264,4 @@ tiarsResponseStatus :: Lens' TestInvokeAuthorizerResponse Int tiarsResponseStatus = lens _tiarsResponseStatus (\ s a -> s{_tiarsResponseStatus = a}); -instance NFData TestInvokeAuthorizerResponse+instance NFData TestInvokeAuthorizerResponse where
gen/Network/AWS/APIGateway/TestInvokeMethod.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.TestInvokeMethod--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -48,12 +48,12 @@     , timrsResponseStatus     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Make a request to simulate the execution of a 'Method' . --@@ -61,16 +61,17 @@ -- -- /See:/ 'testInvokeMethod' smart constructor. data TestInvokeMethod = TestInvokeMethod'-    { _timPathWithQueryString :: !(Maybe Text)-    , _timBody                :: !(Maybe Text)-    , _timClientCertificateId :: !(Maybe Text)-    , _timStageVariables      :: !(Maybe (Map Text Text))-    , _timHeaders             :: !(Maybe (Map Text Text))-    , _timRestAPIId           :: !Text-    , _timResourceId          :: !Text-    , _timHttpMethod          :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _timPathWithQueryString :: !(Maybe Text)+  , _timBody                :: !(Maybe Text)+  , _timClientCertificateId :: !(Maybe Text)+  , _timStageVariables      :: !(Maybe (Map Text Text))+  , _timHeaders             :: !(Maybe (Map Text Text))+  , _timRestAPIId           :: !Text+  , _timResourceId          :: !Text+  , _timHttpMethod          :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'TestInvokeMethod' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -85,7 +86,7 @@ -- -- * 'timHeaders' - A key-value map of headers to simulate an incoming invocation request. ----- * 'timRestAPIId' - Specifies a test invoke method request's API identifier.+-- * 'timRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'timResourceId' - Specifies a test invoke method request's resource ID. --@@ -96,17 +97,18 @@     -> Text -- ^ 'timHttpMethod'     -> TestInvokeMethod testInvokeMethod pRestAPIId_ pResourceId_ pHttpMethod_ =-    TestInvokeMethod'-    { _timPathWithQueryString = Nothing-    , _timBody = Nothing-    , _timClientCertificateId = Nothing-    , _timStageVariables = Nothing-    , _timHeaders = Nothing-    , _timRestAPIId = pRestAPIId_-    , _timResourceId = pResourceId_-    , _timHttpMethod = pHttpMethod_-    }+  TestInvokeMethod'+  { _timPathWithQueryString = Nothing+  , _timBody = Nothing+  , _timClientCertificateId = Nothing+  , _timStageVariables = Nothing+  , _timHeaders = Nothing+  , _timRestAPIId = pRestAPIId_+  , _timResourceId = pResourceId_+  , _timHttpMethod = pHttpMethod_+  } + -- | The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters. timPathWithQueryString :: Lens' TestInvokeMethod (Maybe Text) timPathWithQueryString = lens _timPathWithQueryString (\ s a -> s{_timPathWithQueryString = a});@@ -127,7 +129,7 @@ timHeaders :: Lens' TestInvokeMethod (HashMap Text Text) timHeaders = lens _timHeaders (\ s a -> s{_timHeaders = a}) . _Default . _Map; --- | Specifies a test invoke method request's API identifier.+-- | The string identifier of the associated 'RestApi' . timRestAPIId :: Lens' TestInvokeMethod Text timRestAPIId = lens _timRestAPIId (\ s a -> s{_timRestAPIId = a}); @@ -151,9 +153,9 @@                      <*> (x .?> "headers" .!@ mempty)                      <*> (pure (fromEnum s))) -instance Hashable TestInvokeMethod+instance Hashable TestInvokeMethod where -instance NFData TestInvokeMethod+instance NFData TestInvokeMethod where  instance ToHeaders TestInvokeMethod where         toHeaders@@ -190,14 +192,15 @@ -- -- /See:/ 'testInvokeMethodResponse' smart constructor. data TestInvokeMethodResponse = TestInvokeMethodResponse'-    { _timrsLog            :: !(Maybe Text)-    , _timrsStatus         :: !(Maybe Int)-    , _timrsBody           :: !(Maybe Text)-    , _timrsLatency        :: !(Maybe Integer)-    , _timrsHeaders        :: !(Maybe (Map Text Text))-    , _timrsResponseStatus :: !Int-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _timrsLog            :: !(Maybe Text)+  , _timrsStatus         :: !(Maybe Int)+  , _timrsBody           :: !(Maybe Text)+  , _timrsLatency        :: !(Maybe Integer)+  , _timrsHeaders        :: !(Maybe (Map Text Text))+  , _timrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'TestInvokeMethodResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -217,15 +220,16 @@     :: Int -- ^ 'timrsResponseStatus'     -> TestInvokeMethodResponse testInvokeMethodResponse pResponseStatus_ =-    TestInvokeMethodResponse'-    { _timrsLog = Nothing-    , _timrsStatus = Nothing-    , _timrsBody = Nothing-    , _timrsLatency = Nothing-    , _timrsHeaders = Nothing-    , _timrsResponseStatus = pResponseStatus_-    }+  TestInvokeMethodResponse'+  { _timrsLog = Nothing+  , _timrsStatus = Nothing+  , _timrsBody = Nothing+  , _timrsLatency = Nothing+  , _timrsHeaders = Nothing+  , _timrsResponseStatus = pResponseStatus_+  } + -- | The Amazon API Gateway execution log for the test invoke request. timrsLog :: Lens' TestInvokeMethodResponse (Maybe Text) timrsLog = lens _timrsLog (\ s a -> s{_timrsLog = a});@@ -250,4 +254,4 @@ timrsResponseStatus :: Lens' TestInvokeMethodResponse Int timrsResponseStatus = lens _timrsResponseStatus (\ s a -> s{_timrsResponseStatus = a}); -instance NFData TestInvokeMethodResponse+instance NFData TestInvokeMethodResponse where
gen/Network/AWS/APIGateway/Types.hs view
@@ -4,9 +4,9 @@  -- | -- Module      : Network.AWS.APIGateway.Types--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -42,6 +42,12 @@     -- * DocumentationPartType     , DocumentationPartType (..) +    -- * EndpointType+    , EndpointType (..)++    -- * GatewayResponseType+    , GatewayResponseType (..)+     -- * IntegrationType     , IntegrationType (..) @@ -149,10 +155,29 @@     , DomainName     , domainName     , dnCertificateName+    , dnRegionalCertificateARN+    , dnCertificateARN     , dnDomainName+    , dnRegionalCertificateName+    , dnRegionalDomainName     , dnCertificateUploadDate     , dnDistributionDomainName+    , dnEndpointConfiguration +    -- * EndpointConfiguration+    , EndpointConfiguration+    , endpointConfiguration+    , ecTypes++    -- * GatewayResponse+    , GatewayResponse+    , gatewayResponse+    , gDefaultResponse+    , gResponseTemplates+    , gResponseType+    , gStatusCode+    , gResponseParameters+     -- * Integration     , Integration     , integration@@ -182,9 +207,11 @@     , method     , mMethodResponses     , mHttpMethod+    , mRequestValidatorId     , mRequestModels     , mRequestParameters     , mAuthorizerId+    , mOperationName     , mAuthorizationType     , mApiKeyRequired     , mMethodIntegration@@ -240,6 +267,14 @@     , qsPeriod     , qsLimit +    -- * RequestValidator+    , RequestValidator+    , requestValidator+    , rvValidateRequestParameters+    , rvName+    , rvValidateRequestBody+    , rvId+     -- * Resource     , Resource     , resource@@ -258,8 +293,26 @@     , raName     , raVersion     , raId+    , raEndpointConfiguration     , raDescription +    -- * SDKConfigurationProperty+    , SDKConfigurationProperty+    , sdkConfigurationProperty+    , scpFriendlyName+    , scpRequired+    , scpName+    , scpDefaultValue+    , scpDescription++    -- * SDKType+    , SDKType+    , sdkType+    , stFriendlyName+    , stConfigurationProperties+    , stId+    , stDescription+     -- * Stage     , Stage     , stage@@ -317,38 +370,40 @@     , upkType     ) where -import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.APIGateway.Types.Sum-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Sign.V4+import Network.AWS.APIGateway.Types.Product+import Network.AWS.APIGateway.Types.Sum+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Sign.V4  -- | API version @2015-07-09@ of the Amazon API Gateway SDK configuration. apiGateway :: Service apiGateway =-    Service-    { _svcAbbrev = "APIGateway"-    , _svcSigner = v4-    , _svcPrefix = "apigateway"-    , _svcVersion = "2015-07-09"-    , _svcEndpoint = defaultEndpoint apiGateway-    , _svcTimeout = Just 70-    , _svcCheck = statusSuccess-    , _svcError = parseJSONError "APIGateway"-    , _svcRetry = retry-    }+  Service+  { _svcAbbrev = "APIGateway"+  , _svcSigner = v4+  , _svcPrefix = "apigateway"+  , _svcVersion = "2015-07-09"+  , _svcEndpoint = defaultEndpoint apiGateway+  , _svcTimeout = Just 70+  , _svcCheck = statusSuccess+  , _svcError = parseJSONError "APIGateway"+  , _svcRetry = retry+  }   where     retry =-        Exponential-        { _retryBase = 5.0e-2-        , _retryGrowth = 2-        , _retryAttempts = 5-        , _retryCheck = check-        }+      Exponential+      { _retryBase = 5.0e-2+      , _retryGrowth = 2+      , _retryAttempts = 5+      , _retryCheck = check+      }     check e+      | has (hasCode "ThrottledException" . hasStatus 400) e =+        Just "throttled_exception"       | has (hasStatus 429) e = Just "too_many_requests"       | has (hasCode "ThrottlingException" . hasStatus 400) e =-          Just "throttling_exception"+        Just "throttling_exception"       | has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"       | has (hasStatus 504) e = Just "gateway_timeout"       | has (hasStatus 502) e = Just "bad_gateway"@@ -357,37 +412,59 @@       | has (hasStatus 509) e = Just "limit_exceeded"       | otherwise = Nothing --- | Prism for ConflictException' errors.++-- | The request configuration has conflicts. For details, see the accompanying error message.+--+-- _ConflictException :: AsError a => Getting (First ServiceError) a ServiceError _ConflictException =-    _ServiceError . hasStatus 409 . hasCode "ConflictException"+  _MatchServiceError apiGateway "ConflictException" . hasStatus 409 --- | Prism for NotFoundException' errors.++-- | The requested resource is not found. Make sure that the request URI is correct.+--+-- _NotFoundException :: AsError a => Getting (First ServiceError) a ServiceError _NotFoundException =-    _ServiceError . hasStatus 404 . hasCode "NotFoundException"+  _MatchServiceError apiGateway "NotFoundException" . hasStatus 404 --- | Prism for TooManyRequestsException' errors.++-- | The request has reached its throttling limit. Retry after the specified time period.+--+-- _TooManyRequestsException :: AsError a => Getting (First ServiceError) a ServiceError _TooManyRequestsException =-    _ServiceError . hasStatus 429 . hasCode "TooManyRequestsException"+  _MatchServiceError apiGateway "TooManyRequestsException" . hasStatus 429 --- | Prism for ServiceUnavailableException' errors.++-- | The requested service is not available. For details see the accompanying error message. Retry after the specified time period.+--+-- _ServiceUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError _ServiceUnavailableException =-    _ServiceError . hasStatus 503 . hasCode "ServiceUnavailableException"+  _MatchServiceError apiGateway "ServiceUnavailableException" . hasStatus 503 --- | Prism for UnauthorizedException' errors.++-- | The request is denied because the caller has insufficient permissions.+--+-- _UnauthorizedException :: AsError a => Getting (First ServiceError) a ServiceError _UnauthorizedException =-    _ServiceError . hasStatus 401 . hasCode "UnauthorizedException"+  _MatchServiceError apiGateway "UnauthorizedException" . hasStatus 401 --- | Prism for BadRequestException' errors.++-- | The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.+--+-- _BadRequestException :: AsError a => Getting (First ServiceError) a ServiceError _BadRequestException =-    _ServiceError . hasStatus 400 . hasCode "BadRequestException"+  _MatchServiceError apiGateway "BadRequestException" . hasStatus 400 --- | Prism for LimitExceededException' errors.++-- | The request exceeded the rate limit. Retry after the specified time period.+--+-- _LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError _LimitExceededException =-    _ServiceError . hasStatus 429 . hasCode "LimitExceededException"+  _MatchServiceError apiGateway "LimitExceededException" . hasStatus 429+
gen/Network/AWS/APIGateway/Types/Product.hs view
@@ -9,2174 +9,2605 @@  -- | -- Module      : Network.AWS.APIGateway.Types.Product--- Copyright   : (c) 2013-2016 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)----module Network.AWS.APIGateway.Types.Product where--import           Network.AWS.APIGateway.Types.Sum-import           Network.AWS.Lens-import           Network.AWS.Prelude---- | 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.--------- <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-api-keys.html Use API Keys>------ /See:/ 'apiKey' smart constructor.-data APIKey = APIKey'-    { _akEnabled         :: !(Maybe Bool)-    , _akValue           :: !(Maybe Text)-    , _akCustomerId      :: !(Maybe Text)-    , _akCreatedDate     :: !(Maybe POSIX)-    , _akName            :: !(Maybe Text)-    , _akId              :: !(Maybe Text)-    , _akStageKeys       :: !(Maybe [Text])-    , _akLastUpdatedDate :: !(Maybe POSIX)-    , _akDescription     :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'APIKey' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'akEnabled' - Specifies whether the API Key can be used by callers.------ * 'akValue' - The value of the API Key.------ * 'akCustomerId' - An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.------ * 'akCreatedDate' - The date when the API Key was created, in <http://www.iso.org/iso/home/standards/iso8601.htm ISO 8601 format> .------ * 'akName' - The name of the API Key.------ * 'akId' - The identifier of the API Key.------ * 'akStageKeys' - A list of 'Stage' resources that are associated with the 'ApiKey' resource.------ * 'akLastUpdatedDate' - When the API Key was last updated, in ISO 8601 format.------ * 'akDescription' - The description of the API Key.-apiKey-    :: APIKey-apiKey =-    APIKey'-    { _akEnabled = Nothing-    , _akValue = Nothing-    , _akCustomerId = Nothing-    , _akCreatedDate = Nothing-    , _akName = Nothing-    , _akId = Nothing-    , _akStageKeys = Nothing-    , _akLastUpdatedDate = Nothing-    , _akDescription = Nothing-    }---- | Specifies whether the API Key can be used by callers.-akEnabled :: Lens' APIKey (Maybe Bool)-akEnabled = lens _akEnabled (\ s a -> s{_akEnabled = a});---- | The value of the API Key.-akValue :: Lens' APIKey (Maybe Text)-akValue = lens _akValue (\ s a -> s{_akValue = a});---- | An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.-akCustomerId :: Lens' APIKey (Maybe Text)-akCustomerId = lens _akCustomerId (\ s a -> s{_akCustomerId = a});---- | The date when the API Key was created, in <http://www.iso.org/iso/home/standards/iso8601.htm ISO 8601 format> .-akCreatedDate :: Lens' APIKey (Maybe UTCTime)-akCreatedDate = lens _akCreatedDate (\ s a -> s{_akCreatedDate = a}) . mapping _Time;---- | The name of the API Key.-akName :: Lens' APIKey (Maybe Text)-akName = lens _akName (\ s a -> s{_akName = a});---- | The identifier of the API Key.-akId :: Lens' APIKey (Maybe Text)-akId = lens _akId (\ s a -> s{_akId = a});---- | A list of 'Stage' resources that are associated with the 'ApiKey' resource.-akStageKeys :: Lens' APIKey [Text]-akStageKeys = lens _akStageKeys (\ s a -> s{_akStageKeys = a}) . _Default . _Coerce;---- | When the API Key was last updated, in ISO 8601 format.-akLastUpdatedDate :: Lens' APIKey (Maybe UTCTime)-akLastUpdatedDate = lens _akLastUpdatedDate (\ s a -> s{_akLastUpdatedDate = a}) . mapping _Time;---- | The description of the API Key.-akDescription :: Lens' APIKey (Maybe Text)-akDescription = lens _akDescription (\ s a -> s{_akDescription = a});--instance FromJSON APIKey where-        parseJSON-          = withObject "APIKey"-              (\ x ->-                 APIKey' <$>-                   (x .:? "enabled") <*> (x .:? "value") <*>-                     (x .:? "customerId")-                     <*> (x .:? "createdDate")-                     <*> (x .:? "name")-                     <*> (x .:? "id")-                     <*> (x .:? "stageKeys" .!= mempty)-                     <*> (x .:? "lastUpdatedDate")-                     <*> (x .:? "description"))--instance Hashable APIKey--instance NFData APIKey---- | API stage name of the associated API stage in a usage plan.------------ /See:/ 'apiStage' smart constructor.-data APIStage = APIStage'-    { _asStage :: !(Maybe Text)-    , _asApiId :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'APIStage' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'asStage' - API stage name of the associated API stage in a usage plan.------ * 'asApiId' - API Id of the associated API stage in a usage plan.-apiStage-    :: APIStage-apiStage =-    APIStage'-    { _asStage = Nothing-    , _asApiId = Nothing-    }---- | API stage name of the associated API stage in a usage plan.-asStage :: Lens' APIStage (Maybe Text)-asStage = lens _asStage (\ s a -> s{_asStage = a});---- | API Id of the associated API stage in a usage plan.-asApiId :: Lens' APIStage (Maybe Text)-asApiId = lens _asApiId (\ s a -> s{_asApiId = a});--instance FromJSON APIStage where-        parseJSON-          = withObject "APIStage"-              (\ x ->-                 APIStage' <$> (x .:? "stage") <*> (x .:? "apiId"))--instance Hashable APIStage--instance NFData APIStage--instance ToJSON APIStage where-        toJSON APIStage'{..}-          = object-              (catMaybes-                 [("stage" .=) <$> _asStage,-                  ("apiId" .=) <$> _asApiId])---- | Represents an AWS account that is associated with Amazon 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 <http://docs.aws.amazon.com/apigateway/api-reference/handling-errors/#api-error-codes 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": "http://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.------ <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-limits.html API Gateway Limits> <http://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html Developer Guide> , <http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-account.html AWS CLI>------ /See:/ 'account' smart constructor.-data Account = Account'-    { _aApiKeyVersion     :: !(Maybe Text)-    , _aCloudwatchRoleARN :: !(Maybe Text)-    , _aFeatures          :: !(Maybe [Text])-    , _aThrottleSettings  :: !(Maybe ThrottleSettings)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'Account' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'aApiKeyVersion' - The version of the API keys used for the account.------ * 'aCloudwatchRoleARN' - The ARN of an Amazon CloudWatch role for the current 'Account' .------ * 'aFeatures' - A list of features supported for the account. When usage plans are enabled, the features list will include an entry of @"UsagePlans"@ .------ * 'aThrottleSettings' - Specifies the API request limits configured for the current 'Account' .-account-    :: Account-account =-    Account'-    { _aApiKeyVersion = Nothing-    , _aCloudwatchRoleARN = Nothing-    , _aFeatures = Nothing-    , _aThrottleSettings = Nothing-    }---- | The version of the API keys used for the account.-aApiKeyVersion :: Lens' Account (Maybe Text)-aApiKeyVersion = lens _aApiKeyVersion (\ s a -> s{_aApiKeyVersion = a});---- | The ARN of an Amazon CloudWatch role for the current 'Account' .-aCloudwatchRoleARN :: Lens' Account (Maybe Text)-aCloudwatchRoleARN = lens _aCloudwatchRoleARN (\ s a -> s{_aCloudwatchRoleARN = a});---- | A list of features supported for the account. When usage plans are enabled, the features list will include an entry of @"UsagePlans"@ .-aFeatures :: Lens' Account [Text]-aFeatures = lens _aFeatures (\ s a -> s{_aFeatures = a}) . _Default . _Coerce;---- | Specifies the API request limits configured for the current 'Account' .-aThrottleSettings :: Lens' Account (Maybe ThrottleSettings)-aThrottleSettings = lens _aThrottleSettings (\ s a -> s{_aThrottleSettings = a});--instance FromJSON Account where-        parseJSON-          = withObject "Account"-              (\ x ->-                 Account' <$>-                   (x .:? "apiKeyVersion") <*>-                     (x .:? "cloudwatchRoleArn")-                     <*> (x .:? "features" .!= mempty)-                     <*> (x .:? "throttleSettings"))--instance Hashable Account--instance NFData Account---- | Represents an authorization layer for methods. If enabled on a method, API Gateway will activate the authorizer when a client calls the method.--------- <http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html Enable custom authorization>------ /See:/ 'authorizer' smart constructor.-data Authorizer = Authorizer'-    { _aAuthorizerURI                :: !(Maybe Text)-    , _aIdentityValidationExpression :: !(Maybe Text)-    , _aProviderARNs                 :: !(Maybe [Text])-    , _aName                         :: !(Maybe Text)-    , _aId                           :: !(Maybe Text)-    , _aAuthorizerResultTtlInSeconds :: !(Maybe Int)-    , _aAuthType                     :: !(Maybe Text)-    , _aType                         :: !(Maybe AuthorizerType)-    , _aIdentitySource               :: !(Maybe Text)-    , _aAuthorizerCredentials        :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'Authorizer' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'aAuthorizerURI' - [Required] Specifies the authorizer's Uniform Resource Identifier (URI). For @TOKEN@ 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.------ * 'aIdentityValidationExpression' - A validation expression for the incoming identity. For @TOKEN@ authorizers, this value should be a regular expression. The incoming token from the client is matched against this expression, and will proceed if the token matches. If the token doesn't match, the client receives a 401 Unauthorized response.------ * 'aProviderARNs' - A list of the provider ARNs of the authorizer. For an @TOKEN@ authorizer, this is not defined. For authorizers of the @COGNITO_USER_POOLS@ type, each element corresponds to a user pool ARN of this format: @arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}@ .------ * 'aName' - [Required] The name of the authorizer.------ * 'aId' - The identifier for the authorizer resource.------ * 'aAuthorizerResultTtlInSeconds' - The TTL in seconds of cached authorizer results. If 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.------ * 'aAuthType' - Optional customer-defined field, used in Swagger imports/exports. Has no functional impact.------ * 'aType' - [Required] The type of the authorizer. Currently, the valid type is @TOKEN@ for a Lambda function or @COGNITO_USER_POOLS@ for an Amazon Cognito user pool.------ * 'aIdentitySource' - [Required] The source of the identity in an incoming request. For a @TOKEN@ authorizer, this value is a mapping expression with the same syntax as integration parameter mappings. The only valid source for tokens is 'header', so the expression should match 'method.request.header.[headerName]'. The value of the header '[headerName]' will be interpreted as the incoming token. For @COGNITO_USER_POOLS@ authorizers, this property is used.------ * 'aAuthorizerCredentials' - Specifies the credentials required for the authorizer, if any. Two options are available. To specify an IAM role for Amazon API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.-authorizer-    :: Authorizer-authorizer =-    Authorizer'-    { _aAuthorizerURI = Nothing-    , _aIdentityValidationExpression = Nothing-    , _aProviderARNs = Nothing-    , _aName = Nothing-    , _aId = Nothing-    , _aAuthorizerResultTtlInSeconds = Nothing-    , _aAuthType = Nothing-    , _aType = Nothing-    , _aIdentitySource = Nothing-    , _aAuthorizerCredentials = Nothing-    }---- | [Required] Specifies the authorizer's Uniform Resource Identifier (URI). For @TOKEN@ 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.-aAuthorizerURI :: Lens' Authorizer (Maybe Text)-aAuthorizerURI = lens _aAuthorizerURI (\ s a -> s{_aAuthorizerURI = a});---- | A validation expression for the incoming identity. For @TOKEN@ authorizers, this value should be a regular expression. The incoming token from the client is matched against this expression, and will proceed if the token matches. If the token doesn't match, the client receives a 401 Unauthorized response.-aIdentityValidationExpression :: Lens' Authorizer (Maybe Text)-aIdentityValidationExpression = lens _aIdentityValidationExpression (\ s a -> s{_aIdentityValidationExpression = a});---- | A list of the provider ARNs of the authorizer. For an @TOKEN@ authorizer, this is not defined. For authorizers of the @COGNITO_USER_POOLS@ type, each element corresponds to a user pool ARN of this format: @arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}@ .-aProviderARNs :: Lens' Authorizer [Text]-aProviderARNs = lens _aProviderARNs (\ s a -> s{_aProviderARNs = a}) . _Default . _Coerce;---- | [Required] The name of the authorizer.-aName :: Lens' Authorizer (Maybe Text)-aName = lens _aName (\ s a -> s{_aName = a});---- | The identifier for the authorizer resource.-aId :: Lens' Authorizer (Maybe Text)-aId = lens _aId (\ s a -> s{_aId = a});---- | The TTL in seconds of cached authorizer results. If 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.-aAuthorizerResultTtlInSeconds :: Lens' Authorizer (Maybe Int)-aAuthorizerResultTtlInSeconds = lens _aAuthorizerResultTtlInSeconds (\ s a -> s{_aAuthorizerResultTtlInSeconds = a});---- | Optional customer-defined field, used in Swagger imports/exports. Has no functional impact.-aAuthType :: Lens' Authorizer (Maybe Text)-aAuthType = lens _aAuthType (\ s a -> s{_aAuthType = a});---- | [Required] The type of the authorizer. Currently, the valid type is @TOKEN@ for a Lambda function or @COGNITO_USER_POOLS@ for an Amazon Cognito user pool.-aType :: Lens' Authorizer (Maybe AuthorizerType)-aType = lens _aType (\ s a -> s{_aType = a});---- | [Required] The source of the identity in an incoming request. For a @TOKEN@ authorizer, this value is a mapping expression with the same syntax as integration parameter mappings. The only valid source for tokens is 'header', so the expression should match 'method.request.header.[headerName]'. The value of the header '[headerName]' will be interpreted as the incoming token. For @COGNITO_USER_POOLS@ authorizers, this property is used.-aIdentitySource :: Lens' Authorizer (Maybe Text)-aIdentitySource = lens _aIdentitySource (\ s a -> s{_aIdentitySource = a});---- | Specifies the credentials required for the authorizer, if any. Two options are available. To specify an IAM role for Amazon API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.-aAuthorizerCredentials :: Lens' Authorizer (Maybe Text)-aAuthorizerCredentials = lens _aAuthorizerCredentials (\ s a -> s{_aAuthorizerCredentials = a});--instance FromJSON Authorizer where-        parseJSON-          = withObject "Authorizer"-              (\ x ->-                 Authorizer' <$>-                   (x .:? "authorizerUri") <*>-                     (x .:? "identityValidationExpression")-                     <*> (x .:? "providerARNs" .!= mempty)-                     <*> (x .:? "name")-                     <*> (x .:? "id")-                     <*> (x .:? "authorizerResultTtlInSeconds")-                     <*> (x .:? "authType")-                     <*> (x .:? "type")-                     <*> (x .:? "identitySource")-                     <*> (x .:? "authorizerCredentials"))--instance Hashable Authorizer--instance NFData Authorizer---- | 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' .<http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html Use Custom Domain Names>------ /See:/ 'basePathMapping' smart constructor.-data BasePathMapping = BasePathMapping'-    { _bpmStage     :: !(Maybe Text)-    , _bpmBasePath  :: !(Maybe Text)-    , _bpmRestAPIId :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'BasePathMapping' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'bpmStage' - The name of the API's stage.------ * 'bpmBasePath' - The base path name that callers of the API must provide as part of the URL after the domain name.------ * 'bpmRestAPIId' - The name of the API.-basePathMapping-    :: BasePathMapping-basePathMapping =-    BasePathMapping'-    { _bpmStage = Nothing-    , _bpmBasePath = Nothing-    , _bpmRestAPIId = Nothing-    }---- | The name of the API's stage.-bpmStage :: Lens' BasePathMapping (Maybe Text)-bpmStage = lens _bpmStage (\ s a -> s{_bpmStage = a});---- | The base path name that callers of the API must provide as part of the URL after the domain name.-bpmBasePath :: Lens' BasePathMapping (Maybe Text)-bpmBasePath = lens _bpmBasePath (\ s a -> s{_bpmBasePath = a});---- | The name of the API.-bpmRestAPIId :: Lens' BasePathMapping (Maybe Text)-bpmRestAPIId = lens _bpmRestAPIId (\ s a -> s{_bpmRestAPIId = a});--instance FromJSON BasePathMapping where-        parseJSON-          = withObject "BasePathMapping"-              (\ x ->-                 BasePathMapping' <$>-                   (x .:? "stage") <*> (x .:? "basePath") <*>-                     (x .:? "restApiId"))--instance Hashable BasePathMapping--instance NFData BasePathMapping---- | Represents a client certificate used to configure client-side SSL authentication while sending requests to the integration endpoint.--------- Client certificates are used authenticate an API by the back-end server. To authenticate an API client (or user), use a custom 'Authorizer' .<http://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html Use Client-Side Certificate>------ /See:/ 'clientCertificate' smart constructor.-data ClientCertificate = ClientCertificate'-    { _ccPemEncodedCertificate :: !(Maybe Text)-    , _ccClientCertificateId   :: !(Maybe Text)-    , _ccCreatedDate           :: !(Maybe POSIX)-    , _ccExpirationDate        :: !(Maybe POSIX)-    , _ccDescription           :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ClientCertificate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ccPemEncodedCertificate' - The PEM-encoded public key of the client certificate, which can be used to configure certificate authentication in the integration endpoint .------ * 'ccClientCertificateId' - The identifier of the client certificate.------ * 'ccCreatedDate' - The date when the client certificate was created, in <http://www.iso.org/iso/home/standards/iso8601.htm ISO 8601 format> .------ * 'ccExpirationDate' - The date when the client certificate will expire, in <http://www.iso.org/iso/home/standards/iso8601.htm ISO 8601 format> .------ * 'ccDescription' - The description of the client certificate.-clientCertificate-    :: ClientCertificate-clientCertificate =-    ClientCertificate'-    { _ccPemEncodedCertificate = Nothing-    , _ccClientCertificateId = Nothing-    , _ccCreatedDate = Nothing-    , _ccExpirationDate = Nothing-    , _ccDescription = Nothing-    }---- | The PEM-encoded public key of the client certificate, which can be used to configure certificate authentication in the integration endpoint .-ccPemEncodedCertificate :: Lens' ClientCertificate (Maybe Text)-ccPemEncodedCertificate = lens _ccPemEncodedCertificate (\ s a -> s{_ccPemEncodedCertificate = a});---- | The identifier of the client certificate.-ccClientCertificateId :: Lens' ClientCertificate (Maybe Text)-ccClientCertificateId = lens _ccClientCertificateId (\ s a -> s{_ccClientCertificateId = a});---- | The date when the client certificate was created, in <http://www.iso.org/iso/home/standards/iso8601.htm ISO 8601 format> .-ccCreatedDate :: Lens' ClientCertificate (Maybe UTCTime)-ccCreatedDate = lens _ccCreatedDate (\ s a -> s{_ccCreatedDate = a}) . mapping _Time;---- | The date when the client certificate will expire, in <http://www.iso.org/iso/home/standards/iso8601.htm ISO 8601 format> .-ccExpirationDate :: Lens' ClientCertificate (Maybe UTCTime)-ccExpirationDate = lens _ccExpirationDate (\ s a -> s{_ccExpirationDate = a}) . mapping _Time;---- | The description of the client certificate.-ccDescription :: Lens' ClientCertificate (Maybe Text)-ccDescription = lens _ccDescription (\ s a -> s{_ccDescription = a});--instance FromJSON ClientCertificate where-        parseJSON-          = withObject "ClientCertificate"-              (\ x ->-                 ClientCertificate' <$>-                   (x .:? "pemEncodedCertificate") <*>-                     (x .:? "clientCertificateId")-                     <*> (x .:? "createdDate")-                     <*> (x .:? "expirationDate")-                     <*> (x .:? "description"))--instance Hashable ClientCertificate--instance NFData ClientCertificate---- | 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' , <http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-deployment.html AWS CLI> , <https://aws.amazon.com/tools/ AWS SDKs>------ /See:/ 'deployment' smart constructor.-data Deployment = Deployment'-    { _dApiSummary  :: !(Maybe (Map Text (Map Text MethodSnapshot)))-    , _dCreatedDate :: !(Maybe POSIX)-    , _dId          :: !(Maybe Text)-    , _dDescription :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'Deployment' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dApiSummary' - A summary of the 'RestApi' at the date and time that the deployment resource was created.------ * 'dCreatedDate' - The date and time that the deployment resource was created.------ * 'dId' - The identifier for the deployment resource.------ * 'dDescription' - The description for the deployment resource.-deployment-    :: Deployment-deployment =-    Deployment'-    { _dApiSummary = Nothing-    , _dCreatedDate = Nothing-    , _dId = Nothing-    , _dDescription = Nothing-    }---- | A summary of the 'RestApi' at the date and time that the deployment resource was created.-dApiSummary :: Lens' Deployment (HashMap Text (HashMap Text MethodSnapshot))-dApiSummary = lens _dApiSummary (\ s a -> s{_dApiSummary = a}) . _Default . _Map;---- | The date and time that the deployment resource was created.-dCreatedDate :: Lens' Deployment (Maybe UTCTime)-dCreatedDate = lens _dCreatedDate (\ s a -> s{_dCreatedDate = a}) . mapping _Time;---- | The identifier for the deployment resource.-dId :: Lens' Deployment (Maybe Text)-dId = lens _dId (\ s a -> s{_dId = a});---- | The description for the deployment resource.-dDescription :: Lens' Deployment (Maybe Text)-dDescription = lens _dDescription (\ s a -> s{_dDescription = a});--instance FromJSON Deployment where-        parseJSON-          = withObject "Deployment"-              (\ x ->-                 Deployment' <$>-                   (x .:? "apiSummary" .!= mempty) <*>-                     (x .:? "createdDate")-                     <*> (x .:? "id")-                     <*> (x .:? "description"))--instance Hashable Deployment--instance NFData Deployment---- | 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 Swagger-compliant documentation fields will be injected into the associated API entity definition in the exported Swagger definition file.------ <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api.html Documenting an API> , 'DocumentationParts'------ /See:/ 'documentationPart' smart constructor.-data DocumentationPart = DocumentationPart'-    { _dpLocation   :: !(Maybe DocumentationPartLocation)-    , _dpId         :: !(Maybe Text)-    , _dpProperties :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'DocumentationPart' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dpLocation' - 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.------ * 'dpId' - The 'DocumentationPart' identifier, generated by Amazon API Gateway when the @DocumentationPart@ is created.------ * 'dpProperties' - 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 Swagger-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 Swagger extension of @x-amazon-apigateway-documentation@ .-documentationPart-    :: DocumentationPart-documentationPart =-    DocumentationPart'-    { _dpLocation = Nothing-    , _dpId = Nothing-    , _dpProperties = Nothing-    }---- | 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.-dpLocation :: Lens' DocumentationPart (Maybe DocumentationPartLocation)-dpLocation = lens _dpLocation (\ s a -> s{_dpLocation = a});---- | The 'DocumentationPart' identifier, generated by Amazon API Gateway when the @DocumentationPart@ is created.-dpId :: Lens' DocumentationPart (Maybe Text)-dpId = lens _dpId (\ s a -> s{_dpId = a});---- | 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 Swagger-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 Swagger extension of @x-amazon-apigateway-documentation@ .-dpProperties :: Lens' DocumentationPart (Maybe Text)-dpProperties = lens _dpProperties (\ s a -> s{_dpProperties = a});--instance FromJSON DocumentationPart where-        parseJSON-          = withObject "DocumentationPart"-              (\ x ->-                 DocumentationPart' <$>-                   (x .:? "location") <*> (x .:? "id") <*>-                     (x .:? "properties"))--instance Hashable DocumentationPart--instance NFData DocumentationPart---- | Specifies the target API entity to which the documentation applies.------------ /See:/ 'documentationPartLocation' smart constructor.-data DocumentationPartLocation = DocumentationPartLocation'-    { _dplPath       :: !(Maybe Text)-    , _dplName       :: !(Maybe Text)-    , _dplMethod     :: !(Maybe Text)-    , _dplStatusCode :: !(Maybe Text)-    , _dplType       :: !DocumentationPartType-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'DocumentationPartLocation' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dplPath' - The URL path of the target. It is a valid field for the API entity types of @RESOURCE@ , @METHOD@ , @PATH_PARAMETER@ , @QUERY_PARAMETER@ , @REQUEST_HEADER@ , @REQUEST_BODY@ , @RESPONSE@ , @RESPONSE_HEADER@ , and @RESPONSE_BODY@ . The default value is @/@ for the root resource. When an applicable child entity inherits the content of another entity of the same type with more general specifications of the other @location@ attributes, the child entity's @path@ attribute must match that of the parent entity as a prefix.------ * 'dplName' - The name of the targeted API entity. It is a valid and required field for the API entity types of @AUTHORIZER@ , @MODEL@ , @PATH_PARAMETER@ , @QUERY_PARAMETER@ , @REQUEST_HEADER@ , @REQUEST_BODY@ and @RESPONSE_HEADER@ . It is an invalid field for any other entity type.------ * 'dplMethod' - The HTTP verb of a method. It is a valid field for the API entity types of @METHOD@ , @PATH_PARAMETER@ , @QUERY_PARAMETER@ , @REQUEST_HEADER@ , @REQUEST_BODY@ , @RESPONSE@ , @RESPONSE_HEADER@ , and @RESPONSE_BODY@ . The default value is @*@ for any method. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other @location@ attributes, the child entity's @method@ attribute must match that of the parent entity exactly.------ * 'dplStatusCode' - The HTTP status code of a response. It is a valid field for the API entity types of @RESPONSE@ , @RESPONSE_HEADER@ , and @RESPONSE_BODY@ . The default value is @*@ for any status code. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other @location@ attributes, the child entity's @statusCode@ attribute must match that of the parent entity exactly.------ * 'dplType' - The type of API entity to which the documentation content applies. It is a valid and required field for API entity types of @API@ , @AUTHORIZER@ , @MODEL@ , @RESOURCE@ , @METHOD@ , @PATH_PARAMETER@ , @QUERY_PARAMETER@ , @REQUEST_HEADER@ , @REQUEST_BODY@ , @RESPONSE@ , @RESPONSE_HEADER@ , and @RESPONSE_BODY@ . Content inheritance does not apply to any entity of the @API@ , @AUTHROZER@ , @MODEL@ , or @RESOURCE@ type.-documentationPartLocation-    :: DocumentationPartType -- ^ 'dplType'-    -> DocumentationPartLocation-documentationPartLocation pType_ =-    DocumentationPartLocation'-    { _dplPath = Nothing-    , _dplName = Nothing-    , _dplMethod = Nothing-    , _dplStatusCode = Nothing-    , _dplType = pType_-    }---- | The URL path of the target. It is a valid field for the API entity types of @RESOURCE@ , @METHOD@ , @PATH_PARAMETER@ , @QUERY_PARAMETER@ , @REQUEST_HEADER@ , @REQUEST_BODY@ , @RESPONSE@ , @RESPONSE_HEADER@ , and @RESPONSE_BODY@ . The default value is @/@ for the root resource. When an applicable child entity inherits the content of another entity of the same type with more general specifications of the other @location@ attributes, the child entity's @path@ attribute must match that of the parent entity as a prefix.-dplPath :: Lens' DocumentationPartLocation (Maybe Text)-dplPath = lens _dplPath (\ s a -> s{_dplPath = a});---- | The name of the targeted API entity. It is a valid and required field for the API entity types of @AUTHORIZER@ , @MODEL@ , @PATH_PARAMETER@ , @QUERY_PARAMETER@ , @REQUEST_HEADER@ , @REQUEST_BODY@ and @RESPONSE_HEADER@ . It is an invalid field for any other entity type.-dplName :: Lens' DocumentationPartLocation (Maybe Text)-dplName = lens _dplName (\ s a -> s{_dplName = a});---- | The HTTP verb of a method. It is a valid field for the API entity types of @METHOD@ , @PATH_PARAMETER@ , @QUERY_PARAMETER@ , @REQUEST_HEADER@ , @REQUEST_BODY@ , @RESPONSE@ , @RESPONSE_HEADER@ , and @RESPONSE_BODY@ . The default value is @*@ for any method. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other @location@ attributes, the child entity's @method@ attribute must match that of the parent entity exactly.-dplMethod :: Lens' DocumentationPartLocation (Maybe Text)-dplMethod = lens _dplMethod (\ s a -> s{_dplMethod = a});---- | The HTTP status code of a response. It is a valid field for the API entity types of @RESPONSE@ , @RESPONSE_HEADER@ , and @RESPONSE_BODY@ . The default value is @*@ for any status code. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other @location@ attributes, the child entity's @statusCode@ attribute must match that of the parent entity exactly.-dplStatusCode :: Lens' DocumentationPartLocation (Maybe Text)-dplStatusCode = lens _dplStatusCode (\ s a -> s{_dplStatusCode = a});---- | The type of API entity to which the documentation content applies. It is a valid and required field for API entity types of @API@ , @AUTHORIZER@ , @MODEL@ , @RESOURCE@ , @METHOD@ , @PATH_PARAMETER@ , @QUERY_PARAMETER@ , @REQUEST_HEADER@ , @REQUEST_BODY@ , @RESPONSE@ , @RESPONSE_HEADER@ , and @RESPONSE_BODY@ . Content inheritance does not apply to any entity of the @API@ , @AUTHROZER@ , @MODEL@ , or @RESOURCE@ type.-dplType :: Lens' DocumentationPartLocation DocumentationPartType-dplType = lens _dplType (\ s a -> s{_dplType = a});--instance FromJSON DocumentationPartLocation where-        parseJSON-          = withObject "DocumentationPartLocation"-              (\ x ->-                 DocumentationPartLocation' <$>-                   (x .:? "path") <*> (x .:? "name") <*>-                     (x .:? "method")-                     <*> (x .:? "statusCode")-                     <*> (x .: "type"))--instance Hashable DocumentationPartLocation--instance NFData DocumentationPartLocation--instance ToJSON DocumentationPartLocation where-        toJSON DocumentationPartLocation'{..}-          = object-              (catMaybes-                 [("path" .=) <$> _dplPath, ("name" .=) <$> _dplName,-                  ("method" .=) <$> _dplMethod,-                  ("statusCode" .=) <$> _dplStatusCode,-                  Just ("type" .= _dplType)])---- | 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., Swagger) file.------ <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api.html Documenting an API> , 'DocumentationPart' , 'DocumentationVersions'------ /See:/ 'documentationVersion' smart constructor.-data DocumentationVersion = DocumentationVersion'-    { _dvCreatedDate :: !(Maybe POSIX)-    , _dvVersion     :: !(Maybe Text)-    , _dvDescription :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'DocumentationVersion' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dvCreatedDate' - The date when the API documentation snapshot is created.------ * 'dvVersion' - The version identifier of the API documentation snapshot.------ * 'dvDescription' - The description of the API documentation snapshot.-documentationVersion-    :: DocumentationVersion-documentationVersion =-    DocumentationVersion'-    { _dvCreatedDate = Nothing-    , _dvVersion = Nothing-    , _dvDescription = Nothing-    }---- | The date when the API documentation snapshot is created.-dvCreatedDate :: Lens' DocumentationVersion (Maybe UTCTime)-dvCreatedDate = lens _dvCreatedDate (\ s a -> s{_dvCreatedDate = a}) . mapping _Time;---- | The version identifier of the API documentation snapshot.-dvVersion :: Lens' DocumentationVersion (Maybe Text)-dvVersion = lens _dvVersion (\ s a -> s{_dvVersion = a});---- | The description of the API documentation snapshot.-dvDescription :: Lens' DocumentationVersion (Maybe Text)-dvDescription = lens _dvDescription (\ s a -> s{_dvDescription = a});--instance FromJSON DocumentationVersion where-        parseJSON-          = withObject "DocumentationVersion"-              (\ x ->-                 DocumentationVersion' <$>-                   (x .:? "createdDate") <*> (x .:? "version") <*>-                     (x .:? "description"))--instance Hashable DocumentationVersion--instance NFData DocumentationVersion---- | Represents a domain name that is contained in a simpler, more intuitive URL that can be called.--------- <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html Use Client-Side Certificate>------ /See:/ 'domainName' smart constructor.-data DomainName = DomainName'-    { _dnCertificateName        :: !(Maybe Text)-    , _dnDomainName             :: !(Maybe Text)-    , _dnCertificateUploadDate  :: !(Maybe POSIX)-    , _dnDistributionDomainName :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'DomainName' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dnCertificateName' - The name of the certificate.------ * 'dnDomainName' - The name of the 'DomainName' resource.------ * 'dnCertificateUploadDate' - The date when the certificate was uploaded, in <http://www.iso.org/iso/home/standards/iso8601.htm ISO 8601 format> .------ * 'dnDistributionDomainName' - The domain name of the Amazon CloudFront distribution. For more information, see the <http://aws.amazon.com/documentation/cloudfront/ Amazon CloudFront documentation> .-domainName-    :: DomainName-domainName =-    DomainName'-    { _dnCertificateName = Nothing-    , _dnDomainName = Nothing-    , _dnCertificateUploadDate = Nothing-    , _dnDistributionDomainName = Nothing-    }---- | The name of the certificate.-dnCertificateName :: Lens' DomainName (Maybe Text)-dnCertificateName = lens _dnCertificateName (\ s a -> s{_dnCertificateName = a});---- | The name of the 'DomainName' resource.-dnDomainName :: Lens' DomainName (Maybe Text)-dnDomainName = lens _dnDomainName (\ s a -> s{_dnDomainName = a});---- | The date when the certificate was uploaded, in <http://www.iso.org/iso/home/standards/iso8601.htm ISO 8601 format> .-dnCertificateUploadDate :: Lens' DomainName (Maybe UTCTime)-dnCertificateUploadDate = lens _dnCertificateUploadDate (\ s a -> s{_dnCertificateUploadDate = a}) . mapping _Time;---- | The domain name of the Amazon CloudFront distribution. For more information, see the <http://aws.amazon.com/documentation/cloudfront/ Amazon CloudFront documentation> .-dnDistributionDomainName :: Lens' DomainName (Maybe Text)-dnDistributionDomainName = lens _dnDistributionDomainName (\ s a -> s{_dnDistributionDomainName = a});--instance FromJSON DomainName where-        parseJSON-          = withObject "DomainName"-              (\ x ->-                 DomainName' <$>-                   (x .:? "certificateName") <*> (x .:? "domainName")-                     <*> (x .:? "certificateUploadDate")-                     <*> (x .:? "distributionDomainName"))--instance Hashable DomainName--instance NFData DomainName---- | 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.<http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html Creating an API> , <http://docs.aws.amazon.com/apigateway/latest/developerguide/.html >------ /See:/ 'integration' smart constructor.-data Integration = Integration'-    { _iHttpMethod           :: !(Maybe Text)-    , _iRequestTemplates     :: !(Maybe (Map Text Text))-    , _iCredentials          :: !(Maybe Text)-    , _iRequestParameters    :: !(Maybe (Map Text Text))-    , _iContentHandling      :: !(Maybe ContentHandlingStrategy)-    , _iPassthroughBehavior  :: !(Maybe Text)-    , _iUri                  :: !(Maybe Text)-    , _iIntegrationResponses :: !(Maybe (Map Text IntegrationResponse))-    , _iCacheNamespace       :: !(Maybe Text)-    , _iType                 :: !(Maybe IntegrationType)-    , _iCacheKeyParameters   :: !(Maybe [Text])-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'Integration' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'iHttpMethod' - Specifies the integration's HTTP method type.------ * 'iRequestTemplates' - 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.------ * 'iCredentials' - Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for Amazon 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.------ * 'iRequestParameters' - 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.------ * 'iContentHandling' - 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 @passthroughBehaviors@ is configured to support payload pass-through.------ * 'iPassthroughBehavior' - 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@ . There are three valid values: @WHEN_NO_MATCH@ , @WHEN_NO_TEMPLATES@ , and @NEVER@ .      * @WHEN_NO_MATCH@ passes the method request body through the integration request to the back end without transformation when the method request content type does not match any content type associated with the mapping templates defined in the integration request.     * @WHEN_NO_TEMPLATES@ passes the method request body through the integration request to the back end without transformation when no mapping template is defined in the integration request. If a template is defined when this option is selected, the method request of an unmapped content-type will be rejected with an HTTP @415 Unsupported Media Type@ response.     * @NEVER@ rejects the method request with an HTTP @415 Unsupported Media Type@ response when either the method request content type does not match any content type associated with the mapping templates defined in the integration request or no mapping template is defined in the integration request.------ * 'iUri' - Specifies the integration's Uniform Resource Identifier (URI). For HTTP integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the <https://www.ietf.org/rfc/rfc3986.txt RFC-3986 specification> . For AWS integrations, the URI should be of the form @arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}@ . @Region@ , @subdomain@ and @service@ are used to determine the right endpoint. For AWS services that use the @Action=@ query string parameter, @service_api@ should be a valid action for the desired service. For RESTful AWS service APIs, @path@ is used to indicate that the remaining substring in the URI should be treated as the path to the resource, including the initial @/@ .------ * 'iIntegrationResponses' - 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": "http://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" }@ @  <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html Creating an API>------ * 'iCacheNamespace' - Specifies the integration's cache namespace.------ * 'iType' - Specifies the integration's type. The valid value is @HTTP@ for integrating with an HTTP back end, @AWS@ for any AWS service endpoints, @MOCK@ for testing without actually invoking the back end, @HTTP_PROXY@ for integrating with the HTTP proxy integration, or @AWS_PROXY@ for integrating with the Lambda proxy integration type.------ * 'iCacheKeyParameters' - Specifies the integration's cache key parameters.-integration-    :: Integration-integration =-    Integration'-    { _iHttpMethod = Nothing-    , _iRequestTemplates = Nothing-    , _iCredentials = Nothing-    , _iRequestParameters = Nothing-    , _iContentHandling = Nothing-    , _iPassthroughBehavior = Nothing-    , _iUri = Nothing-    , _iIntegrationResponses = Nothing-    , _iCacheNamespace = Nothing-    , _iType = Nothing-    , _iCacheKeyParameters = Nothing-    }---- | Specifies the integration's HTTP method type.-iHttpMethod :: Lens' Integration (Maybe Text)-iHttpMethod = lens _iHttpMethod (\ s a -> s{_iHttpMethod = a});---- | 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.-iRequestTemplates :: Lens' Integration (HashMap Text Text)-iRequestTemplates = lens _iRequestTemplates (\ s a -> s{_iRequestTemplates = a}) . _Default . _Map;---- | Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for Amazon 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.-iCredentials :: Lens' Integration (Maybe Text)-iCredentials = lens _iCredentials (\ s a -> s{_iCredentials = a});---- | 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.-iRequestParameters :: Lens' Integration (HashMap Text Text)-iRequestParameters = lens _iRequestParameters (\ s a -> s{_iRequestParameters = a}) . _Default . _Map;---- | 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 @passthroughBehaviors@ is configured to support payload pass-through.-iContentHandling :: Lens' Integration (Maybe ContentHandlingStrategy)-iContentHandling = lens _iContentHandling (\ s a -> s{_iContentHandling = a});---- | 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@ . There are three valid values: @WHEN_NO_MATCH@ , @WHEN_NO_TEMPLATES@ , and @NEVER@ .      * @WHEN_NO_MATCH@ passes the method request body through the integration request to the back end without transformation when the method request content type does not match any content type associated with the mapping templates defined in the integration request.     * @WHEN_NO_TEMPLATES@ passes the method request body through the integration request to the back end without transformation when no mapping template is defined in the integration request. If a template is defined when this option is selected, the method request of an unmapped content-type will be rejected with an HTTP @415 Unsupported Media Type@ response.     * @NEVER@ rejects the method request with an HTTP @415 Unsupported Media Type@ response when either the method request content type does not match any content type associated with the mapping templates defined in the integration request or no mapping template is defined in the integration request.-iPassthroughBehavior :: Lens' Integration (Maybe Text)-iPassthroughBehavior = lens _iPassthroughBehavior (\ s a -> s{_iPassthroughBehavior = a});---- | Specifies the integration's Uniform Resource Identifier (URI). For HTTP integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the <https://www.ietf.org/rfc/rfc3986.txt RFC-3986 specification> . For AWS integrations, the URI should be of the form @arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}@ . @Region@ , @subdomain@ and @service@ are used to determine the right endpoint. For AWS services that use the @Action=@ query string parameter, @service_api@ should be a valid action for the desired service. For RESTful AWS service APIs, @path@ is used to indicate that the remaining substring in the URI should be treated as the path to the resource, including the initial @/@ .-iUri :: Lens' Integration (Maybe Text)-iUri = lens _iUri (\ s a -> s{_iUri = a});---- | 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": "http://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" }@ @  <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html Creating an API>-iIntegrationResponses :: Lens' Integration (HashMap Text IntegrationResponse)-iIntegrationResponses = lens _iIntegrationResponses (\ s a -> s{_iIntegrationResponses = a}) . _Default . _Map;---- | Specifies the integration's cache namespace.-iCacheNamespace :: Lens' Integration (Maybe Text)-iCacheNamespace = lens _iCacheNamespace (\ s a -> s{_iCacheNamespace = a});---- | Specifies the integration's type. The valid value is @HTTP@ for integrating with an HTTP back end, @AWS@ for any AWS service endpoints, @MOCK@ for testing without actually invoking the back end, @HTTP_PROXY@ for integrating with the HTTP proxy integration, or @AWS_PROXY@ for integrating with the Lambda proxy integration type.-iType :: Lens' Integration (Maybe IntegrationType)-iType = lens _iType (\ s a -> s{_iType = a});---- | Specifies the integration's cache key parameters.-iCacheKeyParameters :: Lens' Integration [Text]-iCacheKeyParameters = lens _iCacheKeyParameters (\ s a -> s{_iCacheKeyParameters = a}) . _Default . _Coerce;--instance FromJSON Integration where-        parseJSON-          = withObject "Integration"-              (\ x ->-                 Integration' <$>-                   (x .:? "httpMethod") <*>-                     (x .:? "requestTemplates" .!= mempty)-                     <*> (x .:? "credentials")-                     <*> (x .:? "requestParameters" .!= mempty)-                     <*> (x .:? "contentHandling")-                     <*> (x .:? "passthroughBehavior")-                     <*> (x .:? "uri")-                     <*> (x .:? "integrationResponses" .!= mempty)-                     <*> (x .:? "cacheNamespace")-                     <*> (x .:? "type")-                     <*> (x .:? "cacheKeyParameters" .!= mempty))--instance Hashable Integration--instance NFData Integration---- | 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.--------- <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html Creating an API>------ /See:/ 'integrationResponse' smart constructor.-data IntegrationResponse = IntegrationResponse'-    { _intContentHandling    :: !(Maybe ContentHandlingStrategy)-    , _intResponseTemplates  :: !(Maybe (Map Text Text))-    , _intSelectionPattern   :: !(Maybe Text)-    , _intStatusCode         :: !(Maybe Text)-    , _intResponseParameters :: !(Maybe (Map Text Text))-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'IntegrationResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'intContentHandling' - 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.------ * 'intResponseTemplates' - 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.------ * 'intSelectionPattern' - 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.------ * 'intStatusCode' - Specifies the status code that is used to map the integration response to an existing 'MethodResponse' .------ * 'intResponseParameters' - A key-value map specifying response parameters that are passed to the method response from the back end. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of @method.response.header.{name}@ , where @name@ is a valid and unique header name. The mapped non-static value must match the pattern of @integration.response.header.{name}@ or @integration.response.body.{JSON-expression}@ , where @name@ is a valid and unique response header name and @JSON-expression@ is a valid JSON expression without the @> @ prefix.-integrationResponse-    :: IntegrationResponse-integrationResponse =-    IntegrationResponse'-    { _intContentHandling = Nothing-    , _intResponseTemplates = Nothing-    , _intSelectionPattern = Nothing-    , _intStatusCode = Nothing-    , _intResponseParameters = Nothing-    }---- | 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.-intContentHandling :: Lens' IntegrationResponse (Maybe ContentHandlingStrategy)-intContentHandling = lens _intContentHandling (\ s a -> s{_intContentHandling = a});---- | 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.-intResponseTemplates :: Lens' IntegrationResponse (HashMap Text Text)-intResponseTemplates = lens _intResponseTemplates (\ s a -> s{_intResponseTemplates = a}) . _Default . _Map;---- | 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.-intSelectionPattern :: Lens' IntegrationResponse (Maybe Text)-intSelectionPattern = lens _intSelectionPattern (\ s a -> s{_intSelectionPattern = a});---- | Specifies the status code that is used to map the integration response to an existing 'MethodResponse' .-intStatusCode :: Lens' IntegrationResponse (Maybe Text)-intStatusCode = lens _intStatusCode (\ s a -> s{_intStatusCode = a});---- | 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.-intResponseParameters :: Lens' IntegrationResponse (HashMap Text Text)-intResponseParameters = lens _intResponseParameters (\ s a -> s{_intResponseParameters = a}) . _Default . _Map;--instance FromJSON IntegrationResponse where-        parseJSON-          = withObject "IntegrationResponse"-              (\ x ->-                 IntegrationResponse' <$>-                   (x .:? "contentHandling") <*>-                     (x .:? "responseTemplates" .!= mempty)-                     <*> (x .:? "selectionPattern")-                     <*> (x .:? "statusCode")-                     <*> (x .:? "responseParameters" .!= mempty))--instance Hashable IntegrationResponse--instance NFData IntegrationResponse---- | 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": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", "name": "integrationresponse", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html", "name": "method", "templated": true }, { "href": "http://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 <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#util-templat-reference > util.urlDecode()> helper function.------ 'MethodResponse' , 'Integration' , 'IntegrationResponse' , 'Resource' , <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-method-settings.html Set up an API's method>------ /See:/ 'method' smart constructor.-data Method = Method'-    { _mMethodResponses   :: !(Maybe (Map Text MethodResponse))-    , _mHttpMethod        :: !(Maybe Text)-    , _mRequestModels     :: !(Maybe (Map Text Text))-    , _mRequestParameters :: !(Maybe (Map Text Bool))-    , _mAuthorizerId      :: !(Maybe Text)-    , _mAuthorizationType :: !(Maybe Text)-    , _mApiKeyRequired    :: !(Maybe Bool)-    , _mMethodIntegration :: !(Maybe Integration)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'Method' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mMethodResponses' - 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": "http://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" }@ @  <http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-method-response.html AWS CLI>------ * 'mHttpMethod' - The method's HTTP verb.------ * 'mRequestModels' - 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).------ * 'mRequestParameters' - A key-value map defining required or optional method request parameters that can be accepted by Amazon 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.------ * 'mAuthorizerId' - The identifier of an 'Authorizer' to use on this method. The @authorizationType@ must be @CUSTOM@ .------ * 'mAuthorizationType' - The method's authorization type.------ * 'mApiKeyRequired' - A boolean flag specifying whether a valid 'ApiKey' is required to invoke this method.------ * 'mMethodIntegration' - 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": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", "name": "integration", "templated": true }, { "href": "http://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" } } }@ @  <http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-integration.html AWS CLI>-method-    :: Method-method =-    Method'-    { _mMethodResponses = Nothing-    , _mHttpMethod = Nothing-    , _mRequestModels = Nothing-    , _mRequestParameters = Nothing-    , _mAuthorizerId = Nothing-    , _mAuthorizationType = Nothing-    , _mApiKeyRequired = Nothing-    , _mMethodIntegration = Nothing-    }---- | 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": "http://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" }@ @  <http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-method-response.html AWS CLI>-mMethodResponses :: Lens' Method (HashMap Text MethodResponse)-mMethodResponses = lens _mMethodResponses (\ s a -> s{_mMethodResponses = a}) . _Default . _Map;---- | The method's HTTP verb.-mHttpMethod :: Lens' Method (Maybe Text)-mHttpMethod = lens _mHttpMethod (\ s a -> s{_mHttpMethod = a});---- | 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).-mRequestModels :: Lens' Method (HashMap Text Text)-mRequestModels = lens _mRequestModels (\ s a -> s{_mRequestModels = a}) . _Default . _Map;---- | A key-value map defining required or optional method request parameters that can be accepted by Amazon 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.-mRequestParameters :: Lens' Method (HashMap Text Bool)-mRequestParameters = lens _mRequestParameters (\ s a -> s{_mRequestParameters = a}) . _Default . _Map;---- | The identifier of an 'Authorizer' to use on this method. The @authorizationType@ must be @CUSTOM@ .-mAuthorizerId :: Lens' Method (Maybe Text)-mAuthorizerId = lens _mAuthorizerId (\ s a -> s{_mAuthorizerId = a});---- | The method's authorization type.-mAuthorizationType :: Lens' Method (Maybe Text)-mAuthorizationType = lens _mAuthorizationType (\ s a -> s{_mAuthorizationType = a});---- | A boolean flag specifying whether a valid 'ApiKey' is required to invoke this method.-mApiKeyRequired :: Lens' Method (Maybe Bool)-mApiKeyRequired = lens _mApiKeyRequired (\ s a -> s{_mApiKeyRequired = a});---- | 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": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", "name": "integration", "templated": true }, { "href": "http://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" } } }@ @  <http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-integration.html AWS CLI>-mMethodIntegration :: Lens' Method (Maybe Integration)-mMethodIntegration = lens _mMethodIntegration (\ s a -> s{_mMethodIntegration = a});--instance FromJSON Method where-        parseJSON-          = withObject "Method"-              (\ x ->-                 Method' <$>-                   (x .:? "methodResponses" .!= mempty) <*>-                     (x .:? "httpMethod")-                     <*> (x .:? "requestModels" .!= mempty)-                     <*> (x .:? "requestParameters" .!= mempty)-                     <*> (x .:? "authorizerId")-                     <*> (x .:? "authorizationType")-                     <*> (x .:? "apiKeyRequired")-                     <*> (x .:? "methodIntegration"))--instance Hashable Method--instance NFData Method---- | 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": "http://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' <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html Creating an API>------ /See:/ 'methodResponse' smart constructor.-data MethodResponse = MethodResponse'-    { _mResponseModels     :: !(Maybe (Map Text Text))-    , _mStatusCode         :: !(Maybe Text)-    , _mResponseParameters :: !(Maybe (Map Text Bool))-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'MethodResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mResponseModels' - 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.------ * 'mStatusCode' - The method response's status code.------ * 'mResponseParameters' - A key-value map specifying required or optional response parameters that Amazon 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. Amazon API Gateway passes certain integration response data to the method response headers specified here according to the mapping you prescribe in the API's 'IntegrationResponse' . The integration response data that can be mapped include an integration response header expressed in @integration.response.header.{name}@ , a static value enclosed within a pair of single quotes (e.g., @'application/json'@ ), or a JSON expression from the back-end response payload in the form of @integration.response.body.{JSON-expression}@ , where @JSON-expression@ is a valid JSON expression without the @> @ prefix.)-methodResponse-    :: MethodResponse-methodResponse =-    MethodResponse'-    { _mResponseModels = Nothing-    , _mStatusCode = Nothing-    , _mResponseParameters = Nothing-    }---- | 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.-mResponseModels :: Lens' MethodResponse (HashMap Text Text)-mResponseModels = lens _mResponseModels (\ s a -> s{_mResponseModels = a}) . _Default . _Map;---- | The method response's status code.-mStatusCode :: Lens' MethodResponse (Maybe Text)-mStatusCode = lens _mStatusCode (\ s a -> s{_mStatusCode = a});---- | A key-value map specifying required or optional response parameters that Amazon 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. Amazon 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.)-mResponseParameters :: Lens' MethodResponse (HashMap Text Bool)-mResponseParameters = lens _mResponseParameters (\ s a -> s{_mResponseParameters = a}) . _Default . _Map;--instance FromJSON MethodResponse where-        parseJSON-          = withObject "MethodResponse"-              (\ x ->-                 MethodResponse' <$>-                   (x .:? "responseModels" .!= mempty) <*>-                     (x .:? "statusCode")-                     <*> (x .:? "responseParameters" .!= mempty))--instance Hashable MethodResponse--instance NFData MethodResponse---- | Specifies the method setting properties.------------ /See:/ 'methodSetting' smart constructor.-data MethodSetting = MethodSetting'-    { _msCacheTtlInSeconds                      :: !(Maybe Int)-    , _msDataTraceEnabled                       :: !(Maybe Bool)-    , _msThrottlingBurstLimit                   :: !(Maybe Int)-    , _msCacheDataEncrypted                     :: !(Maybe Bool)-    , _msLoggingLevel                           :: !(Maybe Text)-    , _msRequireAuthorizationForCacheControl    :: !(Maybe Bool)-    , _msCachingEnabled                         :: !(Maybe Bool)-    , _msMetricsEnabled                         :: !(Maybe Bool)-    , _msThrottlingRateLimit                    :: !(Maybe Double)-    , _msUnauthorizedCacheControlHeaderStrategy :: !(Maybe UnauthorizedCacheControlHeaderStrategy)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'MethodSetting' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'msCacheTtlInSeconds' - Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached. The PATCH path for this setting is @/{method_setting_key}/caching/ttlInSeconds@ , and the value is an integer.------ * 'msDataTraceEnabled' - Specifies whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is @/{method_setting_key}/logging/dataTrace@ , and the value is a Boolean.------ * 'msThrottlingBurstLimit' - Specifies the throttling burst limit. The PATCH path for this setting is @/{method_setting_key}/throttling/burstLimit@ , and the value is an integer.------ * 'msCacheDataEncrypted' - Specifies whether the cached responses are encrypted. The PATCH path for this setting is @/{method_setting_key}/caching/dataEncrypted@ , and the value is a Boolean.------ * 'msLoggingLevel' - Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is @/{method_setting_key}/logging/loglevel@ , and the available levels are @OFF@ , @ERROR@ , and @INFO@ .------ * 'msRequireAuthorizationForCacheControl' - Specifies whether authorization is required for a cache invalidation request. The PATCH path for this setting is @/{method_setting_key}/caching/requireAuthorizationForCacheControl@ , and the value is a Boolean.------ * 'msCachingEnabled' - Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. The PATCH path for this setting is @/{method_setting_key}/caching/enabled@ , and the value is a Boolean.------ * 'msMetricsEnabled' - Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is @/{method_setting_key}/metrics/enabled@ , and the value is a Boolean.------ * 'msThrottlingRateLimit' - Specifies the throttling rate limit. The PATCH path for this setting is @/{method_setting_key}/throttling/rateLimit@ , and the value is a double.------ * 'msUnauthorizedCacheControlHeaderStrategy' - Specifies how to handle unauthorized requests for cache invalidation. The PATCH path for this setting is @/{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy@ , and the available values are @FAIL_WITH_403@ , @SUCCEED_WITH_RESPONSE_HEADER@ , @SUCCEED_WITHOUT_RESPONSE_HEADER@ .-methodSetting-    :: MethodSetting-methodSetting =-    MethodSetting'-    { _msCacheTtlInSeconds = Nothing-    , _msDataTraceEnabled = Nothing-    , _msThrottlingBurstLimit = Nothing-    , _msCacheDataEncrypted = Nothing-    , _msLoggingLevel = Nothing-    , _msRequireAuthorizationForCacheControl = Nothing-    , _msCachingEnabled = Nothing-    , _msMetricsEnabled = Nothing-    , _msThrottlingRateLimit = Nothing-    , _msUnauthorizedCacheControlHeaderStrategy = Nothing-    }---- | Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached. The PATCH path for this setting is @/{method_setting_key}/caching/ttlInSeconds@ , and the value is an integer.-msCacheTtlInSeconds :: Lens' MethodSetting (Maybe Int)-msCacheTtlInSeconds = lens _msCacheTtlInSeconds (\ s a -> s{_msCacheTtlInSeconds = a});---- | Specifies whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is @/{method_setting_key}/logging/dataTrace@ , and the value is a Boolean.-msDataTraceEnabled :: Lens' MethodSetting (Maybe Bool)-msDataTraceEnabled = lens _msDataTraceEnabled (\ s a -> s{_msDataTraceEnabled = a});---- | Specifies the throttling burst limit. The PATCH path for this setting is @/{method_setting_key}/throttling/burstLimit@ , and the value is an integer.-msThrottlingBurstLimit :: Lens' MethodSetting (Maybe Int)-msThrottlingBurstLimit = lens _msThrottlingBurstLimit (\ s a -> s{_msThrottlingBurstLimit = a});---- | Specifies whether the cached responses are encrypted. The PATCH path for this setting is @/{method_setting_key}/caching/dataEncrypted@ , and the value is a Boolean.-msCacheDataEncrypted :: Lens' MethodSetting (Maybe Bool)-msCacheDataEncrypted = lens _msCacheDataEncrypted (\ s a -> s{_msCacheDataEncrypted = a});---- | Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is @/{method_setting_key}/logging/loglevel@ , and the available levels are @OFF@ , @ERROR@ , and @INFO@ .-msLoggingLevel :: Lens' MethodSetting (Maybe Text)-msLoggingLevel = lens _msLoggingLevel (\ s a -> s{_msLoggingLevel = a});---- | Specifies whether authorization is required for a cache invalidation request. The PATCH path for this setting is @/{method_setting_key}/caching/requireAuthorizationForCacheControl@ , and the value is a Boolean.-msRequireAuthorizationForCacheControl :: Lens' MethodSetting (Maybe Bool)-msRequireAuthorizationForCacheControl = lens _msRequireAuthorizationForCacheControl (\ s a -> s{_msRequireAuthorizationForCacheControl = a});---- | Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. The PATCH path for this setting is @/{method_setting_key}/caching/enabled@ , and the value is a Boolean.-msCachingEnabled :: Lens' MethodSetting (Maybe Bool)-msCachingEnabled = lens _msCachingEnabled (\ s a -> s{_msCachingEnabled = a});---- | Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is @/{method_setting_key}/metrics/enabled@ , and the value is a Boolean.-msMetricsEnabled :: Lens' MethodSetting (Maybe Bool)-msMetricsEnabled = lens _msMetricsEnabled (\ s a -> s{_msMetricsEnabled = a});---- | Specifies the throttling rate limit. The PATCH path for this setting is @/{method_setting_key}/throttling/rateLimit@ , and the value is a double.-msThrottlingRateLimit :: Lens' MethodSetting (Maybe Double)-msThrottlingRateLimit = lens _msThrottlingRateLimit (\ s a -> s{_msThrottlingRateLimit = a});---- | Specifies how to handle unauthorized requests for cache invalidation. The PATCH path for this setting is @/{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy@ , and the available values are @FAIL_WITH_403@ , @SUCCEED_WITH_RESPONSE_HEADER@ , @SUCCEED_WITHOUT_RESPONSE_HEADER@ .-msUnauthorizedCacheControlHeaderStrategy :: Lens' MethodSetting (Maybe UnauthorizedCacheControlHeaderStrategy)-msUnauthorizedCacheControlHeaderStrategy = lens _msUnauthorizedCacheControlHeaderStrategy (\ s a -> s{_msUnauthorizedCacheControlHeaderStrategy = a});--instance FromJSON MethodSetting where-        parseJSON-          = withObject "MethodSetting"-              (\ x ->-                 MethodSetting' <$>-                   (x .:? "cacheTtlInSeconds") <*>-                     (x .:? "dataTraceEnabled")-                     <*> (x .:? "throttlingBurstLimit")-                     <*> (x .:? "cacheDataEncrypted")-                     <*> (x .:? "loggingLevel")-                     <*> (x .:? "requireAuthorizationForCacheControl")-                     <*> (x .:? "cachingEnabled")-                     <*> (x .:? "metricsEnabled")-                     <*> (x .:? "throttlingRateLimit")-                     <*> (x .:? "unauthorizedCacheControlHeaderStrategy"))--instance Hashable MethodSetting--instance NFData MethodSetting---- | Represents a summary of a 'Method' resource, given a particular date and time.------------ /See:/ 'methodSnapshot' smart constructor.-data MethodSnapshot = MethodSnapshot'-    { _msAuthorizationType :: !(Maybe Text)-    , _msApiKeyRequired    :: !(Maybe Bool)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'MethodSnapshot' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'msAuthorizationType' - Specifies the type of authorization used for the method.------ * 'msApiKeyRequired' - Specifies whether the method requires a valid 'ApiKey' .-methodSnapshot-    :: MethodSnapshot-methodSnapshot =-    MethodSnapshot'-    { _msAuthorizationType = Nothing-    , _msApiKeyRequired = Nothing-    }---- | Specifies the type of authorization used for the method.-msAuthorizationType :: Lens' MethodSnapshot (Maybe Text)-msAuthorizationType = lens _msAuthorizationType (\ s a -> s{_msAuthorizationType = a});---- | Specifies whether the method requires a valid 'ApiKey' .-msApiKeyRequired :: Lens' MethodSnapshot (Maybe Bool)-msApiKeyRequired = lens _msApiKeyRequired (\ s a -> s{_msApiKeyRequired = a});--instance FromJSON MethodSnapshot where-        parseJSON-          = withObject "MethodSnapshot"-              (\ x ->-                 MethodSnapshot' <$>-                   (x .:? "authorizationType") <*>-                     (x .:? "apiKeyRequired"))--instance Hashable MethodSnapshot--instance NFData MethodSnapshot---- | 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' , <http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html Models and Mappings>------ /See:/ 'model' smart constructor.-data Model = Model'-    { _mSchema      :: !(Maybe Text)-    , _mName        :: !(Maybe Text)-    , _mId          :: !(Maybe Text)-    , _mDescription :: !(Maybe Text)-    , _mContentType :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'Model' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mSchema' - The schema for the model. For @application/json@ models, this should be <http://json-schema.org/documentation.html JSON-schema draft v4> 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.------ * 'mName' - The name of the model.------ * 'mId' - The identifier for the model resource.------ * 'mDescription' - The description of the model.------ * 'mContentType' - The content-type for the model.-model-    :: Model-model =-    Model'-    { _mSchema = Nothing-    , _mName = Nothing-    , _mId = Nothing-    , _mDescription = Nothing-    , _mContentType = Nothing-    }---- | The schema for the model. For @application/json@ models, this should be <http://json-schema.org/documentation.html JSON-schema draft v4> 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.-mSchema :: Lens' Model (Maybe Text)-mSchema = lens _mSchema (\ s a -> s{_mSchema = a});---- | The name of the model.-mName :: Lens' Model (Maybe Text)-mName = lens _mName (\ s a -> s{_mName = a});---- | The identifier for the model resource.-mId :: Lens' Model (Maybe Text)-mId = lens _mId (\ s a -> s{_mId = a});---- | The description of the model.-mDescription :: Lens' Model (Maybe Text)-mDescription = lens _mDescription (\ s a -> s{_mDescription = a});---- | The content-type for the model.-mContentType :: Lens' Model (Maybe Text)-mContentType = lens _mContentType (\ s a -> s{_mContentType = a});--instance FromJSON Model where-        parseJSON-          = withObject "Model"-              (\ x ->-                 Model' <$>-                   (x .:? "schema") <*> (x .:? "name") <*> (x .:? "id")-                     <*> (x .:? "description")-                     <*> (x .:? "contentType"))--instance Hashable Model--instance NFData Model---- | A single patch operation to apply to the specified resource. Please refer to http://tools.ietf.org/html/rfc6902#section-4 for an explanation of how each operation is used.------ /See:/ 'patchOperation' smart constructor.-data PatchOperation = PatchOperation'-    { _poOp    :: !(Maybe Op)-    , _poPath  :: !(Maybe Text)-    , _poValue :: !(Maybe Text)-    , _poFrom  :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'PatchOperation' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'poOp' - An update operation to be performed with this PATCH request. The valid value can be "add", "remove", or "replace". Not all valid operations are supported for a given resource. Support of the operations depends on specific operational contexts. Attempts to apply an unsupported operation on a resource will return an error message.------ * 'poPath' - The @op@ operation's target, as identified by a <https://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-08 JSON Pointer> value that references a location within the targeted resource. For example, if the target resource has an updateable property of @{"name":"value"}@ , the path for this property is @/name@ . If the @name@ property value is a JSON object (e.g., @{"name": {"child/name": "child-value"}}@ ), the path for the @child/name@ property will be @/name/child~1name@ . Any slash ("/") character appearing in path names must be escaped with "~1", as shown in the example above. Each @op@ operation can have only one @path@ associated with it.------ * 'poValue' - The new target value of the update operation.------ * 'poFrom' - Not supported.-patchOperation-    :: PatchOperation-patchOperation =-    PatchOperation'-    { _poOp = Nothing-    , _poPath = Nothing-    , _poValue = Nothing-    , _poFrom = Nothing-    }---- | An update operation to be performed with this PATCH request. The valid value can be "add", "remove", or "replace". Not all valid operations are supported for a given resource. Support of the operations depends on specific operational contexts. Attempts to apply an unsupported operation on a resource will return an error message.-poOp :: Lens' PatchOperation (Maybe Op)-poOp = lens _poOp (\ s a -> s{_poOp = a});---- | The @op@ operation's target, as identified by a <https://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-08 JSON Pointer> value that references a location within the targeted resource. For example, if the target resource has an updateable property of @{"name":"value"}@ , the path for this property is @/name@ . If the @name@ property value is a JSON object (e.g., @{"name": {"child/name": "child-value"}}@ ), the path for the @child/name@ property will be @/name/child~1name@ . Any slash ("/") character appearing in path names must be escaped with "~1", as shown in the example above. Each @op@ operation can have only one @path@ associated with it.-poPath :: Lens' PatchOperation (Maybe Text)-poPath = lens _poPath (\ s a -> s{_poPath = a});---- | The new target value of the update operation.-poValue :: Lens' PatchOperation (Maybe Text)-poValue = lens _poValue (\ s a -> s{_poValue = a});---- | Not supported.-poFrom :: Lens' PatchOperation (Maybe Text)-poFrom = lens _poFrom (\ s a -> s{_poFrom = a});--instance Hashable PatchOperation--instance NFData PatchOperation--instance ToJSON PatchOperation where-        toJSON PatchOperation'{..}-          = object-              (catMaybes-                 [("op" .=) <$> _poOp, ("path" .=) <$> _poPath,-                  ("value" .=) <$> _poValue, ("from" .=) <$> _poFrom])---- | Quotas configured for a usage plan.------------ /See:/ 'quotaSettings' smart constructor.-data QuotaSettings = QuotaSettings'-    { _qsOffset :: !(Maybe Int)-    , _qsPeriod :: !(Maybe QuotaPeriodType)-    , _qsLimit  :: !(Maybe Int)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'QuotaSettings' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'qsOffset' - The number of requests subtracted from the given limit in the initial time period.------ * 'qsPeriod' - The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".------ * 'qsLimit' - The maximum number of requests that can be made in a given time period.-quotaSettings-    :: QuotaSettings-quotaSettings =-    QuotaSettings'-    { _qsOffset = Nothing-    , _qsPeriod = Nothing-    , _qsLimit = Nothing-    }---- | The number of requests subtracted from the given limit in the initial time period.-qsOffset :: Lens' QuotaSettings (Maybe Int)-qsOffset = lens _qsOffset (\ s a -> s{_qsOffset = a});---- | The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".-qsPeriod :: Lens' QuotaSettings (Maybe QuotaPeriodType)-qsPeriod = lens _qsPeriod (\ s a -> s{_qsPeriod = a});---- | The maximum number of requests that can be made in a given time period.-qsLimit :: Lens' QuotaSettings (Maybe Int)-qsLimit = lens _qsLimit (\ s a -> s{_qsLimit = a});--instance FromJSON QuotaSettings where-        parseJSON-          = withObject "QuotaSettings"-              (\ x ->-                 QuotaSettings' <$>-                   (x .:? "offset") <*> (x .:? "period") <*>-                     (x .:? "limit"))--instance Hashable QuotaSettings--instance NFData QuotaSettings--instance ToJSON QuotaSettings where-        toJSON QuotaSettings'{..}-          = object-              (catMaybes-                 [("offset" .=) <$> _qsOffset,-                  ("period" .=) <$> _qsPeriod,-                  ("limit" .=) <$> _qsLimit])---- | Represents an API resource.--------- <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html Create an API>------ /See:/ 'resource' smart constructor.-data Resource = Resource'-    { _rPathPart        :: !(Maybe Text)-    , _rPath            :: !(Maybe Text)-    , _rId              :: !(Maybe Text)-    , _rResourceMethods :: !(Maybe (Map Text Method))-    , _rParentId        :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'Resource' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'rPathPart' - The last path segment for this resource.------ * 'rPath' - The full path for this resource.------ * 'rId' - The resource's identifier.------ * 'rResourceMethods' - 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: 20160608T031827Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160608/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}@ @ __Response__  @@{ "_links": { "curies": [ { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", "name": "integrationresponse", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html", "name": "method", "templated": true }, { "href": "http://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@ .------ * 'rParentId' - The parent resource's identifier.-resource-    :: Resource-resource =-    Resource'-    { _rPathPart = Nothing-    , _rPath = Nothing-    , _rId = Nothing-    , _rResourceMethods = Nothing-    , _rParentId = Nothing-    }---- | The last path segment for this resource.-rPathPart :: Lens' Resource (Maybe Text)-rPathPart = lens _rPathPart (\ s a -> s{_rPathPart = a});---- | The full path for this resource.-rPath :: Lens' Resource (Maybe Text)-rPath = lens _rPath (\ s a -> s{_rPath = a});---- | The resource's identifier.-rId :: Lens' Resource (Maybe Text)-rId = lens _rId (\ s a -> s{_rId = a});---- | 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: 20160608T031827Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160608/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}@ @ __Response__  @@{ "_links": { "curies": [ { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", "name": "integrationresponse", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html", "name": "method", "templated": true }, { "href": "http://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@ .-rResourceMethods :: Lens' Resource (HashMap Text Method)-rResourceMethods = lens _rResourceMethods (\ s a -> s{_rResourceMethods = a}) . _Default . _Map;---- | The parent resource's identifier.-rParentId :: Lens' Resource (Maybe Text)-rParentId = lens _rParentId (\ s a -> s{_rParentId = a});--instance FromJSON Resource where-        parseJSON-          = withObject "Resource"-              (\ x ->-                 Resource' <$>-                   (x .:? "pathPart") <*> (x .:? "path") <*>-                     (x .:? "id")-                     <*> (x .:? "resourceMethods" .!= mempty)-                     <*> (x .:? "parentId"))--instance Hashable Resource--instance NFData Resource---- | Represents a REST API.--------- <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html Create an API>------ /See:/ 'restAPI' smart constructor.-data RestAPI = RestAPI'-    { _raBinaryMediaTypes :: !(Maybe [Text])-    , _raWarnings         :: !(Maybe [Text])-    , _raCreatedDate      :: !(Maybe POSIX)-    , _raName             :: !(Maybe Text)-    , _raVersion          :: !(Maybe Text)-    , _raId               :: !(Maybe Text)-    , _raDescription      :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'RestAPI' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'raBinaryMediaTypes' - The list of binary media types supported by the 'RestApi' . By default, the 'RestApi' supports only UTF-8-encoded text payloads.------ * 'raWarnings' - The warning messages reported when @failonwarnings@ is turned on during API import.------ * 'raCreatedDate' - The date when the API was created, in <http://www.iso.org/iso/home/standards/iso8601.htm ISO 8601 format> .------ * 'raName' - The API's name.------ * 'raVersion' - A version identifier for the API.------ * 'raId' - The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.------ * 'raDescription' - The API's description.-restAPI-    :: RestAPI-restAPI =-    RestAPI'-    { _raBinaryMediaTypes = Nothing-    , _raWarnings = Nothing-    , _raCreatedDate = Nothing-    , _raName = Nothing-    , _raVersion = Nothing-    , _raId = Nothing-    , _raDescription = Nothing-    }---- | The list of binary media types supported by the 'RestApi' . By default, the 'RestApi' supports only UTF-8-encoded text payloads.-raBinaryMediaTypes :: Lens' RestAPI [Text]-raBinaryMediaTypes = lens _raBinaryMediaTypes (\ s a -> s{_raBinaryMediaTypes = a}) . _Default . _Coerce;---- | The warning messages reported when @failonwarnings@ is turned on during API import.-raWarnings :: Lens' RestAPI [Text]-raWarnings = lens _raWarnings (\ s a -> s{_raWarnings = a}) . _Default . _Coerce;---- | The date when the API was created, in <http://www.iso.org/iso/home/standards/iso8601.htm ISO 8601 format> .-raCreatedDate :: Lens' RestAPI (Maybe UTCTime)-raCreatedDate = lens _raCreatedDate (\ s a -> s{_raCreatedDate = a}) . mapping _Time;---- | The API's name.-raName :: Lens' RestAPI (Maybe Text)-raName = lens _raName (\ s a -> s{_raName = a});---- | A version identifier for the API.-raVersion :: Lens' RestAPI (Maybe Text)-raVersion = lens _raVersion (\ s a -> s{_raVersion = a});---- | The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.-raId :: Lens' RestAPI (Maybe Text)-raId = lens _raId (\ s a -> s{_raId = a});---- | The API's description.-raDescription :: Lens' RestAPI (Maybe Text)-raDescription = lens _raDescription (\ s a -> s{_raDescription = a});--instance FromJSON RestAPI where-        parseJSON-          = withObject "RestAPI"-              (\ x ->-                 RestAPI' <$>-                   (x .:? "binaryMediaTypes" .!= mempty) <*>-                     (x .:? "warnings" .!= mempty)-                     <*> (x .:? "createdDate")-                     <*> (x .:? "name")-                     <*> (x .:? "version")-                     <*> (x .:? "id")-                     <*> (x .:? "description"))--instance Hashable RestAPI--instance NFData RestAPI---- | Represents a unique identifier for a version of a deployed 'RestApi' that is callable by users.--------- <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api.html Deploy an API>------ /See:/ 'stage' smart constructor.-data Stage = Stage'-    { _sDeploymentId         :: !(Maybe Text)-    , _sVariables            :: !(Maybe (Map Text Text))-    , _sDocumentationVersion :: !(Maybe Text)-    , _sClientCertificateId  :: !(Maybe Text)-    , _sCreatedDate          :: !(Maybe POSIX)-    , _sCacheClusterStatus   :: !(Maybe CacheClusterStatus)-    , _sMethodSettings       :: !(Maybe (Map Text MethodSetting))-    , _sLastUpdatedDate      :: !(Maybe POSIX)-    , _sCacheClusterSize     :: !(Maybe CacheClusterSize)-    , _sCacheClusterEnabled  :: !(Maybe Bool)-    , _sStageName            :: !(Maybe Text)-    , _sDescription          :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'Stage' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sDeploymentId' - The identifier of the 'Deployment' that the stage points to.------ * 'sVariables' - 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-._~:/?#&=,]+@ .------ * 'sDocumentationVersion' - The version of the associated API documentation.------ * 'sClientCertificateId' - The identifier of a client certificate for an API stage.------ * 'sCreatedDate' - The date and time that the stage was created, in <http://www.iso.org/iso/home/standards/iso8601.htm ISO 8601 format> .------ * 'sCacheClusterStatus' - The status of the cache cluster for the stage, if enabled.------ * 'sMethodSettings' - 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.------ * 'sLastUpdatedDate' - The date and time that information about the stage was last updated, in <http://www.iso.org/iso/home/standards/iso8601.htm ISO 8601 format> .------ * 'sCacheClusterSize' - The size of the cache cluster for the stage, if enabled.------ * 'sCacheClusterEnabled' - Specifies whether a cache cluster is enabled for the stage.------ * 'sStageName' - The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to Amazon API Gateway.------ * 'sDescription' - The stage's description.-stage-    :: Stage-stage =-    Stage'-    { _sDeploymentId = Nothing-    , _sVariables = Nothing-    , _sDocumentationVersion = Nothing-    , _sClientCertificateId = Nothing-    , _sCreatedDate = Nothing-    , _sCacheClusterStatus = Nothing-    , _sMethodSettings = Nothing-    , _sLastUpdatedDate = Nothing-    , _sCacheClusterSize = Nothing-    , _sCacheClusterEnabled = Nothing-    , _sStageName = Nothing-    , _sDescription = Nothing-    }---- | The identifier of the 'Deployment' that the stage points to.-sDeploymentId :: Lens' Stage (Maybe Text)-sDeploymentId = lens _sDeploymentId (\ s a -> s{_sDeploymentId = a});---- | 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-._~:/?#&=,]+@ .-sVariables :: Lens' Stage (HashMap Text Text)-sVariables = lens _sVariables (\ s a -> s{_sVariables = a}) . _Default . _Map;---- | The version of the associated API documentation.-sDocumentationVersion :: Lens' Stage (Maybe Text)-sDocumentationVersion = lens _sDocumentationVersion (\ s a -> s{_sDocumentationVersion = a});---- | The identifier of a client certificate for an API stage.-sClientCertificateId :: Lens' Stage (Maybe Text)-sClientCertificateId = lens _sClientCertificateId (\ s a -> s{_sClientCertificateId = a});---- | The date and time that the stage was created, in <http://www.iso.org/iso/home/standards/iso8601.htm ISO 8601 format> .-sCreatedDate :: Lens' Stage (Maybe UTCTime)-sCreatedDate = lens _sCreatedDate (\ s a -> s{_sCreatedDate = a}) . mapping _Time;---- | The status of the cache cluster for the stage, if enabled.-sCacheClusterStatus :: Lens' Stage (Maybe CacheClusterStatus)-sCacheClusterStatus = lens _sCacheClusterStatus (\ s a -> s{_sCacheClusterStatus = a});---- | 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.-sMethodSettings :: Lens' Stage (HashMap Text MethodSetting)-sMethodSettings = lens _sMethodSettings (\ s a -> s{_sMethodSettings = a}) . _Default . _Map;---- | The date and time that information about the stage was last updated, in <http://www.iso.org/iso/home/standards/iso8601.htm ISO 8601 format> .-sLastUpdatedDate :: Lens' Stage (Maybe UTCTime)-sLastUpdatedDate = lens _sLastUpdatedDate (\ s a -> s{_sLastUpdatedDate = a}) . mapping _Time;---- | The size of the cache cluster for the stage, if enabled.-sCacheClusterSize :: Lens' Stage (Maybe CacheClusterSize)-sCacheClusterSize = lens _sCacheClusterSize (\ s a -> s{_sCacheClusterSize = a});---- | Specifies whether a cache cluster is enabled for the stage.-sCacheClusterEnabled :: Lens' Stage (Maybe Bool)-sCacheClusterEnabled = lens _sCacheClusterEnabled (\ s a -> s{_sCacheClusterEnabled = a});---- | The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to Amazon API Gateway.-sStageName :: Lens' Stage (Maybe Text)-sStageName = lens _sStageName (\ s a -> s{_sStageName = a});---- | The stage's description.-sDescription :: Lens' Stage (Maybe Text)-sDescription = lens _sDescription (\ s a -> s{_sDescription = a});--instance FromJSON Stage where-        parseJSON-          = withObject "Stage"-              (\ x ->-                 Stage' <$>-                   (x .:? "deploymentId") <*>-                     (x .:? "variables" .!= mempty)-                     <*> (x .:? "documentationVersion")-                     <*> (x .:? "clientCertificateId")-                     <*> (x .:? "createdDate")-                     <*> (x .:? "cacheClusterStatus")-                     <*> (x .:? "methodSettings" .!= mempty)-                     <*> (x .:? "lastUpdatedDate")-                     <*> (x .:? "cacheClusterSize")-                     <*> (x .:? "cacheClusterEnabled")-                     <*> (x .:? "stageName")-                     <*> (x .:? "description"))--instance Hashable Stage--instance NFData Stage---- | A reference to a unique stage identified in the format @{restApiId}/{stage}@ .------------ /See:/ 'stageKey' smart constructor.-data StageKey = StageKey'-    { _skRestAPIId :: !(Maybe Text)-    , _skStageName :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'StageKey' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'skRestAPIId' - A list of 'Stage' resources that are associated with the 'ApiKey' resource.------ * 'skStageName' - The stage name in the 'RestApi' that the stage key references.-stageKey-    :: StageKey-stageKey =-    StageKey'-    { _skRestAPIId = Nothing-    , _skStageName = Nothing-    }---- | A list of 'Stage' resources that are associated with the 'ApiKey' resource.-skRestAPIId :: Lens' StageKey (Maybe Text)-skRestAPIId = lens _skRestAPIId (\ s a -> s{_skRestAPIId = a});---- | The stage name in the 'RestApi' that the stage key references.-skStageName :: Lens' StageKey (Maybe Text)-skStageName = lens _skStageName (\ s a -> s{_skStageName = a});--instance Hashable StageKey--instance NFData StageKey--instance ToJSON StageKey where-        toJSON StageKey'{..}-          = object-              (catMaybes-                 [("restApiId" .=) <$> _skRestAPIId,-                  ("stageName" .=) <$> _skStageName])---- | The API request rate limits.------------ /See:/ 'throttleSettings' smart constructor.-data ThrottleSettings = ThrottleSettings'-    { _tsBurstLimit :: !(Maybe Int)-    , _tsRateLimit  :: !(Maybe Double)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ThrottleSettings' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'tsBurstLimit' - The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.------ * 'tsRateLimit' - The API request steady-state rate limit.-throttleSettings-    :: ThrottleSettings-throttleSettings =-    ThrottleSettings'-    { _tsBurstLimit = Nothing-    , _tsRateLimit = Nothing-    }---- | The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.-tsBurstLimit :: Lens' ThrottleSettings (Maybe Int)-tsBurstLimit = lens _tsBurstLimit (\ s a -> s{_tsBurstLimit = a});---- | The API request steady-state rate limit.-tsRateLimit :: Lens' ThrottleSettings (Maybe Double)-tsRateLimit = lens _tsRateLimit (\ s a -> s{_tsRateLimit = a});--instance FromJSON ThrottleSettings where-        parseJSON-          = withObject "ThrottleSettings"-              (\ x ->-                 ThrottleSettings' <$>-                   (x .:? "burstLimit") <*> (x .:? "rateLimit"))--instance Hashable ThrottleSettings--instance NFData ThrottleSettings--instance ToJSON ThrottleSettings where-        toJSON ThrottleSettings'{..}-          = object-              (catMaybes-                 [("burstLimit" .=) <$> _tsBurstLimit,-                  ("rateLimit" .=) <$> _tsRateLimit])---- | Represents the usage data of a usage plan.--------- <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html Create and Use Usage Plans> , <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-create-usage-plans-with-console.html#api-gateway-usage-plan-manage-usage Manage Usage in a Usage Plan>------ /See:/ 'usage' smart constructor.-data Usage = Usage'-    { _uUsagePlanId :: !(Maybe Text)-    , _uEndDate     :: !(Maybe Text)-    , _uItems       :: !(Maybe (Map Text [[Integer]]))-    , _uStartDate   :: !(Maybe Text)-    , _uPosition    :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'Usage' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'uUsagePlanId' - The plan Id associated with this usage data.------ * 'uEndDate' - The ending date of the usage data.------ * 'uItems' - 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]@ .------ * 'uStartDate' - The starting date of the usage data.------ * 'uPosition' - Undocumented member.-usage-    :: Usage-usage =-    Usage'-    { _uUsagePlanId = Nothing-    , _uEndDate = Nothing-    , _uItems = Nothing-    , _uStartDate = Nothing-    , _uPosition = Nothing-    }---- | The plan Id associated with this usage data.-uUsagePlanId :: Lens' Usage (Maybe Text)-uUsagePlanId = lens _uUsagePlanId (\ s a -> s{_uUsagePlanId = a});---- | The ending date of the usage data.-uEndDate :: Lens' Usage (Maybe Text)-uEndDate = lens _uEndDate (\ s a -> s{_uEndDate = a});---- | 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]@ .-uItems :: Lens' Usage (HashMap Text [[Integer]])-uItems = lens _uItems (\ s a -> s{_uItems = a}) . _Default . _Map;---- | The starting date of the usage data.-uStartDate :: Lens' Usage (Maybe Text)-uStartDate = lens _uStartDate (\ s a -> s{_uStartDate = a});---- | Undocumented member.-uPosition :: Lens' Usage (Maybe Text)-uPosition = lens _uPosition (\ s a -> s{_uPosition = a});--instance FromJSON Usage where-        parseJSON-          = withObject "Usage"-              (\ x ->-                 Usage' <$>-                   (x .:? "usagePlanId") <*> (x .:? "endDate") <*>-                     (x .:? "values" .!= mempty)-                     <*> (x .:? "startDate")-                     <*> (x .:? "position"))--instance Hashable Usage--instance NFData Usage---- | 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.------ <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html Create and Use Usage Plans>------ /See:/ 'usagePlan' smart constructor.-data UsagePlan = UsagePlan'-    { _upApiStages   :: !(Maybe [APIStage])-    , _upName        :: !(Maybe Text)-    , _upId          :: !(Maybe Text)-    , _upThrottle    :: !(Maybe ThrottleSettings)-    , _upQuota       :: !(Maybe QuotaSettings)-    , _upDescription :: !(Maybe Text)-    , _upProductCode :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'UsagePlan' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'upApiStages' - The associated API stages of a usage plan.------ * 'upName' - The name of a usage plan.------ * 'upId' - The identifier of a 'UsagePlan' resource.------ * 'upThrottle' - The request throttle limits of a usage plan.------ * 'upQuota' - The maximum number of permitted requests per a given unit time interval.------ * 'upDescription' - The description of a usage plan.------ * 'upProductCode' - The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.-usagePlan-    :: UsagePlan-usagePlan =-    UsagePlan'-    { _upApiStages = Nothing-    , _upName = Nothing-    , _upId = Nothing-    , _upThrottle = Nothing-    , _upQuota = Nothing-    , _upDescription = Nothing-    , _upProductCode = Nothing-    }---- | The associated API stages of a usage plan.-upApiStages :: Lens' UsagePlan [APIStage]-upApiStages = lens _upApiStages (\ s a -> s{_upApiStages = a}) . _Default . _Coerce;---- | The name of a usage plan.-upName :: Lens' UsagePlan (Maybe Text)-upName = lens _upName (\ s a -> s{_upName = a});---- | The identifier of a 'UsagePlan' resource.-upId :: Lens' UsagePlan (Maybe Text)-upId = lens _upId (\ s a -> s{_upId = a});---- | The request throttle limits of a usage plan.-upThrottle :: Lens' UsagePlan (Maybe ThrottleSettings)-upThrottle = lens _upThrottle (\ s a -> s{_upThrottle = a});---- | The maximum number of permitted requests per a given unit time interval.-upQuota :: Lens' UsagePlan (Maybe QuotaSettings)-upQuota = lens _upQuota (\ s a -> s{_upQuota = a});---- | The description of a usage plan.-upDescription :: Lens' UsagePlan (Maybe Text)-upDescription = lens _upDescription (\ s a -> s{_upDescription = a});---- | The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.-upProductCode :: Lens' UsagePlan (Maybe Text)-upProductCode = lens _upProductCode (\ s a -> s{_upProductCode = a});--instance FromJSON UsagePlan where-        parseJSON-          = withObject "UsagePlan"-              (\ x ->-                 UsagePlan' <$>-                   (x .:? "apiStages" .!= mempty) <*> (x .:? "name") <*>-                     (x .:? "id")-                     <*> (x .:? "throttle")-                     <*> (x .:? "quota")-                     <*> (x .:? "description")-                     <*> (x .:? "productCode"))--instance Hashable UsagePlan--instance NFData UsagePlan---- | 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' .------ " <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html Create and Use Usage Plans>------ /See:/ 'usagePlanKey' smart constructor.-data UsagePlanKey = UsagePlanKey'-    { _upkValue :: !(Maybe Text)-    , _upkName  :: !(Maybe Text)-    , _upkId    :: !(Maybe Text)-    , _upkType  :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'UsagePlanKey' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'upkValue' - The value of a usage plan key.------ * 'upkName' - The name of a usage plan key.------ * 'upkId' - The Id of a usage plan key.------ * 'upkType' - The type of a usage plan key. Currently, the valid key type is @API_KEY@ .-usagePlanKey-    :: UsagePlanKey-usagePlanKey =-    UsagePlanKey'-    { _upkValue = Nothing-    , _upkName = Nothing-    , _upkId = Nothing-    , _upkType = Nothing-    }---- | The value of a usage plan key.-upkValue :: Lens' UsagePlanKey (Maybe Text)-upkValue = lens _upkValue (\ s a -> s{_upkValue = a});---- | The name of a usage plan key.-upkName :: Lens' UsagePlanKey (Maybe Text)-upkName = lens _upkName (\ s a -> s{_upkName = a});---- | The Id of a usage plan key.-upkId :: Lens' UsagePlanKey (Maybe Text)-upkId = lens _upkId (\ s a -> s{_upkId = a});---- | The type of a usage plan key. Currently, the valid key type is @API_KEY@ .-upkType :: Lens' UsagePlanKey (Maybe Text)-upkType = lens _upkType (\ s a -> s{_upkType = a});--instance FromJSON UsagePlanKey where-        parseJSON-          = withObject "UsagePlanKey"-              (\ x ->-                 UsagePlanKey' <$>-                   (x .:? "value") <*> (x .:? "name") <*> (x .:? "id")-                     <*> (x .:? "type"))--instance Hashable UsagePlanKey--instance NFData UsagePlanKey+-- Copyright   : (c) 2013-2017 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)+--+module Network.AWS.APIGateway.Types.Product where++import Network.AWS.APIGateway.Types.Sum+import Network.AWS.Lens+import Network.AWS.Prelude++-- | 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.+--+--+-- <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-api-keys.html Use API Keys>+--+-- /See:/ 'apiKey' smart constructor.+data APIKey = APIKey'+  { _akEnabled         :: !(Maybe Bool)+  , _akValue           :: !(Maybe Text)+  , _akCustomerId      :: !(Maybe Text)+  , _akCreatedDate     :: !(Maybe POSIX)+  , _akName            :: !(Maybe Text)+  , _akId              :: !(Maybe Text)+  , _akStageKeys       :: !(Maybe [Text])+  , _akLastUpdatedDate :: !(Maybe POSIX)+  , _akDescription     :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'APIKey' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'akEnabled' - Specifies whether the API Key can be used by callers.+--+-- * 'akValue' - The value of the API Key.+--+-- * 'akCustomerId' - An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.+--+-- * 'akCreatedDate' - The timestamp when the API Key was created.+--+-- * 'akName' - The name of the API Key.+--+-- * 'akId' - The identifier of the API Key.+--+-- * 'akStageKeys' - A list of 'Stage' resources that are associated with the 'ApiKey' resource.+--+-- * 'akLastUpdatedDate' - The timestamp when the API Key was last updated.+--+-- * 'akDescription' - The description of the API Key.+apiKey+    :: APIKey+apiKey =+  APIKey'+  { _akEnabled = Nothing+  , _akValue = Nothing+  , _akCustomerId = Nothing+  , _akCreatedDate = Nothing+  , _akName = Nothing+  , _akId = Nothing+  , _akStageKeys = Nothing+  , _akLastUpdatedDate = Nothing+  , _akDescription = Nothing+  }+++-- | Specifies whether the API Key can be used by callers.+akEnabled :: Lens' APIKey (Maybe Bool)+akEnabled = lens _akEnabled (\ s a -> s{_akEnabled = a});++-- | The value of the API Key.+akValue :: Lens' APIKey (Maybe Text)+akValue = lens _akValue (\ s a -> s{_akValue = a});++-- | An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.+akCustomerId :: Lens' APIKey (Maybe Text)+akCustomerId = lens _akCustomerId (\ s a -> s{_akCustomerId = a});++-- | The timestamp when the API Key was created.+akCreatedDate :: Lens' APIKey (Maybe UTCTime)+akCreatedDate = lens _akCreatedDate (\ s a -> s{_akCreatedDate = a}) . mapping _Time;++-- | The name of the API Key.+akName :: Lens' APIKey (Maybe Text)+akName = lens _akName (\ s a -> s{_akName = a});++-- | The identifier of the API Key.+akId :: Lens' APIKey (Maybe Text)+akId = lens _akId (\ s a -> s{_akId = a});++-- | A list of 'Stage' resources that are associated with the 'ApiKey' resource.+akStageKeys :: Lens' APIKey [Text]+akStageKeys = lens _akStageKeys (\ s a -> s{_akStageKeys = a}) . _Default . _Coerce;++-- | The timestamp when the API Key was last updated.+akLastUpdatedDate :: Lens' APIKey (Maybe UTCTime)+akLastUpdatedDate = lens _akLastUpdatedDate (\ s a -> s{_akLastUpdatedDate = a}) . mapping _Time;++-- | The description of the API Key.+akDescription :: Lens' APIKey (Maybe Text)+akDescription = lens _akDescription (\ s a -> s{_akDescription = a});++instance FromJSON APIKey where+        parseJSON+          = withObject "APIKey"+              (\ x ->+                 APIKey' <$>+                   (x .:? "enabled") <*> (x .:? "value") <*>+                     (x .:? "customerId")+                     <*> (x .:? "createdDate")+                     <*> (x .:? "name")+                     <*> (x .:? "id")+                     <*> (x .:? "stageKeys" .!= mempty)+                     <*> (x .:? "lastUpdatedDate")+                     <*> (x .:? "description"))++instance Hashable APIKey where++instance NFData APIKey where++-- | API stage name of the associated API stage in a usage plan.+--+--+--+-- /See:/ 'apiStage' smart constructor.+data APIStage = APIStage'+  { _asStage :: !(Maybe Text)+  , _asApiId :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'APIStage' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'asStage' - API stage name of the associated API stage in a usage plan.+--+-- * 'asApiId' - API Id of the associated API stage in a usage plan.+apiStage+    :: APIStage+apiStage = APIStage' {_asStage = Nothing, _asApiId = Nothing}+++-- | API stage name of the associated API stage in a usage plan.+asStage :: Lens' APIStage (Maybe Text)+asStage = lens _asStage (\ s a -> s{_asStage = a});++-- | API Id of the associated API stage in a usage plan.+asApiId :: Lens' APIStage (Maybe Text)+asApiId = lens _asApiId (\ s a -> s{_asApiId = a});++instance FromJSON APIStage where+        parseJSON+          = withObject "APIStage"+              (\ x ->+                 APIStage' <$> (x .:? "stage") <*> (x .:? "apiId"))++instance Hashable APIStage where++instance NFData APIStage where++instance ToJSON APIStage where+        toJSON APIStage'{..}+          = object+              (catMaybes+                 [("stage" .=) <$> _asStage,+                  ("apiId" .=) <$> _asApiId])++-- | Represents an AWS account that is associated with Amazon 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 <http://docs.aws.amazon.com/apigateway/api-reference/handling-errors/#api-error-codes 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": "http://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.+--+-- <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-limits.html API Gateway Limits> <http://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html Developer Guide> , <http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-account.html AWS CLI>+--+-- /See:/ 'account' smart constructor.+data Account = Account'+  { _aApiKeyVersion     :: !(Maybe Text)+  , _aCloudwatchRoleARN :: !(Maybe Text)+  , _aFeatures          :: !(Maybe [Text])+  , _aThrottleSettings  :: !(Maybe ThrottleSettings)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'Account' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'aApiKeyVersion' - The version of the API keys used for the account.+--+-- * 'aCloudwatchRoleARN' - The ARN of an Amazon CloudWatch role for the current 'Account' .+--+-- * 'aFeatures' - A list of features supported for the account. When usage plans are enabled, the features list will include an entry of @"UsagePlans"@ .+--+-- * 'aThrottleSettings' - Specifies the API request limits configured for the current 'Account' .+account+    :: Account+account =+  Account'+  { _aApiKeyVersion = Nothing+  , _aCloudwatchRoleARN = Nothing+  , _aFeatures = Nothing+  , _aThrottleSettings = Nothing+  }+++-- | The version of the API keys used for the account.+aApiKeyVersion :: Lens' Account (Maybe Text)+aApiKeyVersion = lens _aApiKeyVersion (\ s a -> s{_aApiKeyVersion = a});++-- | The ARN of an Amazon CloudWatch role for the current 'Account' .+aCloudwatchRoleARN :: Lens' Account (Maybe Text)+aCloudwatchRoleARN = lens _aCloudwatchRoleARN (\ s a -> s{_aCloudwatchRoleARN = a});++-- | A list of features supported for the account. When usage plans are enabled, the features list will include an entry of @"UsagePlans"@ .+aFeatures :: Lens' Account [Text]+aFeatures = lens _aFeatures (\ s a -> s{_aFeatures = a}) . _Default . _Coerce;++-- | Specifies the API request limits configured for the current 'Account' .+aThrottleSettings :: Lens' Account (Maybe ThrottleSettings)+aThrottleSettings = lens _aThrottleSettings (\ s a -> s{_aThrottleSettings = a});++instance FromJSON Account where+        parseJSON+          = withObject "Account"+              (\ x ->+                 Account' <$>+                   (x .:? "apiKeyVersion") <*>+                     (x .:? "cloudwatchRoleArn")+                     <*> (x .:? "features" .!= mempty)+                     <*> (x .:? "throttleSettings"))++instance Hashable Account where++instance NFData Account where++-- | Represents an authorization layer for methods. If enabled on a method, API Gateway will activate the authorizer when a client calls the method.+--+--+-- <http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html Enable custom authorization>+--+-- /See:/ 'authorizer' smart constructor.+data Authorizer = Authorizer'+  { _aAuthorizerURI                :: !(Maybe Text)+  , _aIdentityValidationExpression :: !(Maybe Text)+  , _aProviderARNs                 :: !(Maybe [Text])+  , _aName                         :: !(Maybe Text)+  , _aId                           :: !(Maybe Text)+  , _aAuthorizerResultTtlInSeconds :: !(Maybe Int)+  , _aAuthType                     :: !(Maybe Text)+  , _aType                         :: !(Maybe AuthorizerType)+  , _aIdentitySource               :: !(Maybe Text)+  , _aAuthorizerCredentials        :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'Authorizer' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'aAuthorizerURI' - 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@ .+--+-- * 'aIdentityValidationExpression' - A validation expression for the incoming identity token. For @TOKEN@ authorizers, this value is a regular expression. Amazon API Gateway will match the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function 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.+--+-- * 'aProviderARNs' - 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.+--+-- * 'aName' - [Required] The name of the authorizer.+--+-- * 'aId' - The identifier for the authorizer resource.+--+-- * 'aAuthorizerResultTtlInSeconds' - 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.+--+-- * 'aAuthType' - Optional customer-defined field, used in Swagger imports and exports without functional impact.+--+-- * 'aType' - [Required] 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.+--+-- * 'aIdentitySource' - The identity source for which authorization is requested.     * For a @TOKEN@ authorizer, this is required and specifies the request header mapping expression for the custom header holding the authorization token submitted by the client. For example, if the token header name is @Auth@ , the header mapping expression is @method.request.header.Auth@ .    * For the @REQUEST@ authorizer, this is required when authorization caching is enabled. The value is a comma-separated string of one or more mapping expressions of the specified request parameters. For example, if an @Auth@ header, a @Name@ query string parameter are defined as identity sources, this value is @method.request.header.Auth, method.request.querystring.Name@ . These parameters will be used to derive the authorization caching key and to perform runtime validation of the @REQUEST@ authorizer by verifying all of the identity-related request parameters are present, not null and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401 Unauthorized response without calling the Lambda function. The valid value is a string of comma-separated mapping expressions of the specified request parameters. When the authorization caching is not enabled, this property is optional.    * For a @COGNITO_USER_POOLS@ authorizer, this property is not used.+--+-- * 'aAuthorizerCredentials' - Specifies the required credentials as an IAM role for Amazon API Gateway to invoke the authorizer. To specify an IAM role for Amazon API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.+authorizer+    :: Authorizer+authorizer =+  Authorizer'+  { _aAuthorizerURI = Nothing+  , _aIdentityValidationExpression = Nothing+  , _aProviderARNs = Nothing+  , _aName = Nothing+  , _aId = Nothing+  , _aAuthorizerResultTtlInSeconds = Nothing+  , _aAuthType = Nothing+  , _aType = Nothing+  , _aIdentitySource = Nothing+  , _aAuthorizerCredentials = Nothing+  }+++-- | 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@ .+aAuthorizerURI :: Lens' Authorizer (Maybe Text)+aAuthorizerURI = lens _aAuthorizerURI (\ s a -> s{_aAuthorizerURI = a});++-- | A validation expression for the incoming identity token. For @TOKEN@ authorizers, this value is a regular expression. Amazon API Gateway will match the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function 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.+aIdentityValidationExpression :: Lens' Authorizer (Maybe Text)+aIdentityValidationExpression = lens _aIdentityValidationExpression (\ s a -> s{_aIdentityValidationExpression = a});++-- | 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.+aProviderARNs :: Lens' Authorizer [Text]+aProviderARNs = lens _aProviderARNs (\ s a -> s{_aProviderARNs = a}) . _Default . _Coerce;++-- | [Required] The name of the authorizer.+aName :: Lens' Authorizer (Maybe Text)+aName = lens _aName (\ s a -> s{_aName = a});++-- | The identifier for the authorizer resource.+aId :: Lens' Authorizer (Maybe Text)+aId = lens _aId (\ s a -> s{_aId = a});++-- | 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.+aAuthorizerResultTtlInSeconds :: Lens' Authorizer (Maybe Int)+aAuthorizerResultTtlInSeconds = lens _aAuthorizerResultTtlInSeconds (\ s a -> s{_aAuthorizerResultTtlInSeconds = a});++-- | Optional customer-defined field, used in Swagger imports and exports without functional impact.+aAuthType :: Lens' Authorizer (Maybe Text)+aAuthType = lens _aAuthType (\ s a -> s{_aAuthType = a});++-- | [Required] 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.+aType :: Lens' Authorizer (Maybe AuthorizerType)+aType = lens _aType (\ s a -> s{_aType = a});++-- | The identity source for which authorization is requested.     * For a @TOKEN@ authorizer, this is required and specifies the request header mapping expression for the custom header holding the authorization token submitted by the client. For example, if the token header name is @Auth@ , the header mapping expression is @method.request.header.Auth@ .    * For the @REQUEST@ authorizer, this is required when authorization caching is enabled. The value is a comma-separated string of one or more mapping expressions of the specified request parameters. For example, if an @Auth@ header, a @Name@ query string parameter are defined as identity sources, this value is @method.request.header.Auth, method.request.querystring.Name@ . These parameters will be used to derive the authorization caching key and to perform runtime validation of the @REQUEST@ authorizer by verifying all of the identity-related request parameters are present, not null and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401 Unauthorized response without calling the Lambda function. The valid value is a string of comma-separated mapping expressions of the specified request parameters. When the authorization caching is not enabled, this property is optional.    * For a @COGNITO_USER_POOLS@ authorizer, this property is not used.+aIdentitySource :: Lens' Authorizer (Maybe Text)+aIdentitySource = lens _aIdentitySource (\ s a -> s{_aIdentitySource = a});++-- | Specifies the required credentials as an IAM role for Amazon API Gateway to invoke the authorizer. To specify an IAM role for Amazon API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.+aAuthorizerCredentials :: Lens' Authorizer (Maybe Text)+aAuthorizerCredentials = lens _aAuthorizerCredentials (\ s a -> s{_aAuthorizerCredentials = a});++instance FromJSON Authorizer where+        parseJSON+          = withObject "Authorizer"+              (\ x ->+                 Authorizer' <$>+                   (x .:? "authorizerUri") <*>+                     (x .:? "identityValidationExpression")+                     <*> (x .:? "providerARNs" .!= mempty)+                     <*> (x .:? "name")+                     <*> (x .:? "id")+                     <*> (x .:? "authorizerResultTtlInSeconds")+                     <*> (x .:? "authType")+                     <*> (x .:? "type")+                     <*> (x .:? "identitySource")+                     <*> (x .:? "authorizerCredentials"))++instance Hashable Authorizer where++instance NFData Authorizer where++-- | 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' .<http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html Use Custom Domain Names>+--+-- /See:/ 'basePathMapping' smart constructor.+data BasePathMapping = BasePathMapping'+  { _bpmStage     :: !(Maybe Text)+  , _bpmBasePath  :: !(Maybe Text)+  , _bpmRestAPIId :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'BasePathMapping' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'bpmStage' - The name of the associated stage.+--+-- * 'bpmBasePath' - The base path name that callers of the API must provide as part of the URL after the domain name.+--+-- * 'bpmRestAPIId' - The string identifier of the associated 'RestApi' .+basePathMapping+    :: BasePathMapping+basePathMapping =+  BasePathMapping'+  {_bpmStage = Nothing, _bpmBasePath = Nothing, _bpmRestAPIId = Nothing}+++-- | The name of the associated stage.+bpmStage :: Lens' BasePathMapping (Maybe Text)+bpmStage = lens _bpmStage (\ s a -> s{_bpmStage = a});++-- | The base path name that callers of the API must provide as part of the URL after the domain name.+bpmBasePath :: Lens' BasePathMapping (Maybe Text)+bpmBasePath = lens _bpmBasePath (\ s a -> s{_bpmBasePath = a});++-- | The string identifier of the associated 'RestApi' .+bpmRestAPIId :: Lens' BasePathMapping (Maybe Text)+bpmRestAPIId = lens _bpmRestAPIId (\ s a -> s{_bpmRestAPIId = a});++instance FromJSON BasePathMapping where+        parseJSON+          = withObject "BasePathMapping"+              (\ x ->+                 BasePathMapping' <$>+                   (x .:? "stage") <*> (x .:? "basePath") <*>+                     (x .:? "restApiId"))++instance Hashable BasePathMapping where++instance NFData BasePathMapping where++-- | 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.<http://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html Use Client-Side Certificate>+--+-- /See:/ 'clientCertificate' smart constructor.+data ClientCertificate = ClientCertificate'+  { _ccPemEncodedCertificate :: !(Maybe Text)+  , _ccClientCertificateId   :: !(Maybe Text)+  , _ccCreatedDate           :: !(Maybe POSIX)+  , _ccExpirationDate        :: !(Maybe POSIX)+  , _ccDescription           :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ClientCertificate' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ccPemEncodedCertificate' - The PEM-encoded public key of the client certificate, which can be used to configure certificate authentication in the integration endpoint .+--+-- * 'ccClientCertificateId' - The identifier of the client certificate.+--+-- * 'ccCreatedDate' - The timestamp when the client certificate was created.+--+-- * 'ccExpirationDate' - The timestamp when the client certificate will expire.+--+-- * 'ccDescription' - The description of the client certificate.+clientCertificate+    :: ClientCertificate+clientCertificate =+  ClientCertificate'+  { _ccPemEncodedCertificate = Nothing+  , _ccClientCertificateId = Nothing+  , _ccCreatedDate = Nothing+  , _ccExpirationDate = Nothing+  , _ccDescription = Nothing+  }+++-- | The PEM-encoded public key of the client certificate, which can be used to configure certificate authentication in the integration endpoint .+ccPemEncodedCertificate :: Lens' ClientCertificate (Maybe Text)+ccPemEncodedCertificate = lens _ccPemEncodedCertificate (\ s a -> s{_ccPemEncodedCertificate = a});++-- | The identifier of the client certificate.+ccClientCertificateId :: Lens' ClientCertificate (Maybe Text)+ccClientCertificateId = lens _ccClientCertificateId (\ s a -> s{_ccClientCertificateId = a});++-- | The timestamp when the client certificate was created.+ccCreatedDate :: Lens' ClientCertificate (Maybe UTCTime)+ccCreatedDate = lens _ccCreatedDate (\ s a -> s{_ccCreatedDate = a}) . mapping _Time;++-- | The timestamp when the client certificate will expire.+ccExpirationDate :: Lens' ClientCertificate (Maybe UTCTime)+ccExpirationDate = lens _ccExpirationDate (\ s a -> s{_ccExpirationDate = a}) . mapping _Time;++-- | The description of the client certificate.+ccDescription :: Lens' ClientCertificate (Maybe Text)+ccDescription = lens _ccDescription (\ s a -> s{_ccDescription = a});++instance FromJSON ClientCertificate where+        parseJSON+          = withObject "ClientCertificate"+              (\ x ->+                 ClientCertificate' <$>+                   (x .:? "pemEncodedCertificate") <*>+                     (x .:? "clientCertificateId")+                     <*> (x .:? "createdDate")+                     <*> (x .:? "expirationDate")+                     <*> (x .:? "description"))++instance Hashable ClientCertificate where++instance NFData ClientCertificate where++-- | 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' , <http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-deployment.html AWS CLI> , <https://aws.amazon.com/tools/ AWS SDKs>+--+-- /See:/ 'deployment' smart constructor.+data Deployment = Deployment'+  { _dApiSummary  :: !(Maybe (Map Text (Map Text MethodSnapshot)))+  , _dCreatedDate :: !(Maybe POSIX)+  , _dId          :: !(Maybe Text)+  , _dDescription :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'Deployment' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dApiSummary' - A summary of the 'RestApi' at the date and time that the deployment resource was created.+--+-- * 'dCreatedDate' - The date and time that the deployment resource was created.+--+-- * 'dId' - The identifier for the deployment resource.+--+-- * 'dDescription' - The description for the deployment resource.+deployment+    :: Deployment+deployment =+  Deployment'+  { _dApiSummary = Nothing+  , _dCreatedDate = Nothing+  , _dId = Nothing+  , _dDescription = Nothing+  }+++-- | A summary of the 'RestApi' at the date and time that the deployment resource was created.+dApiSummary :: Lens' Deployment (HashMap Text (HashMap Text MethodSnapshot))+dApiSummary = lens _dApiSummary (\ s a -> s{_dApiSummary = a}) . _Default . _Map;++-- | The date and time that the deployment resource was created.+dCreatedDate :: Lens' Deployment (Maybe UTCTime)+dCreatedDate = lens _dCreatedDate (\ s a -> s{_dCreatedDate = a}) . mapping _Time;++-- | The identifier for the deployment resource.+dId :: Lens' Deployment (Maybe Text)+dId = lens _dId (\ s a -> s{_dId = a});++-- | The description for the deployment resource.+dDescription :: Lens' Deployment (Maybe Text)+dDescription = lens _dDescription (\ s a -> s{_dDescription = a});++instance FromJSON Deployment where+        parseJSON+          = withObject "Deployment"+              (\ x ->+                 Deployment' <$>+                   (x .:? "apiSummary" .!= mempty) <*>+                     (x .:? "createdDate")+                     <*> (x .:? "id")+                     <*> (x .:? "description"))++instance Hashable Deployment where++instance NFData Deployment where++-- | 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 Swagger-compliant documentation fields will be injected into the associated API entity definition in the exported Swagger definition file.+--+-- <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api.html Documenting an API> , 'DocumentationParts'+--+-- /See:/ 'documentationPart' smart constructor.+data DocumentationPart = DocumentationPart'+  { _dpLocation   :: !(Maybe DocumentationPartLocation)+  , _dpId         :: !(Maybe Text)+  , _dpProperties :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DocumentationPart' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dpLocation' - 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.+--+-- * 'dpId' - The 'DocumentationPart' identifier, generated by Amazon API Gateway when the @DocumentationPart@ is created.+--+-- * 'dpProperties' - 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 Swagger-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 Swagger extension of @x-amazon-apigateway-documentation@ .+documentationPart+    :: DocumentationPart+documentationPart =+  DocumentationPart'+  {_dpLocation = Nothing, _dpId = Nothing, _dpProperties = Nothing}+++-- | 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.+dpLocation :: Lens' DocumentationPart (Maybe DocumentationPartLocation)+dpLocation = lens _dpLocation (\ s a -> s{_dpLocation = a});++-- | The 'DocumentationPart' identifier, generated by Amazon API Gateway when the @DocumentationPart@ is created.+dpId :: Lens' DocumentationPart (Maybe Text)+dpId = lens _dpId (\ s a -> s{_dpId = a});++-- | 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 Swagger-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 Swagger extension of @x-amazon-apigateway-documentation@ .+dpProperties :: Lens' DocumentationPart (Maybe Text)+dpProperties = lens _dpProperties (\ s a -> s{_dpProperties = a});++instance FromJSON DocumentationPart where+        parseJSON+          = withObject "DocumentationPart"+              (\ x ->+                 DocumentationPart' <$>+                   (x .:? "location") <*> (x .:? "id") <*>+                     (x .:? "properties"))++instance Hashable DocumentationPart where++instance NFData DocumentationPart where++-- | Specifies the target API entity to which the documentation applies.+--+--+--+-- /See:/ 'documentationPartLocation' smart constructor.+data DocumentationPartLocation = DocumentationPartLocation'+  { _dplPath       :: !(Maybe Text)+  , _dplName       :: !(Maybe Text)+  , _dplMethod     :: !(Maybe Text)+  , _dplStatusCode :: !(Maybe Text)+  , _dplType       :: !DocumentationPartType+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DocumentationPartLocation' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dplPath' - The URL path of the target. It is a valid field for the API entity types of @RESOURCE@ , @METHOD@ , @PATH_PARAMETER@ , @QUERY_PARAMETER@ , @REQUEST_HEADER@ , @REQUEST_BODY@ , @RESPONSE@ , @RESPONSE_HEADER@ , and @RESPONSE_BODY@ . The default value is @/@ for the root resource. When an applicable child entity inherits the content of another entity of the same type with more general specifications of the other @location@ attributes, the child entity's @path@ attribute must match that of the parent entity as a prefix.+--+-- * 'dplName' - The name of the targeted API entity. It is a valid and required field for the API entity types of @AUTHORIZER@ , @MODEL@ , @PATH_PARAMETER@ , @QUERY_PARAMETER@ , @REQUEST_HEADER@ , @REQUEST_BODY@ and @RESPONSE_HEADER@ . It is an invalid field for any other entity type.+--+-- * 'dplMethod' - The HTTP verb of a method. It is a valid field for the API entity types of @METHOD@ , @PATH_PARAMETER@ , @QUERY_PARAMETER@ , @REQUEST_HEADER@ , @REQUEST_BODY@ , @RESPONSE@ , @RESPONSE_HEADER@ , and @RESPONSE_BODY@ . The default value is @*@ for any method. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other @location@ attributes, the child entity's @method@ attribute must match that of the parent entity exactly.+--+-- * 'dplStatusCode' - The HTTP status code of a response. It is a valid field for the API entity types of @RESPONSE@ , @RESPONSE_HEADER@ , and @RESPONSE_BODY@ . The default value is @*@ for any status code. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other @location@ attributes, the child entity's @statusCode@ attribute must match that of the parent entity exactly.+--+-- * 'dplType' - The type of API entity to which the documentation content applies. It is a valid and required field for API entity types of @API@ , @AUTHORIZER@ , @MODEL@ , @RESOURCE@ , @METHOD@ , @PATH_PARAMETER@ , @QUERY_PARAMETER@ , @REQUEST_HEADER@ , @REQUEST_BODY@ , @RESPONSE@ , @RESPONSE_HEADER@ , and @RESPONSE_BODY@ . Content inheritance does not apply to any entity of the @API@ , @AUTHORIZER@ , @METHOD@ , @MODEL@ , @REQUEST_BODY@ , or @RESOURCE@ type.+documentationPartLocation+    :: DocumentationPartType -- ^ 'dplType'+    -> DocumentationPartLocation+documentationPartLocation pType_ =+  DocumentationPartLocation'+  { _dplPath = Nothing+  , _dplName = Nothing+  , _dplMethod = Nothing+  , _dplStatusCode = Nothing+  , _dplType = pType_+  }+++-- | The URL path of the target. It is a valid field for the API entity types of @RESOURCE@ , @METHOD@ , @PATH_PARAMETER@ , @QUERY_PARAMETER@ , @REQUEST_HEADER@ , @REQUEST_BODY@ , @RESPONSE@ , @RESPONSE_HEADER@ , and @RESPONSE_BODY@ . The default value is @/@ for the root resource. When an applicable child entity inherits the content of another entity of the same type with more general specifications of the other @location@ attributes, the child entity's @path@ attribute must match that of the parent entity as a prefix.+dplPath :: Lens' DocumentationPartLocation (Maybe Text)+dplPath = lens _dplPath (\ s a -> s{_dplPath = a});++-- | The name of the targeted API entity. It is a valid and required field for the API entity types of @AUTHORIZER@ , @MODEL@ , @PATH_PARAMETER@ , @QUERY_PARAMETER@ , @REQUEST_HEADER@ , @REQUEST_BODY@ and @RESPONSE_HEADER@ . It is an invalid field for any other entity type.+dplName :: Lens' DocumentationPartLocation (Maybe Text)+dplName = lens _dplName (\ s a -> s{_dplName = a});++-- | The HTTP verb of a method. It is a valid field for the API entity types of @METHOD@ , @PATH_PARAMETER@ , @QUERY_PARAMETER@ , @REQUEST_HEADER@ , @REQUEST_BODY@ , @RESPONSE@ , @RESPONSE_HEADER@ , and @RESPONSE_BODY@ . The default value is @*@ for any method. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other @location@ attributes, the child entity's @method@ attribute must match that of the parent entity exactly.+dplMethod :: Lens' DocumentationPartLocation (Maybe Text)+dplMethod = lens _dplMethod (\ s a -> s{_dplMethod = a});++-- | The HTTP status code of a response. It is a valid field for the API entity types of @RESPONSE@ , @RESPONSE_HEADER@ , and @RESPONSE_BODY@ . The default value is @*@ for any status code. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other @location@ attributes, the child entity's @statusCode@ attribute must match that of the parent entity exactly.+dplStatusCode :: Lens' DocumentationPartLocation (Maybe Text)+dplStatusCode = lens _dplStatusCode (\ s a -> s{_dplStatusCode = a});++-- | The type of API entity to which the documentation content applies. It is a valid and required field for API entity types of @API@ , @AUTHORIZER@ , @MODEL@ , @RESOURCE@ , @METHOD@ , @PATH_PARAMETER@ , @QUERY_PARAMETER@ , @REQUEST_HEADER@ , @REQUEST_BODY@ , @RESPONSE@ , @RESPONSE_HEADER@ , and @RESPONSE_BODY@ . Content inheritance does not apply to any entity of the @API@ , @AUTHORIZER@ , @METHOD@ , @MODEL@ , @REQUEST_BODY@ , or @RESOURCE@ type.+dplType :: Lens' DocumentationPartLocation DocumentationPartType+dplType = lens _dplType (\ s a -> s{_dplType = a});++instance FromJSON DocumentationPartLocation where+        parseJSON+          = withObject "DocumentationPartLocation"+              (\ x ->+                 DocumentationPartLocation' <$>+                   (x .:? "path") <*> (x .:? "name") <*>+                     (x .:? "method")+                     <*> (x .:? "statusCode")+                     <*> (x .: "type"))++instance Hashable DocumentationPartLocation where++instance NFData DocumentationPartLocation where++instance ToJSON DocumentationPartLocation where+        toJSON DocumentationPartLocation'{..}+          = object+              (catMaybes+                 [("path" .=) <$> _dplPath, ("name" .=) <$> _dplName,+                  ("method" .=) <$> _dplMethod,+                  ("statusCode" .=) <$> _dplStatusCode,+                  Just ("type" .= _dplType)])++-- | 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., Swagger) file.+--+-- <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api.html Documenting an API> , 'DocumentationPart' , 'DocumentationVersions'+--+-- /See:/ 'documentationVersion' smart constructor.+data DocumentationVersion = DocumentationVersion'+  { _dvCreatedDate :: !(Maybe POSIX)+  , _dvVersion     :: !(Maybe Text)+  , _dvDescription :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DocumentationVersion' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dvCreatedDate' - The date when the API documentation snapshot is created.+--+-- * 'dvVersion' - The version identifier of the API documentation snapshot.+--+-- * 'dvDescription' - The description of the API documentation snapshot.+documentationVersion+    :: DocumentationVersion+documentationVersion =+  DocumentationVersion'+  {_dvCreatedDate = Nothing, _dvVersion = Nothing, _dvDescription = Nothing}+++-- | The date when the API documentation snapshot is created.+dvCreatedDate :: Lens' DocumentationVersion (Maybe UTCTime)+dvCreatedDate = lens _dvCreatedDate (\ s a -> s{_dvCreatedDate = a}) . mapping _Time;++-- | The version identifier of the API documentation snapshot.+dvVersion :: Lens' DocumentationVersion (Maybe Text)+dvVersion = lens _dvVersion (\ s a -> s{_dvVersion = a});++-- | The description of the API documentation snapshot.+dvDescription :: Lens' DocumentationVersion (Maybe Text)+dvDescription = lens _dvDescription (\ s a -> s{_dvDescription = a});++instance FromJSON DocumentationVersion where+        parseJSON+          = withObject "DocumentationVersion"+              (\ x ->+                 DocumentationVersion' <$>+                   (x .:? "createdDate") <*> (x .:? "version") <*>+                     (x .:? "description"))++instance Hashable DocumentationVersion where++instance NFData DocumentationVersion where++-- | Represents a custom domain name as a user-friendly host name of an API ('RestApi' ).+--+--+-- When you deploy an API, Amazon 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.+--+-- <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html Set a Custom Host Name for an API>+--+-- /See:/ 'domainName' smart constructor.+data DomainName = DomainName'+  { _dnCertificateName         :: !(Maybe Text)+  , _dnRegionalCertificateARN  :: !(Maybe Text)+  , _dnCertificateARN          :: !(Maybe Text)+  , _dnDomainName              :: !(Maybe Text)+  , _dnRegionalCertificateName :: !(Maybe Text)+  , _dnRegionalDomainName      :: !(Maybe Text)+  , _dnCertificateUploadDate   :: !(Maybe POSIX)+  , _dnDistributionDomainName  :: !(Maybe Text)+  , _dnEndpointConfiguration   :: !(Maybe EndpointConfiguration)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DomainName' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dnCertificateName' - The name of the certificate that will be used by edge-optimized endpoint for this domain name.+--+-- * 'dnRegionalCertificateARN' - 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.+--+-- * 'dnCertificateARN' - 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.+--+-- * 'dnDomainName' - The name of the 'DomainName' resource.+--+-- * 'dnRegionalCertificateName' - The name of the certificate that will be used for validating the regional domain name.+--+-- * 'dnRegionalDomainName' - 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 Amazon API Gateway when you create a regional endpoint.+--+-- * 'dnCertificateUploadDate' - The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.+--+-- * 'dnDistributionDomainName' - 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 <http://aws.amazon.com/documentation/cloudfront/ Amazon CloudFront documentation> .+--+-- * 'dnEndpointConfiguration' - The endpoint configuration of this 'DomainName' showing the endpoint types of the domain name.+domainName+    :: DomainName+domainName =+  DomainName'+  { _dnCertificateName = Nothing+  , _dnRegionalCertificateARN = Nothing+  , _dnCertificateARN = Nothing+  , _dnDomainName = Nothing+  , _dnRegionalCertificateName = Nothing+  , _dnRegionalDomainName = Nothing+  , _dnCertificateUploadDate = Nothing+  , _dnDistributionDomainName = Nothing+  , _dnEndpointConfiguration = Nothing+  }+++-- | The name of the certificate that will be used by edge-optimized endpoint for this domain name.+dnCertificateName :: Lens' DomainName (Maybe Text)+dnCertificateName = lens _dnCertificateName (\ s a -> s{_dnCertificateName = a});++-- | 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.+dnRegionalCertificateARN :: Lens' DomainName (Maybe Text)+dnRegionalCertificateARN = lens _dnRegionalCertificateARN (\ s a -> s{_dnRegionalCertificateARN = a});++-- | 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.+dnCertificateARN :: Lens' DomainName (Maybe Text)+dnCertificateARN = lens _dnCertificateARN (\ s a -> s{_dnCertificateARN = a});++-- | The name of the 'DomainName' resource.+dnDomainName :: Lens' DomainName (Maybe Text)+dnDomainName = lens _dnDomainName (\ s a -> s{_dnDomainName = a});++-- | The name of the certificate that will be used for validating the regional domain name.+dnRegionalCertificateName :: Lens' DomainName (Maybe Text)+dnRegionalCertificateName = lens _dnRegionalCertificateName (\ s a -> s{_dnRegionalCertificateName = a});++-- | 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 Amazon API Gateway when you create a regional endpoint.+dnRegionalDomainName :: Lens' DomainName (Maybe Text)+dnRegionalDomainName = lens _dnRegionalDomainName (\ s a -> s{_dnRegionalDomainName = a});++-- | The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.+dnCertificateUploadDate :: Lens' DomainName (Maybe UTCTime)+dnCertificateUploadDate = lens _dnCertificateUploadDate (\ s a -> s{_dnCertificateUploadDate = a}) . mapping _Time;++-- | 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 <http://aws.amazon.com/documentation/cloudfront/ Amazon CloudFront documentation> .+dnDistributionDomainName :: Lens' DomainName (Maybe Text)+dnDistributionDomainName = lens _dnDistributionDomainName (\ s a -> s{_dnDistributionDomainName = a});++-- | The endpoint configuration of this 'DomainName' showing the endpoint types of the domain name.+dnEndpointConfiguration :: Lens' DomainName (Maybe EndpointConfiguration)+dnEndpointConfiguration = lens _dnEndpointConfiguration (\ s a -> s{_dnEndpointConfiguration = a});++instance FromJSON DomainName where+        parseJSON+          = withObject "DomainName"+              (\ x ->+                 DomainName' <$>+                   (x .:? "certificateName") <*>+                     (x .:? "regionalCertificateArn")+                     <*> (x .:? "certificateArn")+                     <*> (x .:? "domainName")+                     <*> (x .:? "regionalCertificateName")+                     <*> (x .:? "regionalDomainName")+                     <*> (x .:? "certificateUploadDate")+                     <*> (x .:? "distributionDomainName")+                     <*> (x .:? "endpointConfiguration"))++instance Hashable DomainName where++instance NFData DomainName where++-- | The endpoint configuration to indicate the types of endpoints an API ('RestApi' ) or its custom domain name ('DomainName' ) has.+--+--+--+-- /See:/ 'endpointConfiguration' smart constructor.+newtype EndpointConfiguration = EndpointConfiguration'+  { _ecTypes :: Maybe [EndpointType]+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'EndpointConfiguration' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ecTypes' - A list of endpoint types of an API ('RestApi' ) or its custom domain name ('DomainName' ). For an edge-optimized API and its custom domain name, the endpoint type is @"EDGE"@ . For a regional API and its custom domain name, the endpoint type is @REGIONAL@ .+endpointConfiguration+    :: EndpointConfiguration+endpointConfiguration = EndpointConfiguration' {_ecTypes = Nothing}+++-- | A list of endpoint types of an API ('RestApi' ) or its custom domain name ('DomainName' ). For an edge-optimized API and its custom domain name, the endpoint type is @"EDGE"@ . For a regional API and its custom domain name, the endpoint type is @REGIONAL@ .+ecTypes :: Lens' EndpointConfiguration [EndpointType]+ecTypes = lens _ecTypes (\ s a -> s{_ecTypes = a}) . _Default . _Coerce;++instance FromJSON EndpointConfiguration where+        parseJSON+          = withObject "EndpointConfiguration"+              (\ x ->+                 EndpointConfiguration' <$>+                   (x .:? "types" .!= mempty))++instance Hashable EndpointConfiguration where++instance NFData EndpointConfiguration where++instance ToJSON EndpointConfiguration where+        toJSON EndpointConfiguration'{..}+          = object (catMaybes [("types" .=) <$> _ecTypes])++-- | 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 <http://docs.aws.amazon.com/apigateway/latest/developerguide/supported-gateway-response-types.html Gateway Response Types Supported by Amazon 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_AUTHNETICATION_TOKEN@ type.+--+-- @@GET /restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN HTTP/1.1 Host: beta-apigateway.us-east-1.amazonaws.com Content-Type: application/json X-Amz-Date: 20170503T202516Z Authorization: AWS4-HMAC-SHA256 Credential={access-key-id}/20170503/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=1b52460e3159c1a26cff29093855d50ea141c1c5b937528fecaf60f51129697a Cache-Control: no-cache Postman-Token: 3b2a1ce9-c848-2e26-2e2f-9c2caefbed45 @ @ The response type is specified as a URL path.+--+-- __Response__+-- The successful operation returns the @200 OK@ status code and a payload similar to the following:+--+-- @@{ "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-gatewayresponse-{rel}.html", "name": "gatewayresponse", "templated": true }, "self": { "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN" }, "gatewayresponse:delete": { "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN" }, "gatewayresponse:put": { "href": "/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true }, "gatewayresponse:update": { "href": "/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN" } }, "defaultResponse": false, "responseParameters": { "gatewayresponse.header.x-request-path": "method.request.path.petId", "gatewayresponse.header.Access-Control-Allow-Origin": "'a.b.c'", "gatewayresponse.header.x-request-query": "method.request.querystring.q", "gatewayresponse.header.x-request-header": "method.request.header.Accept" }, "responseTemplates": { "application/json": "{\n \"message\": $context.error.messageString,\n \"type\": \"$context.error.responseType\",\n \"stage\": \"$context.stage\",\n \"resourcePath\": \"$context.resourcePath\",\n \"stageVariables.a\": \"$stageVariables.a\",\n \"statusCode\": \"'404'\"\n}" }, "responseType": "MISSING_AUTHENTICATION_TOKEN", "statusCode": "404" }@ @+--+-- <http://docs.aws.amazon.com/apigateway/latest/developerguide/customize-gateway-responses.html Customize Gateway Responses>+--+-- /See:/ 'gatewayResponse' smart constructor.+data GatewayResponse = GatewayResponse'+  { _gDefaultResponse    :: !(Maybe Bool)+  , _gResponseTemplates  :: !(Maybe (Map Text Text))+  , _gResponseType       :: !(Maybe GatewayResponseType)+  , _gStatusCode         :: !(Maybe Text)+  , _gResponseParameters :: !(Maybe (Map Text Text))+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GatewayResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'gDefaultResponse' - 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 Amazon API Gateway without any customization by an API developer.+--+-- * 'gResponseTemplates' - Response templates of the 'GatewayResponse' as a string-to-string map of key-value pairs.+--+-- * 'gResponseType' - The response type of the associated 'GatewayResponse' . Valid values are     * ACCESS_DENIED    * API_CONFIGURATION_ERROR    * AUTHORIZER_FAILURE    * AUTHORIZER_CONFIGURATION_ERROR    * BAD_REQUEST_PARAMETERS    * BAD_REQUEST_BODY    * DEFAULT_4XX    * DEFAULT_5XX    * EXPIRED_TOKEN    * INVALID_SIGNATURE    * INTEGRATION_FAILURE    * INTEGRATION_TIMEOUT    * INVALID_API_KEY    * MISSING_AUTHENTICATION_TOKEN    * QUOTA_EXCEEDED    * REQUEST_TOO_LARGE    * RESOURCE_NOT_FOUND    * THROTTLED    * UNAUTHORIZED    * UNSUPPORTED_MEDIA_TYPES+--+-- * 'gStatusCode' - The HTTP status code for this 'GatewayResponse' .+--+-- * 'gResponseParameters' - Response parameters (paths, query strings and headers) of the 'GatewayResponse' as a string-to-string map of key-value pairs.+gatewayResponse+    :: GatewayResponse+gatewayResponse =+  GatewayResponse'+  { _gDefaultResponse = Nothing+  , _gResponseTemplates = Nothing+  , _gResponseType = Nothing+  , _gStatusCode = Nothing+  , _gResponseParameters = Nothing+  }+++-- | 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 Amazon API Gateway without any customization by an API developer.+gDefaultResponse :: Lens' GatewayResponse (Maybe Bool)+gDefaultResponse = lens _gDefaultResponse (\ s a -> s{_gDefaultResponse = a});++-- | Response templates of the 'GatewayResponse' as a string-to-string map of key-value pairs.+gResponseTemplates :: Lens' GatewayResponse (HashMap Text Text)+gResponseTemplates = lens _gResponseTemplates (\ s a -> s{_gResponseTemplates = a}) . _Default . _Map;++-- | The response type of the associated 'GatewayResponse' . Valid values are     * ACCESS_DENIED    * API_CONFIGURATION_ERROR    * AUTHORIZER_FAILURE    * AUTHORIZER_CONFIGURATION_ERROR    * BAD_REQUEST_PARAMETERS    * BAD_REQUEST_BODY    * DEFAULT_4XX    * DEFAULT_5XX    * EXPIRED_TOKEN    * INVALID_SIGNATURE    * INTEGRATION_FAILURE    * INTEGRATION_TIMEOUT    * INVALID_API_KEY    * MISSING_AUTHENTICATION_TOKEN    * QUOTA_EXCEEDED    * REQUEST_TOO_LARGE    * RESOURCE_NOT_FOUND    * THROTTLED    * UNAUTHORIZED    * UNSUPPORTED_MEDIA_TYPES+gResponseType :: Lens' GatewayResponse (Maybe GatewayResponseType)+gResponseType = lens _gResponseType (\ s a -> s{_gResponseType = a});++-- | The HTTP status code for this 'GatewayResponse' .+gStatusCode :: Lens' GatewayResponse (Maybe Text)+gStatusCode = lens _gStatusCode (\ s a -> s{_gStatusCode = a});++-- | Response parameters (paths, query strings and headers) of the 'GatewayResponse' as a string-to-string map of key-value pairs.+gResponseParameters :: Lens' GatewayResponse (HashMap Text Text)+gResponseParameters = lens _gResponseParameters (\ s a -> s{_gResponseParameters = a}) . _Default . _Map;++instance FromJSON GatewayResponse where+        parseJSON+          = withObject "GatewayResponse"+              (\ x ->+                 GatewayResponse' <$>+                   (x .:? "defaultResponse") <*>+                     (x .:? "responseTemplates" .!= mempty)+                     <*> (x .:? "responseType")+                     <*> (x .:? "statusCode")+                     <*> (x .:? "responseParameters" .!= mempty))++instance Hashable GatewayResponse where++instance NFData GatewayResponse where++-- | 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.<http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html Creating an API>+--+-- /See:/ 'integration' smart constructor.+data Integration = Integration'+  { _iHttpMethod           :: !(Maybe Text)+  , _iRequestTemplates     :: !(Maybe (Map Text Text))+  , _iCredentials          :: !(Maybe Text)+  , _iRequestParameters    :: !(Maybe (Map Text Text))+  , _iContentHandling      :: !(Maybe ContentHandlingStrategy)+  , _iPassthroughBehavior  :: !(Maybe Text)+  , _iUri                  :: !(Maybe Text)+  , _iIntegrationResponses :: !(Maybe (Map Text IntegrationResponse))+  , _iCacheNamespace       :: !(Maybe Text)+  , _iType                 :: !(Maybe IntegrationType)+  , _iCacheKeyParameters   :: !(Maybe [Text])+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'Integration' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'iHttpMethod' - Specifies the integration's HTTP method type.+--+-- * 'iRequestTemplates' - 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.+--+-- * 'iCredentials' - Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for Amazon 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.+--+-- * 'iRequestParameters' - 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.+--+-- * 'iContentHandling' - 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 @passthroughBehaviors@ is configured to support payload pass-through.+--+-- * 'iPassthroughBehavior' - 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@ . There are three valid values: @WHEN_NO_MATCH@ , @WHEN_NO_TEMPLATES@ , and @NEVER@ .      * @WHEN_NO_MATCH@ passes the method request body through the integration request to the back end without transformation when the method request content type does not match any content type associated with the mapping templates defined in the integration request.     * @WHEN_NO_TEMPLATES@ passes the method request body through the integration request to the back end without transformation when no mapping template is defined in the integration request. If a template is defined when this option is selected, the method request of an unmapped content-type will be rejected with an HTTP @415 Unsupported Media Type@ response.     * @NEVER@ rejects the method request with an HTTP @415 Unsupported Media Type@ response when either the method request content type does not match any content type associated with the mapping templates defined in the integration request or no mapping template is defined in the integration request.+--+-- * 'iUri' - Specifies the integration's Uniform Resource Identifier (URI). For HTTP integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the <https://en.wikipedia.org/wiki/Uniform_Resource_Identifier RFC-3986 specification> . For AWS integrations, the URI should be of the form @arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}@ . @Region@ , @subdomain@ and @service@ are used to determine the right endpoint. For AWS services that use the @Action=@ query string parameter, @service_api@ should be a valid action for the desired service. For RESTful AWS service APIs, @path@ is used to indicate that the remaining substring in the URI should be treated as the path to the resource, including the initial @/@ .+--+-- * 'iIntegrationResponses' - 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": "http://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" }@ @  <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html Creating an API>+--+-- * 'iCacheNamespace' - Specifies the integration's cache namespace.+--+-- * 'iType' - Specifies the integration's type. The valid value is @HTTP@ for integrating with an HTTP back end, @AWS@ for any AWS service endpoints, @MOCK@ for testing without actually invoking the back end, @HTTP_PROXY@ for integrating with the HTTP proxy integration, or @AWS_PROXY@ for integrating with the Lambda proxy integration type.+--+-- * 'iCacheKeyParameters' - Specifies the integration's cache key parameters.+integration+    :: Integration+integration =+  Integration'+  { _iHttpMethod = Nothing+  , _iRequestTemplates = Nothing+  , _iCredentials = Nothing+  , _iRequestParameters = Nothing+  , _iContentHandling = Nothing+  , _iPassthroughBehavior = Nothing+  , _iUri = Nothing+  , _iIntegrationResponses = Nothing+  , _iCacheNamespace = Nothing+  , _iType = Nothing+  , _iCacheKeyParameters = Nothing+  }+++-- | Specifies the integration's HTTP method type.+iHttpMethod :: Lens' Integration (Maybe Text)+iHttpMethod = lens _iHttpMethod (\ s a -> s{_iHttpMethod = a});++-- | 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.+iRequestTemplates :: Lens' Integration (HashMap Text Text)+iRequestTemplates = lens _iRequestTemplates (\ s a -> s{_iRequestTemplates = a}) . _Default . _Map;++-- | Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for Amazon 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.+iCredentials :: Lens' Integration (Maybe Text)+iCredentials = lens _iCredentials (\ s a -> s{_iCredentials = a});++-- | 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.+iRequestParameters :: Lens' Integration (HashMap Text Text)+iRequestParameters = lens _iRequestParameters (\ s a -> s{_iRequestParameters = a}) . _Default . _Map;++-- | 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 @passthroughBehaviors@ is configured to support payload pass-through.+iContentHandling :: Lens' Integration (Maybe ContentHandlingStrategy)+iContentHandling = lens _iContentHandling (\ s a -> s{_iContentHandling = a});++-- | 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@ . There are three valid values: @WHEN_NO_MATCH@ , @WHEN_NO_TEMPLATES@ , and @NEVER@ .      * @WHEN_NO_MATCH@ passes the method request body through the integration request to the back end without transformation when the method request content type does not match any content type associated with the mapping templates defined in the integration request.     * @WHEN_NO_TEMPLATES@ passes the method request body through the integration request to the back end without transformation when no mapping template is defined in the integration request. If a template is defined when this option is selected, the method request of an unmapped content-type will be rejected with an HTTP @415 Unsupported Media Type@ response.     * @NEVER@ rejects the method request with an HTTP @415 Unsupported Media Type@ response when either the method request content type does not match any content type associated with the mapping templates defined in the integration request or no mapping template is defined in the integration request.+iPassthroughBehavior :: Lens' Integration (Maybe Text)+iPassthroughBehavior = lens _iPassthroughBehavior (\ s a -> s{_iPassthroughBehavior = a});++-- | Specifies the integration's Uniform Resource Identifier (URI). For HTTP integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the <https://en.wikipedia.org/wiki/Uniform_Resource_Identifier RFC-3986 specification> . For AWS integrations, the URI should be of the form @arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}@ . @Region@ , @subdomain@ and @service@ are used to determine the right endpoint. For AWS services that use the @Action=@ query string parameter, @service_api@ should be a valid action for the desired service. For RESTful AWS service APIs, @path@ is used to indicate that the remaining substring in the URI should be treated as the path to the resource, including the initial @/@ .+iUri :: Lens' Integration (Maybe Text)+iUri = lens _iUri (\ s a -> s{_iUri = a});++-- | 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": "http://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" }@ @  <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html Creating an API>+iIntegrationResponses :: Lens' Integration (HashMap Text IntegrationResponse)+iIntegrationResponses = lens _iIntegrationResponses (\ s a -> s{_iIntegrationResponses = a}) . _Default . _Map;++-- | Specifies the integration's cache namespace.+iCacheNamespace :: Lens' Integration (Maybe Text)+iCacheNamespace = lens _iCacheNamespace (\ s a -> s{_iCacheNamespace = a});++-- | Specifies the integration's type. The valid value is @HTTP@ for integrating with an HTTP back end, @AWS@ for any AWS service endpoints, @MOCK@ for testing without actually invoking the back end, @HTTP_PROXY@ for integrating with the HTTP proxy integration, or @AWS_PROXY@ for integrating with the Lambda proxy integration type.+iType :: Lens' Integration (Maybe IntegrationType)+iType = lens _iType (\ s a -> s{_iType = a});++-- | Specifies the integration's cache key parameters.+iCacheKeyParameters :: Lens' Integration [Text]+iCacheKeyParameters = lens _iCacheKeyParameters (\ s a -> s{_iCacheKeyParameters = a}) . _Default . _Coerce;++instance FromJSON Integration where+        parseJSON+          = withObject "Integration"+              (\ x ->+                 Integration' <$>+                   (x .:? "httpMethod") <*>+                     (x .:? "requestTemplates" .!= mempty)+                     <*> (x .:? "credentials")+                     <*> (x .:? "requestParameters" .!= mempty)+                     <*> (x .:? "contentHandling")+                     <*> (x .:? "passthroughBehavior")+                     <*> (x .:? "uri")+                     <*> (x .:? "integrationResponses" .!= mempty)+                     <*> (x .:? "cacheNamespace")+                     <*> (x .:? "type")+                     <*> (x .:? "cacheKeyParameters" .!= mempty))++instance Hashable Integration where++instance NFData Integration where++-- | 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.+--+--+-- <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html Creating an API>+--+-- /See:/ 'integrationResponse' smart constructor.+data IntegrationResponse = IntegrationResponse'+  { _intContentHandling    :: !(Maybe ContentHandlingStrategy)+  , _intResponseTemplates  :: !(Maybe (Map Text Text))+  , _intSelectionPattern   :: !(Maybe Text)+  , _intStatusCode         :: !(Maybe Text)+  , _intResponseParameters :: !(Maybe (Map Text Text))+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'IntegrationResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'intContentHandling' - 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.+--+-- * 'intResponseTemplates' - 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.+--+-- * 'intSelectionPattern' - 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.+--+-- * 'intStatusCode' - Specifies the status code that is used to map the integration response to an existing 'MethodResponse' .+--+-- * 'intResponseParameters' - A key-value map specifying response parameters that are passed to the method response from the back end. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of @method.response.header.{name}@ , where @name@ is a valid and unique header name. The mapped non-static value must match the pattern of @integration.response.header.{name}@ or @integration.response.body.{JSON-expression}@ , where @name@ is a valid and unique response header name and @JSON-expression@ is a valid JSON expression without the @> @ prefix.+integrationResponse+    :: IntegrationResponse+integrationResponse =+  IntegrationResponse'+  { _intContentHandling = Nothing+  , _intResponseTemplates = Nothing+  , _intSelectionPattern = Nothing+  , _intStatusCode = Nothing+  , _intResponseParameters = Nothing+  }+++-- | 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.+intContentHandling :: Lens' IntegrationResponse (Maybe ContentHandlingStrategy)+intContentHandling = lens _intContentHandling (\ s a -> s{_intContentHandling = a});++-- | 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.+intResponseTemplates :: Lens' IntegrationResponse (HashMap Text Text)+intResponseTemplates = lens _intResponseTemplates (\ s a -> s{_intResponseTemplates = a}) . _Default . _Map;++-- | 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.+intSelectionPattern :: Lens' IntegrationResponse (Maybe Text)+intSelectionPattern = lens _intSelectionPattern (\ s a -> s{_intSelectionPattern = a});++-- | Specifies the status code that is used to map the integration response to an existing 'MethodResponse' .+intStatusCode :: Lens' IntegrationResponse (Maybe Text)+intStatusCode = lens _intStatusCode (\ s a -> s{_intStatusCode = a});++-- | 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.+intResponseParameters :: Lens' IntegrationResponse (HashMap Text Text)+intResponseParameters = lens _intResponseParameters (\ s a -> s{_intResponseParameters = a}) . _Default . _Map;++instance FromJSON IntegrationResponse where+        parseJSON+          = withObject "IntegrationResponse"+              (\ x ->+                 IntegrationResponse' <$>+                   (x .:? "contentHandling") <*>+                     (x .:? "responseTemplates" .!= mempty)+                     <*> (x .:? "selectionPattern")+                     <*> (x .:? "statusCode")+                     <*> (x .:? "responseParameters" .!= mempty))++instance Hashable IntegrationResponse where++instance NFData IntegrationResponse where++-- | 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": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", "name": "integrationresponse", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html", "name": "method", "templated": true }, { "href": "http://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 <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#util-templat-reference > util.urlDecode()> helper function.+--+-- 'MethodResponse' , 'Integration' , 'IntegrationResponse' , 'Resource' , <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-method-settings.html Set up an API's method>+--+-- /See:/ 'method' smart constructor.+data Method = Method'+  { _mMethodResponses    :: !(Maybe (Map Text MethodResponse))+  , _mHttpMethod         :: !(Maybe Text)+  , _mRequestValidatorId :: !(Maybe Text)+  , _mRequestModels      :: !(Maybe (Map Text Text))+  , _mRequestParameters  :: !(Maybe (Map Text Bool))+  , _mAuthorizerId       :: !(Maybe Text)+  , _mOperationName      :: !(Maybe Text)+  , _mAuthorizationType  :: !(Maybe Text)+  , _mApiKeyRequired     :: !(Maybe Bool)+  , _mMethodIntegration  :: !(Maybe Integration)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'Method' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'mMethodResponses' - 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": "http://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" }@ @  <http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-method-response.html AWS CLI>+--+-- * 'mHttpMethod' - The method's HTTP verb.+--+-- * 'mRequestValidatorId' - The identifier of a 'RequestValidator' for request validation.+--+-- * 'mRequestModels' - 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).+--+-- * 'mRequestParameters' - A key-value map defining required or optional method request parameters that can be accepted by Amazon 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.+--+-- * 'mAuthorizerId' - The identifier of an 'Authorizer' to use on this method. The @authorizationType@ must be @CUSTOM@ .+--+-- * 'mOperationName' - A human-friendly operation identifier for the method. For example, you can assign the @operationName@ of @ListPets@ for the @GET /pets@ method in <http://petstore-demo-endpoint.execute-api.com/petstore/pets PetStore> example.+--+-- * 'mAuthorizationType' - 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.+--+-- * 'mApiKeyRequired' - A boolean flag specifying whether a valid 'ApiKey' is required to invoke this method.+--+-- * 'mMethodIntegration' - 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": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", "name": "integration", "templated": true }, { "href": "http://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" } } }@ @  <http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-integration.html AWS CLI>+method+    :: Method+method =+  Method'+  { _mMethodResponses = Nothing+  , _mHttpMethod = Nothing+  , _mRequestValidatorId = Nothing+  , _mRequestModels = Nothing+  , _mRequestParameters = Nothing+  , _mAuthorizerId = Nothing+  , _mOperationName = Nothing+  , _mAuthorizationType = Nothing+  , _mApiKeyRequired = Nothing+  , _mMethodIntegration = Nothing+  }+++-- | 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": "http://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" }@ @  <http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-method-response.html AWS CLI>+mMethodResponses :: Lens' Method (HashMap Text MethodResponse)+mMethodResponses = lens _mMethodResponses (\ s a -> s{_mMethodResponses = a}) . _Default . _Map;++-- | The method's HTTP verb.+mHttpMethod :: Lens' Method (Maybe Text)+mHttpMethod = lens _mHttpMethod (\ s a -> s{_mHttpMethod = a});++-- | The identifier of a 'RequestValidator' for request validation.+mRequestValidatorId :: Lens' Method (Maybe Text)+mRequestValidatorId = lens _mRequestValidatorId (\ s a -> s{_mRequestValidatorId = a});++-- | 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).+mRequestModels :: Lens' Method (HashMap Text Text)+mRequestModels = lens _mRequestModels (\ s a -> s{_mRequestModels = a}) . _Default . _Map;++-- | A key-value map defining required or optional method request parameters that can be accepted by Amazon 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.+mRequestParameters :: Lens' Method (HashMap Text Bool)+mRequestParameters = lens _mRequestParameters (\ s a -> s{_mRequestParameters = a}) . _Default . _Map;++-- | The identifier of an 'Authorizer' to use on this method. The @authorizationType@ must be @CUSTOM@ .+mAuthorizerId :: Lens' Method (Maybe Text)+mAuthorizerId = lens _mAuthorizerId (\ s a -> s{_mAuthorizerId = a});++-- | A human-friendly operation identifier for the method. For example, you can assign the @operationName@ of @ListPets@ for the @GET /pets@ method in <http://petstore-demo-endpoint.execute-api.com/petstore/pets PetStore> example.+mOperationName :: Lens' Method (Maybe Text)+mOperationName = lens _mOperationName (\ s a -> s{_mOperationName = a});++-- | 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.+mAuthorizationType :: Lens' Method (Maybe Text)+mAuthorizationType = lens _mAuthorizationType (\ s a -> s{_mAuthorizationType = a});++-- | A boolean flag specifying whether a valid 'ApiKey' is required to invoke this method.+mApiKeyRequired :: Lens' Method (Maybe Bool)+mApiKeyRequired = lens _mApiKeyRequired (\ s a -> s{_mApiKeyRequired = a});++-- | 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": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", "name": "integration", "templated": true }, { "href": "http://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" } } }@ @  <http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-integration.html AWS CLI>+mMethodIntegration :: Lens' Method (Maybe Integration)+mMethodIntegration = lens _mMethodIntegration (\ s a -> s{_mMethodIntegration = a});++instance FromJSON Method where+        parseJSON+          = withObject "Method"+              (\ x ->+                 Method' <$>+                   (x .:? "methodResponses" .!= mempty) <*>+                     (x .:? "httpMethod")+                     <*> (x .:? "requestValidatorId")+                     <*> (x .:? "requestModels" .!= mempty)+                     <*> (x .:? "requestParameters" .!= mempty)+                     <*> (x .:? "authorizerId")+                     <*> (x .:? "operationName")+                     <*> (x .:? "authorizationType")+                     <*> (x .:? "apiKeyRequired")+                     <*> (x .:? "methodIntegration"))++instance Hashable Method where++instance NFData Method where++-- | 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": "http://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' <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html Creating an API>+--+-- /See:/ 'methodResponse' smart constructor.+data MethodResponse = MethodResponse'+  { _mResponseModels     :: !(Maybe (Map Text Text))+  , _mStatusCode         :: !(Maybe Text)+  , _mResponseParameters :: !(Maybe (Map Text Bool))+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'MethodResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'mResponseModels' - 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.+--+-- * 'mStatusCode' - The method response's status code.+--+-- * 'mResponseParameters' - A key-value map specifying required or optional response parameters that Amazon 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. Amazon API Gateway passes certain integration response data to the method response headers specified here according to the mapping you prescribe in the API's 'IntegrationResponse' . The integration response data that can be mapped include an integration response header expressed in @integration.response.header.{name}@ , a static value enclosed within a pair of single quotes (e.g., @'application/json'@ ), or a JSON expression from the back-end response payload in the form of @integration.response.body.{JSON-expression}@ , where @JSON-expression@ is a valid JSON expression without the @> @ prefix.)+methodResponse+    :: MethodResponse+methodResponse =+  MethodResponse'+  { _mResponseModels = Nothing+  , _mStatusCode = Nothing+  , _mResponseParameters = Nothing+  }+++-- | 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.+mResponseModels :: Lens' MethodResponse (HashMap Text Text)+mResponseModels = lens _mResponseModels (\ s a -> s{_mResponseModels = a}) . _Default . _Map;++-- | The method response's status code.+mStatusCode :: Lens' MethodResponse (Maybe Text)+mStatusCode = lens _mStatusCode (\ s a -> s{_mStatusCode = a});++-- | A key-value map specifying required or optional response parameters that Amazon 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. Amazon 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.)+mResponseParameters :: Lens' MethodResponse (HashMap Text Bool)+mResponseParameters = lens _mResponseParameters (\ s a -> s{_mResponseParameters = a}) . _Default . _Map;++instance FromJSON MethodResponse where+        parseJSON+          = withObject "MethodResponse"+              (\ x ->+                 MethodResponse' <$>+                   (x .:? "responseModels" .!= mempty) <*>+                     (x .:? "statusCode")+                     <*> (x .:? "responseParameters" .!= mempty))++instance Hashable MethodResponse where++instance NFData MethodResponse where++-- | Specifies the method setting properties.+--+--+--+-- /See:/ 'methodSetting' smart constructor.+data MethodSetting = MethodSetting'+  { _msCacheTtlInSeconds :: !(Maybe Int)+  , _msDataTraceEnabled :: !(Maybe Bool)+  , _msThrottlingBurstLimit :: !(Maybe Int)+  , _msCacheDataEncrypted :: !(Maybe Bool)+  , _msLoggingLevel :: !(Maybe Text)+  , _msRequireAuthorizationForCacheControl :: !(Maybe Bool)+  , _msCachingEnabled :: !(Maybe Bool)+  , _msMetricsEnabled :: !(Maybe Bool)+  , _msThrottlingRateLimit :: !(Maybe Double)+  , _msUnauthorizedCacheControlHeaderStrategy :: !(Maybe UnauthorizedCacheControlHeaderStrategy)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'MethodSetting' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'msCacheTtlInSeconds' - Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached. The PATCH path for this setting is @/{method_setting_key}/caching/ttlInSeconds@ , and the value is an integer.+--+-- * 'msDataTraceEnabled' - Specifies whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is @/{method_setting_key}/logging/dataTrace@ , and the value is a Boolean.+--+-- * 'msThrottlingBurstLimit' - Specifies the throttling burst limit. The PATCH path for this setting is @/{method_setting_key}/throttling/burstLimit@ , and the value is an integer.+--+-- * 'msCacheDataEncrypted' - Specifies whether the cached responses are encrypted. The PATCH path for this setting is @/{method_setting_key}/caching/dataEncrypted@ , and the value is a Boolean.+--+-- * 'msLoggingLevel' - Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is @/{method_setting_key}/logging/loglevel@ , and the available levels are @OFF@ , @ERROR@ , and @INFO@ .+--+-- * 'msRequireAuthorizationForCacheControl' - Specifies whether authorization is required for a cache invalidation request. The PATCH path for this setting is @/{method_setting_key}/caching/requireAuthorizationForCacheControl@ , and the value is a Boolean.+--+-- * 'msCachingEnabled' - Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. The PATCH path for this setting is @/{method_setting_key}/caching/enabled@ , and the value is a Boolean.+--+-- * 'msMetricsEnabled' - Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is @/{method_setting_key}/metrics/enabled@ , and the value is a Boolean.+--+-- * 'msThrottlingRateLimit' - Specifies the throttling rate limit. The PATCH path for this setting is @/{method_setting_key}/throttling/rateLimit@ , and the value is a double.+--+-- * 'msUnauthorizedCacheControlHeaderStrategy' - Specifies how to handle unauthorized requests for cache invalidation. The PATCH path for this setting is @/{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy@ , and the available values are @FAIL_WITH_403@ , @SUCCEED_WITH_RESPONSE_HEADER@ , @SUCCEED_WITHOUT_RESPONSE_HEADER@ .+methodSetting+    :: MethodSetting+methodSetting =+  MethodSetting'+  { _msCacheTtlInSeconds = Nothing+  , _msDataTraceEnabled = Nothing+  , _msThrottlingBurstLimit = Nothing+  , _msCacheDataEncrypted = Nothing+  , _msLoggingLevel = Nothing+  , _msRequireAuthorizationForCacheControl = Nothing+  , _msCachingEnabled = Nothing+  , _msMetricsEnabled = Nothing+  , _msThrottlingRateLimit = Nothing+  , _msUnauthorizedCacheControlHeaderStrategy = Nothing+  }+++-- | Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached. The PATCH path for this setting is @/{method_setting_key}/caching/ttlInSeconds@ , and the value is an integer.+msCacheTtlInSeconds :: Lens' MethodSetting (Maybe Int)+msCacheTtlInSeconds = lens _msCacheTtlInSeconds (\ s a -> s{_msCacheTtlInSeconds = a});++-- | Specifies whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is @/{method_setting_key}/logging/dataTrace@ , and the value is a Boolean.+msDataTraceEnabled :: Lens' MethodSetting (Maybe Bool)+msDataTraceEnabled = lens _msDataTraceEnabled (\ s a -> s{_msDataTraceEnabled = a});++-- | Specifies the throttling burst limit. The PATCH path for this setting is @/{method_setting_key}/throttling/burstLimit@ , and the value is an integer.+msThrottlingBurstLimit :: Lens' MethodSetting (Maybe Int)+msThrottlingBurstLimit = lens _msThrottlingBurstLimit (\ s a -> s{_msThrottlingBurstLimit = a});++-- | Specifies whether the cached responses are encrypted. The PATCH path for this setting is @/{method_setting_key}/caching/dataEncrypted@ , and the value is a Boolean.+msCacheDataEncrypted :: Lens' MethodSetting (Maybe Bool)+msCacheDataEncrypted = lens _msCacheDataEncrypted (\ s a -> s{_msCacheDataEncrypted = a});++-- | Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is @/{method_setting_key}/logging/loglevel@ , and the available levels are @OFF@ , @ERROR@ , and @INFO@ .+msLoggingLevel :: Lens' MethodSetting (Maybe Text)+msLoggingLevel = lens _msLoggingLevel (\ s a -> s{_msLoggingLevel = a});++-- | Specifies whether authorization is required for a cache invalidation request. The PATCH path for this setting is @/{method_setting_key}/caching/requireAuthorizationForCacheControl@ , and the value is a Boolean.+msRequireAuthorizationForCacheControl :: Lens' MethodSetting (Maybe Bool)+msRequireAuthorizationForCacheControl = lens _msRequireAuthorizationForCacheControl (\ s a -> s{_msRequireAuthorizationForCacheControl = a});++-- | Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. The PATCH path for this setting is @/{method_setting_key}/caching/enabled@ , and the value is a Boolean.+msCachingEnabled :: Lens' MethodSetting (Maybe Bool)+msCachingEnabled = lens _msCachingEnabled (\ s a -> s{_msCachingEnabled = a});++-- | Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is @/{method_setting_key}/metrics/enabled@ , and the value is a Boolean.+msMetricsEnabled :: Lens' MethodSetting (Maybe Bool)+msMetricsEnabled = lens _msMetricsEnabled (\ s a -> s{_msMetricsEnabled = a});++-- | Specifies the throttling rate limit. The PATCH path for this setting is @/{method_setting_key}/throttling/rateLimit@ , and the value is a double.+msThrottlingRateLimit :: Lens' MethodSetting (Maybe Double)+msThrottlingRateLimit = lens _msThrottlingRateLimit (\ s a -> s{_msThrottlingRateLimit = a});++-- | Specifies how to handle unauthorized requests for cache invalidation. The PATCH path for this setting is @/{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy@ , and the available values are @FAIL_WITH_403@ , @SUCCEED_WITH_RESPONSE_HEADER@ , @SUCCEED_WITHOUT_RESPONSE_HEADER@ .+msUnauthorizedCacheControlHeaderStrategy :: Lens' MethodSetting (Maybe UnauthorizedCacheControlHeaderStrategy)+msUnauthorizedCacheControlHeaderStrategy = lens _msUnauthorizedCacheControlHeaderStrategy (\ s a -> s{_msUnauthorizedCacheControlHeaderStrategy = a});++instance FromJSON MethodSetting where+        parseJSON+          = withObject "MethodSetting"+              (\ x ->+                 MethodSetting' <$>+                   (x .:? "cacheTtlInSeconds") <*>+                     (x .:? "dataTraceEnabled")+                     <*> (x .:? "throttlingBurstLimit")+                     <*> (x .:? "cacheDataEncrypted")+                     <*> (x .:? "loggingLevel")+                     <*> (x .:? "requireAuthorizationForCacheControl")+                     <*> (x .:? "cachingEnabled")+                     <*> (x .:? "metricsEnabled")+                     <*> (x .:? "throttlingRateLimit")+                     <*> (x .:? "unauthorizedCacheControlHeaderStrategy"))++instance Hashable MethodSetting where++instance NFData MethodSetting where++-- | Represents a summary of a 'Method' resource, given a particular date and time.+--+--+--+-- /See:/ 'methodSnapshot' smart constructor.+data MethodSnapshot = MethodSnapshot'+  { _msAuthorizationType :: !(Maybe Text)+  , _msApiKeyRequired    :: !(Maybe Bool)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'MethodSnapshot' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'msAuthorizationType' - 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.+--+-- * 'msApiKeyRequired' - Specifies whether the method requires a valid 'ApiKey' .+methodSnapshot+    :: MethodSnapshot+methodSnapshot =+  MethodSnapshot' {_msAuthorizationType = Nothing, _msApiKeyRequired = Nothing}+++-- | 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.+msAuthorizationType :: Lens' MethodSnapshot (Maybe Text)+msAuthorizationType = lens _msAuthorizationType (\ s a -> s{_msAuthorizationType = a});++-- | Specifies whether the method requires a valid 'ApiKey' .+msApiKeyRequired :: Lens' MethodSnapshot (Maybe Bool)+msApiKeyRequired = lens _msApiKeyRequired (\ s a -> s{_msApiKeyRequired = a});++instance FromJSON MethodSnapshot where+        parseJSON+          = withObject "MethodSnapshot"+              (\ x ->+                 MethodSnapshot' <$>+                   (x .:? "authorizationType") <*>+                     (x .:? "apiKeyRequired"))++instance Hashable MethodSnapshot where++instance NFData MethodSnapshot where++-- | 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' , <http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html Models and Mappings>+--+-- /See:/ 'model' smart constructor.+data Model = Model'+  { _mSchema      :: !(Maybe Text)+  , _mName        :: !(Maybe Text)+  , _mId          :: !(Maybe Text)+  , _mDescription :: !(Maybe Text)+  , _mContentType :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'Model' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'mSchema' - The schema for the model. For @application/json@ models, this should be <http://json-schema.org/documentation.html JSON-schema draft v4> 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.+--+-- * 'mName' - The name of the model. Must be an alphanumeric string.+--+-- * 'mId' - The identifier for the model resource.+--+-- * 'mDescription' - The description of the model.+--+-- * 'mContentType' - The content-type for the model.+model+    :: Model+model =+  Model'+  { _mSchema = Nothing+  , _mName = Nothing+  , _mId = Nothing+  , _mDescription = Nothing+  , _mContentType = Nothing+  }+++-- | The schema for the model. For @application/json@ models, this should be <http://json-schema.org/documentation.html JSON-schema draft v4> 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.+mSchema :: Lens' Model (Maybe Text)+mSchema = lens _mSchema (\ s a -> s{_mSchema = a});++-- | The name of the model. Must be an alphanumeric string.+mName :: Lens' Model (Maybe Text)+mName = lens _mName (\ s a -> s{_mName = a});++-- | The identifier for the model resource.+mId :: Lens' Model (Maybe Text)+mId = lens _mId (\ s a -> s{_mId = a});++-- | The description of the model.+mDescription :: Lens' Model (Maybe Text)+mDescription = lens _mDescription (\ s a -> s{_mDescription = a});++-- | The content-type for the model.+mContentType :: Lens' Model (Maybe Text)+mContentType = lens _mContentType (\ s a -> s{_mContentType = a});++instance FromJSON Model where+        parseJSON+          = withObject "Model"+              (\ x ->+                 Model' <$>+                   (x .:? "schema") <*> (x .:? "name") <*> (x .:? "id")+                     <*> (x .:? "description")+                     <*> (x .:? "contentType"))++instance Hashable Model where++instance NFData Model where++-- | A single patch operation to apply to the specified resource. Please refer to http://tools.ietf.org/html/rfc6902#section-4 for an explanation of how each operation is used.+--+-- /See:/ 'patchOperation' smart constructor.+data PatchOperation = PatchOperation'+  { _poOp    :: !(Maybe Op)+  , _poPath  :: !(Maybe Text)+  , _poValue :: !(Maybe Text)+  , _poFrom  :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'PatchOperation' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'poOp' - An update operation to be performed with this PATCH request. The valid value can be "add", "remove", or "replace". Not all valid operations are supported for a given resource. Support of the operations depends on specific operational contexts. Attempts to apply an unsupported operation on a resource will return an error message.+--+-- * 'poPath' - The @op@ operation's target, as identified by a <https://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-08 JSON Pointer> value that references a location within the targeted resource. For example, if the target resource has an updateable property of @{"name":"value"}@ , the path for this property is @/name@ . If the @name@ property value is a JSON object (e.g., @{"name": {"child/name": "child-value"}}@ ), the path for the @child/name@ property will be @/name/child~1name@ . Any slash ("/") character appearing in path names must be escaped with "~1", as shown in the example above. Each @op@ operation can have only one @path@ associated with it.+--+-- * 'poValue' - The new target value of the update operation. When using AWS CLI to update a property of a JSON value, enclose the JSON object with a pair of single quotes in a Linux shell, e.g., '{"a": ...}'. In a Windows shell, see <http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json Using JSON for Parameters> .+--+-- * 'poFrom' - Not supported.+patchOperation+    :: PatchOperation+patchOperation =+  PatchOperation'+  {_poOp = Nothing, _poPath = Nothing, _poValue = Nothing, _poFrom = Nothing}+++-- | An update operation to be performed with this PATCH request. The valid value can be "add", "remove", or "replace". Not all valid operations are supported for a given resource. Support of the operations depends on specific operational contexts. Attempts to apply an unsupported operation on a resource will return an error message.+poOp :: Lens' PatchOperation (Maybe Op)+poOp = lens _poOp (\ s a -> s{_poOp = a});++-- | The @op@ operation's target, as identified by a <https://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-08 JSON Pointer> value that references a location within the targeted resource. For example, if the target resource has an updateable property of @{"name":"value"}@ , the path for this property is @/name@ . If the @name@ property value is a JSON object (e.g., @{"name": {"child/name": "child-value"}}@ ), the path for the @child/name@ property will be @/name/child~1name@ . Any slash ("/") character appearing in path names must be escaped with "~1", as shown in the example above. Each @op@ operation can have only one @path@ associated with it.+poPath :: Lens' PatchOperation (Maybe Text)+poPath = lens _poPath (\ s a -> s{_poPath = a});++-- | The new target value of the update operation. When using AWS CLI to update a property of a JSON value, enclose the JSON object with a pair of single quotes in a Linux shell, e.g., '{"a": ...}'. In a Windows shell, see <http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json Using JSON for Parameters> .+poValue :: Lens' PatchOperation (Maybe Text)+poValue = lens _poValue (\ s a -> s{_poValue = a});++-- | Not supported.+poFrom :: Lens' PatchOperation (Maybe Text)+poFrom = lens _poFrom (\ s a -> s{_poFrom = a});++instance Hashable PatchOperation where++instance NFData PatchOperation where++instance ToJSON PatchOperation where+        toJSON PatchOperation'{..}+          = object+              (catMaybes+                 [("op" .=) <$> _poOp, ("path" .=) <$> _poPath,+                  ("value" .=) <$> _poValue, ("from" .=) <$> _poFrom])++-- | Quotas configured for a usage plan.+--+--+--+-- /See:/ 'quotaSettings' smart constructor.+data QuotaSettings = QuotaSettings'+  { _qsOffset :: !(Maybe Int)+  , _qsPeriod :: !(Maybe QuotaPeriodType)+  , _qsLimit  :: !(Maybe Int)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'QuotaSettings' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'qsOffset' - The number of requests subtracted from the given limit in the initial time period.+--+-- * 'qsPeriod' - The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".+--+-- * 'qsLimit' - The maximum number of requests that can be made in a given time period.+quotaSettings+    :: QuotaSettings+quotaSettings =+  QuotaSettings' {_qsOffset = Nothing, _qsPeriod = Nothing, _qsLimit = Nothing}+++-- | The number of requests subtracted from the given limit in the initial time period.+qsOffset :: Lens' QuotaSettings (Maybe Int)+qsOffset = lens _qsOffset (\ s a -> s{_qsOffset = a});++-- | The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".+qsPeriod :: Lens' QuotaSettings (Maybe QuotaPeriodType)+qsPeriod = lens _qsPeriod (\ s a -> s{_qsPeriod = a});++-- | The maximum number of requests that can be made in a given time period.+qsLimit :: Lens' QuotaSettings (Maybe Int)+qsLimit = lens _qsLimit (\ s a -> s{_qsLimit = a});++instance FromJSON QuotaSettings where+        parseJSON+          = withObject "QuotaSettings"+              (\ x ->+                 QuotaSettings' <$>+                   (x .:? "offset") <*> (x .:? "period") <*>+                     (x .:? "limit"))++instance Hashable QuotaSettings where++instance NFData QuotaSettings where++instance ToJSON QuotaSettings where+        toJSON QuotaSettings'{..}+          = object+              (catMaybes+                 [("offset" .=) <$> _qsOffset,+                  ("period" .=) <$> _qsPeriod,+                  ("limit" .=) <$> _qsLimit])++-- | A set of validation rules for incoming 'Method' requests.+--+--+-- In Swagger, a 'RequestValidator' of an API is defined by the <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-swagger-extensions.html#api-gateway-swagger-extensions-request-validators.requestValidator.html x-amazon-apigateway-request-validators.requestValidator> object. It the referenced using the <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-swagger-extensions.html#api-gateway-swagger-extensions-request-validator x-amazon-apigateway-request-validator> property.+--+-- <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-method-request-validation.html Enable Basic Request Validation in API Gateway>+--+-- /See:/ 'requestValidator' smart constructor.+data RequestValidator = RequestValidator'+  { _rvValidateRequestParameters :: !(Maybe Bool)+  , _rvName                      :: !(Maybe Text)+  , _rvValidateRequestBody       :: !(Maybe Bool)+  , _rvId                        :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'RequestValidator' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rvValidateRequestParameters' - A Boolean flag to indicate whether to validate request parameters (@true@ ) or not (@false@ ).+--+-- * 'rvName' - The name of this 'RequestValidator'+--+-- * 'rvValidateRequestBody' - A Boolean flag to indicate whether to validate a request body according to the configured 'Model' schema.+--+-- * 'rvId' - The identifier of this 'RequestValidator' .+requestValidator+    :: RequestValidator+requestValidator =+  RequestValidator'+  { _rvValidateRequestParameters = Nothing+  , _rvName = Nothing+  , _rvValidateRequestBody = Nothing+  , _rvId = Nothing+  }+++-- | A Boolean flag to indicate whether to validate request parameters (@true@ ) or not (@false@ ).+rvValidateRequestParameters :: Lens' RequestValidator (Maybe Bool)+rvValidateRequestParameters = lens _rvValidateRequestParameters (\ s a -> s{_rvValidateRequestParameters = a});++-- | The name of this 'RequestValidator'+rvName :: Lens' RequestValidator (Maybe Text)+rvName = lens _rvName (\ s a -> s{_rvName = a});++-- | A Boolean flag to indicate whether to validate a request body according to the configured 'Model' schema.+rvValidateRequestBody :: Lens' RequestValidator (Maybe Bool)+rvValidateRequestBody = lens _rvValidateRequestBody (\ s a -> s{_rvValidateRequestBody = a});++-- | The identifier of this 'RequestValidator' .+rvId :: Lens' RequestValidator (Maybe Text)+rvId = lens _rvId (\ s a -> s{_rvId = a});++instance FromJSON RequestValidator where+        parseJSON+          = withObject "RequestValidator"+              (\ x ->+                 RequestValidator' <$>+                   (x .:? "validateRequestParameters") <*>+                     (x .:? "name")+                     <*> (x .:? "validateRequestBody")+                     <*> (x .:? "id"))++instance Hashable RequestValidator where++instance NFData RequestValidator where++-- | Represents an API resource.+--+--+-- <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html Create an API>+--+-- /See:/ 'resource' smart constructor.+data Resource = Resource'+  { _rPathPart        :: !(Maybe Text)+  , _rPath            :: !(Maybe Text)+  , _rId              :: !(Maybe Text)+  , _rResourceMethods :: !(Maybe (Map Text Method))+  , _rParentId        :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'Resource' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rPathPart' - The last path segment for this resource.+--+-- * 'rPath' - The full path for this resource.+--+-- * 'rId' - The resource's identifier.+--+-- * 'rResourceMethods' - 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": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", "name": "integrationresponse", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html", "name": "method", "templated": true }, { "href": "http://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@ .+--+-- * 'rParentId' - The parent resource's identifier.+resource+    :: Resource+resource =+  Resource'+  { _rPathPart = Nothing+  , _rPath = Nothing+  , _rId = Nothing+  , _rResourceMethods = Nothing+  , _rParentId = Nothing+  }+++-- | The last path segment for this resource.+rPathPart :: Lens' Resource (Maybe Text)+rPathPart = lens _rPathPart (\ s a -> s{_rPathPart = a});++-- | The full path for this resource.+rPath :: Lens' Resource (Maybe Text)+rPath = lens _rPath (\ s a -> s{_rPath = a});++-- | The resource's identifier.+rId :: Lens' Resource (Maybe Text)+rId = lens _rId (\ s a -> s{_rId = a});++-- | 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": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", "name": "integrationresponse", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html", "name": "method", "templated": true }, { "href": "http://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@ .+rResourceMethods :: Lens' Resource (HashMap Text Method)+rResourceMethods = lens _rResourceMethods (\ s a -> s{_rResourceMethods = a}) . _Default . _Map;++-- | The parent resource's identifier.+rParentId :: Lens' Resource (Maybe Text)+rParentId = lens _rParentId (\ s a -> s{_rParentId = a});++instance FromJSON Resource where+        parseJSON+          = withObject "Resource"+              (\ x ->+                 Resource' <$>+                   (x .:? "pathPart") <*> (x .:? "path") <*>+                     (x .:? "id")+                     <*> (x .:? "resourceMethods" .!= mempty)+                     <*> (x .:? "parentId"))++instance Hashable Resource where++instance NFData Resource where++-- | Represents a REST API.+--+--+-- <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html Create an API>+--+-- /See:/ 'restAPI' smart constructor.+data RestAPI = RestAPI'+  { _raBinaryMediaTypes      :: !(Maybe [Text])+  , _raWarnings              :: !(Maybe [Text])+  , _raCreatedDate           :: !(Maybe POSIX)+  , _raName                  :: !(Maybe Text)+  , _raVersion               :: !(Maybe Text)+  , _raId                    :: !(Maybe Text)+  , _raEndpointConfiguration :: !(Maybe EndpointConfiguration)+  , _raDescription           :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'RestAPI' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'raBinaryMediaTypes' - The list of binary media types supported by the 'RestApi' . By default, the 'RestApi' supports only UTF-8-encoded text payloads.+--+-- * 'raWarnings' - The warning messages reported when @failonwarnings@ is turned on during API import.+--+-- * 'raCreatedDate' - The timestamp when the API was created.+--+-- * 'raName' - The API's name.+--+-- * 'raVersion' - A version identifier for the API.+--+-- * 'raId' - The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.+--+-- * 'raEndpointConfiguration' - The endpoint configuration of this 'RestApi' showing the endpoint types of the API.+--+-- * 'raDescription' - The API's description.+restAPI+    :: RestAPI+restAPI =+  RestAPI'+  { _raBinaryMediaTypes = Nothing+  , _raWarnings = Nothing+  , _raCreatedDate = Nothing+  , _raName = Nothing+  , _raVersion = Nothing+  , _raId = Nothing+  , _raEndpointConfiguration = Nothing+  , _raDescription = Nothing+  }+++-- | The list of binary media types supported by the 'RestApi' . By default, the 'RestApi' supports only UTF-8-encoded text payloads.+raBinaryMediaTypes :: Lens' RestAPI [Text]+raBinaryMediaTypes = lens _raBinaryMediaTypes (\ s a -> s{_raBinaryMediaTypes = a}) . _Default . _Coerce;++-- | The warning messages reported when @failonwarnings@ is turned on during API import.+raWarnings :: Lens' RestAPI [Text]+raWarnings = lens _raWarnings (\ s a -> s{_raWarnings = a}) . _Default . _Coerce;++-- | The timestamp when the API was created.+raCreatedDate :: Lens' RestAPI (Maybe UTCTime)+raCreatedDate = lens _raCreatedDate (\ s a -> s{_raCreatedDate = a}) . mapping _Time;++-- | The API's name.+raName :: Lens' RestAPI (Maybe Text)+raName = lens _raName (\ s a -> s{_raName = a});++-- | A version identifier for the API.+raVersion :: Lens' RestAPI (Maybe Text)+raVersion = lens _raVersion (\ s a -> s{_raVersion = a});++-- | The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.+raId :: Lens' RestAPI (Maybe Text)+raId = lens _raId (\ s a -> s{_raId = a});++-- | The endpoint configuration of this 'RestApi' showing the endpoint types of the API.+raEndpointConfiguration :: Lens' RestAPI (Maybe EndpointConfiguration)+raEndpointConfiguration = lens _raEndpointConfiguration (\ s a -> s{_raEndpointConfiguration = a});++-- | The API's description.+raDescription :: Lens' RestAPI (Maybe Text)+raDescription = lens _raDescription (\ s a -> s{_raDescription = a});++instance FromJSON RestAPI where+        parseJSON+          = withObject "RestAPI"+              (\ x ->+                 RestAPI' <$>+                   (x .:? "binaryMediaTypes" .!= mempty) <*>+                     (x .:? "warnings" .!= mempty)+                     <*> (x .:? "createdDate")+                     <*> (x .:? "name")+                     <*> (x .:? "version")+                     <*> (x .:? "id")+                     <*> (x .:? "endpointConfiguration")+                     <*> (x .:? "description"))++instance Hashable RestAPI where++instance NFData RestAPI where++-- | A configuration property of an SDK type.+--+--+--+-- /See:/ 'sdkConfigurationProperty' smart constructor.+data SDKConfigurationProperty = SDKConfigurationProperty'+  { _scpFriendlyName :: !(Maybe Text)+  , _scpRequired     :: !(Maybe Bool)+  , _scpName         :: !(Maybe Text)+  , _scpDefaultValue :: !(Maybe Text)+  , _scpDescription  :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'SDKConfigurationProperty' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'scpFriendlyName' - The user-friendly name of an 'SdkType' configuration property.+--+-- * 'scpRequired' - A boolean flag of an 'SdkType' configuration property to indicate if the associated SDK configuration property is required (@true@ ) or not (@false@ ).+--+-- * 'scpName' - The name of a an 'SdkType' configuration property.+--+-- * 'scpDefaultValue' - The default value of an 'SdkType' configuration property.+--+-- * 'scpDescription' - The description of an 'SdkType' configuration property.+sdkConfigurationProperty+    :: SDKConfigurationProperty+sdkConfigurationProperty =+  SDKConfigurationProperty'+  { _scpFriendlyName = Nothing+  , _scpRequired = Nothing+  , _scpName = Nothing+  , _scpDefaultValue = Nothing+  , _scpDescription = Nothing+  }+++-- | The user-friendly name of an 'SdkType' configuration property.+scpFriendlyName :: Lens' SDKConfigurationProperty (Maybe Text)+scpFriendlyName = lens _scpFriendlyName (\ s a -> s{_scpFriendlyName = a});++-- | A boolean flag of an 'SdkType' configuration property to indicate if the associated SDK configuration property is required (@true@ ) or not (@false@ ).+scpRequired :: Lens' SDKConfigurationProperty (Maybe Bool)+scpRequired = lens _scpRequired (\ s a -> s{_scpRequired = a});++-- | The name of a an 'SdkType' configuration property.+scpName :: Lens' SDKConfigurationProperty (Maybe Text)+scpName = lens _scpName (\ s a -> s{_scpName = a});++-- | The default value of an 'SdkType' configuration property.+scpDefaultValue :: Lens' SDKConfigurationProperty (Maybe Text)+scpDefaultValue = lens _scpDefaultValue (\ s a -> s{_scpDefaultValue = a});++-- | The description of an 'SdkType' configuration property.+scpDescription :: Lens' SDKConfigurationProperty (Maybe Text)+scpDescription = lens _scpDescription (\ s a -> s{_scpDescription = a});++instance FromJSON SDKConfigurationProperty where+        parseJSON+          = withObject "SDKConfigurationProperty"+              (\ x ->+                 SDKConfigurationProperty' <$>+                   (x .:? "friendlyName") <*> (x .:? "required") <*>+                     (x .:? "name")+                     <*> (x .:? "defaultValue")+                     <*> (x .:? "description"))++instance Hashable SDKConfigurationProperty where++instance NFData SDKConfigurationProperty where++-- | A type of SDK that API Gateway can generate.+--+--+--+-- /See:/ 'sdkType' smart constructor.+data SDKType = SDKType'+  { _stFriendlyName            :: !(Maybe Text)+  , _stConfigurationProperties :: !(Maybe [SDKConfigurationProperty])+  , _stId                      :: !(Maybe Text)+  , _stDescription             :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'SDKType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'stFriendlyName' - The user-friendly name of an 'SdkType' instance.+--+-- * 'stConfigurationProperties' - A list of configuration properties of an 'SdkType' .+--+-- * 'stId' - The identifier of an 'SdkType' instance.+--+-- * 'stDescription' - The description of an 'SdkType' .+sdkType+    :: SDKType+sdkType =+  SDKType'+  { _stFriendlyName = Nothing+  , _stConfigurationProperties = Nothing+  , _stId = Nothing+  , _stDescription = Nothing+  }+++-- | The user-friendly name of an 'SdkType' instance.+stFriendlyName :: Lens' SDKType (Maybe Text)+stFriendlyName = lens _stFriendlyName (\ s a -> s{_stFriendlyName = a});++-- | A list of configuration properties of an 'SdkType' .+stConfigurationProperties :: Lens' SDKType [SDKConfigurationProperty]+stConfigurationProperties = lens _stConfigurationProperties (\ s a -> s{_stConfigurationProperties = a}) . _Default . _Coerce;++-- | The identifier of an 'SdkType' instance.+stId :: Lens' SDKType (Maybe Text)+stId = lens _stId (\ s a -> s{_stId = a});++-- | The description of an 'SdkType' .+stDescription :: Lens' SDKType (Maybe Text)+stDescription = lens _stDescription (\ s a -> s{_stDescription = a});++instance FromJSON SDKType where+        parseJSON+          = withObject "SDKType"+              (\ x ->+                 SDKType' <$>+                   (x .:? "friendlyName") <*>+                     (x .:? "configurationProperties" .!= mempty)+                     <*> (x .:? "id")+                     <*> (x .:? "description"))++instance Hashable SDKType where++instance NFData SDKType where++-- | Represents a unique identifier for a version of a deployed 'RestApi' that is callable by users.+--+--+-- <http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api.html Deploy an API>+--+-- /See:/ 'stage' smart constructor.+data Stage = Stage'+  { _sDeploymentId         :: !(Maybe Text)+  , _sVariables            :: !(Maybe (Map Text Text))+  , _sDocumentationVersion :: !(Maybe Text)+  , _sClientCertificateId  :: !(Maybe Text)+  , _sCreatedDate          :: !(Maybe POSIX)+  , _sCacheClusterStatus   :: !(Maybe CacheClusterStatus)+  , _sMethodSettings       :: !(Maybe (Map Text MethodSetting))+  , _sLastUpdatedDate      :: !(Maybe POSIX)+  , _sCacheClusterSize     :: !(Maybe CacheClusterSize)+  , _sCacheClusterEnabled  :: !(Maybe Bool)+  , _sStageName            :: !(Maybe Text)+  , _sDescription          :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'Stage' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'sDeploymentId' - The identifier of the 'Deployment' that the stage points to.+--+-- * 'sVariables' - 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-._~:/?#&=,]+@ .+--+-- * 'sDocumentationVersion' - The version of the associated API documentation.+--+-- * 'sClientCertificateId' - The identifier of a client certificate for an API stage.+--+-- * 'sCreatedDate' - The timestamp when the stage was created.+--+-- * 'sCacheClusterStatus' - The status of the cache cluster for the stage, if enabled.+--+-- * 'sMethodSettings' - 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.+--+-- * 'sLastUpdatedDate' - The timestamp when the stage last updated.+--+-- * 'sCacheClusterSize' - The size of the cache cluster for the stage, if enabled.+--+-- * 'sCacheClusterEnabled' - Specifies whether a cache cluster is enabled for the stage.+--+-- * 'sStageName' - The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to Amazon API Gateway.+--+-- * 'sDescription' - The stage's description.+stage+    :: Stage+stage =+  Stage'+  { _sDeploymentId = Nothing+  , _sVariables = Nothing+  , _sDocumentationVersion = Nothing+  , _sClientCertificateId = Nothing+  , _sCreatedDate = Nothing+  , _sCacheClusterStatus = Nothing+  , _sMethodSettings = Nothing+  , _sLastUpdatedDate = Nothing+  , _sCacheClusterSize = Nothing+  , _sCacheClusterEnabled = Nothing+  , _sStageName = Nothing+  , _sDescription = Nothing+  }+++-- | The identifier of the 'Deployment' that the stage points to.+sDeploymentId :: Lens' Stage (Maybe Text)+sDeploymentId = lens _sDeploymentId (\ s a -> s{_sDeploymentId = a});++-- | 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-._~:/?#&=,]+@ .+sVariables :: Lens' Stage (HashMap Text Text)+sVariables = lens _sVariables (\ s a -> s{_sVariables = a}) . _Default . _Map;++-- | The version of the associated API documentation.+sDocumentationVersion :: Lens' Stage (Maybe Text)+sDocumentationVersion = lens _sDocumentationVersion (\ s a -> s{_sDocumentationVersion = a});++-- | The identifier of a client certificate for an API stage.+sClientCertificateId :: Lens' Stage (Maybe Text)+sClientCertificateId = lens _sClientCertificateId (\ s a -> s{_sClientCertificateId = a});++-- | The timestamp when the stage was created.+sCreatedDate :: Lens' Stage (Maybe UTCTime)+sCreatedDate = lens _sCreatedDate (\ s a -> s{_sCreatedDate = a}) . mapping _Time;++-- | The status of the cache cluster for the stage, if enabled.+sCacheClusterStatus :: Lens' Stage (Maybe CacheClusterStatus)+sCacheClusterStatus = lens _sCacheClusterStatus (\ s a -> s{_sCacheClusterStatus = a});++-- | 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.+sMethodSettings :: Lens' Stage (HashMap Text MethodSetting)+sMethodSettings = lens _sMethodSettings (\ s a -> s{_sMethodSettings = a}) . _Default . _Map;++-- | The timestamp when the stage last updated.+sLastUpdatedDate :: Lens' Stage (Maybe UTCTime)+sLastUpdatedDate = lens _sLastUpdatedDate (\ s a -> s{_sLastUpdatedDate = a}) . mapping _Time;++-- | The size of the cache cluster for the stage, if enabled.+sCacheClusterSize :: Lens' Stage (Maybe CacheClusterSize)+sCacheClusterSize = lens _sCacheClusterSize (\ s a -> s{_sCacheClusterSize = a});++-- | Specifies whether a cache cluster is enabled for the stage.+sCacheClusterEnabled :: Lens' Stage (Maybe Bool)+sCacheClusterEnabled = lens _sCacheClusterEnabled (\ s a -> s{_sCacheClusterEnabled = a});++-- | The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to Amazon API Gateway.+sStageName :: Lens' Stage (Maybe Text)+sStageName = lens _sStageName (\ s a -> s{_sStageName = a});++-- | The stage's description.+sDescription :: Lens' Stage (Maybe Text)+sDescription = lens _sDescription (\ s a -> s{_sDescription = a});++instance FromJSON Stage where+        parseJSON+          = withObject "Stage"+              (\ x ->+                 Stage' <$>+                   (x .:? "deploymentId") <*>+                     (x .:? "variables" .!= mempty)+                     <*> (x .:? "documentationVersion")+                     <*> (x .:? "clientCertificateId")+                     <*> (x .:? "createdDate")+                     <*> (x .:? "cacheClusterStatus")+                     <*> (x .:? "methodSettings" .!= mempty)+                     <*> (x .:? "lastUpdatedDate")+                     <*> (x .:? "cacheClusterSize")+                     <*> (x .:? "cacheClusterEnabled")+                     <*> (x .:? "stageName")+                     <*> (x .:? "description"))++instance Hashable Stage where++instance NFData Stage where++-- | A reference to a unique stage identified in the format @{restApiId}/{stage}@ .+--+--+--+-- /See:/ 'stageKey' smart constructor.+data StageKey = StageKey'+  { _skRestAPIId :: !(Maybe Text)+  , _skStageName :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'StageKey' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'skRestAPIId' - The string identifier of the associated 'RestApi' .+--+-- * 'skStageName' - The stage name associated with the stage key.+stageKey+    :: StageKey+stageKey = StageKey' {_skRestAPIId = Nothing, _skStageName = Nothing}+++-- | The string identifier of the associated 'RestApi' .+skRestAPIId :: Lens' StageKey (Maybe Text)+skRestAPIId = lens _skRestAPIId (\ s a -> s{_skRestAPIId = a});++-- | The stage name associated with the stage key.+skStageName :: Lens' StageKey (Maybe Text)+skStageName = lens _skStageName (\ s a -> s{_skStageName = a});++instance Hashable StageKey where++instance NFData StageKey where++instance ToJSON StageKey where+        toJSON StageKey'{..}+          = object+              (catMaybes+                 [("restApiId" .=) <$> _skRestAPIId,+                  ("stageName" .=) <$> _skStageName])++-- | The API request rate limits.+--+--+--+-- /See:/ 'throttleSettings' smart constructor.+data ThrottleSettings = ThrottleSettings'+  { _tsBurstLimit :: !(Maybe Int)+  , _tsRateLimit  :: !(Maybe Double)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ThrottleSettings' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tsBurstLimit' - The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.+--+-- * 'tsRateLimit' - The API request steady-state rate limit.+throttleSettings+    :: ThrottleSettings+throttleSettings =+  ThrottleSettings' {_tsBurstLimit = Nothing, _tsRateLimit = Nothing}+++-- | The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.+tsBurstLimit :: Lens' ThrottleSettings (Maybe Int)+tsBurstLimit = lens _tsBurstLimit (\ s a -> s{_tsBurstLimit = a});++-- | The API request steady-state rate limit.+tsRateLimit :: Lens' ThrottleSettings (Maybe Double)+tsRateLimit = lens _tsRateLimit (\ s a -> s{_tsRateLimit = a});++instance FromJSON ThrottleSettings where+        parseJSON+          = withObject "ThrottleSettings"+              (\ x ->+                 ThrottleSettings' <$>+                   (x .:? "burstLimit") <*> (x .:? "rateLimit"))++instance Hashable ThrottleSettings where++instance NFData ThrottleSettings where++instance ToJSON ThrottleSettings where+        toJSON ThrottleSettings'{..}+          = object+              (catMaybes+                 [("burstLimit" .=) <$> _tsBurstLimit,+                  ("rateLimit" .=) <$> _tsRateLimit])++-- | Represents the usage data of a usage plan.+--+--+-- <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html Create and Use Usage Plans> , <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-create-usage-plans-with-console.html#api-gateway-usage-plan-manage-usage Manage Usage in a Usage Plan>+--+-- /See:/ 'usage' smart constructor.+data Usage = Usage'+  { _uUsagePlanId :: !(Maybe Text)+  , _uEndDate     :: !(Maybe Text)+  , _uItems       :: !(Maybe (Map Text [[Integer]]))+  , _uStartDate   :: !(Maybe Text)+  , _uPosition    :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'Usage' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'uUsagePlanId' - The plan Id associated with this usage data.+--+-- * 'uEndDate' - The ending date of the usage data.+--+-- * 'uItems' - 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]@ .+--+-- * 'uStartDate' - The starting date of the usage data.+--+-- * 'uPosition' - Undocumented member.+usage+    :: Usage+usage =+  Usage'+  { _uUsagePlanId = Nothing+  , _uEndDate = Nothing+  , _uItems = Nothing+  , _uStartDate = Nothing+  , _uPosition = Nothing+  }+++-- | The plan Id associated with this usage data.+uUsagePlanId :: Lens' Usage (Maybe Text)+uUsagePlanId = lens _uUsagePlanId (\ s a -> s{_uUsagePlanId = a});++-- | The ending date of the usage data.+uEndDate :: Lens' Usage (Maybe Text)+uEndDate = lens _uEndDate (\ s a -> s{_uEndDate = a});++-- | 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]@ .+uItems :: Lens' Usage (HashMap Text [[Integer]])+uItems = lens _uItems (\ s a -> s{_uItems = a}) . _Default . _Map;++-- | The starting date of the usage data.+uStartDate :: Lens' Usage (Maybe Text)+uStartDate = lens _uStartDate (\ s a -> s{_uStartDate = a});++-- | Undocumented member.+uPosition :: Lens' Usage (Maybe Text)+uPosition = lens _uPosition (\ s a -> s{_uPosition = a});++instance FromJSON Usage where+        parseJSON+          = withObject "Usage"+              (\ x ->+                 Usage' <$>+                   (x .:? "usagePlanId") <*> (x .:? "endDate") <*>+                     (x .:? "values" .!= mempty)+                     <*> (x .:? "startDate")+                     <*> (x .:? "position"))++instance Hashable Usage where++instance NFData Usage where++-- | 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.+--+-- <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html Create and Use Usage Plans>+--+-- /See:/ 'usagePlan' smart constructor.+data UsagePlan = UsagePlan'+  { _upApiStages   :: !(Maybe [APIStage])+  , _upName        :: !(Maybe Text)+  , _upId          :: !(Maybe Text)+  , _upThrottle    :: !(Maybe ThrottleSettings)+  , _upQuota       :: !(Maybe QuotaSettings)+  , _upDescription :: !(Maybe Text)+  , _upProductCode :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UsagePlan' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'upApiStages' - The associated API stages of a usage plan.+--+-- * 'upName' - The name of a usage plan.+--+-- * 'upId' - The identifier of a 'UsagePlan' resource.+--+-- * 'upThrottle' - The request throttle limits of a usage plan.+--+-- * 'upQuota' - The maximum number of permitted requests per a given unit time interval.+--+-- * 'upDescription' - The description of a usage plan.+--+-- * 'upProductCode' - The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.+usagePlan+    :: UsagePlan+usagePlan =+  UsagePlan'+  { _upApiStages = Nothing+  , _upName = Nothing+  , _upId = Nothing+  , _upThrottle = Nothing+  , _upQuota = Nothing+  , _upDescription = Nothing+  , _upProductCode = Nothing+  }+++-- | The associated API stages of a usage plan.+upApiStages :: Lens' UsagePlan [APIStage]+upApiStages = lens _upApiStages (\ s a -> s{_upApiStages = a}) . _Default . _Coerce;++-- | The name of a usage plan.+upName :: Lens' UsagePlan (Maybe Text)+upName = lens _upName (\ s a -> s{_upName = a});++-- | The identifier of a 'UsagePlan' resource.+upId :: Lens' UsagePlan (Maybe Text)+upId = lens _upId (\ s a -> s{_upId = a});++-- | The request throttle limits of a usage plan.+upThrottle :: Lens' UsagePlan (Maybe ThrottleSettings)+upThrottle = lens _upThrottle (\ s a -> s{_upThrottle = a});++-- | The maximum number of permitted requests per a given unit time interval.+upQuota :: Lens' UsagePlan (Maybe QuotaSettings)+upQuota = lens _upQuota (\ s a -> s{_upQuota = a});++-- | The description of a usage plan.+upDescription :: Lens' UsagePlan (Maybe Text)+upDescription = lens _upDescription (\ s a -> s{_upDescription = a});++-- | The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.+upProductCode :: Lens' UsagePlan (Maybe Text)+upProductCode = lens _upProductCode (\ s a -> s{_upProductCode = a});++instance FromJSON UsagePlan where+        parseJSON+          = withObject "UsagePlan"+              (\ x ->+                 UsagePlan' <$>+                   (x .:? "apiStages" .!= mempty) <*> (x .:? "name") <*>+                     (x .:? "id")+                     <*> (x .:? "throttle")+                     <*> (x .:? "quota")+                     <*> (x .:? "description")+                     <*> (x .:? "productCode"))++instance Hashable UsagePlan where++instance NFData UsagePlan where++-- | 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' .+--+-- " <http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html Create and Use Usage Plans>+--+-- /See:/ 'usagePlanKey' smart constructor.+data UsagePlanKey = UsagePlanKey'+  { _upkValue :: !(Maybe Text)+  , _upkName  :: !(Maybe Text)+  , _upkId    :: !(Maybe Text)+  , _upkType  :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UsagePlanKey' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'upkValue' - The value of a usage plan key.+--+-- * 'upkName' - The name of a usage plan key.+--+-- * 'upkId' - The Id of a usage plan key.+--+-- * 'upkType' - The type of a usage plan key. Currently, the valid key type is @API_KEY@ .+usagePlanKey+    :: UsagePlanKey+usagePlanKey =+  UsagePlanKey'+  { _upkValue = Nothing+  , _upkName = Nothing+  , _upkId = Nothing+  , _upkType = Nothing+  }+++-- | The value of a usage plan key.+upkValue :: Lens' UsagePlanKey (Maybe Text)+upkValue = lens _upkValue (\ s a -> s{_upkValue = a});++-- | The name of a usage plan key.+upkName :: Lens' UsagePlanKey (Maybe Text)+upkName = lens _upkName (\ s a -> s{_upkName = a});++-- | The Id of a usage plan key.+upkId :: Lens' UsagePlanKey (Maybe Text)+upkId = lens _upkId (\ s a -> s{_upkId = a});++-- | The type of a usage plan key. Currently, the valid key type is @API_KEY@ .+upkType :: Lens' UsagePlanKey (Maybe Text)+upkType = lens _upkType (\ s a -> s{_upkType = a});++instance FromJSON UsagePlanKey where+        parseJSON+          = withObject "UsagePlanKey"+              (\ x ->+                 UsagePlanKey' <$>+                   (x .:? "value") <*> (x .:? "name") <*> (x .:? "id")+                     <*> (x .:? "type"))++instance Hashable UsagePlanKey where++instance NFData UsagePlanKey where
gen/Network/AWS/APIGateway/Types/Sum.hs view
@@ -9,20 +9,21 @@  -- | -- Module      : Network.AWS.APIGateway.Types.Sum--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- module Network.AWS.APIGateway.Types.Sum where -import           Network.AWS.Prelude+import Network.AWS.Prelude  data APIKeysFormat =-    CSV-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  CSV+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText APIKeysFormat where     parser = takeLowerText >>= \case         "csv" -> pure CSV@@ -42,25 +43,29 @@ instance ToJSON APIKeysFormat where     toJSON = toJSONText --- | The authorizer type. the current value is @TOKEN@ for a Lambda function or @COGNITO_USER_POOLS@ for an Amazon Cognito Your User Pool.+-- | [Required] 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. -- -- data AuthorizerType-    = CognitoUserPools-    | Token-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = AuthorizerCognitoUserPools+  | AuthorizerRequest+  | AuthorizerToken+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText AuthorizerType where     parser = takeLowerText >>= \case-        "cognito_user_pools" -> pure CognitoUserPools-        "token" -> pure Token+        "cognito_user_pools" -> pure AuthorizerCognitoUserPools+        "request" -> pure AuthorizerRequest+        "token" -> pure AuthorizerToken         e -> fromTextError $ "Failure parsing AuthorizerType from value: '" <> e-           <> "'. Accepted values: cognito_user_pools, token"+           <> "'. Accepted values: cognito_user_pools, request, token"  instance ToText AuthorizerType where     toText = \case-        CognitoUserPools -> "COGNITO_USER_POOLS"-        Token -> "TOKEN"+        AuthorizerCognitoUserPools -> "COGNITO_USER_POOLS"+        AuthorizerRequest -> "REQUEST"+        AuthorizerToken -> "TOKEN"  instance Hashable     AuthorizerType instance NFData       AuthorizerType@@ -78,16 +83,17 @@ -- -- data CacheClusterSize-    = D0_5-    | D118-    | D13_5-    | D1_6-    | D237-    | D28_4-    | D58_2-    | D6_1-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = D0_5+  | D118+  | D13_5+  | D1_6+  | D237+  | D28_4+  | D58_2+  | D6_1+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText CacheClusterSize where     parser = takeLowerText >>= \case         "0.5" -> pure D0_5@@ -128,13 +134,14 @@ -- -- data CacheClusterStatus-    = Available-    | CreateInProgress-    | DeleteInProgress-    | FlushInProgress-    | NotAvailable-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = Available+  | CreateInProgress+  | DeleteInProgress+  | FlushInProgress+  | NotAvailable+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText CacheClusterStatus where     parser = takeLowerText >>= \case         "available" -> pure Available@@ -163,10 +170,11 @@     parseJSON = parseJSONText "CacheClusterStatus"  data ContentHandlingStrategy-    = ConvertToBinary-    | ConvertToText-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = ConvertToBinary+  | ConvertToText+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText ContentHandlingStrategy where     parser = takeLowerText >>= \case         "convert_to_binary" -> pure ConvertToBinary@@ -192,20 +200,21 @@     parseJSON = parseJSONText "ContentHandlingStrategy"  data DocumentationPartType-    = API-    | Authorizer-    | Method-    | Model-    | PathParameter-    | QueryParameter-    | RequestBody-    | RequestHeader-    | Resource-    | Response-    | ResponseBody-    | ResponseHeader-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = API+  | Authorizer+  | Method+  | Model+  | PathParameter+  | QueryParameter+  | RequestBody+  | RequestHeader+  | Resource+  | Response+  | ResponseBody+  | ResponseHeader+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText DocumentationPartType where     parser = takeLowerText >>= \case         "api" -> pure API@@ -250,17 +259,135 @@ instance FromJSON DocumentationPartType where     parseJSON = parseJSONText "DocumentationPartType" +-- | The endpoint type. The valid value is @EDGE@ for edge-optimized API setup, most suitable for mobile applications, @REGIONAL@ for regional API endpoint setup, most suitable for calling from AWS Region+--+--+data EndpointType+  = Edge+  | Regional+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText EndpointType where+    parser = takeLowerText >>= \case+        "edge" -> pure Edge+        "regional" -> pure Regional+        e -> fromTextError $ "Failure parsing EndpointType from value: '" <> e+           <> "'. Accepted values: edge, regional"++instance ToText EndpointType where+    toText = \case+        Edge -> "EDGE"+        Regional -> "REGIONAL"++instance Hashable     EndpointType+instance NFData       EndpointType+instance ToByteString EndpointType+instance ToQuery      EndpointType+instance ToHeader     EndpointType++instance ToJSON EndpointType where+    toJSON = toJSONText++instance FromJSON EndpointType where+    parseJSON = parseJSONText "EndpointType"++data GatewayResponseType+  = APIConfigurationError+  | AccessDenied+  | AuthorizerConfigurationError+  | AuthorizerFailure+  | BadRequestBody+  | BadRequestParameters+  | Default4XX+  | Default5XX+  | ExpiredToken+  | IntegrationFailure+  | IntegrationTimeout+  | InvalidAPIKey+  | InvalidSignature+  | MissingAuthenticationToken+  | QuotaExceeded+  | RequestTooLarge+  | ResourceNotFound+  | Throttled+  | Unauthorized+  | UnsupportedMediaType+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText GatewayResponseType where+    parser = takeLowerText >>= \case+        "api_configuration_error" -> pure APIConfigurationError+        "access_denied" -> pure AccessDenied+        "authorizer_configuration_error" -> pure AuthorizerConfigurationError+        "authorizer_failure" -> pure AuthorizerFailure+        "bad_request_body" -> pure BadRequestBody+        "bad_request_parameters" -> pure BadRequestParameters+        "default_4xx" -> pure Default4XX+        "default_5xx" -> pure Default5XX+        "expired_token" -> pure ExpiredToken+        "integration_failure" -> pure IntegrationFailure+        "integration_timeout" -> pure IntegrationTimeout+        "invalid_api_key" -> pure InvalidAPIKey+        "invalid_signature" -> pure InvalidSignature+        "missing_authentication_token" -> pure MissingAuthenticationToken+        "quota_exceeded" -> pure QuotaExceeded+        "request_too_large" -> pure RequestTooLarge+        "resource_not_found" -> pure ResourceNotFound+        "throttled" -> pure Throttled+        "unauthorized" -> pure Unauthorized+        "unsupported_media_type" -> pure UnsupportedMediaType+        e -> fromTextError $ "Failure parsing GatewayResponseType from value: '" <> e+           <> "'. Accepted values: api_configuration_error, access_denied, authorizer_configuration_error, authorizer_failure, bad_request_body, bad_request_parameters, default_4xx, default_5xx, expired_token, integration_failure, integration_timeout, invalid_api_key, invalid_signature, missing_authentication_token, quota_exceeded, request_too_large, resource_not_found, throttled, unauthorized, unsupported_media_type"++instance ToText GatewayResponseType where+    toText = \case+        APIConfigurationError -> "API_CONFIGURATION_ERROR"+        AccessDenied -> "ACCESS_DENIED"+        AuthorizerConfigurationError -> "AUTHORIZER_CONFIGURATION_ERROR"+        AuthorizerFailure -> "AUTHORIZER_FAILURE"+        BadRequestBody -> "BAD_REQUEST_BODY"+        BadRequestParameters -> "BAD_REQUEST_PARAMETERS"+        Default4XX -> "DEFAULT_4XX"+        Default5XX -> "DEFAULT_5XX"+        ExpiredToken -> "EXPIRED_TOKEN"+        IntegrationFailure -> "INTEGRATION_FAILURE"+        IntegrationTimeout -> "INTEGRATION_TIMEOUT"+        InvalidAPIKey -> "INVALID_API_KEY"+        InvalidSignature -> "INVALID_SIGNATURE"+        MissingAuthenticationToken -> "MISSING_AUTHENTICATION_TOKEN"+        QuotaExceeded -> "QUOTA_EXCEEDED"+        RequestTooLarge -> "REQUEST_TOO_LARGE"+        ResourceNotFound -> "RESOURCE_NOT_FOUND"+        Throttled -> "THROTTLED"+        Unauthorized -> "UNAUTHORIZED"+        UnsupportedMediaType -> "UNSUPPORTED_MEDIA_TYPE"++instance Hashable     GatewayResponseType+instance NFData       GatewayResponseType+instance ToByteString GatewayResponseType+instance ToQuery      GatewayResponseType+instance ToHeader     GatewayResponseType++instance ToJSON GatewayResponseType where+    toJSON = toJSONText++instance FromJSON GatewayResponseType where+    parseJSON = parseJSONText "GatewayResponseType"+ -- | The integration type. The valid value is @HTTP@ for integrating with an HTTP back end, @AWS@ for any AWS service endpoints, @MOCK@ for testing without actually invoking the back end, @HTTP_PROXY@ for integrating with the HTTP proxy integration, or @AWS_PROXY@ for integrating with the Lambda proxy integration type. -- -- data IntegrationType-    = AWS-    | AWSProxy-    | HTTP-    | HTTPProxy-    | Mock-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = AWS+  | AWSProxy+  | HTTP+  | HTTPProxy+  | Mock+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText IntegrationType where     parser = takeLowerText >>= \case         "aws" -> pure AWS@@ -292,14 +419,15 @@     parseJSON = parseJSONText "IntegrationType"  data Op-    = Add-    | Copy-    | Move-    | Remove-    | Replace-    | Test-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = Add+  | Copy+  | Move+  | Remove+  | Replace+  | Test+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText Op where     parser = takeLowerText >>= \case         "add" -> pure Add@@ -330,10 +458,11 @@     toJSON = toJSONText  data PutMode-    = Merge-    | Overwrite-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = Merge+  | Overwrite+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText PutMode where     parser = takeLowerText >>= \case         "merge" -> pure Merge@@ -356,11 +485,12 @@     toJSON = toJSONText  data QuotaPeriodType-    = Day-    | Month-    | Week-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = Day+  | Month+  | Week+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText QuotaPeriodType where     parser = takeLowerText >>= \case         "day" -> pure Day@@ -388,10 +518,11 @@     parseJSON = parseJSONText "QuotaPeriodType"  data UnauthorizedCacheControlHeaderStrategy-    = FailWith403-    | SucceedWithResponseHeader-    | SucceedWithoutResponseHeader-    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+  = FailWith403+  | SucceedWithResponseHeader+  | SucceedWithoutResponseHeader+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+  instance FromText UnauthorizedCacheControlHeaderStrategy where     parser = takeLowerText >>= \case
gen/Network/AWS/APIGateway/UpdateAPIKey.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateAPIKey--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -45,12 +45,12 @@     , akDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A request to change information about an 'ApiKey' resource. --@@ -58,10 +58,11 @@ -- -- /See:/ 'updateAPIKey' smart constructor. data UpdateAPIKey = UpdateAPIKey'-    { _uakPatchOperations :: !(Maybe [PatchOperation])-    , _uakApiKey          :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _uakPatchOperations :: !(Maybe [PatchOperation])+  , _uakApiKey          :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateAPIKey' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -73,11 +74,9 @@     :: Text -- ^ 'uakApiKey'     -> UpdateAPIKey updateAPIKey pApiKey_ =-    UpdateAPIKey'-    { _uakPatchOperations = Nothing-    , _uakApiKey = pApiKey_-    }+  UpdateAPIKey' {_uakPatchOperations = Nothing, _uakApiKey = pApiKey_} + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. uakPatchOperations :: Lens' UpdateAPIKey [PatchOperation] uakPatchOperations = lens _uakPatchOperations (\ s a -> s{_uakPatchOperations = a}) . _Default . _Coerce;@@ -91,9 +90,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateAPIKey+instance Hashable UpdateAPIKey where -instance NFData UpdateAPIKey+instance NFData UpdateAPIKey where  instance ToHeaders UpdateAPIKey where         toHeaders
gen/Network/AWS/APIGateway/UpdateAccount.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateAccount--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -39,12 +39,12 @@     , aThrottleSettings     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Requests Amazon API Gateway to change information about the current 'Account' resource. --@@ -52,9 +52,10 @@ -- -- /See:/ 'updateAccount' smart constructor. newtype UpdateAccount = UpdateAccount'-    { _uaPatchOperations :: Maybe [PatchOperation]-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _uaPatchOperations :: Maybe [PatchOperation]+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateAccount' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -62,11 +63,9 @@ -- * 'uaPatchOperations' - A list of update operations to be applied to the specified resource and in the order specified in this list. updateAccount     :: UpdateAccount-updateAccount =-    UpdateAccount'-    { _uaPatchOperations = Nothing-    }+updateAccount = UpdateAccount' {_uaPatchOperations = Nothing} + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. uaPatchOperations :: Lens' UpdateAccount [PatchOperation] uaPatchOperations = lens _uaPatchOperations (\ s a -> s{_uaPatchOperations = a}) . _Default . _Coerce;@@ -76,9 +75,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateAccount+instance Hashable UpdateAccount where -instance NFData UpdateAccount+instance NFData UpdateAccount where  instance ToHeaders UpdateAccount where         toHeaders
gen/Network/AWS/APIGateway/UpdateAuthorizer.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateAuthorizer--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -48,12 +48,12 @@     , aAuthorizerCredentials     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to update an existing 'Authorizer' resource. --@@ -61,18 +61,19 @@ -- -- /See:/ 'updateAuthorizer' smart constructor. data UpdateAuthorizer = UpdateAuthorizer'-    { _uaaPatchOperations :: !(Maybe [PatchOperation])-    , _uaaRestAPIId       :: !Text-    , _uaaAuthorizerId    :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _uaaPatchOperations :: !(Maybe [PatchOperation])+  , _uaaRestAPIId       :: !Text+  , _uaaAuthorizerId    :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateAuthorizer' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'uaaPatchOperations' - A list of update operations to be applied to the specified resource and in the order specified in this list. ----- * 'uaaRestAPIId' - The 'RestApi' identifier for the 'Authorizer' resource.+-- * 'uaaRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'uaaAuthorizerId' - The identifier of the 'Authorizer' resource. updateAuthorizer@@ -80,17 +81,18 @@     -> Text -- ^ 'uaaAuthorizerId'     -> UpdateAuthorizer updateAuthorizer pRestAPIId_ pAuthorizerId_ =-    UpdateAuthorizer'-    { _uaaPatchOperations = Nothing-    , _uaaRestAPIId = pRestAPIId_-    , _uaaAuthorizerId = pAuthorizerId_-    }+  UpdateAuthorizer'+  { _uaaPatchOperations = Nothing+  , _uaaRestAPIId = pRestAPIId_+  , _uaaAuthorizerId = pAuthorizerId_+  } + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. uaaPatchOperations :: Lens' UpdateAuthorizer [PatchOperation] uaaPatchOperations = lens _uaaPatchOperations (\ s a -> s{_uaaPatchOperations = a}) . _Default . _Coerce; --- | The 'RestApi' identifier for the 'Authorizer' resource.+-- | The string identifier of the associated 'RestApi' . uaaRestAPIId :: Lens' UpdateAuthorizer Text uaaRestAPIId = lens _uaaRestAPIId (\ s a -> s{_uaaRestAPIId = a}); @@ -103,9 +105,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateAuthorizer+instance Hashable UpdateAuthorizer where -instance NFData UpdateAuthorizer+instance NFData UpdateAuthorizer where  instance ToHeaders UpdateAuthorizer where         toHeaders
gen/Network/AWS/APIGateway/UpdateBasePathMapping.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateBasePathMapping--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -40,12 +40,12 @@     , bpmRestAPIId     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A request to change information about the 'BasePathMapping' resource. --@@ -53,11 +53,12 @@ -- -- /See:/ 'updateBasePathMapping' smart constructor. data UpdateBasePathMapping = UpdateBasePathMapping'-    { _ubpmPatchOperations :: !(Maybe [PatchOperation])-    , _ubpmDomainName      :: !Text-    , _ubpmBasePath        :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _ubpmPatchOperations :: !(Maybe [PatchOperation])+  , _ubpmDomainName      :: !Text+  , _ubpmBasePath        :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateBasePathMapping' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -72,12 +73,13 @@     -> Text -- ^ 'ubpmBasePath'     -> UpdateBasePathMapping updateBasePathMapping pDomainName_ pBasePath_ =-    UpdateBasePathMapping'-    { _ubpmPatchOperations = Nothing-    , _ubpmDomainName = pDomainName_-    , _ubpmBasePath = pBasePath_-    }+  UpdateBasePathMapping'+  { _ubpmPatchOperations = Nothing+  , _ubpmDomainName = pDomainName_+  , _ubpmBasePath = pBasePath_+  } + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. ubpmPatchOperations :: Lens' UpdateBasePathMapping [PatchOperation] ubpmPatchOperations = lens _ubpmPatchOperations (\ s a -> s{_ubpmPatchOperations = a}) . _Default . _Coerce;@@ -95,9 +97,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateBasePathMapping+instance Hashable UpdateBasePathMapping where -instance NFData UpdateBasePathMapping+instance NFData UpdateBasePathMapping where  instance ToHeaders UpdateBasePathMapping where         toHeaders
gen/Network/AWS/APIGateway/UpdateClientCertificate.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateClientCertificate--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -41,12 +41,12 @@     , ccDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A request to change information about an 'ClientCertificate' resource. --@@ -54,10 +54,11 @@ -- -- /See:/ 'updateClientCertificate' smart constructor. data UpdateClientCertificate = UpdateClientCertificate'-    { _uccPatchOperations     :: !(Maybe [PatchOperation])-    , _uccClientCertificateId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _uccPatchOperations     :: !(Maybe [PatchOperation])+  , _uccClientCertificateId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateClientCertificate' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -69,11 +70,12 @@     :: Text -- ^ 'uccClientCertificateId'     -> UpdateClientCertificate updateClientCertificate pClientCertificateId_ =-    UpdateClientCertificate'-    { _uccPatchOperations = Nothing-    , _uccClientCertificateId = pClientCertificateId_-    }+  UpdateClientCertificate'+  { _uccPatchOperations = Nothing+  , _uccClientCertificateId = pClientCertificateId_+  } + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. uccPatchOperations :: Lens' UpdateClientCertificate [PatchOperation] uccPatchOperations = lens _uccPatchOperations (\ s a -> s{_uccPatchOperations = a}) . _Default . _Coerce;@@ -87,9 +89,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateClientCertificate+instance Hashable UpdateClientCertificate where -instance NFData UpdateClientCertificate+instance NFData UpdateClientCertificate where  instance ToHeaders UpdateClientCertificate where         toHeaders
gen/Network/AWS/APIGateway/UpdateDeployment.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateDeployment--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -41,12 +41,12 @@     , dDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Requests Amazon API Gateway to change information about a 'Deployment' resource. --@@ -54,18 +54,19 @@ -- -- /See:/ 'updateDeployment' smart constructor. data UpdateDeployment = UpdateDeployment'-    { _udPatchOperations :: !(Maybe [PatchOperation])-    , _udRestAPIId       :: !Text-    , _udDeploymentId    :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _udPatchOperations :: !(Maybe [PatchOperation])+  , _udRestAPIId       :: !Text+  , _udDeploymentId    :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateDeployment' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'udPatchOperations' - A list of update operations to be applied to the specified resource and in the order specified in this list. ----- * 'udRestAPIId' - The replacement identifier of the 'RestApi' resource for the 'Deployment' resource to change information about.+-- * 'udRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'udDeploymentId' - The replacement identifier for the 'Deployment' resource to change information about. updateDeployment@@ -73,17 +74,18 @@     -> Text -- ^ 'udDeploymentId'     -> UpdateDeployment updateDeployment pRestAPIId_ pDeploymentId_ =-    UpdateDeployment'-    { _udPatchOperations = Nothing-    , _udRestAPIId = pRestAPIId_-    , _udDeploymentId = pDeploymentId_-    }+  UpdateDeployment'+  { _udPatchOperations = Nothing+  , _udRestAPIId = pRestAPIId_+  , _udDeploymentId = pDeploymentId_+  } + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. udPatchOperations :: Lens' UpdateDeployment [PatchOperation] udPatchOperations = lens _udPatchOperations (\ s a -> s{_udPatchOperations = a}) . _Default . _Coerce; --- | The replacement identifier of the 'RestApi' resource for the 'Deployment' resource to change information about.+-- | The string identifier of the associated 'RestApi' . udRestAPIId :: Lens' UpdateDeployment Text udRestAPIId = lens _udRestAPIId (\ s a -> s{_udRestAPIId = a}); @@ -96,9 +98,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateDeployment+instance Hashable UpdateDeployment where -instance NFData UpdateDeployment+instance NFData UpdateDeployment where  instance ToHeaders UpdateDeployment where         toHeaders
gen/Network/AWS/APIGateway/UpdateDocumentationPart.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateDocumentationPart--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -38,12 +38,12 @@     , dpProperties     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Updates an existing documentation part of a given API. --@@ -51,18 +51,19 @@ -- -- /See:/ 'updateDocumentationPart' smart constructor. data UpdateDocumentationPart = UpdateDocumentationPart'-    { _udpPatchOperations     :: !(Maybe [PatchOperation])-    , _udpRestAPIId           :: !Text-    , _udpDocumentationPartId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _udpPatchOperations     :: !(Maybe [PatchOperation])+  , _udpRestAPIId           :: !Text+  , _udpDocumentationPartId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateDocumentationPart' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'udpPatchOperations' - A list of update operations to be applied to the specified resource and in the order specified in this list. ----- * 'udpRestAPIId' - [Required] The identifier of an API of the to-be-updated documentation part.+-- * 'udpRestAPIId' - [Required] The string identifier of the associated 'RestApi' . -- -- * 'udpDocumentationPartId' - [Required] The identifier of the to-be-updated documentation part. updateDocumentationPart@@ -70,17 +71,18 @@     -> Text -- ^ 'udpDocumentationPartId'     -> UpdateDocumentationPart updateDocumentationPart pRestAPIId_ pDocumentationPartId_ =-    UpdateDocumentationPart'-    { _udpPatchOperations = Nothing-    , _udpRestAPIId = pRestAPIId_-    , _udpDocumentationPartId = pDocumentationPartId_-    }+  UpdateDocumentationPart'+  { _udpPatchOperations = Nothing+  , _udpRestAPIId = pRestAPIId_+  , _udpDocumentationPartId = pDocumentationPartId_+  } + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. udpPatchOperations :: Lens' UpdateDocumentationPart [PatchOperation] udpPatchOperations = lens _udpPatchOperations (\ s a -> s{_udpPatchOperations = a}) . _Default . _Coerce; --- | [Required] The identifier of an API of the to-be-updated documentation part.+-- | [Required] The string identifier of the associated 'RestApi' . udpRestAPIId :: Lens' UpdateDocumentationPart Text udpRestAPIId = lens _udpRestAPIId (\ s a -> s{_udpRestAPIId = a}); @@ -93,9 +95,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateDocumentationPart+instance Hashable UpdateDocumentationPart where -instance NFData UpdateDocumentationPart+instance NFData UpdateDocumentationPart where  instance ToHeaders UpdateDocumentationPart where         toHeaders
gen/Network/AWS/APIGateway/UpdateDocumentationVersion.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateDocumentationVersion--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -38,12 +38,12 @@     , dvDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Updates an existing documentation version of an API. --@@ -51,18 +51,19 @@ -- -- /See:/ 'updateDocumentationVersion' smart constructor. data UpdateDocumentationVersion = UpdateDocumentationVersion'-    { _udvPatchOperations      :: !(Maybe [PatchOperation])-    , _udvRestAPIId            :: !Text-    , _udvDocumentationVersion :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _udvPatchOperations      :: !(Maybe [PatchOperation])+  , _udvRestAPIId            :: !Text+  , _udvDocumentationVersion :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateDocumentationVersion' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'udvPatchOperations' - A list of update operations to be applied to the specified resource and in the order specified in this list. ----- * 'udvRestAPIId' - [Required] The identifier of an API of the to-be-updated documentation version.+-- * 'udvRestAPIId' - [Required] The string identifier of the associated 'RestApi' .. -- -- * 'udvDocumentationVersion' - [Required] The version identifier of the to-be-updated documentation version. updateDocumentationVersion@@ -70,17 +71,18 @@     -> Text -- ^ 'udvDocumentationVersion'     -> UpdateDocumentationVersion updateDocumentationVersion pRestAPIId_ pDocumentationVersion_ =-    UpdateDocumentationVersion'-    { _udvPatchOperations = Nothing-    , _udvRestAPIId = pRestAPIId_-    , _udvDocumentationVersion = pDocumentationVersion_-    }+  UpdateDocumentationVersion'+  { _udvPatchOperations = Nothing+  , _udvRestAPIId = pRestAPIId_+  , _udvDocumentationVersion = pDocumentationVersion_+  } + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. udvPatchOperations :: Lens' UpdateDocumentationVersion [PatchOperation] udvPatchOperations = lens _udvPatchOperations (\ s a -> s{_udvPatchOperations = a}) . _Default . _Coerce; --- | [Required] The identifier of an API of the to-be-updated documentation version.+-- | [Required] The string identifier of the associated 'RestApi' .. udvRestAPIId :: Lens' UpdateDocumentationVersion Text udvRestAPIId = lens _udvRestAPIId (\ s a -> s{_udvRestAPIId = a}); @@ -94,9 +96,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateDocumentationVersion+instance Hashable UpdateDocumentationVersion where -instance NFData UpdateDocumentationVersion+instance NFData UpdateDocumentationVersion where  instance ToHeaders UpdateDocumentationVersion where         toHeaders
gen/Network/AWS/APIGateway/UpdateDomainName.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateDomainName--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -35,17 +35,22 @@     , DomainName     -- * Response Lenses     , dnCertificateName+    , dnRegionalCertificateARN+    , dnCertificateARN     , dnDomainName+    , dnRegionalCertificateName+    , dnRegionalDomainName     , dnCertificateUploadDate     , dnDistributionDomainName+    , dnEndpointConfiguration     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A request to change information about the 'DomainName' resource. --@@ -53,10 +58,11 @@ -- -- /See:/ 'updateDomainName' smart constructor. data UpdateDomainName = UpdateDomainName'-    { _udnPatchOperations :: !(Maybe [PatchOperation])-    , _udnDomainName      :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _udnPatchOperations :: !(Maybe [PatchOperation])+  , _udnDomainName      :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateDomainName' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -68,11 +74,10 @@     :: Text -- ^ 'udnDomainName'     -> UpdateDomainName updateDomainName pDomainName_ =-    UpdateDomainName'-    { _udnPatchOperations = Nothing-    , _udnDomainName = pDomainName_-    }+  UpdateDomainName'+  {_udnPatchOperations = Nothing, _udnDomainName = pDomainName_} + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. udnPatchOperations :: Lens' UpdateDomainName [PatchOperation] udnPatchOperations = lens _udnPatchOperations (\ s a -> s{_udnPatchOperations = a}) . _Default . _Coerce;@@ -86,9 +91,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateDomainName+instance Hashable UpdateDomainName where -instance NFData UpdateDomainName+instance NFData UpdateDomainName where  instance ToHeaders UpdateDomainName where         toHeaders
+ gen/Network/AWS/APIGateway/UpdateGatewayResponse.hs view
@@ -0,0 +1,125 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.APIGateway.UpdateGatewayResponse+-- Copyright   : (c) 2013-2017 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)+--+-- Updates a 'GatewayResponse' of a specified response type on the given 'RestApi' .+--+--+module Network.AWS.APIGateway.UpdateGatewayResponse+    (+    -- * Creating a Request+      updateGatewayResponse+    , UpdateGatewayResponse+    -- * Request Lenses+    , ugPatchOperations+    , ugRestAPIId+    , ugResponseType++    -- * Destructuring the Response+    , gatewayResponse+    , GatewayResponse+    -- * Response Lenses+    , gDefaultResponse+    , gResponseTemplates+    , gResponseType+    , gStatusCode+    , gResponseParameters+    ) where++import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | Updates a 'GatewayResponse' of a specified response type on the given 'RestApi' .+--+--+--+-- /See:/ 'updateGatewayResponse' smart constructor.+data UpdateGatewayResponse = UpdateGatewayResponse'+  { _ugPatchOperations :: !(Maybe [PatchOperation])+  , _ugRestAPIId       :: !Text+  , _ugResponseType    :: !GatewayResponseType+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateGatewayResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ugPatchOperations' - A list of update operations to be applied to the specified resource and in the order specified in this list.+--+-- * 'ugRestAPIId' - The string identifier of the associated 'RestApi' .+--+-- * 'ugResponseType' - The response type of the associated 'GatewayResponse' . Valid values are     * ACCESS_DENIED    * API_CONFIGURATION_ERROR    * AUTHORIZER_FAILURE    * AUTHORIZER_CONFIGURATION_ERROR    * BAD_REQUEST_PARAMETERS    * BAD_REQUEST_BODY    * DEFAULT_4XX    * DEFAULT_5XX    * EXPIRED_TOKEN    * INVALID_SIGNATURE    * INTEGRATION_FAILURE    * INTEGRATION_TIMEOUT    * INVALID_API_KEY    * MISSING_AUTHENTICATION_TOKEN    * QUOTA_EXCEEDED    * REQUEST_TOO_LARGE    * RESOURCE_NOT_FOUND    * THROTTLED    * UNAUTHORIZED    * UNSUPPORTED_MEDIA_TYPES+updateGatewayResponse+    :: Text -- ^ 'ugRestAPIId'+    -> GatewayResponseType -- ^ 'ugResponseType'+    -> UpdateGatewayResponse+updateGatewayResponse pRestAPIId_ pResponseType_ =+  UpdateGatewayResponse'+  { _ugPatchOperations = Nothing+  , _ugRestAPIId = pRestAPIId_+  , _ugResponseType = pResponseType_+  }+++-- | A list of update operations to be applied to the specified resource and in the order specified in this list.+ugPatchOperations :: Lens' UpdateGatewayResponse [PatchOperation]+ugPatchOperations = lens _ugPatchOperations (\ s a -> s{_ugPatchOperations = a}) . _Default . _Coerce;++-- | The string identifier of the associated 'RestApi' .+ugRestAPIId :: Lens' UpdateGatewayResponse Text+ugRestAPIId = lens _ugRestAPIId (\ s a -> s{_ugRestAPIId = a});++-- | The response type of the associated 'GatewayResponse' . Valid values are     * ACCESS_DENIED    * API_CONFIGURATION_ERROR    * AUTHORIZER_FAILURE    * AUTHORIZER_CONFIGURATION_ERROR    * BAD_REQUEST_PARAMETERS    * BAD_REQUEST_BODY    * DEFAULT_4XX    * DEFAULT_5XX    * EXPIRED_TOKEN    * INVALID_SIGNATURE    * INTEGRATION_FAILURE    * INTEGRATION_TIMEOUT    * INVALID_API_KEY    * MISSING_AUTHENTICATION_TOKEN    * QUOTA_EXCEEDED    * REQUEST_TOO_LARGE    * RESOURCE_NOT_FOUND    * THROTTLED    * UNAUTHORIZED    * UNSUPPORTED_MEDIA_TYPES+ugResponseType :: Lens' UpdateGatewayResponse GatewayResponseType+ugResponseType = lens _ugResponseType (\ s a -> s{_ugResponseType = a});++instance AWSRequest UpdateGatewayResponse where+        type Rs UpdateGatewayResponse = GatewayResponse+        request = patchJSON apiGateway+        response = receiveJSON (\ s h x -> eitherParseJSON x)++instance Hashable UpdateGatewayResponse where++instance NFData UpdateGatewayResponse where++instance ToHeaders UpdateGatewayResponse where+        toHeaders+          = const+              (mconcat+                 ["Accept" =# ("application/json" :: ByteString)])++instance ToJSON UpdateGatewayResponse where+        toJSON UpdateGatewayResponse'{..}+          = object+              (catMaybes+                 [("patchOperations" .=) <$> _ugPatchOperations])++instance ToPath UpdateGatewayResponse where+        toPath UpdateGatewayResponse'{..}+          = mconcat+              ["/restapis/", toBS _ugRestAPIId,+               "/gatewayresponses/", toBS _ugResponseType]++instance ToQuery UpdateGatewayResponse where+        toQuery = const mempty
gen/Network/AWS/APIGateway/UpdateIntegration.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateIntegration--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -49,12 +49,12 @@     , iCacheKeyParameters     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents an update integration request. --@@ -62,19 +62,20 @@ -- -- /See:/ 'updateIntegration' smart constructor. data UpdateIntegration = UpdateIntegration'-    { _updPatchOperations :: !(Maybe [PatchOperation])-    , _updRestAPIId       :: !Text-    , _updResourceId      :: !Text-    , _updHttpMethod      :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _updPatchOperations :: !(Maybe [PatchOperation])+  , _updRestAPIId       :: !Text+  , _updResourceId      :: !Text+  , _updHttpMethod      :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateIntegration' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'updPatchOperations' - A list of update operations to be applied to the specified resource and in the order specified in this list. ----- * 'updRestAPIId' - Represents an update integration request's API identifier.+-- * 'updRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'updResourceId' - Represents an update integration request's resource identifier. --@@ -85,18 +86,19 @@     -> Text -- ^ 'updHttpMethod'     -> UpdateIntegration updateIntegration pRestAPIId_ pResourceId_ pHttpMethod_ =-    UpdateIntegration'-    { _updPatchOperations = Nothing-    , _updRestAPIId = pRestAPIId_-    , _updResourceId = pResourceId_-    , _updHttpMethod = pHttpMethod_-    }+  UpdateIntegration'+  { _updPatchOperations = Nothing+  , _updRestAPIId = pRestAPIId_+  , _updResourceId = pResourceId_+  , _updHttpMethod = pHttpMethod_+  } + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. updPatchOperations :: Lens' UpdateIntegration [PatchOperation] updPatchOperations = lens _updPatchOperations (\ s a -> s{_updPatchOperations = a}) . _Default . _Coerce; --- | Represents an update integration request's API identifier.+-- | The string identifier of the associated 'RestApi' . updRestAPIId :: Lens' UpdateIntegration Text updRestAPIId = lens _updRestAPIId (\ s a -> s{_updRestAPIId = a}); @@ -113,9 +115,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateIntegration+instance Hashable UpdateIntegration where -instance NFData UpdateIntegration+instance NFData UpdateIntegration where  instance ToHeaders UpdateIntegration where         toHeaders
gen/Network/AWS/APIGateway/UpdateIntegrationResponse.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateIntegrationResponse--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -44,12 +44,12 @@     , intResponseParameters     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Represents an update integration response request. --@@ -57,20 +57,21 @@ -- -- /See:/ 'updateIntegrationResponse' smart constructor. data UpdateIntegrationResponse = UpdateIntegrationResponse'-    { _uiPatchOperations :: !(Maybe [PatchOperation])-    , _uiRestAPIId       :: !Text-    , _uiResourceId      :: !Text-    , _uiHttpMethod      :: !Text-    , _uiStatusCode      :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _uiPatchOperations :: !(Maybe [PatchOperation])+  , _uiRestAPIId       :: !Text+  , _uiResourceId      :: !Text+  , _uiHttpMethod      :: !Text+  , _uiStatusCode      :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateIntegrationResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'uiPatchOperations' - A list of update operations to be applied to the specified resource and in the order specified in this list. ----- * 'uiRestAPIId' - Specifies an update integration response request's API identifier.+-- * 'uiRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'uiResourceId' - Specifies an update integration response request's resource identifier. --@@ -84,19 +85,20 @@     -> Text -- ^ 'uiStatusCode'     -> UpdateIntegrationResponse updateIntegrationResponse pRestAPIId_ pResourceId_ pHttpMethod_ pStatusCode_ =-    UpdateIntegrationResponse'-    { _uiPatchOperations = Nothing-    , _uiRestAPIId = pRestAPIId_-    , _uiResourceId = pResourceId_-    , _uiHttpMethod = pHttpMethod_-    , _uiStatusCode = pStatusCode_-    }+  UpdateIntegrationResponse'+  { _uiPatchOperations = Nothing+  , _uiRestAPIId = pRestAPIId_+  , _uiResourceId = pResourceId_+  , _uiHttpMethod = pHttpMethod_+  , _uiStatusCode = pStatusCode_+  } + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. uiPatchOperations :: Lens' UpdateIntegrationResponse [PatchOperation] uiPatchOperations = lens _uiPatchOperations (\ s a -> s{_uiPatchOperations = a}) . _Default . _Coerce; --- | Specifies an update integration response request's API identifier.+-- | The string identifier of the associated 'RestApi' . uiRestAPIId :: Lens' UpdateIntegrationResponse Text uiRestAPIId = lens _uiRestAPIId (\ s a -> s{_uiRestAPIId = a}); @@ -118,9 +120,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateIntegrationResponse+instance Hashable UpdateIntegrationResponse where -instance NFData UpdateIntegrationResponse+instance NFData UpdateIntegrationResponse where  instance ToHeaders UpdateIntegrationResponse where         toHeaders
gen/Network/AWS/APIGateway/UpdateMethod.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateMethod--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -38,20 +38,22 @@     -- * Response Lenses     , mMethodResponses     , mHttpMethod+    , mRequestValidatorId     , mRequestModels     , mRequestParameters     , mAuthorizerId+    , mOperationName     , mAuthorizationType     , mApiKeyRequired     , mMethodIntegration     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to update an existing 'Method' resource. --@@ -59,19 +61,20 @@ -- -- /See:/ 'updateMethod' smart constructor. data UpdateMethod = UpdateMethod'-    { _ummPatchOperations :: !(Maybe [PatchOperation])-    , _ummRestAPIId       :: !Text-    , _ummResourceId      :: !Text-    , _ummHttpMethod      :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _ummPatchOperations :: !(Maybe [PatchOperation])+  , _ummRestAPIId       :: !Text+  , _ummResourceId      :: !Text+  , _ummHttpMethod      :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateMethod' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'ummPatchOperations' - A list of update operations to be applied to the specified resource and in the order specified in this list. ----- * 'ummRestAPIId' - The 'RestApi' identifier for the 'Method' resource.+-- * 'ummRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'ummResourceId' - The 'Resource' identifier for the 'Method' resource. --@@ -82,18 +85,19 @@     -> Text -- ^ 'ummHttpMethod'     -> UpdateMethod updateMethod pRestAPIId_ pResourceId_ pHttpMethod_ =-    UpdateMethod'-    { _ummPatchOperations = Nothing-    , _ummRestAPIId = pRestAPIId_-    , _ummResourceId = pResourceId_-    , _ummHttpMethod = pHttpMethod_-    }+  UpdateMethod'+  { _ummPatchOperations = Nothing+  , _ummRestAPIId = pRestAPIId_+  , _ummResourceId = pResourceId_+  , _ummHttpMethod = pHttpMethod_+  } + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. ummPatchOperations :: Lens' UpdateMethod [PatchOperation] ummPatchOperations = lens _ummPatchOperations (\ s a -> s{_ummPatchOperations = a}) . _Default . _Coerce; --- | The 'RestApi' identifier for the 'Method' resource.+-- | The string identifier of the associated 'RestApi' . ummRestAPIId :: Lens' UpdateMethod Text ummRestAPIId = lens _ummRestAPIId (\ s a -> s{_ummRestAPIId = a}); @@ -110,9 +114,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateMethod+instance Hashable UpdateMethod where -instance NFData UpdateMethod+instance NFData UpdateMethod where  instance ToHeaders UpdateMethod where         toHeaders
gen/Network/AWS/APIGateway/UpdateMethodResponse.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateMethodResponse--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -42,12 +42,12 @@     , mResponseParameters     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | A request to update an existing 'MethodResponse' resource. --@@ -55,20 +55,21 @@ -- -- /See:/ 'updateMethodResponse' smart constructor. data UpdateMethodResponse = UpdateMethodResponse'-    { _umPatchOperations :: !(Maybe [PatchOperation])-    , _umRestAPIId       :: !Text-    , _umResourceId      :: !Text-    , _umHttpMethod      :: !Text-    , _umStatusCode      :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _umPatchOperations :: !(Maybe [PatchOperation])+  , _umRestAPIId       :: !Text+  , _umResourceId      :: !Text+  , _umHttpMethod      :: !Text+  , _umStatusCode      :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateMethodResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'umPatchOperations' - A list of update operations to be applied to the specified resource and in the order specified in this list. ----- * 'umRestAPIId' - The 'RestApi' identifier for the 'MethodResponse' resource.+-- * 'umRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'umResourceId' - The 'Resource' identifier for the 'MethodResponse' resource. --@@ -82,19 +83,20 @@     -> Text -- ^ 'umStatusCode'     -> UpdateMethodResponse updateMethodResponse pRestAPIId_ pResourceId_ pHttpMethod_ pStatusCode_ =-    UpdateMethodResponse'-    { _umPatchOperations = Nothing-    , _umRestAPIId = pRestAPIId_-    , _umResourceId = pResourceId_-    , _umHttpMethod = pHttpMethod_-    , _umStatusCode = pStatusCode_-    }+  UpdateMethodResponse'+  { _umPatchOperations = Nothing+  , _umRestAPIId = pRestAPIId_+  , _umResourceId = pResourceId_+  , _umHttpMethod = pHttpMethod_+  , _umStatusCode = pStatusCode_+  } + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. umPatchOperations :: Lens' UpdateMethodResponse [PatchOperation] umPatchOperations = lens _umPatchOperations (\ s a -> s{_umPatchOperations = a}) . _Default . _Coerce; --- | The 'RestApi' identifier for the 'MethodResponse' resource.+-- | The string identifier of the associated 'RestApi' . umRestAPIId :: Lens' UpdateMethodResponse Text umRestAPIId = lens _umRestAPIId (\ s a -> s{_umRestAPIId = a}); @@ -115,9 +117,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateMethodResponse+instance Hashable UpdateMethodResponse where -instance NFData UpdateMethodResponse+instance NFData UpdateMethodResponse where  instance ToHeaders UpdateMethodResponse where         toHeaders
gen/Network/AWS/APIGateway/UpdateModel.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateModel--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -42,12 +42,12 @@     , mContentType     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to update an existing model in an existing 'RestApi' resource. --@@ -55,18 +55,19 @@ -- -- /See:/ 'updateModel' smart constructor. data UpdateModel = UpdateModel'-    { _uPatchOperations :: !(Maybe [PatchOperation])-    , _uRestAPIId       :: !Text-    , _uModelName       :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _uPatchOperations :: !(Maybe [PatchOperation])+  , _uRestAPIId       :: !Text+  , _uModelName       :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateModel' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'uPatchOperations' - A list of update operations to be applied to the specified resource and in the order specified in this list. ----- * 'uRestAPIId' - The 'RestApi' identifier under which the model exists.+-- * 'uRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'uModelName' - The name of the model to update. updateModel@@ -74,17 +75,18 @@     -> Text -- ^ 'uModelName'     -> UpdateModel updateModel pRestAPIId_ pModelName_ =-    UpdateModel'-    { _uPatchOperations = Nothing-    , _uRestAPIId = pRestAPIId_-    , _uModelName = pModelName_-    }+  UpdateModel'+  { _uPatchOperations = Nothing+  , _uRestAPIId = pRestAPIId_+  , _uModelName = pModelName_+  } + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. uPatchOperations :: Lens' UpdateModel [PatchOperation] uPatchOperations = lens _uPatchOperations (\ s a -> s{_uPatchOperations = a}) . _Default . _Coerce; --- | The 'RestApi' identifier under which the model exists.+-- | The string identifier of the associated 'RestApi' . uRestAPIId :: Lens' UpdateModel Text uRestAPIId = lens _uRestAPIId (\ s a -> s{_uRestAPIId = a}); @@ -97,9 +99,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateModel+instance Hashable UpdateModel where -instance NFData UpdateModel+instance NFData UpdateModel where  instance ToHeaders UpdateModel where         toHeaders
+ gen/Network/AWS/APIGateway/UpdateRequestValidator.hs view
@@ -0,0 +1,124 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.APIGateway.UpdateRequestValidator+-- Copyright   : (c) 2013-2017 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)+--+-- Updates a 'RequestValidator' of a given 'RestApi' .+--+--+module Network.AWS.APIGateway.UpdateRequestValidator+    (+    -- * Creating a Request+      updateRequestValidator+    , UpdateRequestValidator+    -- * Request Lenses+    , urvPatchOperations+    , urvRestAPIId+    , urvRequestValidatorId++    -- * Destructuring the Response+    , requestValidator+    , RequestValidator+    -- * Response Lenses+    , rvValidateRequestParameters+    , rvName+    , rvValidateRequestBody+    , rvId+    ) where++import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | Updates a 'RequestValidator' of a given 'RestApi' .+--+--+--+-- /See:/ 'updateRequestValidator' smart constructor.+data UpdateRequestValidator = UpdateRequestValidator'+  { _urvPatchOperations    :: !(Maybe [PatchOperation])+  , _urvRestAPIId          :: !Text+  , _urvRequestValidatorId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateRequestValidator' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'urvPatchOperations' - A list of update operations to be applied to the specified resource and in the order specified in this list.+--+-- * 'urvRestAPIId' - The string identifier of the associated 'RestApi' .+--+-- * 'urvRequestValidatorId' - [Required] The identifier of 'RequestValidator' to be updated.+updateRequestValidator+    :: Text -- ^ 'urvRestAPIId'+    -> Text -- ^ 'urvRequestValidatorId'+    -> UpdateRequestValidator+updateRequestValidator pRestAPIId_ pRequestValidatorId_ =+  UpdateRequestValidator'+  { _urvPatchOperations = Nothing+  , _urvRestAPIId = pRestAPIId_+  , _urvRequestValidatorId = pRequestValidatorId_+  }+++-- | A list of update operations to be applied to the specified resource and in the order specified in this list.+urvPatchOperations :: Lens' UpdateRequestValidator [PatchOperation]+urvPatchOperations = lens _urvPatchOperations (\ s a -> s{_urvPatchOperations = a}) . _Default . _Coerce;++-- | The string identifier of the associated 'RestApi' .+urvRestAPIId :: Lens' UpdateRequestValidator Text+urvRestAPIId = lens _urvRestAPIId (\ s a -> s{_urvRestAPIId = a});++-- | [Required] The identifier of 'RequestValidator' to be updated.+urvRequestValidatorId :: Lens' UpdateRequestValidator Text+urvRequestValidatorId = lens _urvRequestValidatorId (\ s a -> s{_urvRequestValidatorId = a});++instance AWSRequest UpdateRequestValidator where+        type Rs UpdateRequestValidator = RequestValidator+        request = patchJSON apiGateway+        response = receiveJSON (\ s h x -> eitherParseJSON x)++instance Hashable UpdateRequestValidator where++instance NFData UpdateRequestValidator where++instance ToHeaders UpdateRequestValidator where+        toHeaders+          = const+              (mconcat+                 ["Accept" =# ("application/json" :: ByteString)])++instance ToJSON UpdateRequestValidator where+        toJSON UpdateRequestValidator'{..}+          = object+              (catMaybes+                 [("patchOperations" .=) <$> _urvPatchOperations])++instance ToPath UpdateRequestValidator where+        toPath UpdateRequestValidator'{..}+          = mconcat+              ["/restapis/", toBS _urvRestAPIId,+               "/requestvalidators/", toBS _urvRequestValidatorId]++instance ToQuery UpdateRequestValidator where+        toQuery = const mempty
gen/Network/AWS/APIGateway/UpdateResource.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateResource--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -42,12 +42,12 @@     , rParentId     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to change information about a 'Resource' resource. --@@ -55,18 +55,19 @@ -- -- /See:/ 'updateResource' smart constructor. data UpdateResource = UpdateResource'-    { _urPatchOperations :: !(Maybe [PatchOperation])-    , _urRestAPIId       :: !Text-    , _urResourceId      :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _urPatchOperations :: !(Maybe [PatchOperation])+  , _urRestAPIId       :: !Text+  , _urResourceId      :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateResource' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'urPatchOperations' - A list of update operations to be applied to the specified resource and in the order specified in this list. ----- * 'urRestAPIId' - The 'RestApi' identifier for the 'Resource' resource.+-- * 'urRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'urResourceId' - The identifier of the 'Resource' resource. updateResource@@ -74,17 +75,18 @@     -> Text -- ^ 'urResourceId'     -> UpdateResource updateResource pRestAPIId_ pResourceId_ =-    UpdateResource'-    { _urPatchOperations = Nothing-    , _urRestAPIId = pRestAPIId_-    , _urResourceId = pResourceId_-    }+  UpdateResource'+  { _urPatchOperations = Nothing+  , _urRestAPIId = pRestAPIId_+  , _urResourceId = pResourceId_+  } + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. urPatchOperations :: Lens' UpdateResource [PatchOperation] urPatchOperations = lens _urPatchOperations (\ s a -> s{_urPatchOperations = a}) . _Default . _Coerce; --- | The 'RestApi' identifier for the 'Resource' resource.+-- | The string identifier of the associated 'RestApi' . urRestAPIId :: Lens' UpdateResource Text urRestAPIId = lens _urRestAPIId (\ s a -> s{_urRestAPIId = a}); @@ -97,9 +99,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateResource+instance Hashable UpdateResource where -instance NFData UpdateResource+instance NFData UpdateResource where  instance ToHeaders UpdateResource where         toHeaders
gen/Network/AWS/APIGateway/UpdateRestAPI.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateRestAPI--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -40,15 +40,16 @@     , raName     , raVersion     , raId+    , raEndpointConfiguration     , raDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Request to update an existing 'RestApi' resource in your collection. --@@ -56,31 +57,30 @@ -- -- /See:/ 'updateRestAPI' smart constructor. data UpdateRestAPI = UpdateRestAPI'-    { _uraPatchOperations :: !(Maybe [PatchOperation])-    , _uraRestAPIId       :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _uraPatchOperations :: !(Maybe [PatchOperation])+  , _uraRestAPIId       :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateRestAPI' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'uraPatchOperations' - A list of update operations to be applied to the specified resource and in the order specified in this list. ----- * 'uraRestAPIId' - The ID of the 'RestApi' you want to update.+-- * 'uraRestAPIId' - The string identifier of the associated 'RestApi' . updateRestAPI     :: Text -- ^ 'uraRestAPIId'     -> UpdateRestAPI updateRestAPI pRestAPIId_ =-    UpdateRestAPI'-    { _uraPatchOperations = Nothing-    , _uraRestAPIId = pRestAPIId_-    }+  UpdateRestAPI' {_uraPatchOperations = Nothing, _uraRestAPIId = pRestAPIId_} + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. uraPatchOperations :: Lens' UpdateRestAPI [PatchOperation] uraPatchOperations = lens _uraPatchOperations (\ s a -> s{_uraPatchOperations = a}) . _Default . _Coerce; --- | The ID of the 'RestApi' you want to update.+-- | The string identifier of the associated 'RestApi' . uraRestAPIId :: Lens' UpdateRestAPI Text uraRestAPIId = lens _uraRestAPIId (\ s a -> s{_uraRestAPIId = a}); @@ -89,9 +89,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateRestAPI+instance Hashable UpdateRestAPI where -instance NFData UpdateRestAPI+instance NFData UpdateRestAPI where  instance ToHeaders UpdateRestAPI where         toHeaders
gen/Network/AWS/APIGateway/UpdateStage.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateStage--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -49,12 +49,12 @@     , sDescription     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | Requests Amazon API Gateway to change information about a 'Stage' resource. --@@ -62,18 +62,19 @@ -- -- /See:/ 'updateStage' smart constructor. data UpdateStage = UpdateStage'-    { _usPatchOperations :: !(Maybe [PatchOperation])-    , _usRestAPIId       :: !Text-    , _usStageName       :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _usPatchOperations :: !(Maybe [PatchOperation])+  , _usRestAPIId       :: !Text+  , _usStageName       :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateStage' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'usPatchOperations' - A list of update operations to be applied to the specified resource and in the order specified in this list. ----- * 'usRestAPIId' - The identifier of the 'RestApi' resource for the 'Stage' resource to change information about.+-- * 'usRestAPIId' - The string identifier of the associated 'RestApi' . -- -- * 'usStageName' - The name of the 'Stage' resource to change information about. updateStage@@ -81,17 +82,18 @@     -> Text -- ^ 'usStageName'     -> UpdateStage updateStage pRestAPIId_ pStageName_ =-    UpdateStage'-    { _usPatchOperations = Nothing-    , _usRestAPIId = pRestAPIId_-    , _usStageName = pStageName_-    }+  UpdateStage'+  { _usPatchOperations = Nothing+  , _usRestAPIId = pRestAPIId_+  , _usStageName = pStageName_+  } + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. usPatchOperations :: Lens' UpdateStage [PatchOperation] usPatchOperations = lens _usPatchOperations (\ s a -> s{_usPatchOperations = a}) . _Default . _Coerce; --- | The identifier of the 'RestApi' resource for the 'Stage' resource to change information about.+-- | The string identifier of the associated 'RestApi' . usRestAPIId :: Lens' UpdateStage Text usRestAPIId = lens _usRestAPIId (\ s a -> s{_usRestAPIId = a}); @@ -104,9 +106,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateStage+instance Hashable UpdateStage where -instance NFData UpdateStage+instance NFData UpdateStage where  instance ToHeaders UpdateStage where         toHeaders
gen/Network/AWS/APIGateway/UpdateUsage.hs view
@@ -12,13 +12,13 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateUsage--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Grants a temporary extension to the reamining quota of a usage plan associated with a specified API key.+-- Grants a temporary extension to the remaining quota of a usage plan associated with a specified API key. -- -- module Network.AWS.APIGateway.UpdateUsage@@ -42,24 +42,25 @@     , uPosition     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response --- | The PATCH request to grant a temporary extension to the reamining quota of a usage plan associated with a specified API key.+-- | The PATCH request to grant a temporary extension to the remaining quota of a usage plan associated with a specified API key. -- -- -- -- /See:/ 'updateUsage' smart constructor. data UpdateUsage = UpdateUsage'-    { _uuPatchOperations :: !(Maybe [PatchOperation])-    , _uuUsagePlanId     :: !Text-    , _uuKeyId           :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _uuPatchOperations :: !(Maybe [PatchOperation])+  , _uuUsagePlanId     :: !Text+  , _uuKeyId           :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateUsage' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -74,12 +75,13 @@     -> Text -- ^ 'uuKeyId'     -> UpdateUsage updateUsage pUsagePlanId_ pKeyId_ =-    UpdateUsage'-    { _uuPatchOperations = Nothing-    , _uuUsagePlanId = pUsagePlanId_-    , _uuKeyId = pKeyId_-    }+  UpdateUsage'+  { _uuPatchOperations = Nothing+  , _uuUsagePlanId = pUsagePlanId_+  , _uuKeyId = pKeyId_+  } + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. uuPatchOperations :: Lens' UpdateUsage [PatchOperation] uuPatchOperations = lens _uuPatchOperations (\ s a -> s{_uuPatchOperations = a}) . _Default . _Coerce;@@ -97,9 +99,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateUsage+instance Hashable UpdateUsage where -instance NFData UpdateUsage+instance NFData UpdateUsage where  instance ToHeaders UpdateUsage where         toHeaders
gen/Network/AWS/APIGateway/UpdateUsagePlan.hs view
@@ -12,9 +12,9 @@  -- | -- Module      : Network.AWS.APIGateway.UpdateUsagePlan--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --@@ -43,12 +43,12 @@     , upProductCode     ) where -import           Network.AWS.APIGateway.Types-import           Network.AWS.APIGateway.Types.Product-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Request-import           Network.AWS.Response+import Network.AWS.APIGateway.Types+import Network.AWS.APIGateway.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response  -- | The PATCH request to update a usage plan of a given plan Id. --@@ -56,10 +56,11 @@ -- -- /See:/ 'updateUsagePlan' smart constructor. data UpdateUsagePlan = UpdateUsagePlan'-    { _uupPatchOperations :: !(Maybe [PatchOperation])-    , _uupUsagePlanId     :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)+  { _uupPatchOperations :: !(Maybe [PatchOperation])+  , _uupUsagePlanId     :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'UpdateUsagePlan' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -71,11 +72,10 @@     :: Text -- ^ 'uupUsagePlanId'     -> UpdateUsagePlan updateUsagePlan pUsagePlanId_ =-    UpdateUsagePlan'-    { _uupPatchOperations = Nothing-    , _uupUsagePlanId = pUsagePlanId_-    }+  UpdateUsagePlan'+  {_uupPatchOperations = Nothing, _uupUsagePlanId = pUsagePlanId_} + -- | A list of update operations to be applied to the specified resource and in the order specified in this list. uupPatchOperations :: Lens' UpdateUsagePlan [PatchOperation] uupPatchOperations = lens _uupPatchOperations (\ s a -> s{_uupPatchOperations = a}) . _Default . _Coerce;@@ -89,9 +89,9 @@         request = patchJSON apiGateway         response = receiveJSON (\ s h x -> eitherParseJSON x) -instance Hashable UpdateUsagePlan+instance Hashable UpdateUsagePlan where -instance NFData UpdateUsagePlan+instance NFData UpdateUsagePlan where  instance ToHeaders UpdateUsagePlan where         toHeaders
gen/Network/AWS/APIGateway/Waiters.hs view
@@ -7,15 +7,15 @@  -- | -- Module      : Network.AWS.APIGateway.Waiters--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- module Network.AWS.APIGateway.Waiters where -import           Network.AWS.APIGateway.Types-import           Network.AWS.Lens-import           Network.AWS.Prelude-import           Network.AWS.Waiter+import Network.AWS.APIGateway.Types+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Waiter
test/Main.hs view
@@ -2,9 +2,9 @@  -- | -- Module      : Main--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) --
test/Test/AWS/Gen/APIGateway.hs view
@@ -5,20 +5,20 @@  -- | -- Module      : Test.AWS.Gen.APIGateway--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2017 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) -- module Test.AWS.Gen.APIGateway where  import Data.Proxy+import Network.AWS.APIGateway+import Test.AWS.APIGateway.Internal import Test.AWS.Fixture import Test.AWS.Prelude import Test.Tasty-import Network.AWS.APIGateway-import Test.AWS.APIGateway.Internal  -- Auto-generated: the actual test selection needs to be manually placed into -- the top-level so that real test data can be incrementally added.@@ -37,6 +37,12 @@ --         , requestGetDeployment $ --             getDeployment --+--         , requestDeleteGatewayResponse $+--             deleteGatewayResponse+--+--         , requestUpdateGatewayResponse $+--             updateGatewayResponse+-- --         , requestCreateUsagePlan $ --             createUsagePlan --@@ -46,6 +52,12 @@ --         , requestGetClientCertificate $ --             getClientCertificate --+--         , requestPutGatewayResponse $+--             putGatewayResponse+--+--         , requestGetSDKType $+--             getSDKType+-- --         , requestGetMethodResponse $ --             getMethodResponse --@@ -55,6 +67,9 @@ --         , requestGetBasePathMapping $ --             getBasePathMapping --+--         , requestGetRequestValidators $+--             getRequestValidators+-- --         , requestPutMethodResponse $ --             putMethodResponse --@@ -112,6 +127,9 @@ --         , requestUpdateResource $ --             updateResource --+--         , requestCreateRequestValidator $+--             createRequestValidator+-- --         , requestImportDocumentationParts $ --             importDocumentationParts --@@ -130,6 +148,9 @@ --         , requestFlushStageAuthorizersCache $ --             flushStageAuthorizersCache --+--         , requestGetGatewayResponses $+--             getGatewayResponses+-- --         , requestDeleteModel $ --             deleteModel --@@ -175,6 +196,9 @@ --         , requestTestInvokeMethod $ --             testInvokeMethod --+--         , requestGetRequestValidator $+--             getRequestValidator+-- --         , requestGetDomainName $ --             getDomainName --@@ -268,6 +292,9 @@ --         , requestUpdateClientCertificate $ --             updateClientCertificate --+--         , requestGetGatewayResponse $+--             getGatewayResponse+-- --         , requestCreateUsagePlanKey $ --             createUsagePlanKey --@@ -310,6 +337,15 @@ --         , requestUpdateMethod $ --             updateMethod --+--         , requestUpdateRequestValidator $+--             updateRequestValidator+--+--         , requestDeleteRequestValidator $+--             deleteRequestValidator+--+--         , requestGetSDKTypes $+--             getSDKTypes+-- --         , requestGetClientCertificates $ --             getClientCertificates --@@ -340,6 +376,12 @@ --         , responseGetDeployment $ --             deployment --+--         , responseDeleteGatewayResponse $+--             deleteGatewayResponseResponse+--+--         , responseUpdateGatewayResponse $+--             gatewayResponse+-- --         , responseCreateUsagePlan $ --             usagePlan --@@ -349,6 +391,12 @@ --         , responseGetClientCertificate $ --             clientCertificate --+--         , responsePutGatewayResponse $+--             gatewayResponse+--+--         , responseGetSDKType $+--             sdkType+-- --         , responseGetMethodResponse $ --             methodResponse --@@ -358,6 +406,9 @@ --         , responseGetBasePathMapping $ --             basePathMapping --+--         , responseGetRequestValidators $+--             getRequestValidatorsResponse+-- --         , responsePutMethodResponse $ --             methodResponse --@@ -415,6 +466,9 @@ --         , responseUpdateResource $ --             resource --+--         , responseCreateRequestValidator $+--             requestValidator+-- --         , responseImportDocumentationParts $ --             importDocumentationPartsResponse --@@ -433,6 +487,9 @@ --         , responseFlushStageAuthorizersCache $ --             flushStageAuthorizersCacheResponse --+--         , responseGetGatewayResponses $+--             getGatewayResponsesResponse+-- --         , responseDeleteModel $ --             deleteModelResponse --@@ -478,6 +535,9 @@ --         , responseTestInvokeMethod $ --             testInvokeMethodResponse --+--         , responseGetRequestValidator $+--             requestValidator+-- --         , responseGetDomainName $ --             domainName --@@ -571,6 +631,9 @@ --         , responseUpdateClientCertificate $ --             clientCertificate --+--         , responseGetGatewayResponse $+--             gatewayResponse+-- --         , responseCreateUsagePlanKey $ --             usagePlanKey --@@ -613,6 +676,15 @@ --         , responseUpdateMethod $ --             method --+--         , responseUpdateRequestValidator $+--             requestValidator+--+--         , responseDeleteRequestValidator $+--             deleteRequestValidatorResponse+--+--         , responseGetSDKTypes $+--             getSDKTypesResponse+-- --         , responseGetClientCertificates $ --             getClientCertificatesResponse --@@ -651,6 +723,16 @@     "GetDeployment"     "fixture/GetDeployment.yaml" +requestDeleteGatewayResponse :: DeleteGatewayResponse -> TestTree+requestDeleteGatewayResponse = req+    "DeleteGatewayResponse"+    "fixture/DeleteGatewayResponse.yaml"++requestUpdateGatewayResponse :: UpdateGatewayResponse -> TestTree+requestUpdateGatewayResponse = req+    "UpdateGatewayResponse"+    "fixture/UpdateGatewayResponse.yaml"+ requestCreateUsagePlan :: CreateUsagePlan -> TestTree requestCreateUsagePlan = req     "CreateUsagePlan"@@ -666,6 +748,16 @@     "GetClientCertificate"     "fixture/GetClientCertificate.yaml" +requestPutGatewayResponse :: PutGatewayResponse -> TestTree+requestPutGatewayResponse = req+    "PutGatewayResponse"+    "fixture/PutGatewayResponse.yaml"++requestGetSDKType :: GetSDKType -> TestTree+requestGetSDKType = req+    "GetSDKType"+    "fixture/GetSDKType.yaml"+ requestGetMethodResponse :: GetMethodResponse -> TestTree requestGetMethodResponse = req     "GetMethodResponse"@@ -681,6 +773,11 @@     "GetBasePathMapping"     "fixture/GetBasePathMapping.yaml" +requestGetRequestValidators :: GetRequestValidators -> TestTree+requestGetRequestValidators = req+    "GetRequestValidators"+    "fixture/GetRequestValidators.yaml"+ requestPutMethodResponse :: PutMethodResponse -> TestTree requestPutMethodResponse = req     "PutMethodResponse"@@ -776,6 +873,11 @@     "UpdateResource"     "fixture/UpdateResource.yaml" +requestCreateRequestValidator :: CreateRequestValidator -> TestTree+requestCreateRequestValidator = req+    "CreateRequestValidator"+    "fixture/CreateRequestValidator.yaml"+ requestImportDocumentationParts :: ImportDocumentationParts -> TestTree requestImportDocumentationParts = req     "ImportDocumentationParts"@@ -806,6 +908,11 @@     "FlushStageAuthorizersCache"     "fixture/FlushStageAuthorizersCache.yaml" +requestGetGatewayResponses :: GetGatewayResponses -> TestTree+requestGetGatewayResponses = req+    "GetGatewayResponses"+    "fixture/GetGatewayResponses.yaml"+ requestDeleteModel :: DeleteModel -> TestTree requestDeleteModel = req     "DeleteModel"@@ -881,6 +988,11 @@     "TestInvokeMethod"     "fixture/TestInvokeMethod.yaml" +requestGetRequestValidator :: GetRequestValidator -> TestTree+requestGetRequestValidator = req+    "GetRequestValidator"+    "fixture/GetRequestValidator.yaml"+ requestGetDomainName :: GetDomainName -> TestTree requestGetDomainName = req     "GetDomainName"@@ -1036,6 +1148,11 @@     "UpdateClientCertificate"     "fixture/UpdateClientCertificate.yaml" +requestGetGatewayResponse :: GetGatewayResponse -> TestTree+requestGetGatewayResponse = req+    "GetGatewayResponse"+    "fixture/GetGatewayResponse.yaml"+ requestCreateUsagePlanKey :: CreateUsagePlanKey -> TestTree requestCreateUsagePlanKey = req     "CreateUsagePlanKey"@@ -1106,6 +1223,21 @@     "UpdateMethod"     "fixture/UpdateMethod.yaml" +requestUpdateRequestValidator :: UpdateRequestValidator -> TestTree+requestUpdateRequestValidator = req+    "UpdateRequestValidator"+    "fixture/UpdateRequestValidator.yaml"++requestDeleteRequestValidator :: DeleteRequestValidator -> TestTree+requestDeleteRequestValidator = req+    "DeleteRequestValidator"+    "fixture/DeleteRequestValidator.yaml"++requestGetSDKTypes :: GetSDKTypes -> TestTree+requestGetSDKTypes = req+    "GetSDKTypes"+    "fixture/GetSDKTypes.yaml"+ requestGetClientCertificates :: GetClientCertificates -> TestTree requestGetClientCertificates = req     "GetClientCertificates"@@ -1159,6 +1291,20 @@     apiGateway     (Proxy :: Proxy GetDeployment) +responseDeleteGatewayResponse :: DeleteGatewayResponseResponse -> TestTree+responseDeleteGatewayResponse = res+    "DeleteGatewayResponseResponse"+    "fixture/DeleteGatewayResponseResponse.proto"+    apiGateway+    (Proxy :: Proxy DeleteGatewayResponse)++responseUpdateGatewayResponse :: GatewayResponse -> TestTree+responseUpdateGatewayResponse = res+    "UpdateGatewayResponseResponse"+    "fixture/UpdateGatewayResponseResponse.proto"+    apiGateway+    (Proxy :: Proxy UpdateGatewayResponse)+ responseCreateUsagePlan :: UsagePlan -> TestTree responseCreateUsagePlan = res     "CreateUsagePlanResponse"@@ -1180,6 +1326,20 @@     apiGateway     (Proxy :: Proxy GetClientCertificate) +responsePutGatewayResponse :: GatewayResponse -> TestTree+responsePutGatewayResponse = res+    "PutGatewayResponseResponse"+    "fixture/PutGatewayResponseResponse.proto"+    apiGateway+    (Proxy :: Proxy PutGatewayResponse)++responseGetSDKType :: SDKType -> TestTree+responseGetSDKType = res+    "GetSDKTypeResponse"+    "fixture/GetSDKTypeResponse.proto"+    apiGateway+    (Proxy :: Proxy GetSDKType)+ responseGetMethodResponse :: MethodResponse -> TestTree responseGetMethodResponse = res     "GetMethodResponseResponse"@@ -1201,6 +1361,13 @@     apiGateway     (Proxy :: Proxy GetBasePathMapping) +responseGetRequestValidators :: GetRequestValidatorsResponse -> TestTree+responseGetRequestValidators = res+    "GetRequestValidatorsResponse"+    "fixture/GetRequestValidatorsResponse.proto"+    apiGateway+    (Proxy :: Proxy GetRequestValidators)+ responsePutMethodResponse :: MethodResponse -> TestTree responsePutMethodResponse = res     "PutMethodResponseResponse"@@ -1334,6 +1501,13 @@     apiGateway     (Proxy :: Proxy UpdateResource) +responseCreateRequestValidator :: RequestValidator -> TestTree+responseCreateRequestValidator = res+    "CreateRequestValidatorResponse"+    "fixture/CreateRequestValidatorResponse.proto"+    apiGateway+    (Proxy :: Proxy CreateRequestValidator)+ responseImportDocumentationParts :: ImportDocumentationPartsResponse -> TestTree responseImportDocumentationParts = res     "ImportDocumentationPartsResponse"@@ -1376,6 +1550,13 @@     apiGateway     (Proxy :: Proxy FlushStageAuthorizersCache) +responseGetGatewayResponses :: GetGatewayResponsesResponse -> TestTree+responseGetGatewayResponses = res+    "GetGatewayResponsesResponse"+    "fixture/GetGatewayResponsesResponse.proto"+    apiGateway+    (Proxy :: Proxy GetGatewayResponses)+ responseDeleteModel :: DeleteModelResponse -> TestTree responseDeleteModel = res     "DeleteModelResponse"@@ -1481,6 +1662,13 @@     apiGateway     (Proxy :: Proxy TestInvokeMethod) +responseGetRequestValidator :: RequestValidator -> TestTree+responseGetRequestValidator = res+    "GetRequestValidatorResponse"+    "fixture/GetRequestValidatorResponse.proto"+    apiGateway+    (Proxy :: Proxy GetRequestValidator)+ responseGetDomainName :: DomainName -> TestTree responseGetDomainName = res     "GetDomainNameResponse"@@ -1698,6 +1886,13 @@     apiGateway     (Proxy :: Proxy UpdateClientCertificate) +responseGetGatewayResponse :: GatewayResponse -> TestTree+responseGetGatewayResponse = res+    "GetGatewayResponseResponse"+    "fixture/GetGatewayResponseResponse.proto"+    apiGateway+    (Proxy :: Proxy GetGatewayResponse)+ responseCreateUsagePlanKey :: UsagePlanKey -> TestTree responseCreateUsagePlanKey = res     "CreateUsagePlanKeyResponse"@@ -1795,6 +1990,27 @@     "fixture/UpdateMethodResponse.proto"     apiGateway     (Proxy :: Proxy UpdateMethod)++responseUpdateRequestValidator :: RequestValidator -> TestTree+responseUpdateRequestValidator = res+    "UpdateRequestValidatorResponse"+    "fixture/UpdateRequestValidatorResponse.proto"+    apiGateway+    (Proxy :: Proxy UpdateRequestValidator)++responseDeleteRequestValidator :: DeleteRequestValidatorResponse -> TestTree+responseDeleteRequestValidator = res+    "DeleteRequestValidatorResponse"+    "fixture/DeleteRequestValidatorResponse.proto"+    apiGateway+    (Proxy :: Proxy DeleteRequestValidator)++responseGetSDKTypes :: GetSDKTypesResponse -> TestTree+responseGetSDKTypes = res+    "GetSDKTypesResponse"+    "fixture/GetSDKTypesResponse.proto"+    apiGateway+    (Proxy :: Proxy GetSDKTypes)  responseGetClientCertificates :: GetClientCertificatesResponse -> TestTree responseGetClientCertificates = res