Class: AWSCDK::ResilienceHubv2::CfnServiceFunctionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ResilienceHubv2::CfnServiceFunctionProps
- Defined in:
- resilience_hubv2/cfn_service_function_props.rb
Overview
Properties for defining a CfnServiceFunction.
Instance Attribute Summary collapse
-
#criticality ⇒ String
readonly
The criticality of the service function.
-
#description ⇒ String?
readonly
The description of the service function.
-
#name ⇒ String
readonly
The name of the service function.
-
#service_arn ⇒ String
readonly
The ARN of the parent service.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(criticality:, name:, service_arn:, description: nil) ⇒ CfnServiceFunctionProps
constructor
A new instance of CfnServiceFunctionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(criticality:, name:, service_arn:, description: nil) ⇒ CfnServiceFunctionProps
Returns a new instance of CfnServiceFunctionProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'resilience_hubv2/cfn_service_function_props.rb', line 13 def initialize(criticality:, name:, service_arn:, description: nil) @criticality = criticality Jsii::Type.check_type(@criticality, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "criticality") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @service_arn = service_arn Jsii::Type.check_type(@service_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceArn") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? end |
Instance Attribute Details
#criticality ⇒ String (readonly)
The criticality of the service function.
28 29 30 |
# File 'resilience_hubv2/cfn_service_function_props.rb', line 28 def criticality @criticality end |
#description ⇒ String? (readonly)
The description of the service function.
43 44 45 |
# File 'resilience_hubv2/cfn_service_function_props.rb', line 43 def description @description end |
#name ⇒ String (readonly)
The name of the service function.
33 34 35 |
# File 'resilience_hubv2/cfn_service_function_props.rb', line 33 def name @name end |
#service_arn ⇒ String (readonly)
The ARN of the parent service.
38 39 40 |
# File 'resilience_hubv2/cfn_service_function_props.rb', line 38 def service_arn @service_arn end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'resilience_hubv2/cfn_service_function_props.rb', line 45 def self.jsii_properties { :criticality => "criticality", :name => "name", :service_arn => "serviceArn", :description => "description", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'resilience_hubv2/cfn_service_function_props.rb', line 54 def to_jsii result = {} result.merge!({ "criticality" => @criticality, "name" => @name, "serviceArn" => @service_arn, "description" => @description, }) result.compact end |