Class: AWSCDK::Bedrock::CfnAutomatedReasoningPolicyVersionProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_automated_reasoning_policy_version_props.rb

Overview

Properties for defining a CfnAutomatedReasoningPolicyVersion.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policy_arn:, last_updated_definition_hash: nil, tags: nil) ⇒ CfnAutomatedReasoningPolicyVersionProps

Returns a new instance of CfnAutomatedReasoningPolicyVersionProps.

Parameters:

  • policy_arn (String)

    The Amazon Resource Name (ARN) of the policy.

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

    The hash of the policy definition that was last updated.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    The tags associated with the Automated Reasoning policy version.



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#last_updated_definition_hashString? (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_arnString (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

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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