Class: AWSCDK::BedrockAgentCore::CfnPolicyEngineProps

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

Overview

Properties for defining a CfnPolicyEngine.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, description: nil, encryption_key_arn: nil, tags: nil) ⇒ CfnPolicyEngineProps

Returns a new instance of CfnPolicyEngineProps.

Parameters:

  • name (String)

    The customer-assigned immutable name for the policy engine.

  • description (String, nil) (defaults to: nil)

    A human-readable description of the policy engine's purpose and scope.

  • encryption_key_arn (String, nil) (defaults to: nil)

    The ARN of the KMS key used to encrypt the policy engine data.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    A list of tags to assign to the policy engine.



13
14
15
16
17
18
19
20
21
22
# File 'bedrock_agent_core/cfn_policy_engine_props.rb', line 13

def initialize(name:, description: nil, encryption_key_arn: nil, tags: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @encryption_key_arn = encryption_key_arn
  Jsii::Type.check_type(@encryption_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "encryptionKeyArn") unless @encryption_key_arn.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

A human-readable description of the policy engine's purpose and scope.



33
34
35
# File 'bedrock_agent_core/cfn_policy_engine_props.rb', line 33

def description
  @description
end

#encryption_key_arnString? (readonly)

The ARN of the KMS key used to encrypt the policy engine data.



38
39
40
# File 'bedrock_agent_core/cfn_policy_engine_props.rb', line 38

def encryption_key_arn
  @encryption_key_arn
end

#nameString (readonly)

The customer-assigned immutable name for the policy engine.



28
29
30
# File 'bedrock_agent_core/cfn_policy_engine_props.rb', line 28

def name
  @name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

A list of tags to assign to the policy engine.



43
44
45
# File 'bedrock_agent_core/cfn_policy_engine_props.rb', line 43

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'bedrock_agent_core/cfn_policy_engine_props.rb', line 45

def self.jsii_properties
  {
    :name => "name",
    :description => "description",
    :encryption_key_arn => "encryptionKeyArn",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'bedrock_agent_core/cfn_policy_engine_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "description" => @description,
    "encryptionKeyArn" => @encryption_key_arn,
    "tags" => @tags,
  })
  result.compact
end