Module: AWSCDK::BedrockAgentCore::IBrowserCustom
- Includes:
- EC2::IConnectable, IAM::IGrantable, IResource, Interfaces::AWSBedrockagentcore::IBrowserCustomRef
- Included in:
- BrowserCustomBase
- Defined in:
- bedrock_agent_core/i_browser_custom.rb
Overview
Interface for Browser resources.
Class Method Summary collapse
Instance Method Summary collapse
-
#apply_removal_policy(policy) ⇒ void
Apply the given removal policy to this resource.
-
#browser_arn ⇒ String
The ARN of the browser resource.
-
#browser_custom_ref ⇒ AWSCDK::Interfaces::AWSBedrockagentcore::BrowserCustomReference
A reference to a BrowserCustom resource.
-
#browser_id ⇒ String
The id of the browser.
-
#connections ⇒ AWSCDK::EC2::Connections
The network connections associated with this resource.
-
#created_at ⇒ String?
Timestamp when the browser was created.
-
#env ⇒ AWSCDK::Interfaces::ResourceEnvironment
The environment this resource belongs to.
-
#execution_role ⇒ AWSCDK::IAM::IRole
The IAM role that provides permissions for the browser to access AWS services.
-
#grant(grantee, *actions) ⇒ AWSCDK::IAM::Grant
Grants IAM actions to the IAM Principal.
-
#grant_principal ⇒ AWSCDK::IAM::IPrincipal
The principal to grant permissions to.
-
#grant_read(grantee) ⇒ AWSCDK::IAM::Grant
Grants
GetandListactions on the Browser. -
#grant_use(grantee) ⇒ AWSCDK::IAM::Grant
Grants
Invoke,Start, andUpdateactions on the Browser. -
#last_updated_at ⇒ String?
Timestamp when the browser was last updated.
-
#metric(metric_name, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return the given named metric for this browser.
-
#metric_errors_for_api_operation(operation, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric containing the number of errors for a specific API operation performed on this browser.
-
#metric_for_api_operation(metric_name, operation, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return the given named metric related to the API operation performed on this browser.
-
#metric_invocations_for_api_operation(operation, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric containing the total number of API requests made for a specific browser operation.
-
#metric_latency_for_api_operation(operation, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric measuring the latency of a specific API operation performed on this browser.
-
#metric_session_duration(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric measuring the duration of browser sessions.
-
#metric_system_errors_for_api_operation(operation, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric containing the number of system errors for a specific API operation performed on this browser.
-
#metric_take_over_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric containing the number of user takeovers.
-
#metric_take_over_duration(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric measuring the duration of user takeovers.
-
#metric_take_over_release_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric containing the number of user takeovers released.
-
#metric_throttles_for_api_operation(operation, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric containing the number of throttled requests for a specific API operation performed on this browser.
-
#metric_user_errors_for_api_operation(operation, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric containing the number of user errors for a specific API operation performed on this browser.
-
#node ⇒ Constructs::Node
The tree node.
-
#stack ⇒ AWSCDK::Stack
The stack in which this resource is defined.
-
#status ⇒ String?
The status of the browser.
-
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Class Method Details
.jsii_overridable_methods ⇒ Object
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 303 def self.jsii_overridable_methods { :node => { kind: :property, name: "node", is_optional: false }, :env => { kind: :property, name: "env", is_optional: false }, :stack => { kind: :property, name: "stack", is_optional: false }, :grant_principal => { kind: :property, name: "grantPrincipal", is_optional: false }, :connections => { kind: :property, name: "connections", is_optional: false }, :browser_custom_ref => { kind: :property, name: "browserCustomRef", is_optional: false }, :browser_arn => { kind: :property, name: "browserArn", is_optional: false }, :browser_id => { kind: :property, name: "browserId", is_optional: false }, :execution_role => { kind: :property, name: "executionRole", is_optional: false }, :created_at => { kind: :property, name: "createdAt", is_optional: true }, :last_updated_at => { kind: :property, name: "lastUpdatedAt", is_optional: true }, :status => { kind: :property, name: "status", is_optional: true }, :with => { kind: :method, name: "with", is_optional: false }, :apply_removal_policy => { kind: :method, name: "applyRemovalPolicy", is_optional: false }, :grant => { kind: :method, name: "grant", is_optional: false }, :grant_read => { kind: :method, name: "grantRead", is_optional: false }, :grant_use => { kind: :method, name: "grantUse", is_optional: false }, :metric => { kind: :method, name: "metric", is_optional: false }, :metric_errors_for_api_operation => { kind: :method, name: "metricErrorsForApiOperation", is_optional: false }, :metric_for_api_operation => { kind: :method, name: "metricForApiOperation", is_optional: false }, :metric_invocations_for_api_operation => { kind: :method, name: "metricInvocationsForApiOperation", is_optional: false }, :metric_latency_for_api_operation => { kind: :method, name: "metricLatencyForApiOperation", is_optional: false }, :metric_session_duration => { kind: :method, name: "metricSessionDuration", is_optional: false }, :metric_system_errors_for_api_operation => { kind: :method, name: "metricSystemErrorsForApiOperation", is_optional: false }, :metric_take_over_count => { kind: :method, name: "metricTakeOverCount", is_optional: false }, :metric_take_over_duration => { kind: :method, name: "metricTakeOverDuration", is_optional: false }, :metric_take_over_release_count => { kind: :method, name: "metricTakeOverReleaseCount", is_optional: false }, :metric_throttles_for_api_operation => { kind: :method, name: "metricThrottlesForApiOperation", is_optional: false }, :metric_user_errors_for_api_operation => { kind: :method, name: "metricUserErrorsForApiOperation", is_optional: false }, } end |
Instance Method Details
#apply_removal_policy(policy) ⇒ void
This method returns an undefined value.
Apply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
129 130 131 132 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 129 def apply_removal_policy(policy) Jsii::Type.check_type(policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZW1vdmFsUG9saWN5In0=")), "policy") jsii_call_method("applyRemovalPolicy", [policy]) end |
#browser_arn ⇒ String
The ARN of the browser resource.
64 65 66 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 64 def browser_arn() jsii_get_property("browserArn") end |
#browser_custom_ref ⇒ AWSCDK::Interfaces::AWSBedrockagentcore::BrowserCustomReference
A reference to a BrowserCustom resource.
57 58 59 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 57 def browser_custom_ref() jsii_get_property("browserCustomRef") end |
#browser_id ⇒ String
The id of the browser.
71 72 73 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 71 def browser_id() jsii_get_property("browserId") end |
#connections ⇒ AWSCDK::EC2::Connections
The network connections associated with this resource.
50 51 52 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 50 def connections() jsii_get_property("connections") end |
#created_at ⇒ String?
Timestamp when the browser was created.
85 86 87 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 85 def created_at() jsii_get_property("createdAt") end |
#env ⇒ AWSCDK::Interfaces::ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed in a Stack (those created by
creating new class instances like new Role(), new Bucket(), etc.), this
is always the same as the environment of the stack they belong to.
For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be
different than the stack they were imported into.
29 30 31 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 29 def env() jsii_get_property("env") end |
#execution_role ⇒ AWSCDK::IAM::IRole
The IAM role that provides permissions for the browser to access AWS services.
78 79 80 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 78 def execution_role() jsii_get_property("executionRole") end |
#grant(grantee, *actions) ⇒ AWSCDK::IAM::Grant
Grants IAM actions to the IAM Principal.
139 140 141 142 143 144 145 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 139 def grant(grantee, *actions) Jsii::Type.check_type(grantee, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "grantee") actions.each_with_index do |item, index| Jsii::Type.check_type(item, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "actions[#{index}]") end jsii_call_method("grant", [grantee, *actions]) end |
#grant_principal ⇒ AWSCDK::IAM::IPrincipal
The principal to grant permissions to.
43 44 45 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 43 def grant_principal() jsii_get_property("grantPrincipal") end |
#grant_read(grantee) ⇒ AWSCDK::IAM::Grant
Grants Get and List actions on the Browser.
151 152 153 154 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 151 def grant_read(grantee) Jsii::Type.check_type(grantee, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "grantee") jsii_call_method("grantRead", [grantee]) end |
#grant_use(grantee) ⇒ AWSCDK::IAM::Grant
Grants Invoke, Start, and Update actions on the Browser.
160 161 162 163 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 160 def grant_use(grantee) Jsii::Type.check_type(grantee, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "grantee") jsii_call_method("grantUse", [grantee]) end |
#last_updated_at ⇒ String?
Timestamp when the browser was last updated.
92 93 94 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 92 def last_updated_at() jsii_get_property("lastUpdatedAt") end |
#metric(metric_name, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return the given named metric for this browser.
170 171 172 173 174 175 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 170 def metric(metric_name, props = nil) Jsii::Type.check_type(metric_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "metricName") props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("metric", [metric_name, props]) end |
#metric_errors_for_api_operation(operation, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric containing the number of errors for a specific API operation performed on this browser.
182 183 184 185 186 187 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 182 def metric_errors_for_api_operation(operation, props = nil) Jsii::Type.check_type(operation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "operation") props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("metricErrorsForApiOperation", [operation, props]) end |
#metric_for_api_operation(metric_name, operation, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return the given named metric related to the API operation performed on this browser.
195 196 197 198 199 200 201 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 195 def metric_for_api_operation(metric_name, operation, props = nil) Jsii::Type.check_type(metric_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "metricName") Jsii::Type.check_type(operation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "operation") props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("metricForApiOperation", [metric_name, operation, props]) end |
#metric_invocations_for_api_operation(operation, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric containing the total number of API requests made for a specific browser operation.
208 209 210 211 212 213 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 208 def metric_invocations_for_api_operation(operation, props = nil) Jsii::Type.check_type(operation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "operation") props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("metricInvocationsForApiOperation", [operation, props]) end |
#metric_latency_for_api_operation(operation, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric measuring the latency of a specific API operation performed on this browser.
220 221 222 223 224 225 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 220 def metric_latency_for_api_operation(operation, props = nil) Jsii::Type.check_type(operation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "operation") props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("metricLatencyForApiOperation", [operation, props]) end |
#metric_session_duration(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric measuring the duration of browser sessions.
231 232 233 234 235 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 231 def metric_session_duration(props = nil) props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("metricSessionDuration", [props]) end |
#metric_system_errors_for_api_operation(operation, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric containing the number of system errors for a specific API operation performed on this browser.
242 243 244 245 246 247 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 242 def metric_system_errors_for_api_operation(operation, props = nil) Jsii::Type.check_type(operation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "operation") props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("metricSystemErrorsForApiOperation", [operation, props]) end |
#metric_take_over_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric containing the number of user takeovers.
253 254 255 256 257 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 253 def metric_take_over_count(props = nil) props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("metricTakeOverCount", [props]) end |
#metric_take_over_duration(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric measuring the duration of user takeovers.
263 264 265 266 267 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 263 def metric_take_over_duration(props = nil) props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("metricTakeOverDuration", [props]) end |
#metric_take_over_release_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric containing the number of user takeovers released.
273 274 275 276 277 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 273 def metric_take_over_release_count(props = nil) props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("metricTakeOverReleaseCount", [props]) end |
#metric_throttles_for_api_operation(operation, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric containing the number of throttled requests for a specific API operation performed on this browser.
284 285 286 287 288 289 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 284 def metric_throttles_for_api_operation(operation, props = nil) Jsii::Type.check_type(operation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "operation") props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("metricThrottlesForApiOperation", [operation, props]) end |
#metric_user_errors_for_api_operation(operation, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return a metric containing the number of user errors for a specific API operation performed on this browser.
296 297 298 299 300 301 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 296 def metric_user_errors_for_api_operation(operation, props = nil) Jsii::Type.check_type(operation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "operation") props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("metricUserErrorsForApiOperation", [operation, props]) end |
#node ⇒ Constructs::Node
The tree node.
14 15 16 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 14 def node() jsii_get_property("node") end |
#stack ⇒ AWSCDK::Stack
The stack in which this resource is defined.
36 37 38 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 36 def stack() jsii_get_property("stack") end |
#status ⇒ String?
The status of the browser.
99 100 101 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 99 def status() jsii_get_property("status") end |
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited.
110 111 112 113 114 115 |
# File 'bedrock_agent_core/i_browser_custom.rb', line 110 def with(*mixins) mixins.each_with_index do |item, index| Jsii::Type.check_type(item, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklNaXhpbiJ9")), "mixins[#{index}]") end jsii_call_method("with", [*mixins]) end |