Interface CfnContainer.CorsRuleProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnContainer.CorsRuleProperty.Jsii$Proxy
Enclosing class:
CfnContainer

@Stability(Stable) public static interface CfnContainer.CorsRuleProperty extends software.amazon.jsii.JsiiSerializable
A rule for a CORS policy.

You can add up to 100 rules to a CORS policy. If more than one rule applies, the service uses the first applicable rule listed.

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.mediastore.*;
 CorsRuleProperty corsRuleProperty = CorsRuleProperty.builder()
         .allowedHeaders(List.of("allowedHeaders"))
         .allowedMethods(List.of("allowedMethods"))
         .allowedOrigins(List.of("allowedOrigins"))
         .exposeHeaders(List.of("exposeHeaders"))
         .maxAgeSeconds(123)
         .build();
 

See Also: