Class: AWSCDK::ResilienceHubv2::CfnUserJourneyProps

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

Overview

Properties for defining a CfnUserJourney.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, system_identifier:, description: nil, policy_arn: nil) ⇒ CfnUserJourneyProps

Returns a new instance of CfnUserJourneyProps.

Parameters:

  • name (String)

    The name of the user journey.

  • system_identifier (String)

    The system ARN or system ID that owns this user journey.

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

    The description of the user journey.

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

    The ARN of the resilience policy to associate with this user journey.



13
14
15
16
17
18
19
20
21
22
# File 'resilience_hubv2/cfn_user_journey_props.rb', line 13

def initialize(name:, system_identifier:, description: nil, policy_arn: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @system_identifier = system_identifier
  Jsii::Type.check_type(@system_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "systemIdentifier")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @policy_arn = policy_arn
  Jsii::Type.check_type(@policy_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyArn") unless @policy_arn.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

The description of the user journey.



38
39
40
# File 'resilience_hubv2/cfn_user_journey_props.rb', line 38

def description
  @description
end

#nameString (readonly)

The name of the user journey.



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

def name
  @name
end

#policy_arnString? (readonly)

The ARN of the resilience policy to associate with this user journey.



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

def policy_arn
  @policy_arn
end

#system_identifierString (readonly)

The system ARN or system ID that owns this user journey.



33
34
35
# File 'resilience_hubv2/cfn_user_journey_props.rb', line 33

def system_identifier
  @system_identifier
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'resilience_hubv2/cfn_user_journey_props.rb', line 45

def self.jsii_properties
  {
    :name => "name",
    :system_identifier => "systemIdentifier",
    :description => "description",
    :policy_arn => "policyArn",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'resilience_hubv2/cfn_user_journey_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "systemIdentifier" => @system_identifier,
    "description" => @description,
    "policyArn" => @policy_arn,
  })
  result.compact
end