GetResponseHeadersPolicyCorsConfig class

Constructors

GetResponseHeadersPolicyCorsConfig({required Input<bool> accessControlAllowCredentials, required Input<List<GetResponseHeadersPolicyCorsConfigAccessControlAllowHeader>> accessControlAllowHeaders, required Input<List<GetResponseHeadersPolicyCorsConfigAccessControlAllowMethod>> accessControlAllowMethods, required Input<List<GetResponseHeadersPolicyCorsConfigAccessControlAllowOrigin>> accessControlAllowOrigins, required Input<List<GetResponseHeadersPolicyCorsConfigAccessControlExposeHeader>> accessControlExposeHeaders, required Input<int> accessControlMaxAgeSec, required Input<bool> originOverride})
Creates a new GetResponseHeadersPolicyCorsConfig. accessControlAllowCredentials A Boolean value that CloudFront uses as the value for the Access-Control-Allow-Credentials HTTP response header. accessControlAllowHeaders Object that contains an attribute items that contains a list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header. accessControlAllowMethods Object that contains an attribute items that contains a list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header. Valid values: GET | POST | OPTIONS | PUT | DELETE | HEAD | ALL accessControlAllowOrigins Object that contains an attribute items that contains a list of origins that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header. accessControlExposeHeaders Object that contains an attribute items that contains a list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP response header. accessControlMaxAgeSec A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header. originOverride Required.
const
GetResponseHeadersPolicyCorsConfig.fromMap(Map<String, dynamic> map)
factory

Properties

accessControlAllowCredentials → Input<bool>
A Boolean value that CloudFront uses as the value for the Access-Control-Allow-Credentials HTTP response header.
final
accessControlAllowHeaders → Input<List<GetResponseHeadersPolicyCorsConfigAccessControlAllowHeader>>
Object that contains an attribute items that contains a list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header.
final
accessControlAllowMethods → Input<List<GetResponseHeadersPolicyCorsConfigAccessControlAllowMethod>>
Object that contains an attribute items that contains a list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header. Valid values: GET | POST | OPTIONS | PUT | DELETE | HEAD | ALL
final
accessControlAllowOrigins → Input<List<GetResponseHeadersPolicyCorsConfigAccessControlAllowOrigin>>
Object that contains an attribute items that contains a list of origins that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header.
final
accessControlExposeHeaders → Input<List<GetResponseHeadersPolicyCorsConfigAccessControlExposeHeader>>
Object that contains an attribute items that contains a list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP response header.
final
accessControlMaxAgeSec → Input<int>
A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.
final
hashCode → int
The hash code for this object.
no setterinherited
originOverride → Input<bool>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited