Class: AWSCDK::ResilienceHub::CfnResiliencyPolicyProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ResilienceHub::CfnResiliencyPolicyProps
- Defined in:
- resilience_hub/cfn_resiliency_policy_props.rb
Overview
Properties for defining a CfnResiliencyPolicy.
Instance Attribute Summary collapse
-
#data_location_constraint ⇒ String?
readonly
Specifies a high-level geographical location constraint for where your resilience policy data can be stored.
-
#policy ⇒ AWSCDK::IResolvable, Hash{String => AWSCDK::IResolvable, AWSCDK::ResilienceHub::CfnResiliencyPolicy::FailurePolicyProperty}
readonly
The resiliency policy.
-
#policy_description ⇒ String?
readonly
Description of the resiliency policy.
-
#policy_name ⇒ String
readonly
The name of the policy.
-
#tags ⇒ Hash{String => String}?
readonly
Tags assigned to the resource.
-
#tier ⇒ String
readonly
The tier for this resiliency policy, ranging from the highest severity (
MissionCritical) to lowest (NonCritical).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(policy:, policy_name:, tier:, data_location_constraint: nil, policy_description: nil, tags: nil) ⇒ CfnResiliencyPolicyProps
constructor
A new instance of CfnResiliencyPolicyProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(policy:, policy_name:, tier:, data_location_constraint: nil, policy_description: nil, tags: nil) ⇒ CfnResiliencyPolicyProps
Returns a new instance of CfnResiliencyPolicyProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'resilience_hub/cfn_resiliency_policy_props.rb', line 15 def initialize(policy:, policy_name:, tier:, data_location_constraint: nil, policy_description: nil, tags: nil) @policy = policy Jsii::Type.check_type(@policy, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmVzaWxpZW5jZWh1Yi5DZm5SZXNpbGllbmN5UG9saWN5LkZhaWx1cmVQb2xpY3lQcm9wZXJ0eSJ9XX19LCJraW5kIjoibWFwIn19XX19")), "policy") @policy_name = policy_name Jsii::Type.check_type(@policy_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyName") @tier = tier Jsii::Type.check_type(@tier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tier") @data_location_constraint = data_location_constraint Jsii::Type.check_type(@data_location_constraint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dataLocationConstraint") unless @data_location_constraint.nil? @policy_description = policy_description Jsii::Type.check_type(@policy_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyDescription") unless @policy_description.nil? @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#data_location_constraint ⇒ String? (readonly)
Specifies a high-level geographical location constraint for where your resilience policy data can be stored.
49 50 51 |
# File 'resilience_hub/cfn_resiliency_policy_props.rb', line 49 def data_location_constraint @data_location_constraint end |
#policy ⇒ AWSCDK::IResolvable, Hash{String => AWSCDK::IResolvable, AWSCDK::ResilienceHub::CfnResiliencyPolicy::FailurePolicyProperty} (readonly)
The resiliency policy.
34 35 36 |
# File 'resilience_hub/cfn_resiliency_policy_props.rb', line 34 def policy @policy end |
#policy_description ⇒ String? (readonly)
Description of the resiliency policy.
54 55 56 |
# File 'resilience_hub/cfn_resiliency_policy_props.rb', line 54 def policy_description @policy_description end |
#policy_name ⇒ String (readonly)
The name of the policy.
39 40 41 |
# File 'resilience_hub/cfn_resiliency_policy_props.rb', line 39 def policy_name @policy_name end |
#tags ⇒ Hash{String => String}? (readonly)
Tags assigned to the resource.
A tag is a label that you assign to an AWS resource. Each tag consists of a key/value pair.
61 62 63 |
# File 'resilience_hub/cfn_resiliency_policy_props.rb', line 61 def @tags end |
#tier ⇒ String (readonly)
The tier for this resiliency policy, ranging from the highest severity ( MissionCritical ) to lowest ( NonCritical ).
44 45 46 |
# File 'resilience_hub/cfn_resiliency_policy_props.rb', line 44 def tier @tier end |
Class Method Details
.jsii_properties ⇒ Object
63 64 65 66 67 68 69 70 71 72 |
# File 'resilience_hub/cfn_resiliency_policy_props.rb', line 63 def self.jsii_properties { :policy => "policy", :policy_name => "policyName", :tier => "tier", :data_location_constraint => "dataLocationConstraint", :policy_description => "policyDescription", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'resilience_hub/cfn_resiliency_policy_props.rb', line 74 def to_jsii result = {} result.merge!({ "policy" => @policy, "policyName" => @policy_name, "tier" => @tier, "dataLocationConstraint" => @data_location_constraint, "policyDescription" => @policy_description, "tags" => @tags, }) result.compact end |