Struct aws_sdk_s3::model::CorsConfiguration
source · #[non_exhaustive]pub struct CorsConfiguration { /* private fields */ }
Expand description
Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see Enabling Cross-Origin Resource Sharing in the Amazon S3 User Guide.
Implementations§
source§impl CorsConfiguration
impl CorsConfiguration
sourcepub fn cors_rules(&self) -> Option<&[CorsRule]>
pub fn cors_rules(&self) -> Option<&[CorsRule]>
A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration.
source§impl CorsConfiguration
impl CorsConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CorsConfiguration
.
Trait Implementations§
source§impl Clone for CorsConfiguration
impl Clone for CorsConfiguration
source§fn clone(&self) -> CorsConfiguration
fn clone(&self) -> CorsConfiguration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more