AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Implementation for accessing Elasticsearch

Amazon Elasticsearch Configuration Service

Use the Amazon Elasticsearch Configuration API to create, configure, and manage Elasticsearch domains.

For sample code that uses the Configuration API, see the Amazon Elasticsearch Service Developer Guide. The guide also contains sample code for sending signed HTTP requests to the Elasticsearch APIs.

The endpoint for configuration service requests is region-specific: es.region.amazonaws.com. For example, es.us-east-1.amazonaws.com. For a current list of supported regions and endpoints, see Regions and Endpoints.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonServiceClient
    Amazon.Elasticsearch.AmazonElasticsearchClient

Namespace: Amazon.Elasticsearch
Assembly: AWSSDK.Elasticsearch.dll
Version: 3.x.y.z

Syntax

C#
public class AmazonElasticsearchClient : AmazonServiceClient
         IAmazonElasticsearch, IAmazonService, IDisposable

The AmazonElasticsearchClient type exposes the following members

Constructors

NameDescription
Public Method AmazonElasticsearchClient()

Constructs AmazonElasticsearchClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSProfileName" value="AWS Default"/>
    </appSettings>
</configuration>
             

Public Method AmazonElasticsearchClient(RegionEndpoint)

Constructs AmazonElasticsearchClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSProfileName" value="AWS Default"/>
    </appSettings>
</configuration>
             

Public Method AmazonElasticsearchClient(AmazonElasticsearchConfig)

Constructs AmazonElasticsearchClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSProfileName" value="AWS Default"/>
    </appSettings>
</configuration>
             

Public Method AmazonElasticsearchClient(AWSCredentials)

Constructs AmazonElasticsearchClient with AWS Credentials

Public Method AmazonElasticsearchClient(AWSCredentials, RegionEndpoint)

Constructs AmazonElasticsearchClient with AWS Credentials

Public Method AmazonElasticsearchClient(AWSCredentials, AmazonElasticsearchConfig)

Constructs AmazonElasticsearchClient with AWS Credentials and an AmazonElasticsearchClient Configuration object.

Public Method AmazonElasticsearchClient(string, string)

Constructs AmazonElasticsearchClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonElasticsearchClient(string, string, RegionEndpoint)

Constructs AmazonElasticsearchClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonElasticsearchClient(string, string, AmazonElasticsearchConfig)

Constructs AmazonElasticsearchClient with AWS Access Key ID, AWS Secret Key and an AmazonElasticsearchClient Configuration object.

Public Method AmazonElasticsearchClient(string, string, string)

Constructs AmazonElasticsearchClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonElasticsearchClient(string, string, string, RegionEndpoint)

Constructs AmazonElasticsearchClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonElasticsearchClient(string, string, string, AmazonElasticsearchConfig)

Constructs AmazonElasticsearchClient with AWS Access Key ID, AWS Secret Key and an AmazonElasticsearchClient Configuration object.

Properties

NameTypeDescription
Public Property Config Amazon.Runtime.IClientConfig Inherited from Amazon.Runtime.AmazonServiceClient.
Public Property Paginators Amazon.Elasticsearch.Model.IElasticsearchPaginatorFactory

Paginators for the service

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

NameDescription
Public Method AcceptInboundCrossClusterSearchConnection(AcceptInboundCrossClusterSearchConnectionRequest)

Allows the destination domain owner to accept an inbound cross-cluster search connection request.

Public Method AcceptInboundCrossClusterSearchConnectionAsync(AcceptInboundCrossClusterSearchConnectionRequest, CancellationToken)

Allows the destination domain owner to accept an inbound cross-cluster search connection request.

Public Method AddTags(AddTagsRequest)

Attaches tags to an existing Elasticsearch domain. Tags are a set of case-sensitive key value pairs. An Elasticsearch domain may have up to 10 tags. See Tagging Amazon Elasticsearch Service Domains for more information.

Public Method AddTagsAsync(AddTagsRequest, CancellationToken)

Attaches tags to an existing Elasticsearch domain. Tags are a set of case-sensitive key value pairs. An Elasticsearch domain may have up to 10 tags. See Tagging Amazon Elasticsearch Service Domains for more information.

Public Method AssociatePackage(AssociatePackageRequest)

Associates a package with an Amazon ES domain.

Public Method AssociatePackageAsync(AssociatePackageRequest, CancellationToken)

Associates a package with an Amazon ES domain.

Public Method AuthorizeVpcEndpointAccess(AuthorizeVpcEndpointAccessRequest)

Provides access to an Amazon OpenSearch Service domain through the use of an interface VPC endpoint.

Public Method AuthorizeVpcEndpointAccessAsync(AuthorizeVpcEndpointAccessRequest, CancellationToken)

Provides access to an Amazon OpenSearch Service domain through the use of an interface VPC endpoint.

Public Method CancelDomainConfigChange(CancelDomainConfigChangeRequest)

Cancels a pending configuration change on an Amazon OpenSearch Service domain.

Public Method CancelDomainConfigChangeAsync(CancelDomainConfigChangeRequest, CancellationToken)

Cancels a pending configuration change on an Amazon OpenSearch Service domain.

Public Method CancelElasticsearchServiceSoftwareUpdate(CancelElasticsearchServiceSoftwareUpdateRequest)

Cancels a scheduled service software update for an Amazon ES domain. You can only perform this operation before the AutomatedUpdateDate and when the UpdateStatus is in the PENDING_UPDATE state.

Public Method CancelElasticsearchServiceSoftwareUpdateAsync(CancelElasticsearchServiceSoftwareUpdateRequest, CancellationToken)

Cancels a scheduled service software update for an Amazon ES domain. You can only perform this operation before the AutomatedUpdateDate and when the UpdateStatus is in the PENDING_UPDATE state.

Public Method CreateElasticsearchDomain(CreateElasticsearchDomainRequest)

Creates a new Elasticsearch domain. For more information, see Creating Elasticsearch Domains in the Amazon Elasticsearch Service Developer Guide.

Public Method CreateElasticsearchDomainAsync(CreateElasticsearchDomainRequest, CancellationToken)

Creates a new Elasticsearch domain. For more information, see Creating Elasticsearch Domains in the Amazon Elasticsearch Service Developer Guide.

Public Method CreateOutboundCrossClusterSearchConnection(CreateOutboundCrossClusterSearchConnectionRequest)

Creates a new cross-cluster search connection from a source domain to a destination domain.

Public Method CreateOutboundCrossClusterSearchConnectionAsync(CreateOutboundCrossClusterSearchConnectionRequest, CancellationToken)

Creates a new cross-cluster search connection from a source domain to a destination domain.

Public Method CreatePackage(CreatePackageRequest)

Create a package for use with Amazon ES domains.

Public Method CreatePackageAsync(CreatePackageRequest, CancellationToken)

Create a package for use with Amazon ES domains.

Public Method CreateVpcEndpoint(CreateVpcEndpointRequest)

Creates an Amazon OpenSearch Service-managed VPC endpoint.

Public Method CreateVpcEndpointAsync(CreateVpcEndpointRequest, CancellationToken)

Creates an Amazon OpenSearch Service-managed VPC endpoint.

Public Method DeleteElasticsearchDomain(DeleteElasticsearchDomainRequest)

Permanently deletes the specified Elasticsearch domain and all of its data. Once a domain is deleted, it cannot be recovered.

Public Method DeleteElasticsearchDomainAsync(DeleteElasticsearchDomainRequest, CancellationToken)

Permanently deletes the specified Elasticsearch domain and all of its data. Once a domain is deleted, it cannot be recovered.

Public Method DeleteElasticsearchServiceRole(DeleteElasticsearchServiceRoleRequest)

Deletes the service-linked role that Elasticsearch Service uses to manage and maintain VPC domains. Role deletion will fail if any existing VPC domains use the role. You must delete any such Elasticsearch domains before deleting the role. See Deleting Elasticsearch Service Role in VPC Endpoints for Amazon Elasticsearch Service Domains.

Public Method DeleteElasticsearchServiceRoleAsync(DeleteElasticsearchServiceRoleRequest, CancellationToken)

Deletes the service-linked role that Elasticsearch Service uses to manage and maintain VPC domains. Role deletion will fail if any existing VPC domains use the role. You must delete any such Elasticsearch domains before deleting the role. See Deleting Elasticsearch Service Role in VPC Endpoints for Amazon Elasticsearch Service Domains.

Public Method DeleteInboundCrossClusterSearchConnection(DeleteInboundCrossClusterSearchConnectionRequest)

Allows the destination domain owner to delete an existing inbound cross-cluster search connection.

Public Method DeleteInboundCrossClusterSearchConnectionAsync(DeleteInboundCrossClusterSearchConnectionRequest, CancellationToken)

Allows the destination domain owner to delete an existing inbound cross-cluster search connection.

Public Method DeleteOutboundCrossClusterSearchConnection(DeleteOutboundCrossClusterSearchConnectionRequest)

Allows the source domain owner to delete an existing outbound cross-cluster search connection.

Public Method DeleteOutboundCrossClusterSearchConnectionAsync(DeleteOutboundCrossClusterSearchConnectionRequest, CancellationToken)

Allows the source domain owner to delete an existing outbound cross-cluster search connection.

Public Method DeletePackage(DeletePackageRequest)

Delete the package.

Public Method DeletePackageAsync(DeletePackageRequest, CancellationToken)

Delete the package.

Public Method DeleteVpcEndpoint(DeleteVpcEndpointRequest)

Deletes an Amazon OpenSearch Service-managed interface VPC endpoint.

Public Method DeleteVpcEndpointAsync(DeleteVpcEndpointRequest, CancellationToken)

Deletes an Amazon OpenSearch Service-managed interface VPC endpoint.

Public Method DescribeDomainAutoTunes(DescribeDomainAutoTunesRequest)

Provides scheduled Auto-Tune action details for the Elasticsearch domain, such as Auto-Tune action type, description, severity, and scheduled date.

Public Method DescribeDomainAutoTunesAsync(DescribeDomainAutoTunesRequest, CancellationToken)

Provides scheduled Auto-Tune action details for the Elasticsearch domain, such as Auto-Tune action type, description, severity, and scheduled date.

Public Method DescribeDomainChangeProgress(DescribeDomainChangeProgressRequest)

Returns information about the current blue/green deployment happening on a domain, including a change ID, status, and progress stages.

Public Method DescribeDomainChangeProgressAsync(DescribeDomainChangeProgressRequest, CancellationToken)

Returns information about the current blue/green deployment happening on a domain, including a change ID, status, and progress stages.

Public Method DescribeElasticsearchDomain(DescribeElasticsearchDomainRequest)

Returns domain configuration information about the specified Elasticsearch domain, including the domain ID, domain endpoint, and domain ARN.

Public Method DescribeElasticsearchDomainAsync(DescribeElasticsearchDomainRequest, CancellationToken)

Returns domain configuration information about the specified Elasticsearch domain, including the domain ID, domain endpoint, and domain ARN.

Public Method DescribeElasticsearchDomainConfig(DescribeElasticsearchDomainConfigRequest)

Provides cluster configuration information about the specified Elasticsearch domain, such as the state, creation date, update version, and update date for cluster options.

Public Method DescribeElasticsearchDomainConfigAsync(DescribeElasticsearchDomainConfigRequest, CancellationToken)

Provides cluster configuration information about the specified Elasticsearch domain, such as the state, creation date, update version, and update date for cluster options.

Public Method DescribeElasticsearchDomains(DescribeElasticsearchDomainsRequest)

Returns domain configuration information about the specified Elasticsearch domains, including the domain ID, domain endpoint, and domain ARN.

Public Method DescribeElasticsearchDomainsAsync(DescribeElasticsearchDomainsRequest, CancellationToken)

Returns domain configuration information about the specified Elasticsearch domains, including the domain ID, domain endpoint, and domain ARN.

Public Method DescribeElasticsearchInstanceTypeLimits(DescribeElasticsearchInstanceTypeLimitsRequest)

Describe Elasticsearch Limits for a given InstanceType and ElasticsearchVersion. When modifying existing Domain, specify the DomainName to know what Limits are supported for modifying.

Public Method DescribeElasticsearchInstanceTypeLimitsAsync(DescribeElasticsearchInstanceTypeLimitsRequest, CancellationToken)

Describe Elasticsearch Limits for a given InstanceType and ElasticsearchVersion. When modifying existing Domain, specify the DomainName to know what Limits are supported for modifying.

Public Method DescribeInboundCrossClusterSearchConnections(DescribeInboundCrossClusterSearchConnectionsRequest)

Lists all the inbound cross-cluster search connections for a destination domain.

Public Method DescribeInboundCrossClusterSearchConnectionsAsync(DescribeInboundCrossClusterSearchConnectionsRequest, CancellationToken)

Lists all the inbound cross-cluster search connections for a destination domain.

Public Method DescribeOutboundCrossClusterSearchConnections(DescribeOutboundCrossClusterSearchConnectionsRequest)

Lists all the outbound cross-cluster search connections for a source domain.

Public Method DescribeOutboundCrossClusterSearchConnectionsAsync(DescribeOutboundCrossClusterSearchConnectionsRequest, CancellationToken)

Lists all the outbound cross-cluster search connections for a source domain.

Public Method DescribePackages(DescribePackagesRequest)

Describes all packages available to Amazon ES. Includes options for filtering, limiting the number of results, and pagination.

Public Method DescribePackagesAsync(DescribePackagesRequest, CancellationToken)

Describes all packages available to Amazon ES. Includes options for filtering, limiting the number of results, and pagination.

Public Method DescribeReservedElasticsearchInstanceOfferings(DescribeReservedElasticsearchInstanceOfferingsRequest)

Lists available reserved Elasticsearch instance offerings.

Public Method DescribeReservedElasticsearchInstanceOfferingsAsync(DescribeReservedElasticsearchInstanceOfferingsRequest, CancellationToken)

Lists available reserved Elasticsearch instance offerings.

Public Method DescribeReservedElasticsearchInstances(DescribeReservedElasticsearchInstancesRequest)

Returns information about reserved Elasticsearch instances for this account.

Public Method DescribeReservedElasticsearchInstancesAsync(DescribeReservedElasticsearchInstancesRequest, CancellationToken)

Returns information about reserved Elasticsearch instances for this account.

Public Method DescribeVpcEndpoints(DescribeVpcEndpointsRequest)

Describes one or more Amazon OpenSearch Service-managed VPC endpoints.

Public Method DescribeVpcEndpointsAsync(DescribeVpcEndpointsRequest, CancellationToken)

Describes one or more Amazon OpenSearch Service-managed VPC endpoints.

Public Method DetermineServiceOperationEndpoint(AmazonWebServiceRequest)

Returns the endpoint that will be used for a particular request.

Public Method Dispose() Inherited from Amazon.Runtime.AmazonServiceClient.
Public Method DissociatePackage(DissociatePackageRequest)

Dissociates a package from the Amazon ES domain.

Public Method DissociatePackageAsync(DissociatePackageRequest, CancellationToken)

Dissociates a package from the Amazon ES domain.

Public Method GetCompatibleElasticsearchVersions(GetCompatibleElasticsearchVersionsRequest)

Returns a list of upgrade compatible Elastisearch versions. You can optionally pass a DomainName to get all upgrade compatible Elasticsearch versions for that specific domain.

Public Method GetCompatibleElasticsearchVersionsAsync(GetCompatibleElasticsearchVersionsRequest, CancellationToken)

Returns a list of upgrade compatible Elastisearch versions. You can optionally pass a DomainName to get all upgrade compatible Elasticsearch versions for that specific domain.

Public Method GetPackageVersionHistory(GetPackageVersionHistoryRequest)

Returns a list of versions of the package, along with their creation time and commit message.

Public Method GetPackageVersionHistoryAsync(GetPackageVersionHistoryRequest, CancellationToken)

Returns a list of versions of the package, along with their creation time and commit message.

Public Method GetUpgradeHistory(GetUpgradeHistoryRequest)

Retrieves the complete history of the last 10 upgrades that were performed on the domain.

Public Method GetUpgradeHistoryAsync(GetUpgradeHistoryRequest, CancellationToken)

Retrieves the complete history of the last 10 upgrades that were performed on the domain.

Public Method GetUpgradeStatus(GetUpgradeStatusRequest)

Retrieves the latest status of the last upgrade or upgrade eligibility check that was performed on the domain.

Public Method GetUpgradeStatusAsync(GetUpgradeStatusRequest, CancellationToken)

Retrieves the latest status of the last upgrade or upgrade eligibility check that was performed on the domain.

Public Method ListDomainNames(ListDomainNamesRequest)

Returns the name of all Elasticsearch domains owned by the current user's account.

Public Method ListDomainNamesAsync(ListDomainNamesRequest, CancellationToken)

Returns the name of all Elasticsearch domains owned by the current user's account.

Public Method ListDomainsForPackage(ListDomainsForPackageRequest)

Lists all Amazon ES domains associated with the package.

Public Method ListDomainsForPackageAsync(ListDomainsForPackageRequest, CancellationToken)

Lists all Amazon ES domains associated with the package.

Public Method ListElasticsearchInstanceTypes(ListElasticsearchInstanceTypesRequest)

List all Elasticsearch instance types that are supported for given ElasticsearchVersion

Public Method ListElasticsearchInstanceTypesAsync(ListElasticsearchInstanceTypesRequest, CancellationToken)

List all Elasticsearch instance types that are supported for given ElasticsearchVersion

Public Method ListElasticsearchVersions(ListElasticsearchVersionsRequest)

List all supported Elasticsearch versions

Public Method ListElasticsearchVersionsAsync(ListElasticsearchVersionsRequest, CancellationToken)

List all supported Elasticsearch versions

Public Method ListPackagesForDomain(ListPackagesForDomainRequest)

Lists all packages associated with the Amazon ES domain.

Public Method ListPackagesForDomainAsync(ListPackagesForDomainRequest, CancellationToken)

Lists all packages associated with the Amazon ES domain.

Public Method ListTags(ListTagsRequest)

Returns all tags for the given Elasticsearch domain.

Public Method ListTagsAsync(ListTagsRequest, CancellationToken)

Returns all tags for the given Elasticsearch domain.

Public Method ListVpcEndpointAccess(ListVpcEndpointAccessRequest)

Retrieves information about each principal that is allowed to access a given Amazon OpenSearch Service domain through the use of an interface VPC endpoint.

Public Method ListVpcEndpointAccessAsync(ListVpcEndpointAccessRequest, CancellationToken)

Retrieves information about each principal that is allowed to access a given Amazon OpenSearch Service domain through the use of an interface VPC endpoint.

Public Method ListVpcEndpoints(ListVpcEndpointsRequest)

Retrieves all Amazon OpenSearch Service-managed VPC endpoints in the current account and Region.

Public Method ListVpcEndpointsAsync(ListVpcEndpointsRequest, CancellationToken)

Retrieves all Amazon OpenSearch Service-managed VPC endpoints in the current account and Region.

Public Method ListVpcEndpointsForDomain(ListVpcEndpointsForDomainRequest)

Retrieves all Amazon OpenSearch Service-managed VPC endpoints associated with a particular domain.

Public Method ListVpcEndpointsForDomainAsync(ListVpcEndpointsForDomainRequest, CancellationToken)

Retrieves all Amazon OpenSearch Service-managed VPC endpoints associated with a particular domain.

Public Method PurchaseReservedElasticsearchInstanceOffering(PurchaseReservedElasticsearchInstanceOfferingRequest)

Allows you to purchase reserved Elasticsearch instances.

Public Method PurchaseReservedElasticsearchInstanceOfferingAsync(PurchaseReservedElasticsearchInstanceOfferingRequest, CancellationToken)

Allows you to purchase reserved Elasticsearch instances.

Public Method RejectInboundCrossClusterSearchConnection(RejectInboundCrossClusterSearchConnectionRequest)

Allows the destination domain owner to reject an inbound cross-cluster search connection request.

Public Method RejectInboundCrossClusterSearchConnectionAsync(RejectInboundCrossClusterSearchConnectionRequest, CancellationToken)

Allows the destination domain owner to reject an inbound cross-cluster search connection request.

Public Method RemoveTags(RemoveTagsRequest)

Removes the specified set of tags from the specified Elasticsearch domain.

Public Method RemoveTagsAsync(RemoveTagsRequest, CancellationToken)

Removes the specified set of tags from the specified Elasticsearch domain.

Public Method RevokeVpcEndpointAccess(RevokeVpcEndpointAccessRequest)

Revokes access to an Amazon OpenSearch Service domain that was provided through an interface VPC endpoint.

Public Method RevokeVpcEndpointAccessAsync(RevokeVpcEndpointAccessRequest, CancellationToken)

Revokes access to an Amazon OpenSearch Service domain that was provided through an interface VPC endpoint.

Public Method StartElasticsearchServiceSoftwareUpdate(StartElasticsearchServiceSoftwareUpdateRequest)

Schedules a service software update for an Amazon ES domain.

Public Method StartElasticsearchServiceSoftwareUpdateAsync(StartElasticsearchServiceSoftwareUpdateRequest, CancellationToken)

Schedules a service software update for an Amazon ES domain.

Public Method UpdateElasticsearchDomainConfig(UpdateElasticsearchDomainConfigRequest)

Modifies the cluster configuration of the specified Elasticsearch domain, setting as setting the instance type and the number of instances.

Public Method UpdateElasticsearchDomainConfigAsync(UpdateElasticsearchDomainConfigRequest, CancellationToken)

Modifies the cluster configuration of the specified Elasticsearch domain, setting as setting the instance type and the number of instances.

Public Method UpdatePackage(UpdatePackageRequest)

Updates a package for use with Amazon ES domains.

Public Method UpdatePackageAsync(UpdatePackageRequest, CancellationToken)

Updates a package for use with Amazon ES domains.

Public Method UpdateVpcEndpoint(UpdateVpcEndpointRequest)

Modifies an Amazon OpenSearch Service-managed interface VPC endpoint.

Public Method UpdateVpcEndpointAsync(UpdateVpcEndpointRequest, CancellationToken)

Modifies an Amazon OpenSearch Service-managed interface VPC endpoint.

Public Method UpgradeElasticsearchDomain(UpgradeElasticsearchDomainRequest)

Allows you to either upgrade your domain or perform an Upgrade eligibility check to a compatible Elasticsearch version.

Public Method UpgradeElasticsearchDomainAsync(UpgradeElasticsearchDomainRequest, CancellationToken)

Allows you to either upgrade your domain or perform an Upgrade eligibility check to a compatible Elasticsearch version.

Events

NameDescription
Event AfterResponseEvent Inherited from Amazon.Runtime.AmazonServiceClient.
Event BeforeRequestEvent Inherited from Amazon.Runtime.AmazonServiceClient.
Event ExceptionEvent Inherited from Amazon.Runtime.AmazonServiceClient.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5