create_elasticsearch_domain
async
¶
create_elasticsearch_domain(
domain_name: DomainName,
*,
config_overrides: Optional[AsyncElasticsearchServiceClientConfig] = None,
elasticsearch_version: Optional[ElasticsearchVersionString] = None,
elasticsearch_cluster_config: Optional[ElasticsearchClusterConfig] = None,
ebs_options: Optional[EBSOptions] = None,
access_policies: Optional[PolicyDocument] = None,
snapshot_options: Optional[SnapshotOptions] = None,
vpc_options: Optional[VPCOptions] = None,
cognito_options: Optional[CognitoOptions] = None,
encryption_at_rest_options: Optional[EncryptionAtRestOptions] = None,
node_to_node_encryption_options: Optional[NodeToNodeEncryptionOptions] = None,
advanced_options: Optional[AdvancedOptions] = None,
log_publishing_options: Optional[LogPublishingOptions] = None,
domain_endpoint_options: Optional[DomainEndpointOptions] = None,
advanced_security_options: Optional[AdvancedSecurityOptionsInput] = None,
auto_tune_options: Optional[AutoTuneOptionsInput] = None,
tag_list: Optional[TagList] = None,
deployment_strategy_options: Optional[DeploymentStrategyOptions] = None,
automated_snapshot_pause_options: Optional[
AutomatedSnapshotPauseRequestOptions
] = None,
use_case: Optional[DomainUseCase] = None,
engine_mode: Optional[DomainEngineMode] = None,
) -> CreateElasticsearchDomainResponse
Creates a new Elasticsearch domain. For more information, see Creating Elasticsearch Domains in the Amazon Elasticsearch Service Developer Guide.
Parameters:
-
domain_name(DomainName) –The name of the Elasticsearch domain that you are creating. Domain names are unique across the domains owned by an account within an AWS region. Domain names must start with a lowercase letter and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
-
elasticsearch_version(Optional[ElasticsearchVersionString], default:None) –String of format X.Y to specify version for the Elasticsearch domain eg. "1.5" or "2.3". For more information, see Creating Elasticsearch Domains in the Amazon Elasticsearch Service Developer Guide.
-
elasticsearch_cluster_config(Optional[ElasticsearchClusterConfig], default:None) –Configuration options for an Elasticsearch domain. Specifies the instance type and number of instances in the domain cluster.
-
ebs_options(Optional[EBSOptions], default:None) –Options to enable, disable and specify the type and size of EBS storage volumes.
-
access_policies(Optional[PolicyDocument], default:None) –IAM access policy as a JSON-formatted string.
-
snapshot_options(Optional[SnapshotOptions], default:None) –Option to set time, in UTC format, of the daily automated snapshot. Default value is 0 hours.
-
vpc_options(Optional[VPCOptions], default:None) –Options to specify the subnets and security groups for VPC endpoint. For more information, see Creating a VPC in VPC Endpoints for Amazon Elasticsearch Service Domains
-
cognito_options(Optional[CognitoOptions], default:None) –Options to specify the Cognito user and identity pools for Kibana authentication. For more information, see Amazon Cognito Authentication for Kibana.
-
encryption_at_rest_options(Optional[EncryptionAtRestOptions], default:None) –Specifies the Encryption At Rest Options.
-
node_to_node_encryption_options(Optional[NodeToNodeEncryptionOptions], default:None) –Specifies the NodeToNodeEncryptionOptions.
-
advanced_options(Optional[AdvancedOptions], default:None) –Option to allow references to indices in an HTTP request body. Must be
falsewhen configuring access to individual sub-resources. By default, the value istrue. See Configuration Advanced Options for more information. -
log_publishing_options(Optional[LogPublishingOptions], default:None) –Map of
LogTypeandLogPublishingOption, each containing options to publish a given type of Elasticsearch log. -
domain_endpoint_options(Optional[DomainEndpointOptions], default:None) –Options to specify configuration that will be applied to the domain endpoint.
-
advanced_security_options(Optional[AdvancedSecurityOptionsInput], default:None) –Specifies advanced security options.
-
auto_tune_options(Optional[AutoTuneOptionsInput], default:None) –Specifies Auto-Tune options.
-
tag_list(Optional[TagList], default:None) –A list of
Tagadded during domain creation. -
deployment_strategy_options(Optional[DeploymentStrategyOptions], default:None) –Specifies the deployment strategy options.
-
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[DomainEngineMode], default:None) –The engine mode for the domain. For valid values and requirements, see
DomainEngineMode.
Raises:
-
BaseException–An error occurred while processing the request.
-
DisabledOperationException–An error occured because the client wanted to access a not supported operation. Gives http status code of 409.
-
InternalException–The request processing has failed because of an unknown error, exception or failure (the failure is internal to the service) . Gives http status code of 500.
-
InvalidTypeException–An exception for trying to create or access sub-resource that is either invalid or not supported. Gives http status code of 409.
-
LimitExceededException–An exception for trying to create more than allowed resources or sub-resources. Gives http status code of 409.
-
ResourceAlreadyExistsException–An exception for creating a resource that already exists. Gives http status code of 400.
-
ValidationException–An exception for missing / invalid input fields. Gives http status code of 400.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_elasticsearch_service/_services/async_elasticsearch_service.py
603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 | |