Class: AWSCDK::VPCLattice::CfnAccessLogSubscriptionProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
vpc_lattice/cfn_access_log_subscription_props.rb

Overview

Properties for defining a CfnAccessLogSubscription.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination_arn:, resource_identifier: nil, service_network_log_type: nil, tags: nil) ⇒ CfnAccessLogSubscriptionProps

Returns a new instance of CfnAccessLogSubscriptionProps.

Parameters:

  • destination_arn (String)

    The Amazon Resource Name (ARN) of the destination.

  • resource_identifier (String, nil) (defaults to: nil)

    The ID or ARN of the service network or service.

  • service_network_log_type (String, nil) (defaults to: nil)

    Log type of the service network.

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

    The tags for the access log subscription.



13
14
15
16
17
18
19
20
21
22
# File 'vpc_lattice/cfn_access_log_subscription_props.rb', line 13

def initialize(destination_arn:, resource_identifier: nil, service_network_log_type: nil, tags: nil)
  @destination_arn = destination_arn
  Jsii::Type.check_type(@destination_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationArn")
  @resource_identifier = resource_identifier
  Jsii::Type.check_type(@resource_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceIdentifier") unless @resource_identifier.nil?
  @service_network_log_type = service_network_log_type
  Jsii::Type.check_type(@service_network_log_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceNetworkLogType") unless @service_network_log_type.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 Amazon Resource Name (ARN) of the destination.

The supported destination types are CloudWatch Log groups, Kinesis Data Firehose delivery streams, and Amazon S3 buckets.



30
31
32
# File 'vpc_lattice/cfn_access_log_subscription_props.rb', line 30

def destination_arn
  @destination_arn
end

#resource_identifierString? (readonly)

The ID or ARN of the service network or service.



35
36
37
# File 'vpc_lattice/cfn_access_log_subscription_props.rb', line 35

def resource_identifier
  @resource_identifier
end

#service_network_log_typeString? (readonly)

Log type of the service network.



40
41
42
# File 'vpc_lattice/cfn_access_log_subscription_props.rb', line 40

def service_network_log_type
  @service_network_log_type
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

The tags for the access log subscription.



45
46
47
# File 'vpc_lattice/cfn_access_log_subscription_props.rb', line 45

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



47
48
49
50
51
52
53
54
# File 'vpc_lattice/cfn_access_log_subscription_props.rb', line 47

def self.jsii_properties
  {
    :destination_arn => "destinationArn",
    :resource_identifier => "resourceIdentifier",
    :service_network_log_type => "serviceNetworkLogType",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



56
57
58
59
60
61
62
63
64
65
# File 'vpc_lattice/cfn_access_log_subscription_props.rb', line 56

def to_jsii
  result = {}
  result.merge!({
    "destinationArn" => @destination_arn,
    "resourceIdentifier" => @resource_identifier,
    "serviceNetworkLogType" => @service_network_log_type,
    "tags" => @tags,
  })
  result.compact
end