/* * 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.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; 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(); #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 #if 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 Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customizes the runtime pipeline. /// /// Runtime pipeline for the current client. 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 internal virtual CreateAlertManagerDefinitionResponse CreateAlertManagerDefinition(CreateAlertManagerDefinitionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAlertManagerDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAlertManagerDefinitionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Create an alert manager definition. /// /// Container for the necessary parameters to execute the CreateAlertManagerDefinition service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task CreateAlertManagerDefinitionAsync(CreateAlertManagerDefinitionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAlertManagerDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAlertManagerDefinitionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateLoggingConfiguration internal virtual CreateLoggingConfigurationResponse CreateLoggingConfiguration(CreateLoggingConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLoggingConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLoggingConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Create logging configuration. /// /// Container for the necessary parameters to execute the CreateLoggingConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task CreateLoggingConfigurationAsync(CreateLoggingConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLoggingConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLoggingConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateRuleGroupsNamespace internal virtual CreateRuleGroupsNamespaceResponse CreateRuleGroupsNamespace(CreateRuleGroupsNamespaceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateRuleGroupsNamespaceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateRuleGroupsNamespaceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Create a rule group namespace. /// /// Container for the necessary parameters to execute the CreateRuleGroupsNamespace service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task CreateRuleGroupsNamespaceAsync(CreateRuleGroupsNamespaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateRuleGroupsNamespaceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateRuleGroupsNamespaceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateWorkspace internal virtual CreateWorkspaceResponse CreateWorkspace(CreateWorkspaceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWorkspaceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a new AMP workspace. /// /// Container for the necessary parameters to execute the CreateWorkspace service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task CreateWorkspaceAsync(CreateWorkspaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWorkspaceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteAlertManagerDefinition internal virtual DeleteAlertManagerDefinitionResponse DeleteAlertManagerDefinition(DeleteAlertManagerDefinitionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAlertManagerDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAlertManagerDefinitionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an alert manager definition. /// /// Container for the necessary parameters to execute the DeleteAlertManagerDefinition service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DeleteAlertManagerDefinitionAsync(DeleteAlertManagerDefinitionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAlertManagerDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAlertManagerDefinitionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteLoggingConfiguration internal virtual DeleteLoggingConfigurationResponse DeleteLoggingConfiguration(DeleteLoggingConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLoggingConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLoggingConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Delete logging configuration. /// /// Container for the necessary parameters to execute the DeleteLoggingConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DeleteLoggingConfigurationAsync(DeleteLoggingConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLoggingConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLoggingConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteRuleGroupsNamespace internal virtual DeleteRuleGroupsNamespaceResponse DeleteRuleGroupsNamespace(DeleteRuleGroupsNamespaceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRuleGroupsNamespaceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRuleGroupsNamespaceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Delete a rule groups namespace. /// /// Container for the necessary parameters to execute the DeleteRuleGroupsNamespace service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DeleteRuleGroupsNamespaceAsync(DeleteRuleGroupsNamespaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRuleGroupsNamespaceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRuleGroupsNamespaceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteWorkspace internal virtual DeleteWorkspaceResponse DeleteWorkspace(DeleteWorkspaceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWorkspaceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an AMP workspace. /// /// Container for the necessary parameters to execute the DeleteWorkspace service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DeleteWorkspaceAsync(DeleteWorkspaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWorkspaceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeAlertManagerDefinition internal virtual DescribeAlertManagerDefinitionResponse DescribeAlertManagerDefinition(DescribeAlertManagerDefinitionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlertManagerDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlertManagerDefinitionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes an alert manager definition. /// /// Container for the necessary parameters to execute the DescribeAlertManagerDefinition service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeAlertManagerDefinitionAsync(DescribeAlertManagerDefinitionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlertManagerDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlertManagerDefinitionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeLoggingConfiguration internal virtual DescribeLoggingConfigurationResponse DescribeLoggingConfiguration(DescribeLoggingConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLoggingConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLoggingConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes logging configuration. /// /// Container for the necessary parameters to execute the DescribeLoggingConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeLoggingConfigurationAsync(DescribeLoggingConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLoggingConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLoggingConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeRuleGroupsNamespace internal virtual DescribeRuleGroupsNamespaceResponse DescribeRuleGroupsNamespace(DescribeRuleGroupsNamespaceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRuleGroupsNamespaceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRuleGroupsNamespaceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describe a rule groups namespace. /// /// Container for the necessary parameters to execute the DescribeRuleGroupsNamespace service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeRuleGroupsNamespaceAsync(DescribeRuleGroupsNamespaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRuleGroupsNamespaceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRuleGroupsNamespaceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeWorkspace internal virtual DescribeWorkspaceResponse DescribeWorkspace(DescribeWorkspaceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWorkspaceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes an existing AMP workspace. /// /// Container for the necessary parameters to execute the DescribeWorkspace service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeWorkspaceAsync(DescribeWorkspaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWorkspaceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListRuleGroupsNamespaces internal virtual ListRuleGroupsNamespacesResponse ListRuleGroupsNamespaces(ListRuleGroupsNamespacesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListRuleGroupsNamespacesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRuleGroupsNamespacesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists rule groups namespaces. /// /// Container for the necessary parameters to execute the ListRuleGroupsNamespaces service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListRuleGroupsNamespacesAsync(ListRuleGroupsNamespacesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListRuleGroupsNamespacesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRuleGroupsNamespacesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTagsForResource internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the tags you have assigned to the resource. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListWorkspaces internal virtual ListWorkspacesResponse ListWorkspaces(ListWorkspacesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListWorkspacesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListWorkspacesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all AMP workspaces, including workspaces being created or deleted. /// /// Container for the necessary parameters to execute the ListWorkspaces service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListWorkspacesAsync(ListWorkspacesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListWorkspacesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListWorkspacesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutAlertManagerDefinition internal virtual PutAlertManagerDefinitionResponse PutAlertManagerDefinition(PutAlertManagerDefinitionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutAlertManagerDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAlertManagerDefinitionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Update an alert manager definition. /// /// Container for the necessary parameters to execute the PutAlertManagerDefinition service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task PutAlertManagerDefinitionAsync(PutAlertManagerDefinitionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutAlertManagerDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAlertManagerDefinitionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutRuleGroupsNamespace internal virtual PutRuleGroupsNamespaceResponse PutRuleGroupsNamespace(PutRuleGroupsNamespaceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutRuleGroupsNamespaceRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRuleGroupsNamespaceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Update a rule groups namespace. /// /// Container for the necessary parameters to execute the PutRuleGroupsNamespace service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task PutRuleGroupsNamespaceAsync(PutRuleGroupsNamespaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutRuleGroupsNamespaceRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRuleGroupsNamespaceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TagResource internal virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates tags for the specified resource. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UntagResource internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes tags from the specified resource. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateLoggingConfiguration internal virtual UpdateLoggingConfigurationResponse UpdateLoggingConfiguration(UpdateLoggingConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLoggingConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLoggingConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Update logging configuration. /// /// Container for the necessary parameters to execute the UpdateLoggingConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task UpdateLoggingConfigurationAsync(UpdateLoggingConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLoggingConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLoggingConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateWorkspaceAlias internal virtual UpdateWorkspaceAliasResponse UpdateWorkspaceAlias(UpdateWorkspaceAliasRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkspaceAliasRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkspaceAliasResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates an AMP workspace alias. /// /// Container for the necessary parameters to execute the UpdateWorkspaceAlias service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task UpdateWorkspaceAliasAsync(UpdateWorkspaceAliasRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkspaceAliasRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkspaceAliasResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }