Class: AWSCDK::Bedrock::CfnAutomatedReasoningPolicy::PolicyDefinitionVariableProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description:, name:, type:) ⇒ PolicyDefinitionVariableProperty

Returns a new instance of PolicyDefinitionVariableProperty.

Parameters:

  • description (String)

    A description of a variable defined in the policy.

  • name (String)

    The name of a variable defined in the policy.

  • type (String)

    The data type of a variable defined in the policy.



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

#descriptionString (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

#nameString (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

#typeString (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_propertiesObject



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_jsiiObject



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