libZSservicesZSamazonka-securityhubZSamazonka-securityhub
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SecurityHub.Types.AwsCorsConfiguration

Description

 
Synopsis

Documentation

data AwsCorsConfiguration Source #

Contains the cross-origin resource sharing (CORS) configuration for the API. CORS is only supported for HTTP APIs.

See: newAwsCorsConfiguration smart constructor.

Constructors

AwsCorsConfiguration' 

Fields

Instances

Instances details
Eq AwsCorsConfiguration Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCorsConfiguration

Read AwsCorsConfiguration Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCorsConfiguration

Show AwsCorsConfiguration Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCorsConfiguration

Generic AwsCorsConfiguration Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCorsConfiguration

Associated Types

type Rep AwsCorsConfiguration :: Type -> Type #

NFData AwsCorsConfiguration Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCorsConfiguration

Methods

rnf :: AwsCorsConfiguration -> () #

Hashable AwsCorsConfiguration Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCorsConfiguration

ToJSON AwsCorsConfiguration Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCorsConfiguration

FromJSON AwsCorsConfiguration Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCorsConfiguration

type Rep AwsCorsConfiguration Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCorsConfiguration

type Rep AwsCorsConfiguration = D1 ('MetaData "AwsCorsConfiguration" "Amazonka.SecurityHub.Types.AwsCorsConfiguration" "libZSservicesZSamazonka-securityhubZSamazonka-securityhub" 'False) (C1 ('MetaCons "AwsCorsConfiguration'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maxAge") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "allowMethods") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "allowHeaders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))) :*: (S1 ('MetaSel ('Just "exposeHeaders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "allowOrigins") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "allowCredentials") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))))

newAwsCorsConfiguration :: AwsCorsConfiguration Source #

Create a value of AwsCorsConfiguration 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:maxAge:AwsCorsConfiguration', awsCorsConfiguration_maxAge - The number of seconds for which the browser caches preflight request results.

$sel:allowMethods:AwsCorsConfiguration', awsCorsConfiguration_allowMethods - The allowed methods for CORS requests.

$sel:allowHeaders:AwsCorsConfiguration', awsCorsConfiguration_allowHeaders - The allowed headers for CORS requests.

$sel:exposeHeaders:AwsCorsConfiguration', awsCorsConfiguration_exposeHeaders - The exposed headers for CORS requests.

$sel:allowOrigins:AwsCorsConfiguration', awsCorsConfiguration_allowOrigins - The allowed origins for CORS requests.

$sel:allowCredentials:AwsCorsConfiguration', awsCorsConfiguration_allowCredentials - Indicates whether the CORS request includes credentials.

awsCorsConfiguration_maxAge :: Lens' AwsCorsConfiguration (Maybe Int) Source #

The number of seconds for which the browser caches preflight request results.

awsCorsConfiguration_allowMethods :: Lens' AwsCorsConfiguration (Maybe [Text]) Source #

The allowed methods for CORS requests.

awsCorsConfiguration_allowHeaders :: Lens' AwsCorsConfiguration (Maybe [Text]) Source #

The allowed headers for CORS requests.

awsCorsConfiguration_exposeHeaders :: Lens' AwsCorsConfiguration (Maybe [Text]) Source #

The exposed headers for CORS requests.

awsCorsConfiguration_allowOrigins :: Lens' AwsCorsConfiguration (Maybe [Text]) Source #

The allowed origins for CORS requests.

awsCorsConfiguration_allowCredentials :: Lens' AwsCorsConfiguration (Maybe Bool) Source #

Indicates whether the CORS request includes credentials.