Class: AWSCDK::APIGatewayv2::CfnAPIGatewayManagedOverrides::AccessLogSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGatewayv2::CfnAPIGatewayManagedOverrides::AccessLogSettingsProperty
- 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
-
#destination_arn ⇒ String?
readonly
The ARN of the CloudWatch Logs log group 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) ⇒ AccessLogSettingsProperty
constructor
A new instance of AccessLogSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination_arn: nil, format: nil) ⇒ AccessLogSettingsProperty
Returns a new instance of AccessLogSettingsProperty.
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_arn ⇒ String? (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 |
#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.
563 564 565 |
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides.rb', line 563 def format @format end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |