Struct aws_sdk_s3::model::cors_rule::Builder [−][src]
#[non_exhaustive]pub struct Builder { /* fields omitted */ }
Expand description
A builder for CorsRule
Implementations
Unique identifier for the rule. The value cannot be longer than 255 characters.
Unique identifier for the rule. The value cannot be longer than 255 characters.
Appends an item to allowed_headers
.
To override the contents of this collection use set_allowed_headers
.
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.
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.
Appends an item to allowed_methods
.
To override the contents of this collection use set_allowed_methods
.
An HTTP method that you allow the origin to execute. Valid values are GET
,
PUT
, HEAD
, POST
, and DELETE
.
An HTTP method that you allow the origin to execute. Valid values are GET
,
PUT
, HEAD
, POST
, and DELETE
.
Appends an item to allowed_origins
.
To override the contents of this collection use set_allowed_origins
.
One or more origins you want customers to be able to access the bucket from.
One or more origins you want customers to be able to access the bucket from.
Appends an item to expose_headers
.
To override the contents of this collection use set_expose_headers
.
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).
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).
The time in seconds that your browser is to cache the preflight response for the specified resource.
The time in seconds that your browser is to cache the preflight response for the specified resource.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl UnwindSafe for Builder
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more