Class: AWSCDK::Route53Resolver::CfnResolverQueryLoggingConfigProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53Resolver::CfnResolverQueryLoggingConfigProps
- Defined in:
- route53_resolver/cfn_resolver_query_logging_config_props.rb
Overview
Properties for defining a CfnResolverQueryLoggingConfig.
Instance Attribute Summary collapse
-
#destination_arn ⇒ String, ...
readonly
The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
-
#name ⇒ String?
readonly
The name of the query logging configuration.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination_arn: nil, name: nil, tags: nil) ⇒ CfnResolverQueryLoggingConfigProps
constructor
A new instance of CfnResolverQueryLoggingConfigProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination_arn: nil, name: nil, tags: nil) ⇒ CfnResolverQueryLoggingConfigProps
Returns a new instance of CfnResolverQueryLoggingConfigProps.
12 13 14 15 16 17 18 19 |
# File 'route53_resolver/cfn_resolver_query_logging_config_props.rb', line 12 def initialize(destination_arn: nil, name: nil, tags: nil) @destination_arn = destination_arn Jsii::Type.check_type(@destination_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19sb2dzLklMb2dHcm91cFJlZiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuaW50ZXJmYWNlcy5hd3NfczMuSUJ1Y2tldFJlZiJ9XX19")), "destinationArn") unless @destination_arn.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#destination_arn ⇒ String, ... (readonly)
The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
25 26 27 |
# File 'route53_resolver/cfn_resolver_query_logging_config_props.rb', line 25 def destination_arn @destination_arn end |
#name ⇒ String? (readonly)
The name of the query logging configuration.
30 31 32 |
# File 'route53_resolver/cfn_resolver_query_logging_config_props.rb', line 30 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
35 36 37 |
# File 'route53_resolver/cfn_resolver_query_logging_config_props.rb', line 35 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'route53_resolver/cfn_resolver_query_logging_config_props.rb', line 37 def self.jsii_properties { :destination_arn => "destinationArn", :name => "name", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'route53_resolver/cfn_resolver_query_logging_config_props.rb', line 45 def to_jsii result = {} result.merge!({ "destinationArn" => @destination_arn, "name" => @name, "tags" => @tags, }) result.compact end |