Cors

public struct Cors : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.

    Declaration

    Swift

    public let allowCredentials: Bool?
  • Represents a collection of allowed headers. Supported only for HTTP APIs.

    Declaration

    Swift

    public let allowHeaders: [String]?
  • Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.

    Declaration

    Swift

    public let allowMethods: [String]?
  • Represents a collection of allowed origins. Supported only for HTTP APIs.

    Declaration

    Swift

    public let allowOrigins: [String]?
  • Represents a collection of exposed headers. Supported only for HTTP APIs.

    Declaration

    Swift

    public let exposeHeaders: [String]?
  • The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.

    Declaration

    Swift

    public let maxAge: Int?
  • Undocumented

    Declaration

    Swift

    public init(allowCredentials: Bool? = nil, allowHeaders: [String]? = nil, allowMethods: [String]? = nil, allowOrigins: [String]? = nil, exposeHeaders: [String]? = nil, maxAge: Int? = nil)
  • Declaration

    Swift

    public func validate(name: String) throws