Module: AWSCDK::Elasticsearch::IDomain Deprecated
- Includes:
- IResource, Interfaces::AWSElasticsearch::IDomainRef
- Included in:
- Domain
- Defined in:
- elasticsearch/i_domain.rb
Overview
use opensearchservice module instead
An interface that represents an Elasticsearch domain - either created with the CDK, or an existing one.
Class Method Summary collapse
Instance Method Summary collapse
-
#apply_removal_policy(policy) ⇒ void
Apply the given removal policy to this resource.
-
#domain_arn ⇒ String
deprecated
Deprecated.
use opensearchservice module instead
-
#domain_endpoint ⇒ String
deprecated
Deprecated.
use opensearchservice module instead
-
#domain_name ⇒ String
deprecated
Deprecated.
use opensearchservice module instead
-
#domain_ref ⇒ AWSCDK::Interfaces::AWSElasticsearch::DomainReference
A reference to a Domain resource.
-
#env ⇒ AWSCDK::Interfaces::ResourceEnvironment
The environment this resource belongs to.
-
#grant_index_read(index, identity) ⇒ AWSCDK::IAM::Grant
deprecated
Deprecated.
use opensearchservice module instead
-
#grant_index_read_write(index, identity) ⇒ AWSCDK::IAM::Grant
deprecated
Deprecated.
use opensearchservice module instead
-
#grant_index_write(index, identity) ⇒ AWSCDK::IAM::Grant
deprecated
Deprecated.
use opensearchservice module instead
-
#grant_path_read(path, identity) ⇒ AWSCDK::IAM::Grant
deprecated
Deprecated.
use opensearchservice module instead
-
#grant_path_read_write(path, identity) ⇒ AWSCDK::IAM::Grant
deprecated
Deprecated.
use opensearchservice module instead
-
#grant_path_write(path, identity) ⇒ AWSCDK::IAM::Grant
deprecated
Deprecated.
use opensearchservice module instead
-
#grant_read(identity) ⇒ AWSCDK::IAM::Grant
deprecated
Deprecated.
use opensearchservice module instead
-
#grant_read_write(identity) ⇒ AWSCDK::IAM::Grant
deprecated
Deprecated.
use opensearchservice module instead
-
#grant_write(identity) ⇒ AWSCDK::IAM::Grant
deprecated
Deprecated.
use opensearchservice module instead
-
#metric(metric_name, props = nil) ⇒ AWSCDK::CloudWatch::Metric
deprecated
Deprecated.
use opensearchservice module instead
-
#metric_automated_snapshot_failure(props = nil) ⇒ AWSCDK::CloudWatch::Metric
deprecated
Deprecated.
use opensearchservice module instead
-
#metric_cluster_index_writes_blocked(props = nil) ⇒ AWSCDK::CloudWatch::Metric
deprecated
Deprecated.
use opensearchservice module instead
-
#metric_cluster_status_red(props = nil) ⇒ AWSCDK::CloudWatch::Metric
deprecated
Deprecated.
use opensearchservice module instead
-
#metric_cluster_status_yellow(props = nil) ⇒ AWSCDK::CloudWatch::Metric
deprecated
Deprecated.
use opensearchservice module instead
-
#metric_cpu_utilization(props = nil) ⇒ AWSCDK::CloudWatch::Metric
deprecated
Deprecated.
use opensearchservice module instead
-
#metric_free_storage_space(props = nil) ⇒ AWSCDK::CloudWatch::Metric
deprecated
Deprecated.
use opensearchservice module instead
-
#metric_indexing_latency(props = nil) ⇒ AWSCDK::CloudWatch::Metric
deprecated
Deprecated.
use opensearchservice module instead
-
#metric_jvm_memory_pressure(props = nil) ⇒ AWSCDK::CloudWatch::Metric
deprecated
Deprecated.
use opensearchservice module instead
-
#metric_kms_key_error(props = nil) ⇒ AWSCDK::CloudWatch::Metric
deprecated
Deprecated.
use opensearchservice module instead
-
#metric_kms_key_inaccessible(props = nil) ⇒ AWSCDK::CloudWatch::Metric
deprecated
Deprecated.
use opensearchservice module instead
-
#metric_master_cpu_utilization(props = nil) ⇒ AWSCDK::CloudWatch::Metric
deprecated
Deprecated.
use opensearchservice module instead
-
#metric_master_jvm_memory_pressure(props = nil) ⇒ AWSCDK::CloudWatch::Metric
deprecated
Deprecated.
use opensearchservice module instead
-
#metric_nodes(props = nil) ⇒ AWSCDK::CloudWatch::Metric
deprecated
Deprecated.
use opensearchservice module instead
-
#metric_search_latency(props = nil) ⇒ AWSCDK::CloudWatch::Metric
deprecated
Deprecated.
use opensearchservice module instead
-
#metric_searchable_documents(props = nil) ⇒ AWSCDK::CloudWatch::Metric
deprecated
Deprecated.
use opensearchservice module instead
-
#node ⇒ Constructs::Node
The tree node.
-
#stack ⇒ AWSCDK::Stack
The stack in which this resource is defined.
-
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Class Method Details
.jsii_overridable_methods ⇒ Object
397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'elasticsearch/i_domain.rb', line 397 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 }, :domain_ref => { kind: :property, name: "domainRef", is_optional: false }, :domain_arn => { kind: :property, name: "domainArn", is_optional: false }, :domain_endpoint => { kind: :property, name: "domainEndpoint", is_optional: false }, :domain_name => { kind: :property, name: "domainName", is_optional: false }, :with => { kind: :method, name: "with", is_optional: false }, :apply_removal_policy => { kind: :method, name: "applyRemovalPolicy", is_optional: false }, :grant_index_read => { kind: :method, name: "grantIndexRead", is_optional: false }, :grant_index_read_write => { kind: :method, name: "grantIndexReadWrite", is_optional: false }, :grant_index_write => { kind: :method, name: "grantIndexWrite", is_optional: false }, :grant_path_read => { kind: :method, name: "grantPathRead", is_optional: false }, :grant_path_read_write => { kind: :method, name: "grantPathReadWrite", is_optional: false }, :grant_path_write => { kind: :method, name: "grantPathWrite", is_optional: false }, :grant_read => { kind: :method, name: "grantRead", is_optional: false }, :grant_read_write => { kind: :method, name: "grantReadWrite", is_optional: false }, :grant_write => { kind: :method, name: "grantWrite", is_optional: false }, :metric => { kind: :method, name: "metric", is_optional: false }, :metric_automated_snapshot_failure => { kind: :method, name: "metricAutomatedSnapshotFailure", is_optional: false }, :metric_cluster_index_writes_blocked => { kind: :method, name: "metricClusterIndexWritesBlocked", is_optional: false }, :metric_cluster_status_red => { kind: :method, name: "metricClusterStatusRed", is_optional: false }, :metric_cluster_status_yellow => { kind: :method, name: "metricClusterStatusYellow", is_optional: false }, :metric_cpu_utilization => { kind: :method, name: "metricCPUUtilization", is_optional: false }, :metric_free_storage_space => { kind: :method, name: "metricFreeStorageSpace", is_optional: false }, :metric_indexing_latency => { kind: :method, name: "metricIndexingLatency", is_optional: false }, :metric_jvm_memory_pressure => { kind: :method, name: "metricJVMMemoryPressure", is_optional: false }, :metric_kms_key_error => { kind: :method, name: "metricKMSKeyError", is_optional: false }, :metric_kms_key_inaccessible => { kind: :method, name: "metricKMSKeyInaccessible", is_optional: false }, :metric_master_cpu_utilization => { kind: :method, name: "metricMasterCPUUtilization", is_optional: false }, :metric_master_jvm_memory_pressure => { kind: :method, name: "metricMasterJVMMemoryPressure", is_optional: false }, :metric_nodes => { kind: :method, name: "metricNodes", is_optional: false }, :metric_searchable_documents => { kind: :method, name: "metricSearchableDocuments", is_optional: false }, :metric_search_latency => { kind: :method, name: "metricSearchLatency", 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).
97 98 99 100 |
# File 'elasticsearch/i_domain.rb', line 97 def apply_removal_policy(policy) Jsii::Type.check_type(policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZW1vdmFsUG9saWN5In0=")), "policy") jsii_call_method("applyRemovalPolicy", [policy]) end |
#domain_arn ⇒ String
use opensearchservice module instead
Arn of the Elasticsearch domain.
51 52 53 |
# File 'elasticsearch/i_domain.rb', line 51 def domain_arn() jsii_get_property("domainArn") end |
#domain_endpoint ⇒ String
use opensearchservice module instead
Endpoint of the Elasticsearch domain.
59 60 61 |
# File 'elasticsearch/i_domain.rb', line 59 def domain_endpoint() jsii_get_property("domainEndpoint") end |
#domain_name ⇒ String
use opensearchservice module instead
Domain name of the Elasticsearch domain.
67 68 69 |
# File 'elasticsearch/i_domain.rb', line 67 def domain_name() jsii_get_property("domainName") end |
#domain_ref ⇒ AWSCDK::Interfaces::AWSElasticsearch::DomainReference
A reference to a Domain resource.
43 44 45 |
# File 'elasticsearch/i_domain.rb', line 43 def domain_ref() jsii_get_property("domainRef") 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 'elasticsearch/i_domain.rb', line 29 def env() jsii_get_property("env") end |
#grant_index_read(index, identity) ⇒ AWSCDK::IAM::Grant
use opensearchservice module instead
Grant read permissions for an index in this domain to an IAM principal (Role/Group/User).
108 109 110 111 112 |
# File 'elasticsearch/i_domain.rb', line 108 def grant_index_read(index, identity) Jsii::Type.check_type(index, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "index") Jsii::Type.check_type(identity, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "identity") jsii_call_method("grantIndexRead", [index, identity]) end |
#grant_index_read_write(index, identity) ⇒ AWSCDK::IAM::Grant
use opensearchservice module instead
Grant read/write permissions for an index in this domain to an IAM principal (Role/Group/User).
120 121 122 123 124 |
# File 'elasticsearch/i_domain.rb', line 120 def grant_index_read_write(index, identity) Jsii::Type.check_type(index, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "index") Jsii::Type.check_type(identity, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "identity") jsii_call_method("grantIndexReadWrite", [index, identity]) end |
#grant_index_write(index, identity) ⇒ AWSCDK::IAM::Grant
use opensearchservice module instead
Grant write permissions for an index in this domain to an IAM principal (Role/Group/User).
132 133 134 135 136 |
# File 'elasticsearch/i_domain.rb', line 132 def grant_index_write(index, identity) Jsii::Type.check_type(index, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "index") Jsii::Type.check_type(identity, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "identity") jsii_call_method("grantIndexWrite", [index, identity]) end |
#grant_path_read(path, identity) ⇒ AWSCDK::IAM::Grant
use opensearchservice module instead
Grant read permissions for a specific path in this domain to an IAM principal (Role/Group/User).
144 145 146 147 148 |
# File 'elasticsearch/i_domain.rb', line 144 def grant_path_read(path, identity) Jsii::Type.check_type(path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path") Jsii::Type.check_type(identity, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "identity") jsii_call_method("grantPathRead", [path, identity]) end |
#grant_path_read_write(path, identity) ⇒ AWSCDK::IAM::Grant
use opensearchservice module instead
Grant read/write permissions for a specific path in this domain to an IAM principal (Role/Group/User).
156 157 158 159 160 |
# File 'elasticsearch/i_domain.rb', line 156 def grant_path_read_write(path, identity) Jsii::Type.check_type(path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path") Jsii::Type.check_type(identity, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "identity") jsii_call_method("grantPathReadWrite", [path, identity]) end |
#grant_path_write(path, identity) ⇒ AWSCDK::IAM::Grant
use opensearchservice module instead
Grant write permissions for a specific path in this domain to an IAM principal (Role/Group/User).
168 169 170 171 172 |
# File 'elasticsearch/i_domain.rb', line 168 def grant_path_write(path, identity) Jsii::Type.check_type(path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path") Jsii::Type.check_type(identity, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "identity") jsii_call_method("grantPathWrite", [path, identity]) end |
#grant_read(identity) ⇒ AWSCDK::IAM::Grant
use opensearchservice module instead
Grant read permissions for this domain and its contents to an IAM principal (Role/Group/User).
179 180 181 182 |
# File 'elasticsearch/i_domain.rb', line 179 def grant_read(identity) Jsii::Type.check_type(identity, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "identity") jsii_call_method("grantRead", [identity]) end |
#grant_read_write(identity) ⇒ AWSCDK::IAM::Grant
use opensearchservice module instead
Grant read/write permissions for this domain and its contents to an IAM principal (Role/Group/User).
189 190 191 192 |
# File 'elasticsearch/i_domain.rb', line 189 def grant_read_write(identity) Jsii::Type.check_type(identity, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "identity") jsii_call_method("grantReadWrite", [identity]) end |
#grant_write(identity) ⇒ AWSCDK::IAM::Grant
use opensearchservice module instead
Grant write permissions for this domain and its contents to an IAM principal (Role/Group/User).
199 200 201 202 |
# File 'elasticsearch/i_domain.rb', line 199 def grant_write(identity) Jsii::Type.check_type(identity, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "identity") jsii_call_method("grantWrite", [identity]) end |
#metric(metric_name, props = nil) ⇒ AWSCDK::CloudWatch::Metric
use opensearchservice module instead
Return the given named metric for this Domain.
210 211 212 213 214 215 |
# File 'elasticsearch/i_domain.rb', line 210 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_automated_snapshot_failure(props = nil) ⇒ AWSCDK::CloudWatch::Metric
use opensearchservice module instead
Default: maximum over 5 minutes
Metric for automated snapshot failures.
223 224 225 226 227 |
# File 'elasticsearch/i_domain.rb', line 223 def metric_automated_snapshot_failure(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("metricAutomatedSnapshotFailure", [props]) end |
#metric_cluster_index_writes_blocked(props = nil) ⇒ AWSCDK::CloudWatch::Metric
use opensearchservice module instead
Default: maximum over 1 minute
Metric for the cluster blocking index writes.
235 236 237 238 239 |
# File 'elasticsearch/i_domain.rb', line 235 def metric_cluster_index_writes_blocked(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("metricClusterIndexWritesBlocked", [props]) end |
#metric_cluster_status_red(props = nil) ⇒ AWSCDK::CloudWatch::Metric
use opensearchservice module instead
Default: maximum over 5 minutes
Metric for the time the cluster status is red.
247 248 249 250 251 |
# File 'elasticsearch/i_domain.rb', line 247 def metric_cluster_status_red(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("metricClusterStatusRed", [props]) end |
#metric_cluster_status_yellow(props = nil) ⇒ AWSCDK::CloudWatch::Metric
use opensearchservice module instead
Default: maximum over 5 minutes
Metric for the time the cluster status is yellow.
259 260 261 262 263 |
# File 'elasticsearch/i_domain.rb', line 259 def metric_cluster_status_yellow(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("metricClusterStatusYellow", [props]) end |
#metric_cpu_utilization(props = nil) ⇒ AWSCDK::CloudWatch::Metric
use opensearchservice module instead
Default: maximum over 5 minutes
Metric for CPU utilization.
271 272 273 274 275 |
# File 'elasticsearch/i_domain.rb', line 271 def metric_cpu_utilization(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("metricCPUUtilization", [props]) end |
#metric_free_storage_space(props = nil) ⇒ AWSCDK::CloudWatch::Metric
use opensearchservice module instead
Default: minimum over 5 minutes
Metric for the storage space of nodes in the cluster.
283 284 285 286 287 |
# File 'elasticsearch/i_domain.rb', line 283 def metric_free_storage_space(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("metricFreeStorageSpace", [props]) end |
#metric_indexing_latency(props = nil) ⇒ AWSCDK::CloudWatch::Metric
use opensearchservice module instead
Default: p99 over 5 minutes
Metric for indexing latency.
295 296 297 298 299 |
# File 'elasticsearch/i_domain.rb', line 295 def metric_indexing_latency(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("metricIndexingLatency", [props]) end |
#metric_jvm_memory_pressure(props = nil) ⇒ AWSCDK::CloudWatch::Metric
use opensearchservice module instead
Default: maximum over 5 minutes
Metric for JVM memory pressure.
307 308 309 310 311 |
# File 'elasticsearch/i_domain.rb', line 307 def metric_jvm_memory_pressure(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("metricJVMMemoryPressure", [props]) end |
#metric_kms_key_error(props = nil) ⇒ AWSCDK::CloudWatch::Metric
use opensearchservice module instead
Default: maximum over 5 minutes
Metric for KMS key errors.
319 320 321 322 323 |
# File 'elasticsearch/i_domain.rb', line 319 def metric_kms_key_error(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("metricKMSKeyError", [props]) end |
#metric_kms_key_inaccessible(props = nil) ⇒ AWSCDK::CloudWatch::Metric
use opensearchservice module instead
Default: maximum over 5 minutes
Metric for KMS key being inaccessible.
331 332 333 334 335 |
# File 'elasticsearch/i_domain.rb', line 331 def metric_kms_key_inaccessible(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("metricKMSKeyInaccessible", [props]) end |
#metric_master_cpu_utilization(props = nil) ⇒ AWSCDK::CloudWatch::Metric
use opensearchservice module instead
Default: maximum over 5 minutes
Metric for master CPU utilization.
343 344 345 346 347 |
# File 'elasticsearch/i_domain.rb', line 343 def metric_master_cpu_utilization(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("metricMasterCPUUtilization", [props]) end |
#metric_master_jvm_memory_pressure(props = nil) ⇒ AWSCDK::CloudWatch::Metric
use opensearchservice module instead
Default: maximum over 5 minutes
Metric for master JVM memory pressure.
355 356 357 358 359 |
# File 'elasticsearch/i_domain.rb', line 355 def metric_master_jvm_memory_pressure(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("metricMasterJVMMemoryPressure", [props]) end |
#metric_nodes(props = nil) ⇒ AWSCDK::CloudWatch::Metric
use opensearchservice module instead
Default: minimum over 1 hour
Metric for the number of nodes.
367 368 369 370 371 |
# File 'elasticsearch/i_domain.rb', line 367 def metric_nodes(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("metricNodes", [props]) end |
#metric_search_latency(props = nil) ⇒ AWSCDK::CloudWatch::Metric
use opensearchservice module instead
Default: p99 over 5 minutes
Metric for search latency.
391 392 393 394 395 |
# File 'elasticsearch/i_domain.rb', line 391 def metric_search_latency(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("metricSearchLatency", [props]) end |
#metric_searchable_documents(props = nil) ⇒ AWSCDK::CloudWatch::Metric
use opensearchservice module instead
Default: maximum over 5 minutes
Metric for number of searchable documents.
379 380 381 382 383 |
# File 'elasticsearch/i_domain.rb', line 379 def metric_searchable_documents(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("metricSearchableDocuments", [props]) end |
#node ⇒ Constructs::Node
The tree node.
14 15 16 |
# File 'elasticsearch/i_domain.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 'elasticsearch/i_domain.rb', line 36 def stack() jsii_get_property("stack") 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.
78 79 80 81 82 83 |
# File 'elasticsearch/i_domain.rb', line 78 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 |