Class: AWSCDK::APIGateway::CfnStage::AccessLogSettingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGateway::CfnStage::AccessLogSettingProperty
- 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
-
#destination_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs.
-
#format ⇒ String?
readonly
A single line format of the access logs of data, as specified by selected $context variables .
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination_arn: nil, format: nil) ⇒ AccessLogSettingProperty
constructor
A new instance of AccessLogSettingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination_arn: nil, format: nil) ⇒ AccessLogSettingProperty
Returns a new instance of AccessLogSettingProperty.
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_arn ⇒ String? (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 |
#format ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |