Class: Aws::SecurityHub::Types::AwsCorsConfiguration
- Inherits:
-
Struct
- Object
- Struct
- Aws::SecurityHub::Types::AwsCorsConfiguration
- Includes:
- Aws::Structure
- Defined in:
- lib/aws-sdk-securityhub/types.rb
Overview
Contains the cross-origin resource sharing (CORS) configuration for the API. CORS is only supported for HTTP APIs.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#allow_credentials ⇒ Boolean
Indicates whether the CORS request includes credentials.
-
#allow_headers ⇒ Array<String>
The allowed headers for CORS requests.
-
#allow_methods ⇒ Array<String>
The allowed methods for CORS requests.
-
#allow_origins ⇒ Array<String>
The allowed origins for CORS requests.
-
#expose_headers ⇒ Array<String>
The exposed headers for CORS requests.
-
#max_age ⇒ Integer
The number of seconds for which the browser caches preflight request results.
Instance Attribute Details
#allow_credentials ⇒ Boolean
Indicates whether the CORS request includes credentials.
5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 |
# File 'lib/aws-sdk-securityhub/types.rb', line 5454 class AwsCorsConfiguration < Struct.new( :allow_origins, :allow_credentials, :expose_headers, :max_age, :allow_methods, :allow_headers) SENSITIVE = [] include Aws::Structure end |
#allow_headers ⇒ Array<String>
The allowed headers for CORS requests.
5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 |
# File 'lib/aws-sdk-securityhub/types.rb', line 5454 class AwsCorsConfiguration < Struct.new( :allow_origins, :allow_credentials, :expose_headers, :max_age, :allow_methods, :allow_headers) SENSITIVE = [] include Aws::Structure end |
#allow_methods ⇒ Array<String>
The allowed methods for CORS requests.
5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 |
# File 'lib/aws-sdk-securityhub/types.rb', line 5454 class AwsCorsConfiguration < Struct.new( :allow_origins, :allow_credentials, :expose_headers, :max_age, :allow_methods, :allow_headers) SENSITIVE = [] include Aws::Structure end |
#allow_origins ⇒ Array<String>
The allowed origins for CORS requests.
5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 |
# File 'lib/aws-sdk-securityhub/types.rb', line 5454 class AwsCorsConfiguration < Struct.new( :allow_origins, :allow_credentials, :expose_headers, :max_age, :allow_methods, :allow_headers) SENSITIVE = [] include Aws::Structure end |
#expose_headers ⇒ Array<String>
The exposed headers for CORS requests.
5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 |
# File 'lib/aws-sdk-securityhub/types.rb', line 5454 class AwsCorsConfiguration < Struct.new( :allow_origins, :allow_credentials, :expose_headers, :max_age, :allow_methods, :allow_headers) SENSITIVE = [] include Aws::Structure end |
#max_age ⇒ Integer
The number of seconds for which the browser caches preflight request results.
5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 |
# File 'lib/aws-sdk-securityhub/types.rb', line 5454 class AwsCorsConfiguration < Struct.new( :allow_origins, :allow_credentials, :expose_headers, :max_age, :allow_methods, :allow_headers) SENSITIVE = [] include Aws::Structure end |