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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb

Overview

Note:

When making an API call, you may pass AwsCorsConfiguration data as a hash:

{
  allow_origins: ["NonEmptyString"],
  allow_credentials: false,
  expose_headers: ["NonEmptyString"],
  max_age: 1,
  allow_methods: ["NonEmptyString"],
  allow_headers: ["NonEmptyString"],
}

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)


3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 3597

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>)


3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 3597

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>)


3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 3597

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>)


3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 3597

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>)


3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 3597

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)


3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 3597

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