Safe Haskell | None |
---|---|
Language | Haskell2010 |
Describes cross-origin access rules for the Amazon S3 Cors Configuration property.
- data S3CorsConfigurationRule = S3CorsConfigurationRule {
- _s3CorsConfigurationRuleAllowedHeaders :: Maybe [Val Text]
- _s3CorsConfigurationRuleAllowedMethods :: [Val Text]
- _s3CorsConfigurationRuleAllowedOrigins :: [Val Text]
- _s3CorsConfigurationRuleExposedHeaders :: Maybe [Val Text]
- _s3CorsConfigurationRuleId :: Maybe (Val Text)
- _s3CorsConfigurationRuleMaxAge :: Maybe (Val Integer')
- s3CorsConfigurationRule :: [Val Text] -> [Val Text] -> S3CorsConfigurationRule
- sccrAllowedHeaders :: Lens' S3CorsConfigurationRule (Maybe [Val Text])
- sccrAllowedMethods :: Lens' S3CorsConfigurationRule [Val Text]
- sccrAllowedOrigins :: Lens' S3CorsConfigurationRule [Val Text]
- sccrExposedHeaders :: Lens' S3CorsConfigurationRule (Maybe [Val Text])
- sccrId :: Lens' S3CorsConfigurationRule (Maybe (Val Text))
- sccrMaxAge :: Lens' S3CorsConfigurationRule (Maybe (Val Integer'))
Documentation
data S3CorsConfigurationRule Source #
Full data type definition for S3CorsConfigurationRule. See
s3CorsConfigurationRule
for a more convenient constructor.
s3CorsConfigurationRule Source #
Constructor for S3CorsConfigurationRule
containing required fields as
arguments.
sccrAllowedHeaders :: Lens' S3CorsConfigurationRule (Maybe [Val Text]) Source #
Headers that are specified in the Access-Control-Request-Headers header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.
sccrAllowedMethods :: Lens' S3CorsConfigurationRule [Val Text] Source #
An HTTP method that you allow the origin to execute. The valid values are GET, PUT, HEAD, POST, and DELETE.
sccrAllowedOrigins :: Lens' S3CorsConfigurationRule [Val Text] Source #
An origin that you allow to send cross-domain requests.
sccrExposedHeaders :: Lens' S3CorsConfigurationRule (Maybe [Val Text]) Source #
One or more headers in the response that are accessible to client applications (for example, from a JavaScript XMLHttpRequest object).
sccrId :: Lens' S3CorsConfigurationRule (Maybe (Val Text)) Source #
A unique identifier for this rule. The value cannot be more than 255 characters.
sccrMaxAge :: Lens' S3CorsConfigurationRule (Maybe (Val Integer')) Source #
The time in seconds that your browser is to cache the preflight response for the specified resource.