/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the resource-explorer-2-2022-07-28.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.ResourceExplorer2.Model;
using Amazon.ResourceExplorer2.Model.Internal.MarshallTransformations;
using Amazon.ResourceExplorer2.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.ResourceExplorer2
{
///
/// Implementation for accessing ResourceExplorer2
///
/// Amazon Web Services Resource Explorer is a resource search and discovery service.
/// By using Resource Explorer, you can explore your resources using an internet search
/// engine-like experience. Examples of resources include Amazon Relational Database Service
/// (Amazon RDS) instances, Amazon Simple Storage Service (Amazon S3) buckets, or Amazon
/// DynamoDB tables. You can search for your resources using resource metadata like names,
/// tags, and IDs. Resource Explorer can search across all of the Amazon Web Services
/// Regions in your account in which you turn the service on, to simplify your cross-Region
/// workloads.
///
///
///
/// Resource Explorer scans the resources in each of the Amazon Web Services Regions in
/// your Amazon Web Services account in which you turn on Resource Explorer. Resource
/// Explorer creates
/// and maintains an index in each Region, with the details of that Region's resources.
///
///
///
/// You can search
/// across all of the indexed Regions in your account by designating one of your Amazon
/// Web Services Regions to contain the aggregator index for the account. When you promote
/// a local index in a Region to become the aggregator index for the account, Resource
/// Explorer automatically replicates the index information from all local indexes in
/// the other Regions to the aggregator index. Therefore, the Region with the aggregator
/// index has a copy of all resource information for all Regions in the account where
/// you turned on Resource Explorer. As a result, views in the aggregator index Region
/// include resources from all of the indexed Regions in your account.
///
///
///
/// For more information about Amazon Web Services Resource Explorer, including how to
/// enable and configure the service, see the Amazon
/// Web Services Resource Explorer User Guide.
///
///
public partial class AmazonResourceExplorer2Client : AmazonServiceClient, IAmazonResourceExplorer2
{
private static IServiceMetadata serviceMetadata = new AmazonResourceExplorer2Metadata();
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
private IResourceExplorer2PaginatorFactory _paginators;
///
/// Paginators for the service
///
public IResourceExplorer2PaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new ResourceExplorer2PaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Constructors
///
/// Constructs AmazonResourceExplorer2Client 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 AmazonResourceExplorer2Client()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonResourceExplorer2Config()) { }
///
/// Constructs AmazonResourceExplorer2Client 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>
///
///
///
/// The region to connect.
public AmazonResourceExplorer2Client(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonResourceExplorer2Config{RegionEndpoint = region}) { }
///
/// Constructs AmazonResourceExplorer2Client 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>
///
///
///
/// The AmazonResourceExplorer2Client Configuration Object
public AmazonResourceExplorer2Client(AmazonResourceExplorer2Config config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonResourceExplorer2Client with AWS Credentials
///
/// AWS Credentials
public AmazonResourceExplorer2Client(AWSCredentials credentials)
: this(credentials, new AmazonResourceExplorer2Config())
{
}
///
/// Constructs AmazonResourceExplorer2Client with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonResourceExplorer2Client(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonResourceExplorer2Config{RegionEndpoint = region})
{
}
///
/// Constructs AmazonResourceExplorer2Client with AWS Credentials and an
/// AmazonResourceExplorer2Client Configuration object.
///
/// AWS Credentials
/// The AmazonResourceExplorer2Client Configuration Object
public AmazonResourceExplorer2Client(AWSCredentials credentials, AmazonResourceExplorer2Config clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonResourceExplorer2Client with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonResourceExplorer2Client(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonResourceExplorer2Config())
{
}
///
/// Constructs AmazonResourceExplorer2Client with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonResourceExplorer2Client(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonResourceExplorer2Config() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonResourceExplorer2Client with AWS Access Key ID, AWS Secret Key and an
/// AmazonResourceExplorer2Client Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonResourceExplorer2Client Configuration Object
public AmazonResourceExplorer2Client(string awsAccessKeyId, string awsSecretAccessKey, AmazonResourceExplorer2Config clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonResourceExplorer2Client with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonResourceExplorer2Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonResourceExplorer2Config())
{
}
///
/// Constructs AmazonResourceExplorer2Client with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The region to connect.
public AmazonResourceExplorer2Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonResourceExplorer2Config{RegionEndpoint = region})
{
}
///
/// Constructs AmazonResourceExplorer2Client with AWS Access Key ID, AWS Secret Key and an
/// AmazonResourceExplorer2Client Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonResourceExplorer2Client Configuration Object
public AmazonResourceExplorer2Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonResourceExplorer2Config clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customize the pipeline
///
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonResourceExplorer2EndpointResolver());
}
///
/// Capture metadata for the service.
///
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
///
/// Disposes the service client.
///
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region AssociateDefaultView
///
/// Sets the specified view as the default for the Amazon Web Services Region in which
/// you call this operation. When a user performs a Search that doesn't explicitly
/// specify which view to use, then Amazon Web Services Resource Explorer automatically
/// chooses this default view for searches performed in this Amazon Web Services Region.
///
///
///
/// If an Amazon Web Services Region doesn't have a default view configured, then users
/// must explicitly specify a view with every Search
operation performed
/// in that Region.
///
///
/// Container for the necessary parameters to execute the AssociateDefaultView service method.
///
/// The response from the AssociateDefaultView service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// You specified a resource that doesn't exist. Check the ID or ARN that you used to
/// identity the resource, and try again.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for AssociateDefaultView Operation
public virtual AssociateDefaultViewResponse AssociateDefaultView(AssociateDefaultViewRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateDefaultViewRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateDefaultViewResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the AssociateDefaultView operation.
///
///
/// Container for the necessary parameters to execute the AssociateDefaultView operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAssociateDefaultView
/// operation.
/// REST API Reference for AssociateDefaultView Operation
public virtual IAsyncResult BeginAssociateDefaultView(AssociateDefaultViewRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateDefaultViewRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateDefaultViewResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the AssociateDefaultView operation.
///
///
/// The IAsyncResult returned by the call to BeginAssociateDefaultView.
///
/// Returns a AssociateDefaultViewResult from ResourceExplorer2.
/// REST API Reference for AssociateDefaultView Operation
public virtual AssociateDefaultViewResponse EndAssociateDefaultView(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region BatchGetView
///
/// Retrieves details about a list of views.
///
/// Container for the necessary parameters to execute the BatchGetView service method.
///
/// The response from the BatchGetView service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// The principal making the request isn't permitted to perform the operation.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for BatchGetView Operation
public virtual BatchGetViewResponse BatchGetView(BatchGetViewRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchGetViewRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchGetViewResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchGetView operation.
///
///
/// Container for the necessary parameters to execute the BatchGetView operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchGetView
/// operation.
/// REST API Reference for BatchGetView Operation
public virtual IAsyncResult BeginBatchGetView(BatchGetViewRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchGetViewRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchGetViewResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchGetView operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchGetView.
///
/// Returns a BatchGetViewResult from ResourceExplorer2.
/// REST API Reference for BatchGetView Operation
public virtual BatchGetViewResponse EndBatchGetView(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region CreateIndex
///
/// Turns on Amazon Web Services Resource Explorer in the Amazon Web Services Region in
/// which you called this operation by creating an index. Resource Explorer begins discovering
/// the resources in this Region and stores the details about the resources in the index
/// so that they can be queried by using the Search operation. You can create only
/// one index in a Region.
///
///
///
/// This operation creates only a local index. To promote the local index in one
/// Amazon Web Services Region into the aggregator index for the Amazon Web Services account,
/// use the UpdateIndexType operation. For more information, see Turning
/// on cross-Region search by creating an aggregator index in the Amazon Web Services
/// Resource Explorer User Guide.
///
///
///
/// For more details about what happens when you turn on Resource Explorer in an Amazon
/// Web Services Region, see Turn
/// on Resource Explorer to index your resources in an Amazon Web Services Region
/// in the Amazon Web Services Resource Explorer User Guide.
///
///
///
/// If this is the first Amazon Web Services Region in which you've created an index for
/// Resource Explorer, then this operation also creates
/// a service-linked role in your Amazon Web Services account that allows Resource
/// Explorer to enumerate your resources to populate the index.
///
/// -
///
/// Action:
resource-explorer-2:CreateIndex
///
///
///
/// Resource: The ARN of the index (as it will exist after the operation completes)
/// in the Amazon Web Services Region and account in which you're trying to create the
/// index. Use the wildcard character (*
) at the end of the string to match
/// the eventual UUID. For example, the following Resource
element restricts
/// the role or user to creating an index in only the us-east-2
Region of
/// the specified account.
///
///
///
/// "Resource": "arn:aws:resource-explorer-2:us-west-2:<account-id>:index/*"
///
///
///
///
/// Alternatively, you can use "Resource": "*"
to allow the role or user
/// to create an index in any Region.
///
/// -
///
/// Action:
iam:CreateServiceLinkedRole
///
///
///
/// Resource: No specific resource (*).
///
///
///
/// This permission is required only the first time you create an index to turn on Resource
/// Explorer in the account. Resource Explorer uses this to create the service-linked
/// role needed to index the resources in your account. Resource Explorer uses the
/// same service-linked role for all additional indexes you create afterwards.
///
///
///
/// Container for the necessary parameters to execute the CreateIndex service method.
///
/// The response from the CreateIndex service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because either you specified parameters that didn’t match the original
/// request, or you attempted to create a view with a name that already exists in this
/// Amazon Web Services Region.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for CreateIndex Operation
public virtual CreateIndexResponse CreateIndex(CreateIndexRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateIndexRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateIndexResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateIndex operation.
///
///
/// Container for the necessary parameters to execute the CreateIndex operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateIndex
/// operation.
/// REST API Reference for CreateIndex Operation
public virtual IAsyncResult BeginCreateIndex(CreateIndexRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateIndexRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateIndexResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateIndex operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateIndex.
///
/// Returns a CreateIndexResult from ResourceExplorer2.
/// REST API Reference for CreateIndex Operation
public virtual CreateIndexResponse EndCreateIndex(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region CreateView
///
/// Creates a view that users can query by using the Search operation. Results
/// from queries that you make using this view include only resources that match the view's
/// Filters
. For more information about Amazon Web Services Resource Explorer
/// views, see Managing
/// views in the Amazon Web Services Resource Explorer User Guide.
///
///
///
/// Only the principals with an IAM identity-based policy that grants Allow
/// to the Search
action on a Resource
with the Amazon
/// resource name (ARN) of this view can Search using views you create with
/// this operation.
///
///
/// Container for the necessary parameters to execute the CreateView service method.
///
/// The response from the CreateView service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because either you specified parameters that didn’t match the original
/// request, or you attempted to create a view with a name that already exists in this
/// Amazon Web Services Region.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// The request failed because it exceeds a service quota.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// The principal making the request isn't permitted to perform the operation.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for CreateView Operation
public virtual CreateViewResponse CreateView(CreateViewRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateViewRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateViewResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateView operation.
///
///
/// Container for the necessary parameters to execute the CreateView operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateView
/// operation.
/// REST API Reference for CreateView Operation
public virtual IAsyncResult BeginCreateView(CreateViewRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateViewRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateViewResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateView operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateView.
///
/// Returns a CreateViewResult from ResourceExplorer2.
/// REST API Reference for CreateView Operation
public virtual CreateViewResponse EndCreateView(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteIndex
///
/// Deletes the specified index and turns off Amazon Web Services Resource Explorer in
/// the specified Amazon Web Services Region. When you delete an index, Resource Explorer
/// stops discovering and indexing resources in that Region. Resource Explorer also deletes
/// all views in that Region. These actions occur as asynchronous background tasks. You
/// can check to see when the actions are complete by using the GetIndex operation
/// and checking the Status
response value.
///
///
///
/// If the index you delete is the aggregator index for the Amazon Web Services account,
/// you must wait 24 hours before you can promote another local index to be the aggregator
/// index for the account. Users can't perform account-wide searches using Resource Explorer
/// until another aggregator index is configured.
///
///
///
/// Container for the necessary parameters to execute the DeleteIndex service method.
///
/// The response from the DeleteIndex service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// You specified a resource that doesn't exist. Check the ID or ARN that you used to
/// identity the resource, and try again.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for DeleteIndex Operation
public virtual DeleteIndexResponse DeleteIndex(DeleteIndexRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteIndexRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteIndexResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteIndex operation.
///
///
/// Container for the necessary parameters to execute the DeleteIndex operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteIndex
/// operation.
/// REST API Reference for DeleteIndex Operation
public virtual IAsyncResult BeginDeleteIndex(DeleteIndexRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteIndexRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteIndexResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteIndex operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteIndex.
///
/// Returns a DeleteIndexResult from ResourceExplorer2.
/// REST API Reference for DeleteIndex Operation
public virtual DeleteIndexResponse EndDeleteIndex(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteView
///
/// Deletes the specified view.
///
///
///
/// If the specified view is the default view for its Amazon Web Services Region, then
/// all Search operations in that Region must explicitly specify the view to use
/// until you configure a new default by calling the AssociateDefaultView operation.
///
///
/// Container for the necessary parameters to execute the DeleteView service method.
///
/// The response from the DeleteView service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// You specified a resource that doesn't exist. Check the ID or ARN that you used to
/// identity the resource, and try again.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// The principal making the request isn't permitted to perform the operation.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for DeleteView Operation
public virtual DeleteViewResponse DeleteView(DeleteViewRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteViewRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteViewResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteView operation.
///
///
/// Container for the necessary parameters to execute the DeleteView operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteView
/// operation.
/// REST API Reference for DeleteView Operation
public virtual IAsyncResult BeginDeleteView(DeleteViewRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteViewRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteViewResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteView operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteView.
///
/// Returns a DeleteViewResult from ResourceExplorer2.
/// REST API Reference for DeleteView Operation
public virtual DeleteViewResponse EndDeleteView(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DisassociateDefaultView
///
/// After you call this operation, the affected Amazon Web Services Region no longer has
/// a default view. All Search operations in that Region must explicitly specify
/// a view or the operation fails. You can configure a new default by calling the AssociateDefaultView
/// operation.
///
///
///
/// If an Amazon Web Services Region doesn't have a default view configured, then users
/// must explicitly specify a view with every Search
operation performed
/// in that Region.
///
///
/// Container for the necessary parameters to execute the DisassociateDefaultView service method.
///
/// The response from the DisassociateDefaultView service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for DisassociateDefaultView Operation
public virtual DisassociateDefaultViewResponse DisassociateDefaultView(DisassociateDefaultViewRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateDefaultViewRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateDefaultViewResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DisassociateDefaultView operation.
///
///
/// Container for the necessary parameters to execute the DisassociateDefaultView operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateDefaultView
/// operation.
/// REST API Reference for DisassociateDefaultView Operation
public virtual IAsyncResult BeginDisassociateDefaultView(DisassociateDefaultViewRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateDefaultViewRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateDefaultViewResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DisassociateDefaultView operation.
///
///
/// The IAsyncResult returned by the call to BeginDisassociateDefaultView.
///
/// Returns a DisassociateDefaultViewResult from ResourceExplorer2.
/// REST API Reference for DisassociateDefaultView Operation
public virtual DisassociateDefaultViewResponse EndDisassociateDefaultView(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetDefaultView
///
/// Retrieves the Amazon Resource Name (ARN) of the view that is the default for the Amazon
/// Web Services Region in which you call this operation. You can then call GetView
/// to retrieve the details of that view.
///
/// Container for the necessary parameters to execute the GetDefaultView service method.
///
/// The response from the GetDefaultView service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// You specified a resource that doesn't exist. Check the ID or ARN that you used to
/// identity the resource, and try again.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for GetDefaultView Operation
public virtual GetDefaultViewResponse GetDefaultView(GetDefaultViewRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDefaultViewRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDefaultViewResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetDefaultView operation.
///
///
/// Container for the necessary parameters to execute the GetDefaultView operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDefaultView
/// operation.
/// REST API Reference for GetDefaultView Operation
public virtual IAsyncResult BeginGetDefaultView(GetDefaultViewRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDefaultViewRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDefaultViewResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetDefaultView operation.
///
///
/// The IAsyncResult returned by the call to BeginGetDefaultView.
///
/// Returns a GetDefaultViewResult from ResourceExplorer2.
/// REST API Reference for GetDefaultView Operation
public virtual GetDefaultViewResponse EndGetDefaultView(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetIndex
///
/// Retrieves details about the Amazon Web Services Resource Explorer index in the Amazon
/// Web Services Region in which you invoked the operation.
///
/// Container for the necessary parameters to execute the GetIndex service method.
///
/// The response from the GetIndex service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// You specified a resource that doesn't exist. Check the ID or ARN that you used to
/// identity the resource, and try again.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for GetIndex Operation
public virtual GetIndexResponse GetIndex(GetIndexRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetIndexRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetIndexResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetIndex operation.
///
///
/// Container for the necessary parameters to execute the GetIndex operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetIndex
/// operation.
/// REST API Reference for GetIndex Operation
public virtual IAsyncResult BeginGetIndex(GetIndexRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetIndexRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetIndexResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetIndex operation.
///
///
/// The IAsyncResult returned by the call to BeginGetIndex.
///
/// Returns a GetIndexResult from ResourceExplorer2.
/// REST API Reference for GetIndex Operation
public virtual GetIndexResponse EndGetIndex(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetView
///
/// Retrieves details of the specified view.
///
/// Container for the necessary parameters to execute the GetView service method.
///
/// The response from the GetView service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// You specified a resource that doesn't exist. Check the ID or ARN that you used to
/// identity the resource, and try again.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// The principal making the request isn't permitted to perform the operation.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for GetView Operation
public virtual GetViewResponse GetView(GetViewRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetViewRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetViewResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetView operation.
///
///
/// Container for the necessary parameters to execute the GetView operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetView
/// operation.
/// REST API Reference for GetView Operation
public virtual IAsyncResult BeginGetView(GetViewRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetViewRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetViewResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetView operation.
///
///
/// The IAsyncResult returned by the call to BeginGetView.
///
/// Returns a GetViewResult from ResourceExplorer2.
/// REST API Reference for GetView Operation
public virtual GetViewResponse EndGetView(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListIndexes
///
/// Retrieves a list of all of the indexes in Amazon Web Services Regions that are currently
/// collecting resource information for Amazon Web Services Resource Explorer.
///
/// Container for the necessary parameters to execute the ListIndexes service method.
///
/// The response from the ListIndexes service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for ListIndexes Operation
public virtual ListIndexesResponse ListIndexes(ListIndexesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListIndexesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListIndexesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListIndexes operation.
///
///
/// Container for the necessary parameters to execute the ListIndexes operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListIndexes
/// operation.
/// REST API Reference for ListIndexes Operation
public virtual IAsyncResult BeginListIndexes(ListIndexesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListIndexesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListIndexesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListIndexes operation.
///
///
/// The IAsyncResult returned by the call to BeginListIndexes.
///
/// Returns a ListIndexesResult from ResourceExplorer2.
/// REST API Reference for ListIndexes Operation
public virtual ListIndexesResponse EndListIndexes(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListSupportedResourceTypes
///
/// Retrieves a list of all resource types currently supported by Amazon Web Services
/// Resource Explorer.
///
/// Container for the necessary parameters to execute the ListSupportedResourceTypes service method.
///
/// The response from the ListSupportedResourceTypes service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for ListSupportedResourceTypes Operation
public virtual ListSupportedResourceTypesResponse ListSupportedResourceTypes(ListSupportedResourceTypesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSupportedResourceTypesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSupportedResourceTypesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListSupportedResourceTypes operation.
///
///
/// Container for the necessary parameters to execute the ListSupportedResourceTypes operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListSupportedResourceTypes
/// operation.
/// REST API Reference for ListSupportedResourceTypes Operation
public virtual IAsyncResult BeginListSupportedResourceTypes(ListSupportedResourceTypesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSupportedResourceTypesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSupportedResourceTypesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListSupportedResourceTypes operation.
///
///
/// The IAsyncResult returned by the call to BeginListSupportedResourceTypes.
///
/// Returns a ListSupportedResourceTypesResult from ResourceExplorer2.
/// REST API Reference for ListSupportedResourceTypes Operation
public virtual ListSupportedResourceTypesResponse EndListSupportedResourceTypes(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListTagsForResource
///
/// Lists the tags that are attached to the specified resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// The response from the ListTagsForResource service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// You specified a resource that doesn't exist. Check the ID or ARN that you used to
/// identity the resource, and try again.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// The principal making the request isn't permitted to perform the operation.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListTagsForResource operation.
///
///
/// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource
/// operation.
/// REST API Reference for ListTagsForResource Operation
public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListTagsForResource operation.
///
///
/// The IAsyncResult returned by the call to BeginListTagsForResource.
///
/// Returns a ListTagsForResourceResult from ResourceExplorer2.
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListViews
///
/// Lists the Amazon
/// resource names (ARNs) of the views available in the Amazon Web Services Region
/// in which you call this operation.
///
///
///
/// Always check the NextToken
response parameter for a null
/// value when calling a paginated operation. These operations can occasionally return
/// an empty set of results even when there are more results available. The NextToken
/// response parameter value is null
only when there are no more results
/// to display.
///
///
///
/// Container for the necessary parameters to execute the ListViews service method.
///
/// The response from the ListViews service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for ListViews Operation
public virtual ListViewsResponse ListViews(ListViewsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListViewsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListViewsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListViews operation.
///
///
/// Container for the necessary parameters to execute the ListViews operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListViews
/// operation.
/// REST API Reference for ListViews Operation
public virtual IAsyncResult BeginListViews(ListViewsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListViewsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListViewsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListViews operation.
///
///
/// The IAsyncResult returned by the call to BeginListViews.
///
/// Returns a ListViewsResult from ResourceExplorer2.
/// REST API Reference for ListViews Operation
public virtual ListViewsResponse EndListViews(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region Search
///
/// Searches for resources and displays details about all resources that match the specified
/// criteria. You must specify a query string.
///
///
///
/// All search queries must use a view. If you don't explicitly specify a view, then Amazon
/// Web Services Resource Explorer uses the default view for the Amazon Web Services Region
/// in which you call this operation. The results are the logical intersection of the
/// results that match both the QueryString
parameter supplied to this operation
/// and the SearchFilter
parameter attached to the view.
///
///
///
/// For the complete syntax supported by the QueryString
parameter, see Search
/// query syntax reference for Resource Explorer.
///
///
///
/// If your search results are empty, or are missing results that you think should be
/// there, see Troubleshooting
/// Resource Explorer search.
///
///
/// Container for the necessary parameters to execute the Search service method.
///
/// The response from the Search service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// You specified a resource that doesn't exist. Check the ID or ARN that you used to
/// identity the resource, and try again.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// The principal making the request isn't permitted to perform the operation.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for Search Operation
public virtual SearchResponse Search(SearchRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = SearchRequestMarshaller.Instance;
options.ResponseUnmarshaller = SearchResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the Search operation.
///
///
/// Container for the necessary parameters to execute the Search operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSearch
/// operation.
/// REST API Reference for Search Operation
public virtual IAsyncResult BeginSearch(SearchRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = SearchRequestMarshaller.Instance;
options.ResponseUnmarshaller = SearchResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the Search operation.
///
///
/// The IAsyncResult returned by the call to BeginSearch.
///
/// Returns a SearchResult from ResourceExplorer2.
/// REST API Reference for Search Operation
public virtual SearchResponse EndSearch(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region TagResource
///
/// Adds one or more tag key and value pairs to an Amazon Web Services Resource Explorer
/// view or index.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// The response from the TagResource service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because either you specified parameters that didn’t match the original
/// request, or you attempted to create a view with a name that already exists in this
/// Amazon Web Services Region.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// The principal making the request isn't permitted to perform the operation.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the TagResource operation.
///
///
/// Container for the necessary parameters to execute the TagResource operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource
/// operation.
/// REST API Reference for TagResource Operation
public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the TagResource operation.
///
///
/// The IAsyncResult returned by the call to BeginTagResource.
///
/// Returns a TagResourceResult from ResourceExplorer2.
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UntagResource
///
/// Removes one or more tag key and value pairs from an Amazon Web Services Resource Explorer
/// view or index.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// The response from the UntagResource service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// You specified a resource that doesn't exist. Check the ID or ARN that you used to
/// identity the resource, and try again.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// The principal making the request isn't permitted to perform the operation.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UntagResource operation.
///
///
/// Container for the necessary parameters to execute the UntagResource operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource
/// operation.
/// REST API Reference for UntagResource Operation
public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UntagResource operation.
///
///
/// The IAsyncResult returned by the call to BeginUntagResource.
///
/// Returns a UntagResourceResult from ResourceExplorer2.
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateIndexType
///
/// Changes the type of the index from one of the following types to the other. For more
/// information about indexes and the role they perform in Amazon Web Services Resource
/// Explorer, see Turning
/// on cross-Region search by creating an aggregator index in the Amazon Web Services
/// Resource Explorer User Guide.
///
/// -
///
///
AGGREGATOR
index type
///
///
///
/// The index contains information about resources from all Amazon Web Services Regions
/// in the Amazon Web Services account in which you've created a Resource Explorer index.
/// Resource information from all other Regions is replicated to this Region's index.
///
///
///
/// When you change the index type to AGGREGATOR
, Resource Explorer turns
/// on replication of all discovered resource information from the other Amazon Web Services
/// Regions in your account to this index. You can then, from this Region only, perform
/// resource search queries that span all Amazon Web Services Regions in the Amazon Web
/// Services account. Turning on replication from all other Regions is performed by asynchronous
/// background tasks. You can check the status of the asynchronous tasks by using the
/// GetIndex operation. When the asynchronous tasks complete, the Status
/// response of that operation changes from UPDATING
to ACTIVE
.
/// After that, you can start to see results from other Amazon Web Services Regions in
/// query results. However, it can take several hours for replication from all other Regions
/// to complete.
///
///
///
/// You can have only one aggregator index per Amazon Web Services account. Before you
/// can promote a different index to be the aggregator index for the account, you must
/// first demote the existing aggregator index to type LOCAL
.
///
/// -
///
///
LOCAL
index type
///
///
///
/// The index contains information about resources in only the Amazon Web Services Region
/// in which the index exists. If an aggregator index in another Region exists, then information
/// in this local index is replicated to the aggregator index.
///
///
///
/// When you change the index type to LOCAL
, Resource Explorer turns off
/// the replication of resource information from all other Amazon Web Services Regions
/// in the Amazon Web Services account to this Region. The aggregator index remains in
/// the UPDATING
state until all replication with other Regions successfully
/// stops. You can check the status of the asynchronous task by using the GetIndex
/// operation. When Resource Explorer successfully stops all replication with other Regions,
/// the Status
response of that operation changes from UPDATING
/// to ACTIVE
. Separately, the resource information from other Regions that
/// was previously stored in the index is deleted within 30 days by another background
/// task. Until that asynchronous task completes, some results from other Regions can
/// continue to appear in search results.
///
///
///
/// After you demote an aggregator index to a local index, you must wait 24 hours before
/// you can promote another index to be the new aggregator index for the account.
///
///
///
/// Container for the necessary parameters to execute the UpdateIndexType service method.
///
/// The response from the UpdateIndexType service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because either you specified parameters that didn’t match the original
/// request, or you attempted to create a view with a name that already exists in this
/// Amazon Web Services Region.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// You specified a resource that doesn't exist. Check the ID or ARN that you used to
/// identity the resource, and try again.
///
///
/// The request failed because it exceeds a service quota.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for UpdateIndexType Operation
public virtual UpdateIndexTypeResponse UpdateIndexType(UpdateIndexTypeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateIndexTypeRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateIndexTypeResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateIndexType operation.
///
///
/// Container for the necessary parameters to execute the UpdateIndexType operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateIndexType
/// operation.
/// REST API Reference for UpdateIndexType Operation
public virtual IAsyncResult BeginUpdateIndexType(UpdateIndexTypeRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateIndexTypeRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateIndexTypeResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateIndexType operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateIndexType.
///
/// Returns a UpdateIndexTypeResult from ResourceExplorer2.
/// REST API Reference for UpdateIndexType Operation
public virtual UpdateIndexTypeResponse EndUpdateIndexType(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateView
///
/// Modifies some of the details of a view. You can change the filter string and the list
/// of included properties. You can't change the name of the view.
///
/// Container for the necessary parameters to execute the UpdateView service method.
///
/// The response from the UpdateView service method, as returned by ResourceExplorer2.
///
/// The credentials that you used to call this operation don't have the minimum required
/// permissions.
///
///
/// The request failed because of internal service error. Try your request again later.
///
///
/// The request failed because it exceeds a service quota.
///
///
/// The request failed because you exceeded a rate limit for this operation. For more
/// information, see Quotas
/// for Resource Explorer.
///
///
/// The principal making the request isn't permitted to perform the operation.
///
///
/// You provided an invalid value for one of the operation's parameters. Check the syntax
/// for the operation, and try again.
///
/// REST API Reference for UpdateView Operation
public virtual UpdateViewResponse UpdateView(UpdateViewRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateViewRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateViewResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateView operation.
///
///
/// Container for the necessary parameters to execute the UpdateView operation on AmazonResourceExplorer2Client.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateView
/// operation.
/// REST API Reference for UpdateView Operation
public virtual IAsyncResult BeginUpdateView(UpdateViewRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateViewRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateViewResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateView operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateView.
///
/// Returns a UpdateViewResult from ResourceExplorer2.
/// REST API Reference for UpdateView Operation
public virtual UpdateViewResponse EndUpdateView(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
}
}