BucketCorsConfigurationCorsRule class
Constructors
-
BucketCorsConfigurationCorsRule({required Input<List<String>> allowedMethods, required Input<List<String>> allowedOrigins, Input<String?>? id, Input<int?>? maxAgeSeconds})
-
Creates a new BucketCorsConfigurationCorsRule.
allowedHeaders Set of Headers that are specified in the Access-Control-Request-Headers header.
allowedMethods Set of HTTP methods that you allow the origin to execute. Valid values are GET, PUT, HEAD, POST, and DELETE.
allowedOrigins Set of origins you want customers to be able to access the bucket from.
exposeHeaders Set of headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).
id Unique identifier for the rule. The value cannot be longer than 255 characters.
maxAgeSeconds Time in seconds that your browser is to cache the preflight response for the specified resource.
const
-
BucketCorsConfigurationCorsRule.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
Set of Headers that are specified in the
Access-Control-Request-Headers header.
final
-
allowedMethods
→ Input<List<String>>
-
Set of HTTP methods that you allow the origin to execute. Valid values are
GET, PUT, HEAD, POST, and DELETE.
final
-
allowedOrigins
→ Input<List<String>>
-
Set of origins you want customers to be able to access the bucket from.
final
-
Set of headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript
XMLHttpRequest object).
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
id
→ Input<String?>?
-
Unique identifier for the rule. The value cannot be longer than 255 characters.
final
-
maxAgeSeconds
→ Input<int?>?
-
Time in seconds that your browser is to cache the preflight response for the specified resource.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited