Class: AWSCDK::BedrockAgentCore::CfnPolicy::CedarPolicyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_policy.rb

Overview

A Cedar policy statement within the AgentCore Policy system.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(statement:) ⇒ CedarPolicyProperty

Returns a new instance of CedarPolicyProperty.

Parameters:

  • statement (String)

    The Cedar policy statement that defines the authorization logic.



611
612
613
614
# File 'bedrock_agent_core/cfn_policy.rb', line 611

def initialize(statement:)
  @statement = statement
  Jsii::Type.check_type(@statement, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "statement")
end

Instance Attribute Details

#statementString (readonly)

The Cedar policy statement that defines the authorization logic.



620
621
622
# File 'bedrock_agent_core/cfn_policy.rb', line 620

def statement
  @statement
end

Class Method Details

.jsii_propertiesObject



622
623
624
625
626
# File 'bedrock_agent_core/cfn_policy.rb', line 622

def self.jsii_properties
  {
    :statement => "statement",
  }
end

Instance Method Details

#to_jsiiObject



628
629
630
631
632
633
634
# File 'bedrock_agent_core/cfn_policy.rb', line 628

def to_jsii
  result = {}
  result.merge!({
    "statement" => @statement,
  })
  result.compact
end