/* * 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 grafana-2020-08-18.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.ManagedGrafana.Model; using Amazon.ManagedGrafana.Model.Internal.MarshallTransformations; using Amazon.ManagedGrafana.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.ManagedGrafana { /// /// Implementation for accessing ManagedGrafana /// /// Amazon Managed Grafana is a fully managed and secure data visualization service that /// you can use to instantly query, correlate, and visualize operational metrics, logs, /// and traces from multiple sources. Amazon Managed Grafana makes it easy to deploy, /// operate, and scale Grafana, a widely deployed data visualization tool that is popular /// for its extensible data support. /// /// /// /// With Amazon Managed Grafana, you create logically isolated Grafana servers called /// workspaces. In a workspace, you can create Grafana dashboards and visualizations /// to analyze your metrics, logs, and traces without having to build, package, or deploy /// any hardware to run Grafana servers. /// /// public partial class AmazonManagedGrafanaClient : AmazonServiceClient, IAmazonManagedGrafana { private static IServiceMetadata serviceMetadata = new AmazonManagedGrafanaMetadata(); #region Constructors /// /// Constructs AmazonManagedGrafanaClient 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 AmazonManagedGrafanaClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonManagedGrafanaConfig()) { } /// /// Constructs AmazonManagedGrafanaClient 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 AmazonManagedGrafanaClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonManagedGrafanaConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonManagedGrafanaClient 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 AmazonManagedGrafanaClient Configuration Object public AmazonManagedGrafanaClient(AmazonManagedGrafanaConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonManagedGrafanaClient with AWS Credentials /// /// AWS Credentials public AmazonManagedGrafanaClient(AWSCredentials credentials) : this(credentials, new AmazonManagedGrafanaConfig()) { } /// /// Constructs AmazonManagedGrafanaClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonManagedGrafanaClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonManagedGrafanaConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonManagedGrafanaClient with AWS Credentials and an /// AmazonManagedGrafanaClient Configuration object. /// /// AWS Credentials /// The AmazonManagedGrafanaClient Configuration Object public AmazonManagedGrafanaClient(AWSCredentials credentials, AmazonManagedGrafanaConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonManagedGrafanaClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonManagedGrafanaClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonManagedGrafanaConfig()) { } /// /// Constructs AmazonManagedGrafanaClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonManagedGrafanaClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonManagedGrafanaConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonManagedGrafanaClient with AWS Access Key ID, AWS Secret Key and an /// AmazonManagedGrafanaClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonManagedGrafanaClient Configuration Object public AmazonManagedGrafanaClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonManagedGrafanaConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonManagedGrafanaClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonManagedGrafanaClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonManagedGrafanaConfig()) { } /// /// Constructs AmazonManagedGrafanaClient 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 AmazonManagedGrafanaClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonManagedGrafanaConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonManagedGrafanaClient with AWS Access Key ID, AWS Secret Key and an /// AmazonManagedGrafanaClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonManagedGrafanaClient Configuration Object public AmazonManagedGrafanaClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonManagedGrafanaConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IManagedGrafanaPaginatorFactory _paginators; /// /// Paginators for the service /// public IManagedGrafanaPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new ManagedGrafanaPaginatorFactory(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 AmazonManagedGrafanaEndpointResolver()); } /// /// 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 AssociateLicense internal virtual AssociateLicenseResponse AssociateLicense(AssociateLicenseRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateLicenseRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateLicenseResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Assigns a Grafana Enterprise license to a workspace. Upgrading to Grafana Enterprise /// incurs additional fees. For more information, see Upgrade /// a workspace to Grafana Enterprise. /// /// Container for the necessary parameters to execute the AssociateLicense service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AssociateLicense service method, as returned by ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request references a resource that does not exist. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// The value of a parameter in the request caused an error. /// /// REST API Reference for AssociateLicense Operation public virtual Task AssociateLicenseAsync(AssociateLicenseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateLicenseRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateLicenseResponseUnmarshaller.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 workspace. In a workspace, you can create Grafana dashboards and /// visualizations to analyze your metrics, logs, and traces. You don't have to build, /// package, or deploy any hardware to run the Grafana server. /// /// /// /// Don't use CreateWorkspace to modify an existing workspace. Instead, use /// UpdateWorkspace. /// /// /// 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 ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// A resource was in an inconsistent state during an update or a deletion. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request would cause a service quota to be exceeded. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// The value of a parameter in the request caused an error. /// /// 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 CreateWorkspaceApiKey internal virtual CreateWorkspaceApiKeyResponse CreateWorkspaceApiKey(CreateWorkspaceApiKeyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWorkspaceApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWorkspaceApiKeyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a Grafana API key for the workspace. This key can be used to authenticate /// requests sent to the workspace's HTTP API. See https://docs.aws.amazon.com/grafana/latest/userguide/Using-Grafana-APIs.html /// for available APIs and example requests. /// /// Container for the necessary parameters to execute the CreateWorkspaceApiKey service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateWorkspaceApiKey service method, as returned by ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// A resource was in an inconsistent state during an update or a deletion. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request references a resource that does not exist. /// /// /// The request would cause a service quota to be exceeded. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// The value of a parameter in the request caused an error. /// /// REST API Reference for CreateWorkspaceApiKey Operation public virtual Task CreateWorkspaceApiKeyAsync(CreateWorkspaceApiKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWorkspaceApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWorkspaceApiKeyResponseUnmarshaller.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 Amazon Managed Grafana 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 ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// A resource was in an inconsistent state during an update or a deletion. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request references a resource that does not exist. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// The value of a parameter in the request caused an error. /// /// 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 DeleteWorkspaceApiKey internal virtual DeleteWorkspaceApiKeyResponse DeleteWorkspaceApiKey(DeleteWorkspaceApiKeyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWorkspaceApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWorkspaceApiKeyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a Grafana API key for the workspace. /// /// Container for the necessary parameters to execute the DeleteWorkspaceApiKey service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteWorkspaceApiKey service method, as returned by ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// A resource was in an inconsistent state during an update or a deletion. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request references a resource that does not exist. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// The value of a parameter in the request caused an error. /// /// REST API Reference for DeleteWorkspaceApiKey Operation public virtual Task DeleteWorkspaceApiKeyAsync(DeleteWorkspaceApiKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWorkspaceApiKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWorkspaceApiKeyResponseUnmarshaller.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); } /// /// Displays information about one Amazon Managed Grafana 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 ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request references a resource that does not exist. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// The value of a parameter in the request caused an error. /// /// 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 DescribeWorkspaceAuthentication internal virtual DescribeWorkspaceAuthenticationResponse DescribeWorkspaceAuthentication(DescribeWorkspaceAuthenticationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWorkspaceAuthenticationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWorkspaceAuthenticationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Displays information about the authentication methods used in one Amazon Managed Grafana /// workspace. /// /// Container for the necessary parameters to execute the DescribeWorkspaceAuthentication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeWorkspaceAuthentication service method, as returned by ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request references a resource that does not exist. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// The value of a parameter in the request caused an error. /// /// REST API Reference for DescribeWorkspaceAuthentication Operation public virtual Task DescribeWorkspaceAuthenticationAsync(DescribeWorkspaceAuthenticationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWorkspaceAuthenticationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWorkspaceAuthenticationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeWorkspaceConfiguration internal virtual DescribeWorkspaceConfigurationResponse DescribeWorkspaceConfiguration(DescribeWorkspaceConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWorkspaceConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWorkspaceConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the current configuration string for the given workspace. /// /// Container for the necessary parameters to execute the DescribeWorkspaceConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeWorkspaceConfiguration service method, as returned by ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request references a resource that does not exist. /// /// /// The request was denied because of request throttling. Retry the request. /// /// REST API Reference for DescribeWorkspaceConfiguration Operation public virtual Task DescribeWorkspaceConfigurationAsync(DescribeWorkspaceConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWorkspaceConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWorkspaceConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DisassociateLicense internal virtual DisassociateLicenseResponse DisassociateLicense(DisassociateLicenseRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateLicenseRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateLicenseResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes the Grafana Enterprise license from a workspace. /// /// Container for the necessary parameters to execute the DisassociateLicense service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisassociateLicense service method, as returned by ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request references a resource that does not exist. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// The value of a parameter in the request caused an error. /// /// REST API Reference for DisassociateLicense Operation public virtual Task DisassociateLicenseAsync(DisassociateLicenseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateLicenseRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateLicenseResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListPermissions internal virtual ListPermissionsResponse ListPermissions(ListPermissionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPermissionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPermissionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the users and groups who have the Grafana Admin and Editor /// roles in this workspace. If you use this operation without specifying userId /// or groupId, the operation returns the roles of all users and groups. /// If you specify a userId or a groupId, only the roles for /// that user or group are returned. If you do this, you can specify only one userId /// or one groupId. /// /// Container for the necessary parameters to execute the ListPermissions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPermissions service method, as returned by ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request references a resource that does not exist. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// The value of a parameter in the request caused an error. /// /// REST API Reference for ListPermissions Operation public virtual Task ListPermissionsAsync(ListPermissionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPermissionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPermissionsResponseUnmarshaller.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); } /// /// The ListTagsForResource operation returns the tags that are associated /// with the Amazon Managed Service for Grafana resource specified by the resourceArn. /// Currently, the only resource that can be tagged is a workspace. /// /// 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 ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request references a resource that does not exist. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// The value of a parameter in the request caused an error. /// /// 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 ListVersions internal virtual ListVersionsResponse ListVersions(ListVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListVersionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists available versions of Grafana. These are available when calling CreateWorkspace. /// Optionally, include a workspace to list the versions to which it can be upgraded. /// /// Container for the necessary parameters to execute the ListVersions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListVersions service method, as returned by ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request references a resource that does not exist. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// The value of a parameter in the request caused an error. /// /// REST API Reference for ListVersions Operation public virtual Task ListVersionsAsync(ListVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListVersionsResponseUnmarshaller.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); } /// /// Returns a list of Amazon Managed Grafana workspaces in the account, with some information /// about each workspace. For more complete information about one workspace, use DescribeWorkspace. /// /// 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 ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request was denied because of request throttling. Retry the request. /// /// 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 TagResource internal virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// The TagResource operation associates tags with an Amazon Managed Grafana /// resource. Currently, the only resource that can be tagged is workspaces. /// /// /// /// If you specify a new tag key for the resource, this tag is appended to the list of /// tags associated with the resource. If you specify a tag key that is already associated /// with the resource, the new tag value that you specify replaces the previous value /// for that tag. /// /// /// 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 ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request references a resource that does not exist. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// The value of a parameter in the request caused an error. /// /// 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); } /// /// The UntagResource operation removes the association of the tag with the /// Amazon Managed Grafana 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 ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request references a resource that does not exist. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// The value of a parameter in the request caused an error. /// /// 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 UpdatePermissions internal virtual UpdatePermissionsResponse UpdatePermissions(UpdatePermissionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePermissionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePermissionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates which users in a workspace have the Grafana Admin or Editor /// roles. /// /// Container for the necessary parameters to execute the UpdatePermissions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdatePermissions service method, as returned by ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request references a resource that does not exist. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// The value of a parameter in the request caused an error. /// /// REST API Reference for UpdatePermissions Operation public virtual Task UpdatePermissionsAsync(UpdatePermissionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePermissionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePermissionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateWorkspace internal virtual UpdateWorkspaceResponse UpdateWorkspace(UpdateWorkspaceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkspaceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Modifies an existing Amazon Managed Grafana workspace. If you use this operation and /// omit any optional parameters, the existing values of those parameters are not changed. /// /// /// /// To modify the user authentication methods that the workspace uses, such as SAML or /// IAM Identity Center, use UpdateWorkspaceAuthentication. /// /// /// /// To modify which users in the workspace have the Admin and Editor /// Grafana roles, use UpdatePermissions. /// /// /// Container for the necessary parameters to execute the UpdateWorkspace service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateWorkspace service method, as returned by ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// A resource was in an inconsistent state during an update or a deletion. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request references a resource that does not exist. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// The value of a parameter in the request caused an error. /// /// REST API Reference for UpdateWorkspace Operation public virtual Task UpdateWorkspaceAsync(UpdateWorkspaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkspaceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateWorkspaceAuthentication internal virtual UpdateWorkspaceAuthenticationResponse UpdateWorkspaceAuthentication(UpdateWorkspaceAuthenticationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkspaceAuthenticationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkspaceAuthenticationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Use this operation to define the identity provider (IdP) that this workspace authenticates /// users from, using SAML. You can also map SAML assertion attributes to workspace user /// information and define which groups in the assertion attribute are to have the Admin /// and Editor roles in the workspace. /// /// /// /// Changes to the authentication method for a workspace may take a few minutes to take /// effect. /// /// /// /// Container for the necessary parameters to execute the UpdateWorkspaceAuthentication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateWorkspaceAuthentication service method, as returned by ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// A resource was in an inconsistent state during an update or a deletion. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request references a resource that does not exist. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// The value of a parameter in the request caused an error. /// /// REST API Reference for UpdateWorkspaceAuthentication Operation public virtual Task UpdateWorkspaceAuthenticationAsync(UpdateWorkspaceAuthenticationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkspaceAuthenticationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkspaceAuthenticationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateWorkspaceConfiguration internal virtual UpdateWorkspaceConfigurationResponse UpdateWorkspaceConfiguration(UpdateWorkspaceConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkspaceConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkspaceConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the configuration string for the given workspace /// /// Container for the necessary parameters to execute the UpdateWorkspaceConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateWorkspaceConfiguration service method, as returned by ManagedGrafana. /// /// You do not have sufficient permissions to perform this action. /// /// /// A resource was in an inconsistent state during an update or a deletion. /// /// /// Unexpected error while processing the request. Retry the request. /// /// /// The request references a resource that does not exist. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// The value of a parameter in the request caused an error. /// /// REST API Reference for UpdateWorkspaceConfiguration Operation public virtual Task UpdateWorkspaceConfigurationAsync(UpdateWorkspaceConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkspaceConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkspaceConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }