Class: AWSCDK::APIGateway::CfnStage::AccessLogSettingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
api_gateway/cfn_stage.rb

Overview

The AccessLogSetting property type specifies settings for logging access in this stage.

AccessLogSetting is a property of the AWS::ApiGateway::Stage resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of AccessLogSettingProperty.

Parameters:

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

    The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream 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 . The format must include at least $context.requestId . This parameter is required to enable access logging.



676
677
678
679
680
681
# File 'api_gateway/cfn_stage.rb', line 676

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 Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs.

If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with amazon-apigateway- . This parameter is required to enable access logging.



689
690
691
# File 'api_gateway/cfn_stage.rb', line 689

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 . This parameter is required to enable access logging.



694
695
696
# File 'api_gateway/cfn_stage.rb', line 694

def format
  @format
end

Class Method Details

.jsii_propertiesObject



696
697
698
699
700
701
# File 'api_gateway/cfn_stage.rb', line 696

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

Instance Method Details

#to_jsiiObject



703
704
705
706
707
708
709
710
# File 'api_gateway/cfn_stage.rb', line 703

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