Class: AWSCDK::ResilienceHubv2::CfnServiceFunctionProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
resilience_hubv2/cfn_service_function_props.rb

Overview

Properties for defining a CfnServiceFunction.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(criticality:, name:, service_arn:, description: nil) ⇒ CfnServiceFunctionProps

Returns a new instance of CfnServiceFunctionProps.

Parameters:

  • criticality (String)

    The criticality of the service function.

  • name (String)

    The name of the service function.

  • service_arn (String)

    The ARN of the parent service.

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

    The description of the service function.



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

#criticalityString (readonly)

The criticality of the service function.



28
29
30
# File 'resilience_hubv2/cfn_service_function_props.rb', line 28

def criticality
  @criticality
end

#descriptionString? (readonly)

The description of the service function.



43
44
45
# File 'resilience_hubv2/cfn_service_function_props.rb', line 43

def description
  @description
end

#nameString (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_arnString (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_propertiesObject



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_jsiiObject



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