Class: AWSCDK::ServiceDiscovery::PrivateDNSNamespaceAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ServiceDiscovery::PrivateDNSNamespaceAttributes
- Defined in:
- service_discovery/private_dns_namespace_attributes.rb
Instance Attribute Summary collapse
-
#namespace_arn ⇒ String
readonly
Namespace ARN for the Namespace.
-
#namespace_id ⇒ String
readonly
Namespace Id for the Namespace.
-
#namespace_name ⇒ String
readonly
A name for the Namespace.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(namespace_arn:, namespace_id:, namespace_name:) ⇒ PrivateDNSNamespaceAttributes
constructor
A new instance of PrivateDNSNamespaceAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(namespace_arn:, namespace_id:, namespace_name:) ⇒ PrivateDNSNamespaceAttributes
Returns a new instance of PrivateDNSNamespaceAttributes.
9 10 11 12 13 14 15 16 |
# File 'service_discovery/private_dns_namespace_attributes.rb', line 9 def initialize(namespace_arn:, namespace_id:, namespace_name:) @namespace_arn = namespace_arn Jsii::Type.check_type(@namespace_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "namespaceArn") @namespace_id = namespace_id Jsii::Type.check_type(@namespace_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "namespaceId") @namespace_name = namespace_name Jsii::Type.check_type(@namespace_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "namespaceName") end |
Instance Attribute Details
#namespace_arn ⇒ String (readonly)
Namespace ARN for the Namespace.
21 22 23 |
# File 'service_discovery/private_dns_namespace_attributes.rb', line 21 def namespace_arn @namespace_arn end |
#namespace_id ⇒ String (readonly)
Namespace Id for the Namespace.
25 26 27 |
# File 'service_discovery/private_dns_namespace_attributes.rb', line 25 def namespace_id @namespace_id end |
#namespace_name ⇒ String (readonly)
A name for the Namespace.
29 30 31 |
# File 'service_discovery/private_dns_namespace_attributes.rb', line 29 def namespace_name @namespace_name end |
Class Method Details
.jsii_properties ⇒ Object
31 32 33 34 35 36 37 |
# File 'service_discovery/private_dns_namespace_attributes.rb', line 31 def self.jsii_properties { :namespace_arn => "namespaceArn", :namespace_id => "namespaceId", :namespace_name => "namespaceName", } end |
Instance Method Details
#to_jsii ⇒ Object
39 40 41 42 43 44 45 46 47 |
# File 'service_discovery/private_dns_namespace_attributes.rb', line 39 def to_jsii result = {} result.merge!({ "namespaceArn" => @namespace_arn, "namespaceId" => @namespace_id, "namespaceName" => @namespace_name, }) result.compact end |