BucketCorsConfigurationCorsRule class

Constructors

BucketCorsConfigurationCorsRule({Input<List<String>?>? allowedHeaders, required Input<List<String>> allowedMethods, required Input<List<String>> allowedOrigins, Input<List<String>?>? exposeHeaders, 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

allowedHeaders → Input<List<String>?>?
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
exposeHeaders → Input<List<String>?>?
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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited