Struct aws_sdk_cloudfront::model::response_headers_policy_cors_config::Builder [−][src]
#[non_exhaustive]pub struct Builder { /* fields omitted */ }
Expand description
A builder for ResponseHeadersPolicyCorsConfig
Implementations
pub fn access_control_allow_origins(
self,
input: ResponseHeadersPolicyAccessControlAllowOrigins
) -> Self
pub fn access_control_allow_origins(
self,
input: ResponseHeadersPolicyAccessControlAllowOrigins
) -> Self
A list of origins (domain names) that CloudFront can use as the value for the
Access-Control-Allow-Origin
HTTP response header.
For more information about the Access-Control-Allow-Origin
HTTP response
header, see Access-Control-Allow-Origin in the MDN Web Docs.
pub fn set_access_control_allow_origins(
self,
input: Option<ResponseHeadersPolicyAccessControlAllowOrigins>
) -> Self
pub fn set_access_control_allow_origins(
self,
input: Option<ResponseHeadersPolicyAccessControlAllowOrigins>
) -> Self
A list of origins (domain names) that CloudFront can use as the value for the
Access-Control-Allow-Origin
HTTP response header.
For more information about the Access-Control-Allow-Origin
HTTP response
header, see Access-Control-Allow-Origin in the MDN Web Docs.
pub fn access_control_allow_headers(
self,
input: ResponseHeadersPolicyAccessControlAllowHeaders
) -> Self
pub fn access_control_allow_headers(
self,
input: ResponseHeadersPolicyAccessControlAllowHeaders
) -> Self
A list of HTTP header names that CloudFront includes as values for the
Access-Control-Allow-Headers
HTTP response header.
For more information about the Access-Control-Allow-Headers
HTTP response
header, see Access-Control-Allow-Headers in the MDN Web Docs.
pub fn set_access_control_allow_headers(
self,
input: Option<ResponseHeadersPolicyAccessControlAllowHeaders>
) -> Self
pub fn set_access_control_allow_headers(
self,
input: Option<ResponseHeadersPolicyAccessControlAllowHeaders>
) -> Self
A list of HTTP header names that CloudFront includes as values for the
Access-Control-Allow-Headers
HTTP response header.
For more information about the Access-Control-Allow-Headers
HTTP response
header, see Access-Control-Allow-Headers in the MDN Web Docs.
pub fn access_control_allow_methods(
self,
input: ResponseHeadersPolicyAccessControlAllowMethods
) -> Self
pub fn access_control_allow_methods(
self,
input: ResponseHeadersPolicyAccessControlAllowMethods
) -> Self
A list of HTTP methods that CloudFront includes as values for the
Access-Control-Allow-Methods
HTTP response header.
For more information about the Access-Control-Allow-Methods
HTTP response
header, see Access-Control-Allow-Methods in the MDN Web Docs.
pub fn set_access_control_allow_methods(
self,
input: Option<ResponseHeadersPolicyAccessControlAllowMethods>
) -> Self
pub fn set_access_control_allow_methods(
self,
input: Option<ResponseHeadersPolicyAccessControlAllowMethods>
) -> Self
A list of HTTP methods that CloudFront includes as values for the
Access-Control-Allow-Methods
HTTP response header.
For more information about the Access-Control-Allow-Methods
HTTP response
header, see Access-Control-Allow-Methods in the MDN Web Docs.
A Boolean that CloudFront uses as the value for the Access-Control-Allow-Credentials
HTTP response header.
For more information about the Access-Control-Allow-Credentials
HTTP
response header, see Access-Control-Allow-Credentials in the MDN Web Docs.
A Boolean that CloudFront uses as the value for the Access-Control-Allow-Credentials
HTTP response header.
For more information about the Access-Control-Allow-Credentials
HTTP
response header, see Access-Control-Allow-Credentials in the MDN Web Docs.
pub fn access_control_expose_headers(
self,
input: ResponseHeadersPolicyAccessControlExposeHeaders
) -> Self
pub fn access_control_expose_headers(
self,
input: ResponseHeadersPolicyAccessControlExposeHeaders
) -> Self
A list of HTTP headers that CloudFront includes as values for the
Access-Control-Expose-Headers
HTTP response header.
For more information about the Access-Control-Expose-Headers
HTTP
response header, see Access-Control-Expose-Headers in the MDN Web Docs.
pub fn set_access_control_expose_headers(
self,
input: Option<ResponseHeadersPolicyAccessControlExposeHeaders>
) -> Self
pub fn set_access_control_expose_headers(
self,
input: Option<ResponseHeadersPolicyAccessControlExposeHeaders>
) -> Self
A list of HTTP headers that CloudFront includes as values for the
Access-Control-Expose-Headers
HTTP response header.
For more information about the Access-Control-Expose-Headers
HTTP
response header, see Access-Control-Expose-Headers in the MDN Web Docs.
A number that CloudFront uses as the value for the Access-Control-Max-Age
HTTP
response header.
For more information about the Access-Control-Max-Age
HTTP response
header, see Access-Control-Max-Age in the MDN Web Docs.
A number that CloudFront uses as the value for the Access-Control-Max-Age
HTTP
response header.
For more information about the Access-Control-Max-Age
HTTP response
header, see Access-Control-Max-Age in the MDN Web Docs.
A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the ones specified in this response headers policy.
A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the ones specified in this response headers policy.
Consumes the builder and constructs a ResponseHeadersPolicyCorsConfig
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