Class: AWSCDK::AppMesh::CfnVirtualServiceProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnVirtualServiceProps
- Defined in:
- app_mesh/cfn_virtual_service_props.rb
Overview
Properties for defining a CfnVirtualService.
Instance Attribute Summary collapse
-
#mesh_name ⇒ String
readonly
The name of the service mesh to create the virtual service in.
-
#mesh_owner ⇒ String?
readonly
The AWS IAM account ID of the service mesh owner.
-
#spec ⇒ AWSCDK::IResolvable, AWSCDK::AppMesh::CfnVirtualService::VirtualServiceSpecProperty
readonly
The virtual service specification to apply.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Optional metadata that you can apply to the virtual service to assist with categorization and organization.
-
#virtual_service_name ⇒ String
readonly
The name to use for the virtual service.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(mesh_name:, spec:, virtual_service_name:, mesh_owner: nil, tags: nil) ⇒ CfnVirtualServiceProps
constructor
A new instance of CfnVirtualServiceProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(mesh_name:, spec:, virtual_service_name:, mesh_owner: nil, tags: nil) ⇒ CfnVirtualServiceProps
Returns a new instance of CfnVirtualServiceProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'app_mesh/cfn_virtual_service_props.rb', line 14 def initialize(mesh_name:, spec:, virtual_service_name:, mesh_owner: nil, tags: nil) @mesh_name = mesh_name Jsii::Type.check_type(@mesh_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "meshName") @spec = spec.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualService::VirtualServiceSpecProperty.new(**spec.transform_keys(&:to_sym)) : spec Jsii::Type.check_type(@spec, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxTZXJ2aWNlLlZpcnR1YWxTZXJ2aWNlU3BlY1Byb3BlcnR5In1dfX0=")), "spec") @virtual_service_name = virtual_service_name Jsii::Type.check_type(@virtual_service_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "virtualServiceName") @mesh_owner = mesh_owner Jsii::Type.check_type(@mesh_owner, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "meshOwner") unless @mesh_owner.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 of the service mesh to create the virtual service in.
31 32 33 |
# File 'app_mesh/cfn_virtual_service_props.rb', line 31 def mesh_name @mesh_name end |
#mesh_owner ⇒ String? (readonly)
The AWS IAM account ID of the service mesh owner.
If the account ID is not your own, then the account that you specify must share the mesh with your account before you can create the resource in the service mesh. For more information about mesh sharing, see Working with shared meshes .
48 49 50 |
# File 'app_mesh/cfn_virtual_service_props.rb', line 48 def mesh_owner @mesh_owner end |
#spec ⇒ AWSCDK::IResolvable, AWSCDK::AppMesh::CfnVirtualService::VirtualServiceSpecProperty (readonly)
The virtual service specification to apply.
36 37 38 |
# File 'app_mesh/cfn_virtual_service_props.rb', line 36 def spec @spec end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
Optional metadata that you can apply to the virtual service 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.
55 56 57 |
# File 'app_mesh/cfn_virtual_service_props.rb', line 55 def @tags end |
#virtual_service_name ⇒ String (readonly)
The name to use for the virtual service.
41 42 43 |
# File 'app_mesh/cfn_virtual_service_props.rb', line 41 def virtual_service_name @virtual_service_name end |
Class Method Details
.jsii_properties ⇒ Object
57 58 59 60 61 62 63 64 65 |
# File 'app_mesh/cfn_virtual_service_props.rb', line 57 def self.jsii_properties { :mesh_name => "meshName", :spec => "spec", :virtual_service_name => "virtualServiceName", :mesh_owner => "meshOwner", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 |
# File 'app_mesh/cfn_virtual_service_props.rb', line 67 def to_jsii result = {} result.merge!({ "meshName" => @mesh_name, "spec" => @spec, "virtualServiceName" => @virtual_service_name, "meshOwner" => @mesh_owner, "tags" => @tags, }) result.compact end |