Interface CfnResponseHeadersPolicyPropsMixin.AccessControlAllowOriginsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResponseHeadersPolicyPropsMixin.AccessControlAllowOriginsProperty.Jsii$Proxy
- Enclosing class:
CfnResponseHeadersPolicyPropsMixin
@Stability(Stable)
public static interface CfnResponseHeadersPolicyPropsMixin.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.cfnpropertymixins.services.cloudfront.*;
AccessControlAllowOriginsProperty accessControlAllowOriginsProperty = AccessControlAllowOriginsProperty.builder()
.items(List.of("items"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnResponseHeadersPolicyPropsMixin.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.- See Also:
-
builder
@Stability(Stable) static CfnResponseHeadersPolicyPropsMixin.AccessControlAllowOriginsProperty.Builder builder()
-