amazonka-apigateway-2.0: Amazon API Gateway SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.APIGateway.Types.MethodSnapshot

Description

 
Synopsis

Documentation

data MethodSnapshot Source #

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

See: newMethodSnapshot smart constructor.

Constructors

MethodSnapshot' 

Fields

  • apiKeyRequired :: Maybe Bool

    Specifies whether the method requires a valid ApiKey.

  • authorizationType :: Maybe Text

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

Instances

Instances details
FromJSON MethodSnapshot Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSnapshot

Generic MethodSnapshot Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSnapshot

Associated Types

type Rep MethodSnapshot :: Type -> Type #

Read MethodSnapshot Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSnapshot

Show MethodSnapshot Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSnapshot

NFData MethodSnapshot Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSnapshot

Methods

rnf :: MethodSnapshot -> () #

Eq MethodSnapshot Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSnapshot

Hashable MethodSnapshot Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSnapshot

type Rep MethodSnapshot Source # 
Instance details

Defined in Amazonka.APIGateway.Types.MethodSnapshot

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

newMethodSnapshot :: MethodSnapshot Source #

Create a value of MethodSnapshot with all optional fields omitted.

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

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

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

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

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

Specifies whether the method requires a valid ApiKey.

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

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