Class: AWSCDK::APIGateway::CfnDeployment::AccessLogSettingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGateway::CfnDeployment::AccessLogSettingProperty
- Defined in:
- api_gateway/cfn_deployment.rb
Overview
The AccessLogSetting property type specifies settings for logging access in this stage.
AccessLogSetting is a property of the StageDescription property type.
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.
561 562 563 564 565 566 |
# File 'api_gateway/cfn_deployment.rb', line 561 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- .
574 575 576 |
# File 'api_gateway/cfn_deployment.rb', line 574 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 .
581 582 583 |
# File 'api_gateway/cfn_deployment.rb', line 581 def format @format end |
Class Method Details
.jsii_properties ⇒ Object
583 584 585 586 587 588 |
# File 'api_gateway/cfn_deployment.rb', line 583 def self.jsii_properties { :destination_arn => "destinationArn", :format => "format", } end |
Instance Method Details
#to_jsii ⇒ Object
590 591 592 593 594 595 596 597 |
# File 'api_gateway/cfn_deployment.rb', line 590 def to_jsii result = {} result.merge!({ "destinationArn" => @destination_arn, "format" => @format, }) result.compact end |