Class: AWSCDK::VPCLattice::CfnServiceNetworkServiceAssociationProps

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

Overview

Properties for defining a CfnServiceNetworkServiceAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dns_entry: nil, service_identifier: nil, service_network_identifier: nil, tags: nil) ⇒ CfnServiceNetworkServiceAssociationProps

Returns a new instance of CfnServiceNetworkServiceAssociationProps.

Parameters:



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

def initialize(dns_entry: nil, service_identifier: nil, service_network_identifier: nil, tags: nil)
  @dns_entry = dns_entry.is_a?(Hash) ? ::AWSCDK::VPCLattice::CfnServiceNetworkServiceAssociation::DNSEntryProperty.new(**dns_entry.transform_keys(&:to_sym)) : dns_entry
  Jsii::Type.check_type(@dns_entry, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c192cGNsYXR0aWNlLkNmblNlcnZpY2VOZXR3b3JrU2VydmljZUFzc29jaWF0aW9uLkRuc0VudHJ5UHJvcGVydHkifV19fQ==")), "dnsEntry") unless @dns_entry.nil?
  @service_identifier = service_identifier
  Jsii::Type.check_type(@service_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceIdentifier") unless @service_identifier.nil?
  @service_network_identifier = service_network_identifier
  Jsii::Type.check_type(@service_network_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceNetworkIdentifier") unless @service_network_identifier.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

#dns_entryAWSCDK::IResolvable, ... (readonly)

The DNS information of the service.



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

def dns_entry
  @dns_entry
end

#service_identifierString? (readonly)

The ID or ARN of the service.



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

def service_identifier
  @service_identifier
end

#service_network_identifierString? (readonly)

The ID or ARN of the service network.

You must use an ARN if the resources are in different accounts.



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

def service_network_identifier
  @service_network_identifier
end

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

The tags for the association.



45
46
47
# File 'vpc_lattice/cfn_service_network_service_association_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_service_network_service_association_props.rb', line 47

def self.jsii_properties
  {
    :dns_entry => "dnsEntry",
    :service_identifier => "serviceIdentifier",
    :service_network_identifier => "serviceNetworkIdentifier",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "dnsEntry" => @dns_entry,
    "serviceIdentifier" => @service_identifier,
    "serviceNetworkIdentifier" => @service_network_identifier,
    "tags" => @tags,
  })
  result.compact
end