Class: AWSCDK::BedrockAgentCore::CfnPolicy::CedarPolicyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnPolicy::CedarPolicyProperty
- Defined in:
- bedrock_agent_core/cfn_policy.rb
Overview
A Cedar policy statement within the AgentCore Policy system.
Instance Attribute Summary collapse
-
#statement ⇒ String
readonly
The Cedar policy statement that defines the authorization logic.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(statement:) ⇒ CedarPolicyProperty
constructor
A new instance of CedarPolicyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(statement:) ⇒ CedarPolicyProperty
Returns a new instance of CedarPolicyProperty.
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
#statement ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |