BucketV2CorsRule class

Constructors

BucketV2CorsRule({Input<List<String>?>? allowedHeaders, required Input<List<String>> allowedMethods, required Input<List<String>> allowedOrigins, Input<List<String>?>? exposeHeaders, Input<int?>? maxAgeSeconds})
Creates a new BucketV2CorsRule. allowedHeaders List of headers allowed. allowedMethods One or more HTTP methods that you allow the origin to execute. Can be GET, PUT, POST, DELETE or HEAD. allowedOrigins One or more origins you want customers to be able to access the bucket from. exposeHeaders One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object). maxAgeSeconds Time in seconds that browser can cache the response for a preflight request.
const
BucketV2CorsRule.fromMap(Map<String, dynamic> map)
factory

Properties

allowedHeaders → Input<List<String>?>?
List of headers allowed.
final
allowedMethods → Input<List<String>>
One or more HTTP methods that you allow the origin to execute. Can be GET, PUT, POST, DELETE or HEAD.
final
allowedOrigins → Input<List<String>>
One or more origins you want customers to be able to access the bucket from.
final
exposeHeaders → Input<List<String>?>?
One or more 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
maxAgeSeconds → Input<int?>?
Time in seconds that browser can cache the response for a preflight request.
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