/*
* 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 amp-2020-08-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.PrometheusService.Model;
using Amazon.PrometheusService.Model.Internal.MarshallTransformations;
using Amazon.PrometheusService.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.PrometheusService
{
///
/// Implementation for accessing PrometheusService
///
/// Amazon Managed Service for Prometheus
///
public partial class AmazonPrometheusServiceClient : AmazonServiceClient, IAmazonPrometheusService
{
private static IServiceMetadata serviceMetadata = new AmazonPrometheusServiceMetadata();
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
private IPrometheusServicePaginatorFactory _paginators;
///
/// Paginators for the service
///
public IPrometheusServicePaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new PrometheusServicePaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Constructors
///
/// Constructs AmazonPrometheusServiceClient 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 AmazonPrometheusServiceClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonPrometheusServiceConfig()) { }
///
/// Constructs AmazonPrometheusServiceClient 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 AmazonPrometheusServiceClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonPrometheusServiceConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonPrometheusServiceClient 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 AmazonPrometheusServiceClient Configuration Object
public AmazonPrometheusServiceClient(AmazonPrometheusServiceConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonPrometheusServiceClient with AWS Credentials
///
/// AWS Credentials
public AmazonPrometheusServiceClient(AWSCredentials credentials)
: this(credentials, new AmazonPrometheusServiceConfig())
{
}
///
/// Constructs AmazonPrometheusServiceClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonPrometheusServiceClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonPrometheusServiceConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonPrometheusServiceClient with AWS Credentials and an
/// AmazonPrometheusServiceClient Configuration object.
///
/// AWS Credentials
/// The AmazonPrometheusServiceClient Configuration Object
public AmazonPrometheusServiceClient(AWSCredentials credentials, AmazonPrometheusServiceConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonPrometheusServiceClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonPrometheusServiceClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonPrometheusServiceConfig())
{
}
///
/// Constructs AmazonPrometheusServiceClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonPrometheusServiceClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonPrometheusServiceConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonPrometheusServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonPrometheusServiceClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonPrometheusServiceClient Configuration Object
public AmazonPrometheusServiceClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonPrometheusServiceConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonPrometheusServiceClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonPrometheusServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonPrometheusServiceConfig())
{
}
///
/// Constructs AmazonPrometheusServiceClient 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 AmazonPrometheusServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonPrometheusServiceConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonPrometheusServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonPrometheusServiceClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonPrometheusServiceClient Configuration Object
public AmazonPrometheusServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonPrometheusServiceConfig 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 AmazonPrometheusServiceEndpointResolver());
}
///
/// 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 CreateAlertManagerDefinition
///
/// Create an alert manager definition.
///
/// Container for the necessary parameters to execute the CreateAlertManagerDefinition service method.
///
/// The response from the CreateAlertManagerDefinition service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Updating or deleting a resource can cause an inconsistent state.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// Request would cause a service quota to be exceeded.
///
///
/// Request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CreateAlertManagerDefinition Operation
public virtual CreateAlertManagerDefinitionResponse CreateAlertManagerDefinition(CreateAlertManagerDefinitionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAlertManagerDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAlertManagerDefinitionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateAlertManagerDefinition operation.
///
///
/// Container for the necessary parameters to execute the CreateAlertManagerDefinition operation on AmazonPrometheusServiceClient.
/// 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 EndCreateAlertManagerDefinition
/// operation.
/// REST API Reference for CreateAlertManagerDefinition Operation
public virtual IAsyncResult BeginCreateAlertManagerDefinition(CreateAlertManagerDefinitionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAlertManagerDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAlertManagerDefinitionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateAlertManagerDefinition operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateAlertManagerDefinition.
///
/// Returns a CreateAlertManagerDefinitionResult from PrometheusService.
/// REST API Reference for CreateAlertManagerDefinition Operation
public virtual CreateAlertManagerDefinitionResponse EndCreateAlertManagerDefinition(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region CreateLoggingConfiguration
///
/// Create logging configuration.
///
/// Container for the necessary parameters to execute the CreateLoggingConfiguration service method.
///
/// The response from the CreateLoggingConfiguration service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CreateLoggingConfiguration Operation
public virtual CreateLoggingConfigurationResponse CreateLoggingConfiguration(CreateLoggingConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateLoggingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateLoggingConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateLoggingConfiguration operation.
///
///
/// Container for the necessary parameters to execute the CreateLoggingConfiguration operation on AmazonPrometheusServiceClient.
/// 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 EndCreateLoggingConfiguration
/// operation.
/// REST API Reference for CreateLoggingConfiguration Operation
public virtual IAsyncResult BeginCreateLoggingConfiguration(CreateLoggingConfigurationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateLoggingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateLoggingConfigurationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateLoggingConfiguration operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateLoggingConfiguration.
///
/// Returns a CreateLoggingConfigurationResult from PrometheusService.
/// REST API Reference for CreateLoggingConfiguration Operation
public virtual CreateLoggingConfigurationResponse EndCreateLoggingConfiguration(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region CreateRuleGroupsNamespace
///
/// Create a rule group namespace.
///
/// Container for the necessary parameters to execute the CreateRuleGroupsNamespace service method.
///
/// The response from the CreateRuleGroupsNamespace service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Updating or deleting a resource can cause an inconsistent state.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// Request would cause a service quota to be exceeded.
///
///
/// Request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CreateRuleGroupsNamespace Operation
public virtual CreateRuleGroupsNamespaceResponse CreateRuleGroupsNamespace(CreateRuleGroupsNamespaceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateRuleGroupsNamespaceRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateRuleGroupsNamespaceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateRuleGroupsNamespace operation.
///
///
/// Container for the necessary parameters to execute the CreateRuleGroupsNamespace operation on AmazonPrometheusServiceClient.
/// 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 EndCreateRuleGroupsNamespace
/// operation.
/// REST API Reference for CreateRuleGroupsNamespace Operation
public virtual IAsyncResult BeginCreateRuleGroupsNamespace(CreateRuleGroupsNamespaceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateRuleGroupsNamespaceRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateRuleGroupsNamespaceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateRuleGroupsNamespace operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateRuleGroupsNamespace.
///
/// Returns a CreateRuleGroupsNamespaceResult from PrometheusService.
/// REST API Reference for CreateRuleGroupsNamespace Operation
public virtual CreateRuleGroupsNamespaceResponse EndCreateRuleGroupsNamespace(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region CreateWorkspace
///
/// Creates a new AMP workspace.
///
/// Container for the necessary parameters to execute the CreateWorkspace service method.
///
/// The response from the CreateWorkspace service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Updating or deleting a resource can cause an inconsistent state.
///
///
/// Unexpected error during processing of request.
///
///
/// Request would cause a service quota to be exceeded.
///
///
/// Request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CreateWorkspace Operation
public virtual CreateWorkspaceResponse CreateWorkspace(CreateWorkspaceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateWorkspaceRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateWorkspaceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateWorkspace operation.
///
///
/// Container for the necessary parameters to execute the CreateWorkspace operation on AmazonPrometheusServiceClient.
/// 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 EndCreateWorkspace
/// operation.
/// REST API Reference for CreateWorkspace Operation
public virtual IAsyncResult BeginCreateWorkspace(CreateWorkspaceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateWorkspaceRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateWorkspaceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateWorkspace operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateWorkspace.
///
/// Returns a CreateWorkspaceResult from PrometheusService.
/// REST API Reference for CreateWorkspace Operation
public virtual CreateWorkspaceResponse EndCreateWorkspace(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteAlertManagerDefinition
///
/// Deletes an alert manager definition.
///
/// Container for the necessary parameters to execute the DeleteAlertManagerDefinition service method.
///
/// The response from the DeleteAlertManagerDefinition service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Updating or deleting a resource can cause an inconsistent state.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// Request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DeleteAlertManagerDefinition Operation
public virtual DeleteAlertManagerDefinitionResponse DeleteAlertManagerDefinition(DeleteAlertManagerDefinitionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAlertManagerDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAlertManagerDefinitionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteAlertManagerDefinition operation.
///
///
/// Container for the necessary parameters to execute the DeleteAlertManagerDefinition operation on AmazonPrometheusServiceClient.
/// 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 EndDeleteAlertManagerDefinition
/// operation.
/// REST API Reference for DeleteAlertManagerDefinition Operation
public virtual IAsyncResult BeginDeleteAlertManagerDefinition(DeleteAlertManagerDefinitionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAlertManagerDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAlertManagerDefinitionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteAlertManagerDefinition operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteAlertManagerDefinition.
///
/// Returns a DeleteAlertManagerDefinitionResult from PrometheusService.
/// REST API Reference for DeleteAlertManagerDefinition Operation
public virtual DeleteAlertManagerDefinitionResponse EndDeleteAlertManagerDefinition(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteLoggingConfiguration
///
/// Delete logging configuration.
///
/// Container for the necessary parameters to execute the DeleteLoggingConfiguration service method.
///
/// The response from the DeleteLoggingConfiguration service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Updating or deleting a resource can cause an inconsistent state.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DeleteLoggingConfiguration Operation
public virtual DeleteLoggingConfigurationResponse DeleteLoggingConfiguration(DeleteLoggingConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLoggingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLoggingConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteLoggingConfiguration operation.
///
///
/// Container for the necessary parameters to execute the DeleteLoggingConfiguration operation on AmazonPrometheusServiceClient.
/// 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 EndDeleteLoggingConfiguration
/// operation.
/// REST API Reference for DeleteLoggingConfiguration Operation
public virtual IAsyncResult BeginDeleteLoggingConfiguration(DeleteLoggingConfigurationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLoggingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLoggingConfigurationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteLoggingConfiguration operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteLoggingConfiguration.
///
/// Returns a DeleteLoggingConfigurationResult from PrometheusService.
/// REST API Reference for DeleteLoggingConfiguration Operation
public virtual DeleteLoggingConfigurationResponse EndDeleteLoggingConfiguration(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteRuleGroupsNamespace
///
/// Delete a rule groups namespace.
///
/// Container for the necessary parameters to execute the DeleteRuleGroupsNamespace service method.
///
/// The response from the DeleteRuleGroupsNamespace service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Updating or deleting a resource can cause an inconsistent state.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// Request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DeleteRuleGroupsNamespace Operation
public virtual DeleteRuleGroupsNamespaceResponse DeleteRuleGroupsNamespace(DeleteRuleGroupsNamespaceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteRuleGroupsNamespaceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteRuleGroupsNamespaceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteRuleGroupsNamespace operation.
///
///
/// Container for the necessary parameters to execute the DeleteRuleGroupsNamespace operation on AmazonPrometheusServiceClient.
/// 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 EndDeleteRuleGroupsNamespace
/// operation.
/// REST API Reference for DeleteRuleGroupsNamespace Operation
public virtual IAsyncResult BeginDeleteRuleGroupsNamespace(DeleteRuleGroupsNamespaceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteRuleGroupsNamespaceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteRuleGroupsNamespaceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteRuleGroupsNamespace operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteRuleGroupsNamespace.
///
/// Returns a DeleteRuleGroupsNamespaceResult from PrometheusService.
/// REST API Reference for DeleteRuleGroupsNamespace Operation
public virtual DeleteRuleGroupsNamespaceResponse EndDeleteRuleGroupsNamespace(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteWorkspace
///
/// Deletes an AMP workspace.
///
/// Container for the necessary parameters to execute the DeleteWorkspace service method.
///
/// The response from the DeleteWorkspace service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Updating or deleting a resource can cause an inconsistent state.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// Request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DeleteWorkspace Operation
public virtual DeleteWorkspaceResponse DeleteWorkspace(DeleteWorkspaceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteWorkspaceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteWorkspaceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteWorkspace operation.
///
///
/// Container for the necessary parameters to execute the DeleteWorkspace operation on AmazonPrometheusServiceClient.
/// 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 EndDeleteWorkspace
/// operation.
/// REST API Reference for DeleteWorkspace Operation
public virtual IAsyncResult BeginDeleteWorkspace(DeleteWorkspaceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteWorkspaceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteWorkspaceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteWorkspace operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteWorkspace.
///
/// Returns a DeleteWorkspaceResult from PrometheusService.
/// REST API Reference for DeleteWorkspace Operation
public virtual DeleteWorkspaceResponse EndDeleteWorkspace(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DescribeAlertManagerDefinition
///
/// Describes an alert manager definition.
///
/// Container for the necessary parameters to execute the DescribeAlertManagerDefinition service method.
///
/// The response from the DescribeAlertManagerDefinition service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// Request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DescribeAlertManagerDefinition Operation
public virtual DescribeAlertManagerDefinitionResponse DescribeAlertManagerDefinition(DescribeAlertManagerDefinitionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAlertManagerDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAlertManagerDefinitionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DescribeAlertManagerDefinition operation.
///
///
/// Container for the necessary parameters to execute the DescribeAlertManagerDefinition operation on AmazonPrometheusServiceClient.
/// 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 EndDescribeAlertManagerDefinition
/// operation.
/// REST API Reference for DescribeAlertManagerDefinition Operation
public virtual IAsyncResult BeginDescribeAlertManagerDefinition(DescribeAlertManagerDefinitionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAlertManagerDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAlertManagerDefinitionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DescribeAlertManagerDefinition operation.
///
///
/// The IAsyncResult returned by the call to BeginDescribeAlertManagerDefinition.
///
/// Returns a DescribeAlertManagerDefinitionResult from PrometheusService.
/// REST API Reference for DescribeAlertManagerDefinition Operation
public virtual DescribeAlertManagerDefinitionResponse EndDescribeAlertManagerDefinition(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DescribeLoggingConfiguration
///
/// Describes logging configuration.
///
/// Container for the necessary parameters to execute the DescribeLoggingConfiguration service method.
///
/// The response from the DescribeLoggingConfiguration service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DescribeLoggingConfiguration Operation
public virtual DescribeLoggingConfigurationResponse DescribeLoggingConfiguration(DescribeLoggingConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeLoggingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeLoggingConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DescribeLoggingConfiguration operation.
///
///
/// Container for the necessary parameters to execute the DescribeLoggingConfiguration operation on AmazonPrometheusServiceClient.
/// 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 EndDescribeLoggingConfiguration
/// operation.
/// REST API Reference for DescribeLoggingConfiguration Operation
public virtual IAsyncResult BeginDescribeLoggingConfiguration(DescribeLoggingConfigurationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeLoggingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeLoggingConfigurationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DescribeLoggingConfiguration operation.
///
///
/// The IAsyncResult returned by the call to BeginDescribeLoggingConfiguration.
///
/// Returns a DescribeLoggingConfigurationResult from PrometheusService.
/// REST API Reference for DescribeLoggingConfiguration Operation
public virtual DescribeLoggingConfigurationResponse EndDescribeLoggingConfiguration(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DescribeRuleGroupsNamespace
///
/// Describe a rule groups namespace.
///
/// Container for the necessary parameters to execute the DescribeRuleGroupsNamespace service method.
///
/// The response from the DescribeRuleGroupsNamespace service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// Request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DescribeRuleGroupsNamespace Operation
public virtual DescribeRuleGroupsNamespaceResponse DescribeRuleGroupsNamespace(DescribeRuleGroupsNamespaceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeRuleGroupsNamespaceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeRuleGroupsNamespaceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DescribeRuleGroupsNamespace operation.
///
///
/// Container for the necessary parameters to execute the DescribeRuleGroupsNamespace operation on AmazonPrometheusServiceClient.
/// 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 EndDescribeRuleGroupsNamespace
/// operation.
/// REST API Reference for DescribeRuleGroupsNamespace Operation
public virtual IAsyncResult BeginDescribeRuleGroupsNamespace(DescribeRuleGroupsNamespaceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeRuleGroupsNamespaceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeRuleGroupsNamespaceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DescribeRuleGroupsNamespace operation.
///
///
/// The IAsyncResult returned by the call to BeginDescribeRuleGroupsNamespace.
///
/// Returns a DescribeRuleGroupsNamespaceResult from PrometheusService.
/// REST API Reference for DescribeRuleGroupsNamespace Operation
public virtual DescribeRuleGroupsNamespaceResponse EndDescribeRuleGroupsNamespace(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DescribeWorkspace
///
/// Describes an existing AMP workspace.
///
/// Container for the necessary parameters to execute the DescribeWorkspace service method.
///
/// The response from the DescribeWorkspace service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// Request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DescribeWorkspace Operation
public virtual DescribeWorkspaceResponse DescribeWorkspace(DescribeWorkspaceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeWorkspaceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeWorkspaceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DescribeWorkspace operation.
///
///
/// Container for the necessary parameters to execute the DescribeWorkspace operation on AmazonPrometheusServiceClient.
/// 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 EndDescribeWorkspace
/// operation.
/// REST API Reference for DescribeWorkspace Operation
public virtual IAsyncResult BeginDescribeWorkspace(DescribeWorkspaceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeWorkspaceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeWorkspaceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DescribeWorkspace operation.
///
///
/// The IAsyncResult returned by the call to BeginDescribeWorkspace.
///
/// Returns a DescribeWorkspaceResult from PrometheusService.
/// REST API Reference for DescribeWorkspace Operation
public virtual DescribeWorkspaceResponse EndDescribeWorkspace(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListRuleGroupsNamespaces
///
/// Lists rule groups namespaces.
///
/// Container for the necessary parameters to execute the ListRuleGroupsNamespaces service method.
///
/// The response from the ListRuleGroupsNamespaces service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// Request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListRuleGroupsNamespaces Operation
public virtual ListRuleGroupsNamespacesResponse ListRuleGroupsNamespaces(ListRuleGroupsNamespacesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRuleGroupsNamespacesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRuleGroupsNamespacesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListRuleGroupsNamespaces operation.
///
///
/// Container for the necessary parameters to execute the ListRuleGroupsNamespaces operation on AmazonPrometheusServiceClient.
/// 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 EndListRuleGroupsNamespaces
/// operation.
/// REST API Reference for ListRuleGroupsNamespaces Operation
public virtual IAsyncResult BeginListRuleGroupsNamespaces(ListRuleGroupsNamespacesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRuleGroupsNamespacesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRuleGroupsNamespacesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListRuleGroupsNamespaces operation.
///
///
/// The IAsyncResult returned by the call to BeginListRuleGroupsNamespaces.
///
/// Returns a ListRuleGroupsNamespacesResult from PrometheusService.
/// REST API Reference for ListRuleGroupsNamespaces Operation
public virtual ListRuleGroupsNamespacesResponse EndListRuleGroupsNamespaces(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListTagsForResource
///
/// Lists the tags you have assigned to the resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// The response from the ListTagsForResource service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// Request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// 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 AmazonPrometheusServiceClient.
/// 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 PrometheusService.
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListWorkspaces
///
/// Lists all AMP workspaces, including workspaces being created or deleted.
///
/// Container for the necessary parameters to execute the ListWorkspaces service method.
///
/// The response from the ListWorkspaces service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Unexpected error during processing of request.
///
///
/// Request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListWorkspaces Operation
public virtual ListWorkspacesResponse ListWorkspaces(ListWorkspacesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListWorkspacesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListWorkspacesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListWorkspaces operation.
///
///
/// Container for the necessary parameters to execute the ListWorkspaces operation on AmazonPrometheusServiceClient.
/// 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 EndListWorkspaces
/// operation.
/// REST API Reference for ListWorkspaces Operation
public virtual IAsyncResult BeginListWorkspaces(ListWorkspacesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListWorkspacesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListWorkspacesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListWorkspaces operation.
///
///
/// The IAsyncResult returned by the call to BeginListWorkspaces.
///
/// Returns a ListWorkspacesResult from PrometheusService.
/// REST API Reference for ListWorkspaces Operation
public virtual ListWorkspacesResponse EndListWorkspaces(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region PutAlertManagerDefinition
///
/// Update an alert manager definition.
///
/// Container for the necessary parameters to execute the PutAlertManagerDefinition service method.
///
/// The response from the PutAlertManagerDefinition service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Updating or deleting a resource can cause an inconsistent state.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// Request would cause a service quota to be exceeded.
///
///
/// Request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for PutAlertManagerDefinition Operation
public virtual PutAlertManagerDefinitionResponse PutAlertManagerDefinition(PutAlertManagerDefinitionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutAlertManagerDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutAlertManagerDefinitionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the PutAlertManagerDefinition operation.
///
///
/// Container for the necessary parameters to execute the PutAlertManagerDefinition operation on AmazonPrometheusServiceClient.
/// 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 EndPutAlertManagerDefinition
/// operation.
/// REST API Reference for PutAlertManagerDefinition Operation
public virtual IAsyncResult BeginPutAlertManagerDefinition(PutAlertManagerDefinitionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutAlertManagerDefinitionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutAlertManagerDefinitionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the PutAlertManagerDefinition operation.
///
///
/// The IAsyncResult returned by the call to BeginPutAlertManagerDefinition.
///
/// Returns a PutAlertManagerDefinitionResult from PrometheusService.
/// REST API Reference for PutAlertManagerDefinition Operation
public virtual PutAlertManagerDefinitionResponse EndPutAlertManagerDefinition(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region PutRuleGroupsNamespace
///
/// Update a rule groups namespace.
///
/// Container for the necessary parameters to execute the PutRuleGroupsNamespace service method.
///
/// The response from the PutRuleGroupsNamespace service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Updating or deleting a resource can cause an inconsistent state.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// Request would cause a service quota to be exceeded.
///
///
/// Request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for PutRuleGroupsNamespace Operation
public virtual PutRuleGroupsNamespaceResponse PutRuleGroupsNamespace(PutRuleGroupsNamespaceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutRuleGroupsNamespaceRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutRuleGroupsNamespaceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the PutRuleGroupsNamespace operation.
///
///
/// Container for the necessary parameters to execute the PutRuleGroupsNamespace operation on AmazonPrometheusServiceClient.
/// 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 EndPutRuleGroupsNamespace
/// operation.
/// REST API Reference for PutRuleGroupsNamespace Operation
public virtual IAsyncResult BeginPutRuleGroupsNamespace(PutRuleGroupsNamespaceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutRuleGroupsNamespaceRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutRuleGroupsNamespaceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the PutRuleGroupsNamespace operation.
///
///
/// The IAsyncResult returned by the call to BeginPutRuleGroupsNamespace.
///
/// Returns a PutRuleGroupsNamespaceResult from PrometheusService.
/// REST API Reference for PutRuleGroupsNamespace Operation
public virtual PutRuleGroupsNamespaceResponse EndPutRuleGroupsNamespace(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region TagResource
///
/// Creates tags for the specified resource.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// The response from the TagResource service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// Request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// 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 AmazonPrometheusServiceClient.
/// 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 PrometheusService.
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UntagResource
///
/// Deletes tags from the specified resource.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// The response from the UntagResource service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// Request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// 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 AmazonPrometheusServiceClient.
/// 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 PrometheusService.
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateLoggingConfiguration
///
/// Update logging configuration.
///
/// Container for the necessary parameters to execute the UpdateLoggingConfiguration service method.
///
/// The response from the UpdateLoggingConfiguration service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Updating or deleting a resource can cause an inconsistent state.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for UpdateLoggingConfiguration Operation
public virtual UpdateLoggingConfigurationResponse UpdateLoggingConfiguration(UpdateLoggingConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateLoggingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateLoggingConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateLoggingConfiguration operation.
///
///
/// Container for the necessary parameters to execute the UpdateLoggingConfiguration operation on AmazonPrometheusServiceClient.
/// 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 EndUpdateLoggingConfiguration
/// operation.
/// REST API Reference for UpdateLoggingConfiguration Operation
public virtual IAsyncResult BeginUpdateLoggingConfiguration(UpdateLoggingConfigurationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateLoggingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateLoggingConfigurationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateLoggingConfiguration operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateLoggingConfiguration.
///
/// Returns a UpdateLoggingConfigurationResult from PrometheusService.
/// REST API Reference for UpdateLoggingConfiguration Operation
public virtual UpdateLoggingConfigurationResponse EndUpdateLoggingConfiguration(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateWorkspaceAlias
///
/// Updates an AMP workspace alias.
///
/// Container for the necessary parameters to execute the UpdateWorkspaceAlias service method.
///
/// The response from the UpdateWorkspaceAlias service method, as returned by PrometheusService.
///
/// User does not have sufficient access to perform this action.
///
///
/// Updating or deleting a resource can cause an inconsistent state.
///
///
/// Unexpected error during processing of request.
///
///
/// Request references a resource which does not exist.
///
///
/// Request would cause a service quota to be exceeded.
///
///
/// Request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for UpdateWorkspaceAlias Operation
public virtual UpdateWorkspaceAliasResponse UpdateWorkspaceAlias(UpdateWorkspaceAliasRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateWorkspaceAliasRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateWorkspaceAliasResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateWorkspaceAlias operation.
///
///
/// Container for the necessary parameters to execute the UpdateWorkspaceAlias operation on AmazonPrometheusServiceClient.
/// 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 EndUpdateWorkspaceAlias
/// operation.
/// REST API Reference for UpdateWorkspaceAlias Operation
public virtual IAsyncResult BeginUpdateWorkspaceAlias(UpdateWorkspaceAliasRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateWorkspaceAliasRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateWorkspaceAliasResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateWorkspaceAlias operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateWorkspaceAlias.
///
/// Returns a UpdateWorkspaceAliasResult from PrometheusService.
/// REST API Reference for UpdateWorkspaceAlias Operation
public virtual UpdateWorkspaceAliasResponse EndUpdateWorkspaceAlias(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
}
}