Class: AWSCDK::Bedrock::CfnAutomatedReasoningPolicy::PolicyDefinitionVariableProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnAutomatedReasoningPolicy::PolicyDefinitionVariableProperty
- Defined in:
- bedrock/cfn_automated_reasoning_policy.rb
Overview
A variable defined within the policy that can be used in rules.
Instance Attribute Summary collapse
-
#description ⇒ String
readonly
A description of a variable defined in the policy.
-
#name ⇒ String
readonly
The name of a variable defined in the policy.
-
#type ⇒ String
readonly
The data type of a variable defined in the policy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(description:, name:, type:) ⇒ PolicyDefinitionVariableProperty
constructor
A new instance of PolicyDefinitionVariableProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(description:, name:, type:) ⇒ PolicyDefinitionVariableProperty
Returns a new instance of PolicyDefinitionVariableProperty.
844 845 846 847 848 849 850 851 |
# File 'bedrock/cfn_automated_reasoning_policy.rb', line 844 def initialize(description:, name:, type:) @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") end |
Instance Attribute Details
#description ⇒ String (readonly)
A description of a variable defined in the policy.
857 858 859 |
# File 'bedrock/cfn_automated_reasoning_policy.rb', line 857 def description @description end |
#name ⇒ String (readonly)
The name of a variable defined in the policy.
862 863 864 |
# File 'bedrock/cfn_automated_reasoning_policy.rb', line 862 def name @name end |
#type ⇒ String (readonly)
The data type of a variable defined in the policy.
867 868 869 |
# File 'bedrock/cfn_automated_reasoning_policy.rb', line 867 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
869 870 871 872 873 874 875 |
# File 'bedrock/cfn_automated_reasoning_policy.rb', line 869 def self.jsii_properties { :description => "description", :name => "name", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
877 878 879 880 881 882 883 884 885 |
# File 'bedrock/cfn_automated_reasoning_policy.rb', line 877 def to_jsii result = {} result.merge!({ "description" => @description, "name" => @name, "type" => @type, }) result.compact end |