Class: AWSCDK::APIGatewayv2::CfnAPIGatewayManagedOverrides::AccessLogSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
api_gatewayv2/cfn_api_gateway_managed_overrides.rb

Overview

The AccessLogSettings property overrides the access log settings for an API Gateway-managed stage.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination_arn: nil, format: nil) ⇒ AccessLogSettingsProperty

Returns a new instance of AccessLogSettingsProperty.

Parameters:

  • destination_arn (String, nil) (defaults to: nil)

    The ARN of the CloudWatch Logs log group to receive access logs.

  • format (String, nil) (defaults to: nil)

    A single line format of the access logs of data, as specified by selected $context variables.



545
546
547
548
549
550
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides.rb', line 545

def initialize(destination_arn: nil, format: nil)
  @destination_arn = destination_arn
  Jsii::Type.check_type(@destination_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationArn") unless @destination_arn.nil?
  @format = format
  Jsii::Type.check_type(@format, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "format") unless @format.nil?
end

Instance Attribute Details

#destination_arnString? (readonly)

The ARN of the CloudWatch Logs log group to receive access logs.



556
557
558
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides.rb', line 556

def destination_arn
  @destination_arn
end

#formatString? (readonly)

A single line format of the access logs of data, as specified by selected $context variables.

The format must include at least $context.requestId.



563
564
565
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides.rb', line 563

def format
  @format
end

Class Method Details

.jsii_propertiesObject



565
566
567
568
569
570
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides.rb', line 565

def self.jsii_properties
  {
    :destination_arn => "destinationArn",
    :format => "format",
  }
end

Instance Method Details

#to_jsiiObject



572
573
574
575
576
577
578
579
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides.rb', line 572

def to_jsii
  result = {}
  result.merge!({
    "destinationArn" => @destination_arn,
    "format" => @format,
  })
  result.compact
end