Class: AWSCDK::ServiceDiscovery::PrivateDNSNamespaceProps
- Inherits:
-
BaseNamespaceProps
- Object
- BaseNamespaceProps
- AWSCDK::ServiceDiscovery::PrivateDNSNamespaceProps
- Defined in:
- service_discovery/private_dns_namespace_props.rb
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
A description of the Namespace.
-
#name ⇒ String
readonly
A name for the Namespace.
-
#vpc ⇒ AWSCDK::EC2::IVPC
readonly
The Amazon VPC that you want to associate the namespace with.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, description: nil, vpc:) ⇒ PrivateDNSNamespaceProps
constructor
A new instance of PrivateDNSNamespaceProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, description: nil, vpc:) ⇒ PrivateDNSNamespaceProps
Returns a new instance of PrivateDNSNamespaceProps.
9 10 11 12 13 14 15 16 |
# File 'service_discovery/private_dns_namespace_props.rb', line 9 def initialize(name:, description: nil, vpc:) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @vpc = vpc Jsii::Type.check_type(@vpc, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLklWcGMifQ==")), "vpc") end |
Instance Attribute Details
#description ⇒ String? (readonly)
Note:
Default: none
A description of the Namespace.
26 27 28 |
# File 'service_discovery/private_dns_namespace_props.rb', line 26 def description @description end |
#name ⇒ String (readonly)
A name for the Namespace.
21 22 23 |
# File 'service_discovery/private_dns_namespace_props.rb', line 21 def name @name end |
#vpc ⇒ AWSCDK::EC2::IVPC (readonly)
The Amazon VPC that you want to associate the namespace with.
30 31 32 |
# File 'service_discovery/private_dns_namespace_props.rb', line 30 def vpc @vpc end |
Class Method Details
.jsii_properties ⇒ Object
32 33 34 35 36 37 38 |
# File 'service_discovery/private_dns_namespace_props.rb', line 32 def self.jsii_properties { :name => "name", :description => "description", :vpc => "vpc", } end |
Instance Method Details
#to_jsii ⇒ Object
40 41 42 43 44 45 46 47 48 49 |
# File 'service_discovery/private_dns_namespace_props.rb', line 40 def to_jsii result = {} result.merge!(super) result.merge!({ "name" => @name, "description" => @description, "vpc" => @vpc, }) result.compact end |