Class: AWSCDK::AppMesh::CfnMeshProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnMeshProps
- Defined in:
- app_mesh/cfn_mesh_props.rb
Overview
Properties for defining a CfnMesh.
Instance Attribute Summary collapse
-
#mesh_name ⇒ String?
readonly
The name to use for the service mesh.
-
#spec ⇒ AWSCDK::IResolvable, ...
readonly
The service mesh specification to apply.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Optional metadata that you can apply to the service mesh to assist with categorization and organization.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(mesh_name: nil, spec: nil, tags: nil) ⇒ CfnMeshProps
constructor
A new instance of CfnMeshProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(mesh_name: nil, spec: nil, tags: nil) ⇒ CfnMeshProps
Returns a new instance of CfnMeshProps.
12 13 14 15 16 17 18 19 |
# File 'app_mesh/cfn_mesh_props.rb', line 12 def initialize(mesh_name: nil, spec: nil, tags: nil) @mesh_name = mesh_name Jsii::Type.check_type(@mesh_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "meshName") unless @mesh_name.nil? @spec = spec.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnMesh::MeshSpecProperty.new(**spec.transform_keys(&:to_sym)) : spec Jsii::Type.check_type(@spec, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmbk1lc2guTWVzaFNwZWNQcm9wZXJ0eSJ9XX19")), "spec") unless @spec.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#mesh_name ⇒ String? (readonly)
The name to use for the service mesh.
25 26 27 |
# File 'app_mesh/cfn_mesh_props.rb', line 25 def mesh_name @mesh_name end |
#spec ⇒ AWSCDK::IResolvable, ... (readonly)
The service mesh specification to apply.
30 31 32 |
# File 'app_mesh/cfn_mesh_props.rb', line 30 def spec @spec end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
Optional metadata that you can apply to the service mesh to assist with categorization and organization.
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 'app_mesh/cfn_mesh_props.rb', line 37 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'app_mesh/cfn_mesh_props.rb', line 39 def self.jsii_properties { :mesh_name => "meshName", :spec => "spec", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'app_mesh/cfn_mesh_props.rb', line 47 def to_jsii result = {} result.merge!({ "meshName" => @mesh_name, "spec" => @spec, "tags" => @tags, }) result.compact end |