class Aws::SecurityHub::Types::AwsApiGatewayMethodSettings

Defines settings for a method for the stage.

@note When making an API call, you may pass AwsApiGatewayMethodSettings

data as a hash:

    {
      metrics_enabled: false,
      logging_level: "NonEmptyString",
      data_trace_enabled: false,
      throttling_burst_limit: 1,
      throttling_rate_limit: 1.0,
      caching_enabled: false,
      cache_ttl_in_seconds: 1,
      cache_data_encrypted: false,
      require_authorization_for_cache_control: false,
      unauthorized_cache_control_header_strategy: "NonEmptyString",
      http_method: "NonEmptyString",
      resource_path: "NonEmptyString",
    }

@!attribute [rw] metrics_enabled

Indicates whether CloudWatch metrics are enabled for the method.
@return [Boolean]

@!attribute [rw] logging_level

The logging level for this method. The logging level affects the log
entries that are pushed to CloudWatch Logs.

If the logging level is `ERROR`, then the logs only include
error-level entries.

If the logging level is `INFO`, then the logs include both `ERROR`
events and extra informational events.

Valid values: `OFF` \| `ERROR` \| `INFO`
@return [String]

@!attribute [rw] data_trace_enabled

Indicates whether data trace logging is enabled for the method. Data
trace logging affects the log entries that are pushed to CloudWatch
Logs.
@return [Boolean]

@!attribute [rw] throttling_burst_limit

The throttling burst limit for the method.
@return [Integer]

@!attribute [rw] throttling_rate_limit

The throttling rate limit for the method.
@return [Float]

@!attribute [rw] caching_enabled

Indicates whether responses are cached and returned for requests.
For responses to be cached, a cache cluster must be enabled on the
stage.
@return [Boolean]

@!attribute [rw] cache_ttl_in_seconds

Specifies the time to live (TTL), in seconds, for cached responses.
The higher the TTL, the longer the response is cached.
@return [Integer]

@!attribute [rw] cache_data_encrypted

Indicates whether the cached responses are encrypted.
@return [Boolean]

@!attribute [rw] require_authorization_for_cache_control

Indicates whether authorization is required for a cache invalidation
request.
@return [Boolean]

@!attribute [rw] unauthorized_cache_control_header_strategy

Indicates how to handle unauthorized requests for cache
invalidation.

Valid values: `FAIL_WITH_403` \| `SUCCEED_WITH_RESPONSE_HEADER` \|
`SUCCEED_WITHOUT_RESPONSE_HEADER`
@return [String]

@!attribute [rw] http_method

The HTTP method. You can use an asterisk (*) as a wildcard to apply
method settings to multiple methods.
@return [String]

@!attribute [rw] resource_path

The resource path for this method. Forward slashes (/) are encoded
as ~1 . The initial slash must include a forward slash.

For example, the path value `/resource/subresource` must be encoded
as `/~1resource~1subresource`.

To specify the root path, use only a slash (/). You can use an
asterisk (*) as a wildcard to apply method settings to multiple
methods.
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AwsApiGatewayMethodSettings AWS API Documentation

Constants

SENSITIVE