Class: AWSCDK::BedrockAgentCore::BrowserCustomAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::BrowserCustomAttributes
- Defined in:
- bedrock_agent_core/browser_custom_attributes.rb
Overview
Attributes for specifying an imported Browser Custom.
Instance Attribute Summary collapse
-
#browser_arn ⇒ String
readonly
The ARN of the agent.
-
#created_at ⇒ String?
readonly
The created timestamp of the browser.
-
#last_updated_at ⇒ String?
readonly
When this browser was last updated.
-
#role_arn ⇒ String
readonly
The ARN of the IAM role associated to the browser.
-
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup>?
readonly
The security groups for this browser, if in a VPC.
-
#status ⇒ String?
readonly
The status of the browser.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(browser_arn:, role_arn:, created_at: nil, last_updated_at: nil, security_groups: nil, status: nil) ⇒ BrowserCustomAttributes
constructor
A new instance of BrowserCustomAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(browser_arn:, role_arn:, created_at: nil, last_updated_at: nil, security_groups: nil, status: nil) ⇒ BrowserCustomAttributes
Returns a new instance of BrowserCustomAttributes.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'bedrock_agent_core/browser_custom_attributes.rb', line 13 def initialize(browser_arn:, role_arn:, created_at: nil, last_updated_at: nil, security_groups: nil, status: nil) @browser_arn = browser_arn Jsii::Type.check_type(@browser_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "browserArn") @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
#browser_arn ⇒ String (readonly)
The ARN of the agent.
31 32 33 |
# File 'bedrock_agent_core/browser_custom_attributes.rb', line 31 def browser_arn @browser_arn end |
#created_at ⇒ String? (readonly)
Default: undefined - No created timestamp is provided
The created timestamp of the browser.
40 41 42 |
# File 'bedrock_agent_core/browser_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 browser was last updated.
45 46 47 |
# File 'bedrock_agent_core/browser_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 browser.
35 36 37 |
# File 'bedrock_agent_core/browser_custom_attributes.rb', line 35 def role_arn @role_arn end |
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup>? (readonly)
Default: - By default, the browser is not in a VPC.
The security groups for this browser, if in a VPC.
50 51 52 |
# File 'bedrock_agent_core/browser_custom_attributes.rb', line 50 def security_groups @security_groups end |
#status ⇒ String? (readonly)
Default: undefined - No status is provided
The status of the browser.
55 56 57 |
# File 'bedrock_agent_core/browser_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/browser_custom_attributes.rb', line 57 def self.jsii_properties { :browser_arn => "browserArn", :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/browser_custom_attributes.rb', line 68 def to_jsii result = {} result.merge!({ "browserArn" => @browser_arn, "roleArn" => @role_arn, "createdAt" => @created_at, "lastUpdatedAt" => @last_updated_at, "securityGroups" => @security_groups, "status" => @status, }) result.compact end |