update_domain_config
async
¶
update_domain_config(
domain_name: DomainName,
*,
config_overrides: Optional[AsyncOpenSearchClientConfig] = None,
cluster_config: Optional[ClusterConfig] = None,
ebs_options: Optional[EBSOptions] = None,
snapshot_options: Optional[SnapshotOptions] = None,
vpc_options: Optional[VPCOptions] = None,
cognito_options: Optional[CognitoOptions] = None,
advanced_options: Optional[AdvancedOptions] = None,
access_policies: Optional[PolicyDocument] = None,
ip_address_type: Optional[IPAddressType] = None,
log_publishing_options: Optional[LogPublishingOptions] = None,
catalog_options: Optional[CatalogOptions] = None,
encryption_at_rest_options: Optional[EncryptionAtRestOptions] = None,
domain_endpoint_options: Optional[DomainEndpointOptions] = None,
node_to_node_encryption_options: Optional[NodeToNodeEncryptionOptions] = None,
advanced_security_options: Optional[AdvancedSecurityOptionsInput] = None,
identity_center_options: Optional[IdentityCenterOptionsInput] = None,
auto_tune_options: Optional[AutoTuneOptions] = None,
dry_run: Optional[DryRun] = None,
dry_run_mode: Optional[DryRunMode] = None,
off_peak_window_options: Optional[OffPeakWindowOptions] = None,
software_update_options: Optional[SoftwareUpdateOptions] = None,
aiml_options: Optional[AIMLOptionsInput] = None,
deployment_strategy_options: Optional[DeploymentStrategyOptions] = None,
automated_snapshot_pause_options: Optional[
AutomatedSnapshotPauseRequestOptions
] = None,
use_case: Optional[DomainUseCase] = None,
engine_mode: Optional[EngineMode] = None,
accepted_warnings: Optional[AcceptedWarningsList] = None,
) -> UpdateDomainConfigResponse
Modifies the cluster configuration of the specified Amazon OpenSearch Service domain.
Parameters:
-
domain_name(DomainName) –The name of the domain that you're updating.
-
cluster_config(Optional[ClusterConfig], default:None) –Changes that you want to make to the cluster configuration, such as the instance type and number of EC2 instances.
-
ebs_options(Optional[EBSOptions], default:None) –The type and size of the EBS volume to attach to instances in the domain.
-
snapshot_options(Optional[SnapshotOptions], default:None) –Option to set the time, in UTC format, for the daily automated snapshot. Default value is
0hours. -
vpc_options(Optional[VPCOptions], default:None) –Options to specify the subnets and security groups for a VPC endpoint. For more information, see Launching your Amazon OpenSearch Service domains using a VPC.
-
cognito_options(Optional[CognitoOptions], default:None) –Key-value pairs to configure Amazon Cognito authentication for OpenSearch Dashboards.
-
advanced_options(Optional[AdvancedOptions], default:None) –Key-value pairs to specify advanced configuration options. The following key-value pairs are supported:
-
"rest.action.multi.allow_explicit_index": "true" | "false"- Note the use of a string rather than a boolean. Specifies whether explicit references to indexes are allowed inside the body of HTTP requests. If you want to configure access policies for domain sub-resources, such as specific indexes and domain APIs, you must disable this property. Default is true. -
"indices.fielddata.cache.size": "80"- Note the use of a string rather than a boolean. Specifies the percentage of heap space allocated to field data. Default is unbounded. -
"indices.query.bool.max_clause_count": "1024"- Note the use of a string rather than a boolean. Specifies the maximum number of clauses allowed in a Lucene boolean query. Default is 1,024. Queries with more than the permitted number of clauses result in aTooManyClauseserror.
For more information, see Advanced cluster parameters.
-
-
access_policies(Optional[PolicyDocument], default:None) –Identity and Access Management (IAM) access policy as a JSON-formatted string.
-
ip_address_type(Optional[IPAddressType], default:None) –Specify either dual stack or IPv4 as your IP address type. Dual stack allows you to share domain resources across IPv4 and IPv6 address types, and is the recommended option. If your IP address type is currently set to dual stack, you can't change it.
-
log_publishing_options(Optional[LogPublishingOptions], default:None) –Options to publish OpenSearch logs to Amazon CloudWatch Logs.
-
catalog_options(Optional[CatalogOptions], default:None) –Options for publishing the domain's data to a data catalog, such as a service-managed Amazon S3 Tables catalog.
-
encryption_at_rest_options(Optional[EncryptionAtRestOptions], default:None) –Encryption at rest options for the domain.
-
domain_endpoint_options(Optional[DomainEndpointOptions], default:None) –Additional options for the domain endpoint, such as whether to require HTTPS for all traffic.
-
node_to_node_encryption_options(Optional[NodeToNodeEncryptionOptions], default:None) –Node-to-node encryption options for the domain.
-
advanced_security_options(Optional[AdvancedSecurityOptionsInput], default:None) –Options for fine-grained access control.
-
auto_tune_options(Optional[AutoTuneOptions], default:None) –Options for Auto-Tune.
-
dry_run(Optional[DryRun], default:None) –This flag, when set to True, specifies whether the
UpdateDomainrequest should return the results of a dry run analysis without actually applying the change. A dry run determines what type of deployment the update will cause. -
dry_run_mode(Optional[DryRunMode], default:None) –The type of dry run to perform.
-
Basiconly returns the type of deployment (blue/green or dynamic) that the update will cause. -
Verboseruns an additional check to validate the changes you're making. For more information, see Validating a domain update.
-
-
off_peak_window_options(Optional[OffPeakWindowOptions], default:None) –Off-peak window options for the domain.
-
software_update_options(Optional[SoftwareUpdateOptions], default:None) –Service software update options for the domain.
-
aiml_options(Optional[AIMLOptionsInput], default:None) –Options for all machine learning features for the specified domain.
-
deployment_strategy_options(Optional[DeploymentStrategyOptions], default:None) –Specifies the deployment strategy options for the domain.
-
automated_snapshot_pause_options(Optional[AutomatedSnapshotPauseRequestOptions], default:None) –Specifies the automated snapshot pause options for the domain.
Suspending snapshots reduces data protection. You cannot restore your domain to points in time when snapshots are suspended. Use this feature only for short-term operational needs such as migrations or maintenance windows.
Maximum suspension duration: 3 days.
-
use_case(Optional[DomainUseCase], default:None) –The primary use case for the domain. For valid values, see
DomainUseCase. -
engine_mode(Optional[EngineMode], default:None) –The engine mode for the domain. The engine mode can't be changed after the domain is created. For valid values, see
EngineMode. -
accepted_warnings(Optional[AcceptedWarningsList], default:None) –A list of advisory warning codes to accept for this configuration change. By default, any advisory warning blocks the change. Include the code of each warning you want to accept so the change can proceed. You can find warning codes in the
ValidationFailureslist returned byDescribeDomainChangeProgressandDescribeDryRunProgress. Critical validation failures cannot be accepted and always block the change. If you omit this parameter or pass an empty list, all warnings block the change. For more information, see Validating a domain update.
Raises:
-
BaseException–An error occurred while processing the request.
-
InternalException–Request processing failed because of an unknown error, exception, or internal failure.
-
InvalidTypeException–An exception for trying to create or access a sub-resource that's either invalid or not supported.
-
LimitExceededException–An exception for trying to create more than the allowed number of resources or sub-resources.
-
ResourceNotFoundException–An exception for accessing or deleting a resource that doesn't exist.
-
ValidationException–An exception for accessing or deleting a resource that doesn't exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_opensearch/_services/async_open_search.py
6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 | |