JsonWithStandardFieldProps

class aws_cdk.aws_apigateway.JsonWithStandardFieldProps(*, caller, http_method, ip, protocol, request_time, resource_path, response_length, status, user)

Bases: object

__init__(*, caller, http_method, ip, protocol, request_time, resource_path, response_length, status, user)

Properties for controlling items output in JSON standard format.

Parameters
  • caller (bool) – If this flag is enabled, the principal identifier of the caller will be output to the log.

  • http_method (bool) – If this flag is enabled, the http method will be output to the log.

  • ip (bool) – If this flag is enabled, the source IP of request will be output to the log.

  • protocol (bool) – If this flag is enabled, the request protocol will be output to the log.

  • request_time (bool) – If this flag is enabled, the CLF-formatted request time((dd/MMM/yyyy:HH:mm:ss +-hhmm) will be output to the log.

  • resource_path (bool) – If this flag is enabled, the path to your resource will be output to the log.

  • response_length (bool) – If this flag is enabled, the response payload length will be output to the log.

  • status (bool) – If this flag is enabled, the method response status will be output to the log.

  • user (bool) – If this flag is enabled, the principal identifier of the user will be output to the log.

Return type

None

Attributes

caller

If this flag is enabled, the principal identifier of the caller will be output to the log.

Return type

bool

http_method

If this flag is enabled, the http method will be output to the log.

Return type

bool

ip

If this flag is enabled, the source IP of request will be output to the log.

Return type

bool

protocol

If this flag is enabled, the request protocol will be output to the log.

Return type

bool

request_time

mm:ss +-hhmm) will be output to the log.

Type

If this flag is enabled, the CLF-formatted request time((dd/MMM/yyyy

Type

HH

Return type

bool

resource_path

If this flag is enabled, the path to your resource will be output to the log.

Return type

bool

response_length

If this flag is enabled, the response payload length will be output to the log.

Return type

bool

status

If this flag is enabled, the method response status will be output to the log.

Return type

bool

user

If this flag is enabled, the principal identifier of the user will be output to the log.

Return type

bool