Class: Aws::SecurityHub::Types::AwsCorsConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-securityhub/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

Instance Attribute Details

#allow_credentialsBoolean

Indicates whether the CORS request includes credentials.

Returns:

  • (Boolean)


5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 5578

class AwsCorsConfiguration < Struct.new(
  :allow_origins,
  :allow_credentials,
  :expose_headers,
  :max_age,
  :allow_methods,
  :allow_headers)
  SENSITIVE = []
  include Aws::Structure
end

#allow_headersArray<String>

The allowed headers for CORS requests.

Returns:

  • (Array<String>)


5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 5578

class AwsCorsConfiguration < Struct.new(
  :allow_origins,
  :allow_credentials,
  :expose_headers,
  :max_age,
  :allow_methods,
  :allow_headers)
  SENSITIVE = []
  include Aws::Structure
end

#allow_methodsArray<String>

The allowed methods for CORS requests.

Returns:

  • (Array<String>)


5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 5578

class AwsCorsConfiguration < Struct.new(
  :allow_origins,
  :allow_credentials,
  :expose_headers,
  :max_age,
  :allow_methods,
  :allow_headers)
  SENSITIVE = []
  include Aws::Structure
end

#allow_originsArray<String>

The allowed origins for CORS requests.

Returns:

  • (Array<String>)


5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 5578

class AwsCorsConfiguration < Struct.new(
  :allow_origins,
  :allow_credentials,
  :expose_headers,
  :max_age,
  :allow_methods,
  :allow_headers)
  SENSITIVE = []
  include Aws::Structure
end

#expose_headersArray<String>

The exposed headers for CORS requests.

Returns:

  • (Array<String>)


5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 5578

class AwsCorsConfiguration < Struct.new(
  :allow_origins,
  :allow_credentials,
  :expose_headers,
  :max_age,
  :allow_methods,
  :allow_headers)
  SENSITIVE = []
  include Aws::Structure
end

#max_ageInteger

The number of seconds for which the browser caches preflight request results.

Returns:

  • (Integer)


5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 5578

class AwsCorsConfiguration < Struct.new(
  :allow_origins,
  :allow_credentials,
  :expose_headers,
  :max_age,
  :allow_methods,
  :allow_headers)
  SENSITIVE = []
  include Aws::Structure
end