Class: AWSCDK::Bedrock::CfnAutomatedReasoningPolicyVersionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnAutomatedReasoningPolicyVersionProps
- Defined in:
- bedrock/cfn_automated_reasoning_policy_version_props.rb
Overview
Properties for defining a CfnAutomatedReasoningPolicyVersion.
Instance Attribute Summary collapse
-
#last_updated_definition_hash ⇒ String?
readonly
The hash of the policy definition that was last updated.
-
#policy_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the policy.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags associated with the Automated Reasoning policy version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(policy_arn:, last_updated_definition_hash: nil, tags: nil) ⇒ CfnAutomatedReasoningPolicyVersionProps
constructor
A new instance of CfnAutomatedReasoningPolicyVersionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(policy_arn:, last_updated_definition_hash: nil, tags: nil) ⇒ CfnAutomatedReasoningPolicyVersionProps
Returns a new instance of CfnAutomatedReasoningPolicyVersionProps.
12 13 14 15 16 17 18 19 |
# File 'bedrock/cfn_automated_reasoning_policy_version_props.rb', line 12 def initialize(policy_arn:, last_updated_definition_hash: nil, tags: nil) @policy_arn = policy_arn Jsii::Type.check_type(@policy_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyArn") @last_updated_definition_hash = last_updated_definition_hash Jsii::Type.check_type(@last_updated_definition_hash, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lastUpdatedDefinitionHash") unless @last_updated_definition_hash.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
#last_updated_definition_hash ⇒ String? (readonly)
The hash of the policy definition that was last updated.
30 31 32 |
# File 'bedrock/cfn_automated_reasoning_policy_version_props.rb', line 30 def last_updated_definition_hash @last_updated_definition_hash end |
#policy_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the policy.
25 26 27 |
# File 'bedrock/cfn_automated_reasoning_policy_version_props.rb', line 25 def policy_arn @policy_arn end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags associated with the Automated Reasoning policy version.
35 36 37 |
# File 'bedrock/cfn_automated_reasoning_policy_version_props.rb', line 35 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'bedrock/cfn_automated_reasoning_policy_version_props.rb', line 37 def self.jsii_properties { :policy_arn => "policyArn", :last_updated_definition_hash => "lastUpdatedDefinitionHash", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'bedrock/cfn_automated_reasoning_policy_version_props.rb', line 45 def to_jsii result = {} result.merge!({ "policyArn" => @policy_arn, "lastUpdatedDefinitionHash" => @last_updated_definition_hash, "tags" => @tags, }) result.compact end |