Class: AWSCDK::BedrockAgentCore::CodeInterpreterCustomAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CodeInterpreterCustomAttributes
- Defined in:
- bedrock_agent_core/code_interpreter_custom_attributes.rb
Overview
Attributes for specifying an imported Code Interpreter Custom.
Instance Attribute Summary collapse
-
#code_interpreter_arn ⇒ String
readonly
The ARN of the agent.
-
#created_at ⇒ String?
readonly
The created timestamp of the code interpreter.
-
#last_updated_at ⇒ String?
readonly
When this code interpreter was last updated.
-
#role_arn ⇒ String
readonly
The ARN of the IAM role associated to the code interpreter.
-
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup>?
readonly
The security groups for this code interpreter, if in a VPC.
-
#status ⇒ String?
readonly
The status of the code interpreter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code_interpreter_arn:, role_arn:, created_at: nil, last_updated_at: nil, security_groups: nil, status: nil) ⇒ CodeInterpreterCustomAttributes
constructor
A new instance of CodeInterpreterCustomAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(code_interpreter_arn:, role_arn:, created_at: nil, last_updated_at: nil, security_groups: nil, status: nil) ⇒ CodeInterpreterCustomAttributes
Returns a new instance of CodeInterpreterCustomAttributes.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'bedrock_agent_core/code_interpreter_custom_attributes.rb', line 13 def initialize(code_interpreter_arn:, role_arn:, created_at: nil, last_updated_at: nil, security_groups: nil, status: nil) @code_interpreter_arn = code_interpreter_arn Jsii::Type.check_type(@code_interpreter_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "codeInterpreterArn") @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") @created_at = created_at Jsii::Type.check_type(@created_at, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "createdAt") unless @created_at.nil? @last_updated_at = last_updated_at Jsii::Type.check_type(@last_updated_at, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lastUpdatedAt") unless @last_updated_at.nil? @security_groups = security_groups Jsii::Type.check_type(@security_groups, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuSVNlY3VyaXR5R3JvdXAifSwia2luZCI6ImFycmF5In19")), "securityGroups") unless @security_groups.nil? @status = status Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.nil? end |
Instance Attribute Details
#code_interpreter_arn ⇒ String (readonly)
The ARN of the agent.
31 32 33 |
# File 'bedrock_agent_core/code_interpreter_custom_attributes.rb', line 31 def code_interpreter_arn @code_interpreter_arn end |
#created_at ⇒ String? (readonly)
Default: undefined - No created timestamp is provided
The created timestamp of the code interpreter.
40 41 42 |
# File 'bedrock_agent_core/code_interpreter_custom_attributes.rb', line 40 def created_at @created_at end |
#last_updated_at ⇒ String? (readonly)
Default: undefined - No last updated timestamp is provided
When this code interpreter was last updated.
45 46 47 |
# File 'bedrock_agent_core/code_interpreter_custom_attributes.rb', line 45 def last_updated_at @last_updated_at end |
#role_arn ⇒ String (readonly)
The ARN of the IAM role associated to the code interpreter.
35 36 37 |
# File 'bedrock_agent_core/code_interpreter_custom_attributes.rb', line 35 def role_arn @role_arn end |
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup>? (readonly)
Default: - By default, the code interpreter is not in a VPC.
The security groups for this code interpreter, if in a VPC.
50 51 52 |
# File 'bedrock_agent_core/code_interpreter_custom_attributes.rb', line 50 def security_groups @security_groups end |
#status ⇒ String? (readonly)
Default: undefined - No status is provided
The status of the code interpreter.
55 56 57 |
# File 'bedrock_agent_core/code_interpreter_custom_attributes.rb', line 55 def status @status end |
Class Method Details
.jsii_properties ⇒ Object
57 58 59 60 61 62 63 64 65 66 |
# File 'bedrock_agent_core/code_interpreter_custom_attributes.rb', line 57 def self.jsii_properties { :code_interpreter_arn => "codeInterpreterArn", :role_arn => "roleArn", :created_at => "createdAt", :last_updated_at => "lastUpdatedAt", :security_groups => "securityGroups", :status => "status", } end |
Instance Method Details
#to_jsii ⇒ Object
68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'bedrock_agent_core/code_interpreter_custom_attributes.rb', line 68 def to_jsii result = {} result.merge!({ "codeInterpreterArn" => @code_interpreter_arn, "roleArn" => @role_arn, "createdAt" => @created_at, "lastUpdatedAt" => @last_updated_at, "securityGroups" => @security_groups, "status" => @status, }) result.compact end |