Class: AWSCDK::OpenSearchService::Domain
- Inherits:
-
Resource
- Object
- Resource
- AWSCDK::OpenSearchService::Domain
- Includes:
- EC2::IConnectable, IDomain
- Defined in:
- open_search_service/domain.rb
Overview
Provides an Amazon OpenSearch Service domain.
Class Method Summary collapse
-
.from_domain_attributes(scope, id, attrs) ⇒ AWSCDK::OpenSearchService::IDomain
Creates a domain construct that represents an external domain.
-
.from_domain_endpoint(scope, id, domain_endpoint) ⇒ AWSCDK::OpenSearchService::IDomain
Creates a domain construct that represents an external domain via domain endpoint.
- .jsii_overridable_methods ⇒ Object
-
.PROPERTY_INJECTION_ID ⇒ String
Uniquely identifies this class.
Instance Method Summary collapse
-
#add_access_policies(*access_policy_statements) ⇒ void
Add policy statements to the domain access policy.
-
#app_log_group ⇒ AWSCDK::Logs::ILogGroup?
Log group that application logs are logged to.
-
#apply_cross_stack_reference_strength(strength) ⇒ void
Override the cross-stack reference strength for this resource.
-
#apply_removal_policy(policy) ⇒ void
Apply the given removal policy to this resource.
-
#audit_log_group ⇒ AWSCDK::Logs::ILogGroup?
Log group that audit logs are logged to.
-
#connections ⇒ AWSCDK::EC2::Connections
Manages network connections to the domain.
-
#domain_arn ⇒ String
Arn of the Amazon OpenSearch Service domain.
-
#domain_endpoint ⇒ String
Endpoint of the Amazon OpenSearch Service domain.
-
#domain_id ⇒ String
Identifier of the Amazon OpenSearch Service domain.
-
#domain_name ⇒ String
Domain name of the Amazon OpenSearch Service domain.
-
#domain_ref ⇒ AWSCDK::Interfaces::AWSOpensearchservice::DomainReference
A reference to a Domain resource.
-
#env ⇒ AWSCDK::Interfaces::ResourceEnvironment
The environment this resource belongs to.
- #generate_physical_name ⇒ String
-
#get_resource_arn_attribute(arn_attr, arn_components) ⇒ String
Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g.
bucket.bucketArn). -
#get_resource_name_attribute(name_attr) ⇒ String
Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g.
bucket.bucketName). -
#grant_index_read(index, identity) ⇒ AWSCDK::IAM::Grant
Grant read permissions for an index in this domain to an IAM principal (Role/Group/User).
-
#grant_index_read_write(index, identity) ⇒ AWSCDK::IAM::Grant
Grant read/write permissions for an index in this domain to an IAM principal (Role/Group/User).
-
#grant_index_write(index, identity) ⇒ AWSCDK::IAM::Grant
Grant write permissions for an index in this domain to an IAM principal (Role/Group/User).
-
#grant_path_read(path, identity) ⇒ AWSCDK::IAM::Grant
Grant read permissions for a specific path in this domain to an IAM principal (Role/Group/User).
-
#grant_path_read_write(path, identity) ⇒ AWSCDK::IAM::Grant
Grant read/write permissions for a specific path in this domain to an IAM principal (Role/Group/User).
-
#grant_path_write(path, identity) ⇒ AWSCDK::IAM::Grant
Grant write permissions for a specific path in this domain to an IAM principal (Role/Group/User).
-
#grant_read(identity) ⇒ AWSCDK::IAM::Grant
Grant read permissions for this domain and its contents to an IAM principal (Role/Group/User).
-
#grant_read_write(identity) ⇒ AWSCDK::IAM::Grant
Grant read/write permissions for this domain and its contents to an IAM principal (Role/Group/User).
-
#grant_write(identity) ⇒ AWSCDK::IAM::Grant
Grant write permissions for this domain and its contents to an IAM principal (Role/Group/User).
-
#grants ⇒ AWSCDK::OpenSearchService::DomainGrants
Collection of grant methods for a Domain.
-
#initialize(scope, id, props) ⇒ Domain
constructor
A new instance of Domain.
-
#master_user_password ⇒ AWSCDK::SecretValue?
Master user password if fine grained access control is configured.
-
#metric(metric_name, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return the given named metric for this domain.
-
#metric_automated_snapshot_failure(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Metric for automated snapshot failures.
-
#metric_cluster_index_writes_blocked(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Metric for the cluster blocking index writes.
-
#metric_cluster_status_red(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Metric for the time the cluster status is red.
-
#metric_cluster_status_yellow(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Metric for the time the cluster status is yellow.
-
#metric_cpu_utilization(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Metric for CPU utilization.
-
#metric_free_storage_space(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Metric for the storage space of nodes in the cluster.
-
#metric_indexing_latency(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Metric for indexing latency.
-
#metric_jvm_memory_pressure(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Metric for JVM memory pressure.
-
#metric_kms_key_error(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Metric for KMS key errors.
-
#metric_kms_key_inaccessible(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Metric for KMS key being inaccessible.
-
#metric_master_cpu_utilization(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Metric for master CPU utilization.
-
#metric_master_jvm_memory_pressure(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Metric for master JVM memory pressure.
-
#metric_nodes(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Metric for the number of nodes.
-
#metric_search_latency(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Metric for search latency.
-
#metric_searchable_documents(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Metric for number of searchable documents.
-
#node ⇒ Constructs::Node
The tree node.
-
#physical_name ⇒ String
Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
-
#slow_index_log_group ⇒ AWSCDK::Logs::ILogGroup?
Log group that slow indices are logged to.
-
#slow_search_log_group ⇒ AWSCDK::Logs::ILogGroup?
Log group that slow searches are logged to.
-
#stack ⇒ AWSCDK::Stack
The stack in which this resource is defined.
-
#to_string ⇒ String
Returns a string representation of this construct.
-
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Constructor Details
#initialize(scope, id, props) ⇒ Domain
Returns a new instance of Domain.
13 14 15 16 17 18 19 |
# File 'open_search_service/domain.rb', line 13 def initialize(scope, id, props) props = props.is_a?(Hash) ? ::AWSCDK::OpenSearchService::DomainProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfb3BlbnNlYXJjaHNlcnZpY2UuRG9tYWluUHJvcHMifQ==")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(scope, id, props) end |
Class Method Details
.from_domain_attributes(scope, id, attrs) ⇒ AWSCDK::OpenSearchService::IDomain
Creates a domain construct that represents an external domain.
81 82 83 84 85 86 87 |
# File 'open_search_service/domain.rb', line 81 def self.from_domain_attributes(scope, id, attrs) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") attrs = attrs.is_a?(Hash) ? ::AWSCDK::OpenSearchService::DomainAttributes.new(**attrs.transform_keys(&:to_sym)) : attrs Jsii::Type.check_type(attrs, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfb3BlbnNlYXJjaHNlcnZpY2UuRG9tYWluQXR0cmlidXRlcyJ9")), "attrs") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_opensearchservice.Domain", "fromDomainAttributes", [scope, id, attrs]) end |
.from_domain_endpoint(scope, id, domain_endpoint) ⇒ AWSCDK::OpenSearchService::IDomain
Creates a domain construct that represents an external domain via domain endpoint.
95 96 97 98 99 100 |
# File 'open_search_service/domain.rb', line 95 def self.from_domain_endpoint(scope, id, domain_endpoint) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(domain_endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainEndpoint") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_opensearchservice.Domain", "fromDomainEndpoint", [scope, id, domain_endpoint]) end |
.jsii_overridable_methods ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'open_search_service/domain.rb', line 21 def self.jsii_overridable_methods { :node => { kind: :property, name: "node", is_optional: false }, :env => { kind: :property, name: "env", is_optional: false }, :physical_name => { kind: :property, name: "physicalName", is_optional: false }, :stack => { kind: :property, name: "stack", is_optional: false }, :connections => { kind: :property, name: "connections", is_optional: false }, :domain_arn => { kind: :property, name: "domainArn", is_optional: false }, :domain_endpoint => { kind: :property, name: "domainEndpoint", is_optional: false }, :domain_id => { kind: :property, name: "domainId", is_optional: false }, :domain_name => { kind: :property, name: "domainName", is_optional: false }, :domain_ref => { kind: :property, name: "domainRef", is_optional: false }, :grants => { kind: :property, name: "grants", is_optional: false }, :app_log_group => { kind: :property, name: "appLogGroup", is_optional: true }, :audit_log_group => { kind: :property, name: "auditLogGroup", is_optional: true }, :master_user_password => { kind: :property, name: "masterUserPassword", is_optional: true }, :slow_index_log_group => { kind: :property, name: "slowIndexLogGroup", is_optional: true }, :slow_search_log_group => { kind: :property, name: "slowSearchLogGroup", is_optional: true }, :to_string => { kind: :method, name: "toString", is_optional: false }, :with => { kind: :method, name: "with", is_optional: false }, :apply_cross_stack_reference_strength => { kind: :method, name: "applyCrossStackReferenceStrength", is_optional: false }, :apply_removal_policy => { kind: :method, name: "applyRemovalPolicy", is_optional: false }, :generate_physical_name => { kind: :method, name: "generatePhysicalName", is_optional: false }, :get_resource_arn_attribute => { kind: :method, name: "getResourceArnAttribute", is_optional: false }, :get_resource_name_attribute => { kind: :method, name: "getResourceNameAttribute", is_optional: false }, :add_access_policies => { kind: :method, name: "addAccessPolicies", 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 |
.PROPERTY_INJECTION_ID ⇒ String
Uniquely identifies this class.
148 149 150 |
# File 'open_search_service/domain.rb', line 148 def self.PROPERTY_INJECTION_ID() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_opensearchservice.Domain", "PROPERTY_INJECTION_ID") end |
Instance Method Details
#add_access_policies(*access_policy_statements) ⇒ void
This method returns an undefined value.
Add policy statements to the domain access policy.
333 334 335 336 337 338 |
# File 'open_search_service/domain.rb', line 333 def add_access_policies(*access_policy_statements) access_policy_statements.each_with_index do |item, index| Jsii::Type.check_type(item, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLlBvbGljeVN0YXRlbWVudCJ9")), "accessPolicyStatements[#{index}]") end jsii_call_method("addAccessPolicies", [*access_policy_statements]) end |
#app_log_group ⇒ AWSCDK::Logs::ILogGroup?
Log group that application logs are logged to.
207 208 209 |
# File 'open_search_service/domain.rb', line 207 def app_log_group() jsii_get_property("appLogGroup") end |
#apply_cross_stack_reference_strength(strength) ⇒ void
This method returns an undefined value.
Override the cross-stack reference strength for this resource.
When set, any cross-stack reference to this resource will use the specified
mechanism instead of the global default determined by the
@aws-cdk/core:defaultCrossStackReferences context key. This is useful for
selectively weakening specific references to avoid the "deadly embrace" problem
without changing the app-wide default.
272 273 274 275 |
# File 'open_search_service/domain.rb', line 272 def apply_cross_stack_reference_strength(strength) Jsii::Type.check_type(strength, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZWZlcmVuY2VTdHJlbmd0aCJ9")), "strength") jsii_call_method("applyCrossStackReferenceStrength", [strength]) end |
#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).
289 290 291 292 |
# File 'open_search_service/domain.rb', line 289 def apply_removal_policy(policy) Jsii::Type.check_type(policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZW1vdmFsUG9saWN5In0=")), "policy") jsii_call_method("applyRemovalPolicy", [policy]) end |
#audit_log_group ⇒ AWSCDK::Logs::ILogGroup?
Log group that audit logs are logged to.
214 215 216 |
# File 'open_search_service/domain.rb', line 214 def audit_log_group() jsii_get_property("auditLogGroup") end |
#connections ⇒ AWSCDK::EC2::Connections
Manages network connections to the domain.
This will throw an error in case the domain is not placed inside a VPC.
158 159 160 |
# File 'open_search_service/domain.rb', line 158 def connections() jsii_get_property("connections") end |
#domain_arn ⇒ String
Arn of the Amazon OpenSearch Service domain.
165 166 167 |
# File 'open_search_service/domain.rb', line 165 def domain_arn() jsii_get_property("domainArn") end |
#domain_endpoint ⇒ String
Endpoint of the Amazon OpenSearch Service domain.
172 173 174 |
# File 'open_search_service/domain.rb', line 172 def domain_endpoint() jsii_get_property("domainEndpoint") end |
#domain_id ⇒ String
Identifier of the Amazon OpenSearch Service domain.
179 180 181 |
# File 'open_search_service/domain.rb', line 179 def domain_id() jsii_get_property("domainId") end |
#domain_name ⇒ String
Domain name of the Amazon OpenSearch Service domain.
186 187 188 |
# File 'open_search_service/domain.rb', line 186 def domain_name() jsii_get_property("domainName") end |
#domain_ref ⇒ AWSCDK::Interfaces::AWSOpensearchservice::DomainReference
A reference to a Domain resource.
193 194 195 |
# File 'open_search_service/domain.rb', line 193 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.
120 121 122 |
# File 'open_search_service/domain.rb', line 120 def env() jsii_get_property("env") end |
#generate_physical_name ⇒ String
295 296 297 |
# File 'open_search_service/domain.rb', line 295 def generate_physical_name() jsii_call_method("generatePhysicalName", []) end |
#get_resource_arn_attribute(arn_attr, arn_components) ⇒ String
Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. bucket.bucketArn).
Normally, this token will resolve to arn_attr, but if the resource is
referenced across environments, arn_components will be used to synthesize
a concrete ARN with the resource's physical name. Make sure to reference
this.physicalName in arn_components.
309 310 311 312 313 314 |
# File 'open_search_service/domain.rb', line 309 def get_resource_arn_attribute(arn_attr, arn_components) Jsii::Type.check_type(arn_attr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arnAttr") arn_components = arn_components.is_a?(Hash) ? ::AWSCDK::ARNComponents.new(**arn_components.transform_keys(&:to_sym)) : arn_components Jsii::Type.check_type(arn_components, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5Bcm5Db21wb25lbnRzIn0=")), "arnComponents") jsii_call_method("getResourceArnAttribute", [arn_attr, arn_components]) end |
#get_resource_name_attribute(name_attr) ⇒ String
Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. bucket.bucketName).
Normally, this token will resolve to name_attr, but if the resource is
referenced across environments, it will be resolved to this.physicalName,
which will be a concrete name.
324 325 326 327 |
# File 'open_search_service/domain.rb', line 324 def get_resource_name_attribute(name_attr) Jsii::Type.check_type(name_attr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "nameAttr") jsii_call_method("getResourceNameAttribute", [name_attr]) end |
#grant_index_read(index, identity) ⇒ AWSCDK::IAM::Grant
Grant read permissions for an index in this domain to an IAM principal (Role/Group/User).
[disable-awslint:no-grants]
347 348 349 350 351 |
# File 'open_search_service/domain.rb', line 347 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
Grant read/write permissions for an index in this domain to an IAM principal (Role/Group/User).
[disable-awslint:no-grants]
360 361 362 363 364 |
# File 'open_search_service/domain.rb', line 360 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
Grant write permissions for an index in this domain to an IAM principal (Role/Group/User).
[disable-awslint:no-grants]
373 374 375 376 377 |
# File 'open_search_service/domain.rb', line 373 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
Grant read permissions for a specific path in this domain to an IAM principal (Role/Group/User).
[disable-awslint:no-grants]
386 387 388 389 390 |
# File 'open_search_service/domain.rb', line 386 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
Grant read/write permissions for a specific path in this domain to an IAM principal (Role/Group/User).
[disable-awslint:no-grants]
399 400 401 402 403 |
# File 'open_search_service/domain.rb', line 399 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
Grant write permissions for a specific path in this domain to an IAM principal (Role/Group/User).
[disable-awslint:no-grants]
412 413 414 415 416 |
# File 'open_search_service/domain.rb', line 412 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
Grant read permissions for this domain and its contents to an IAM principal (Role/Group/User).
[disable-awslint:no-grants]
424 425 426 427 |
# File 'open_search_service/domain.rb', line 424 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
Grant read/write permissions for this domain and its contents to an IAM principal (Role/Group/User).
[disable-awslint:no-grants]
435 436 437 438 |
# File 'open_search_service/domain.rb', line 435 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
Grant write permissions for this domain and its contents to an IAM principal (Role/Group/User).
[disable-awslint:no-grants]
446 447 448 449 |
# File 'open_search_service/domain.rb', line 446 def grant_write(identity) Jsii::Type.check_type(identity, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "identity") jsii_call_method("grantWrite", [identity]) end |
#grants ⇒ AWSCDK::OpenSearchService::DomainGrants
Collection of grant methods for a Domain.
200 201 202 |
# File 'open_search_service/domain.rb', line 200 def grants() jsii_get_property("grants") end |
#master_user_password ⇒ AWSCDK::SecretValue?
Master user password if fine grained access control is configured.
221 222 223 |
# File 'open_search_service/domain.rb', line 221 def master_user_password() jsii_get_property("masterUserPassword") end |
#metric(metric_name, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Return the given named metric for this domain.
456 457 458 459 460 461 |
# File 'open_search_service/domain.rb', line 456 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
Default: maximum over 5 minutes
Metric for automated snapshot failures.
468 469 470 471 472 |
# File 'open_search_service/domain.rb', line 468 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
Default: maximum over 1 minute
Metric for the cluster blocking index writes.
479 480 481 482 483 |
# File 'open_search_service/domain.rb', line 479 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
Default: maximum over 5 minutes
Metric for the time the cluster status is red.
490 491 492 493 494 |
# File 'open_search_service/domain.rb', line 490 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
Default: maximum over 5 minutes
Metric for the time the cluster status is yellow.
501 502 503 504 505 |
# File 'open_search_service/domain.rb', line 501 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
Default: maximum over 5 minutes
Metric for CPU utilization.
512 513 514 515 516 |
# File 'open_search_service/domain.rb', line 512 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
Default: minimum over 5 minutes
Metric for the storage space of nodes in the cluster.
523 524 525 526 527 |
# File 'open_search_service/domain.rb', line 523 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
Default: p99 over 5 minutes
Metric for indexing latency.
534 535 536 537 538 |
# File 'open_search_service/domain.rb', line 534 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
Default: maximum over 5 minutes
Metric for JVM memory pressure.
545 546 547 548 549 |
# File 'open_search_service/domain.rb', line 545 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
Default: maximum over 5 minutes
Metric for KMS key errors.
556 557 558 559 560 |
# File 'open_search_service/domain.rb', line 556 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
Default: maximum over 5 minutes
Metric for KMS key being inaccessible.
567 568 569 570 571 |
# File 'open_search_service/domain.rb', line 567 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
Default: maximum over 5 minutes
Metric for master CPU utilization.
578 579 580 581 582 |
# File 'open_search_service/domain.rb', line 578 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
Default: maximum over 5 minutes
Metric for master JVM memory pressure.
589 590 591 592 593 |
# File 'open_search_service/domain.rb', line 589 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
Default: minimum over 1 hour
Metric for the number of nodes.
600 601 602 603 604 |
# File 'open_search_service/domain.rb', line 600 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
Default: p99 over 5 minutes
Metric for search latency.
622 623 624 625 626 |
# File 'open_search_service/domain.rb', line 622 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
Default: maximum over 5 minutes
Metric for number of searchable documents.
611 612 613 614 615 |
# File 'open_search_service/domain.rb', line 611 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.
105 106 107 |
# File 'open_search_service/domain.rb', line 105 def node() jsii_get_property("node") end |
#physical_name ⇒ String
Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
This value will resolve to one of the following:
- a concrete value (e.g.
"my-awesome-bucket") undefined, when a name should be generated by CloudFormation- a concrete name generated automatically during synthesis, in cross-environment scenarios.
134 135 136 |
# File 'open_search_service/domain.rb', line 134 def physical_name() jsii_get_property("physicalName") end |
#slow_index_log_group ⇒ AWSCDK::Logs::ILogGroup?
Log group that slow indices are logged to.
228 229 230 |
# File 'open_search_service/domain.rb', line 228 def slow_index_log_group() jsii_get_property("slowIndexLogGroup") end |
#slow_search_log_group ⇒ AWSCDK::Logs::ILogGroup?
Log group that slow searches are logged to.
235 236 237 |
# File 'open_search_service/domain.rb', line 235 def slow_search_log_group() jsii_get_property("slowSearchLogGroup") end |
#stack ⇒ AWSCDK::Stack
The stack in which this resource is defined.
141 142 143 |
# File 'open_search_service/domain.rb', line 141 def stack() jsii_get_property("stack") end |
#to_string ⇒ String
Returns a string representation of this construct.
242 243 244 |
# File 'open_search_service/domain.rb', line 242 def to_string() jsii_call_method("toString", []) 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.
Use multiple with() calls if subsequent mixins should apply to added
constructs.
255 256 257 258 259 260 |
# File 'open_search_service/domain.rb', line 255 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 |