Class: AWSCDK::BedrockAgentCore::CfnPolicy::PolicyStatementProperty

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

Overview

A policy statement within the AgentCore Policy system.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(statement:) ⇒ PolicyStatementProperty

Returns a new instance of PolicyStatementProperty.

Parameters:

  • statement (String)

    The policy statement.



689
690
691
692
# File 'bedrock_agent_core/cfn_policy.rb', line 689

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

Instance Attribute Details

#statementString (readonly)

The policy statement.



698
699
700
# File 'bedrock_agent_core/cfn_policy.rb', line 698

def statement
  @statement
end

Class Method Details

.jsii_propertiesObject



700
701
702
703
704
# File 'bedrock_agent_core/cfn_policy.rb', line 700

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

Instance Method Details

#to_jsiiObject



706
707
708
709
710
711
712
# File 'bedrock_agent_core/cfn_policy.rb', line 706

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