Class: AWSCDK::VPCLattice::CfnServiceNetworkResourceAssociationProps

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

Overview

Properties for defining a CfnServiceNetworkResourceAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(private_dns_enabled: nil, resource_configuration_id: nil, service_network_id: nil, tags: nil) ⇒ CfnServiceNetworkResourceAssociationProps

Returns a new instance of CfnServiceNetworkResourceAssociationProps.

Parameters:

  • private_dns_enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates if private DNS is enabled for the service network resource association.

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

    The ID of the resource configuration associated with the service network.

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

    The ID of the service network associated with the resource configuration.

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

    A key-value pair to associate with a resource.



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

def initialize(private_dns_enabled: nil, resource_configuration_id: nil, service_network_id: nil, tags: nil)
  @private_dns_enabled = private_dns_enabled
  Jsii::Type.check_type(@private_dns_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "privateDnsEnabled") unless @private_dns_enabled.nil?
  @resource_configuration_id = resource_configuration_id
  Jsii::Type.check_type(@resource_configuration_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceConfigurationId") unless @resource_configuration_id.nil?
  @service_network_id = service_network_id
  Jsii::Type.check_type(@service_network_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceNetworkId") unless @service_network_id.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

#private_dns_enabledBoolean, ... (readonly)

Indicates if private DNS is enabled for the service network resource association.



28
29
30
# File 'vpc_lattice/cfn_service_network_resource_association_props.rb', line 28

def private_dns_enabled
  @private_dns_enabled
end

#resource_configuration_idString? (readonly)

The ID of the resource configuration associated with the service network.



33
34
35
# File 'vpc_lattice/cfn_service_network_resource_association_props.rb', line 33

def resource_configuration_id
  @resource_configuration_id
end

#service_network_idString? (readonly)

The ID of the service network associated with the resource configuration.



38
39
40
# File 'vpc_lattice/cfn_service_network_resource_association_props.rb', line 38

def service_network_id
  @service_network_id
end

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

A key-value pair to associate with a resource.



43
44
45
# File 'vpc_lattice/cfn_service_network_resource_association_props.rb', line 43

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'vpc_lattice/cfn_service_network_resource_association_props.rb', line 45

def self.jsii_properties
  {
    :private_dns_enabled => "privateDnsEnabled",
    :resource_configuration_id => "resourceConfigurationId",
    :service_network_id => "serviceNetworkId",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'vpc_lattice/cfn_service_network_resource_association_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "privateDnsEnabled" => @private_dns_enabled,
    "resourceConfigurationId" => @resource_configuration_id,
    "serviceNetworkId" => @service_network_id,
    "tags" => @tags,
  })
  result.compact
end