Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data AwsCorsConfiguration = AwsCorsConfiguration' {
- maxAge :: Maybe Int
- allowMethods :: Maybe [Text]
- allowHeaders :: Maybe [Text]
- exposeHeaders :: Maybe [Text]
- allowOrigins :: Maybe [Text]
- allowCredentials :: Maybe Bool
- newAwsCorsConfiguration :: AwsCorsConfiguration
- awsCorsConfiguration_maxAge :: Lens' AwsCorsConfiguration (Maybe Int)
- awsCorsConfiguration_allowMethods :: Lens' AwsCorsConfiguration (Maybe [Text])
- awsCorsConfiguration_allowHeaders :: Lens' AwsCorsConfiguration (Maybe [Text])
- awsCorsConfiguration_exposeHeaders :: Lens' AwsCorsConfiguration (Maybe [Text])
- awsCorsConfiguration_allowOrigins :: Lens' AwsCorsConfiguration (Maybe [Text])
- awsCorsConfiguration_allowCredentials :: Lens' AwsCorsConfiguration (Maybe Bool)
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.
AwsCorsConfiguration' | |
|
Instances
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.