Class: AWSCDK::ServiceDiscovery::CfnHttpNamespaceProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
service_discovery/cfn_http_namespace_props.rb

Overview

Properties for defining a CfnHttpNamespace.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, description: nil, tags: nil) ⇒ CfnHttpNamespaceProps

Returns a new instance of CfnHttpNamespaceProps.

Parameters:

  • name (String)

    The name that you want to assign to this namespace.

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

    A description for the namespace.

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

    The tags for the namespace.



12
13
14
15
16
17
18
19
# File 'service_discovery/cfn_http_namespace_props.rb', line 12

def initialize(name:, description: nil, tags: nil)
  @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?
  @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

#descriptionString? (readonly)

A description for the namespace.



30
31
32
# File 'service_discovery/cfn_http_namespace_props.rb', line 30

def description
  @description
end

#nameString (readonly)

The name that you want to assign to this namespace.



25
26
27
# File 'service_discovery/cfn_http_namespace_props.rb', line 25

def name
  @name
end

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

The tags for the namespace.

Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.



37
38
39
# File 'service_discovery/cfn_http_namespace_props.rb', line 37

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



39
40
41
42
43
44
45
# File 'service_discovery/cfn_http_namespace_props.rb', line 39

def self.jsii_properties
  {
    :name => "name",
    :description => "description",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



47
48
49
50
51
52
53
54
55
# File 'service_discovery/cfn_http_namespace_props.rb', line 47

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "description" => @description,
    "tags" => @tags,
  })
  result.compact
end