Interface CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty.Jsii$Proxy
- Enclosing class:
- CfnResponseHeadersPolicy
@Stability(Stable)
public static interface CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty
extends software.amazon.jsii.JsiiSerializable
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;
AccessControlAllowOriginsProperty accessControlAllowOriginsProperty = AccessControlAllowOriginsProperty.builder()
.items(List.of("items"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnResponseHeadersPolicy.AccessControlAllowOriginsProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getItems
The list of origins (domain names).You can specify
*to allow all origins. -
builder
@Stability(Stable) static CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty.Builder builder()
-