Class: AWSCDK::Route53Resolver::CfnResolverQueryLoggingConfigProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
route53_resolver/cfn_resolver_query_logging_config_props.rb

Overview

Properties for defining a CfnResolverQueryLoggingConfig.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination_arn: nil, name: nil, tags: nil) ⇒ CfnResolverQueryLoggingConfigProps

Returns a new instance of CfnResolverQueryLoggingConfigProps.

Parameters:

  • destination_arn (String, AWSCDK::Interfaces::AWSLogs::ILogGroupRef, AWSCDK::Interfaces::AWSS3::IBucketRef, nil) (defaults to: nil)

    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, nil) (defaults to: nil)

    The name of the query logging configuration.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    An array of key-value pairs to apply to this resource.



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#destination_arnString, ... (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

#nameString? (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

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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