/* * 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 appintegrations-2020-07-29.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.AppIntegrationsService.Model; using Amazon.AppIntegrationsService.Model.Internal.MarshallTransformations; using Amazon.AppIntegrationsService.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.AppIntegrationsService { /// /// Implementation for accessing AppIntegrationsService /// /// The Amazon AppIntegrations service enables you to configure and reuse connections /// to external applications. /// /// /// /// For information about how you can use external applications with Amazon Connect, see /// Set up pre-built /// integrations and Deliver /// information to agents using Amazon Connect Wisdom in the Amazon Connect Administrator /// Guide. /// /// public partial class AmazonAppIntegrationsServiceClient : AmazonServiceClient, IAmazonAppIntegrationsService { private static IServiceMetadata serviceMetadata = new AmazonAppIntegrationsServiceMetadata(); #region Constructors /// /// Constructs AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppIntegrationsServiceConfig()) { } /// /// Constructs AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppIntegrationsServiceConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient Configuration Object public AmazonAppIntegrationsServiceClient(AmazonAppIntegrationsServiceConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonAppIntegrationsServiceClient with AWS Credentials /// /// AWS Credentials public AmazonAppIntegrationsServiceClient(AWSCredentials credentials) : this(credentials, new AmazonAppIntegrationsServiceConfig()) { } /// /// Constructs AmazonAppIntegrationsServiceClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonAppIntegrationsServiceClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAppIntegrationsServiceConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonAppIntegrationsServiceClient with AWS Credentials and an /// AmazonAppIntegrationsServiceClient Configuration object. /// /// AWS Credentials /// The AmazonAppIntegrationsServiceClient Configuration Object public AmazonAppIntegrationsServiceClient(AWSCredentials credentials, AmazonAppIntegrationsServiceConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonAppIntegrationsServiceClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppIntegrationsServiceConfig()) { } /// /// Constructs AmazonAppIntegrationsServiceClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppIntegrationsServiceConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonAppIntegrationsServiceClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAppIntegrationsServiceClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonAppIntegrationsServiceClient Configuration Object public AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAppIntegrationsServiceConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonAppIntegrationsServiceClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppIntegrationsServiceConfig()) { } /// /// Constructs AmazonAppIntegrationsServiceClient 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 AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppIntegrationsServiceConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonAppIntegrationsServiceClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAppIntegrationsServiceClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonAppIntegrationsServiceClient Configuration Object public AmazonAppIntegrationsServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAppIntegrationsServiceConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #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 AmazonAppIntegrationsServiceEndpointResolver()); } /// /// 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 CreateDataIntegration internal virtual CreateDataIntegrationResponse CreateDataIntegration(CreateDataIntegrationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDataIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDataIntegrationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates and persists a DataIntegration resource. /// /// /// /// You cannot create a DataIntegration association for a DataIntegration that has been /// previously associated. Use a different DataIntegration, or recreate the DataIntegration /// using the CreateDataIntegration API. /// /// /// /// Container for the necessary parameters to execute the CreateDataIntegration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateDataIntegration service method, as returned by AppIntegrationsService. /// /// You do not have sufficient access to perform this action. /// /// /// A resource with the specified name already exists. /// /// /// Request processing failed due to an error or failure with the service. /// /// /// The request is not valid. /// /// /// The allowed quota for the resource has been exceeded. /// /// /// The throttling limit has been exceeded. /// /// REST API Reference for CreateDataIntegration Operation public virtual Task CreateDataIntegrationAsync(CreateDataIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDataIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDataIntegrationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateEventIntegration internal virtual CreateEventIntegrationResponse CreateEventIntegration(CreateEventIntegrationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEventIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEventIntegrationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an EventIntegration, given a specified name, description, and a reference /// to an Amazon EventBridge bus in your account and a partner event source that pushes /// events to that bus. No objects are created in the your account, only metadata that /// is persisted on the EventIntegration control plane. /// /// Container for the necessary parameters to execute the CreateEventIntegration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateEventIntegration service method, as returned by AppIntegrationsService. /// /// You do not have sufficient access to perform this action. /// /// /// A resource with the specified name already exists. /// /// /// Request processing failed due to an error or failure with the service. /// /// /// The request is not valid. /// /// /// The allowed quota for the resource has been exceeded. /// /// /// The throttling limit has been exceeded. /// /// REST API Reference for CreateEventIntegration Operation public virtual Task CreateEventIntegrationAsync(CreateEventIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEventIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEventIntegrationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteDataIntegration internal virtual DeleteDataIntegrationResponse DeleteDataIntegration(DeleteDataIntegrationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDataIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDataIntegrationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the DataIntegration. Only DataIntegrations that don't have any DataIntegrationAssociations /// can be deleted. Deleting a DataIntegration also deletes the underlying Amazon AppFlow /// flow and service linked role. /// /// /// /// You cannot create a DataIntegration association for a DataIntegration that has been /// previously associated. Use a different DataIntegration, or recreate the DataIntegration /// using the CreateDataIntegration /// API. /// /// /// /// Container for the necessary parameters to execute the DeleteDataIntegration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteDataIntegration service method, as returned by AppIntegrationsService. /// /// You do not have sufficient access to perform this action. /// /// /// Request processing failed due to an error or failure with the service. /// /// /// The request is not valid. /// /// /// The specified resource was not found. /// /// /// The throttling limit has been exceeded. /// /// REST API Reference for DeleteDataIntegration Operation public virtual Task DeleteDataIntegrationAsync(DeleteDataIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDataIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDataIntegrationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteEventIntegration internal virtual DeleteEventIntegrationResponse DeleteEventIntegration(DeleteEventIntegrationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEventIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEventIntegrationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the specified existing event integration. If the event integration is associated /// with clients, the request is rejected. /// /// Container for the necessary parameters to execute the DeleteEventIntegration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteEventIntegration service method, as returned by AppIntegrationsService. /// /// You do not have sufficient access to perform this action. /// /// /// Request processing failed due to an error or failure with the service. /// /// /// The request is not valid. /// /// /// The specified resource was not found. /// /// /// The throttling limit has been exceeded. /// /// REST API Reference for DeleteEventIntegration Operation public virtual Task DeleteEventIntegrationAsync(DeleteEventIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEventIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEventIntegrationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDataIntegration internal virtual GetDataIntegrationResponse GetDataIntegration(GetDataIntegrationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataIntegrationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about the DataIntegration. /// /// /// /// You cannot create a DataIntegration association for a DataIntegration that has been /// previously associated. Use a different DataIntegration, or recreate the DataIntegration /// using the CreateDataIntegration /// API. /// /// /// /// Container for the necessary parameters to execute the GetDataIntegration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDataIntegration service method, as returned by AppIntegrationsService. /// /// You do not have sufficient access to perform this action. /// /// /// Request processing failed due to an error or failure with the service. /// /// /// The request is not valid. /// /// /// The specified resource was not found. /// /// /// The throttling limit has been exceeded. /// /// REST API Reference for GetDataIntegration Operation public virtual Task GetDataIntegrationAsync(GetDataIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataIntegrationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetEventIntegration internal virtual GetEventIntegrationResponse GetEventIntegration(GetEventIntegrationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetEventIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetEventIntegrationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about the event integration. /// /// Container for the necessary parameters to execute the GetEventIntegration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetEventIntegration service method, as returned by AppIntegrationsService. /// /// You do not have sufficient access to perform this action. /// /// /// Request processing failed due to an error or failure with the service. /// /// /// The request is not valid. /// /// /// The specified resource was not found. /// /// /// The throttling limit has been exceeded. /// /// REST API Reference for GetEventIntegration Operation public virtual Task GetEventIntegrationAsync(GetEventIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetEventIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetEventIntegrationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDataIntegrationAssociations internal virtual ListDataIntegrationAssociationsResponse ListDataIntegrationAssociations(ListDataIntegrationAssociationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataIntegrationAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataIntegrationAssociationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a paginated list of DataIntegration associations in the account. /// /// /// /// You cannot create a DataIntegration association for a DataIntegration that has been /// previously associated. Use a different DataIntegration, or recreate the DataIntegration /// using the CreateDataIntegration /// API. /// /// /// /// Container for the necessary parameters to execute the ListDataIntegrationAssociations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDataIntegrationAssociations service method, as returned by AppIntegrationsService. /// /// You do not have sufficient access to perform this action. /// /// /// Request processing failed due to an error or failure with the service. /// /// /// The request is not valid. /// /// /// The specified resource was not found. /// /// /// The throttling limit has been exceeded. /// /// REST API Reference for ListDataIntegrationAssociations Operation public virtual Task ListDataIntegrationAssociationsAsync(ListDataIntegrationAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataIntegrationAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataIntegrationAssociationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDataIntegrations internal virtual ListDataIntegrationsResponse ListDataIntegrations(ListDataIntegrationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataIntegrationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataIntegrationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a paginated list of DataIntegrations in the account. /// /// /// /// You cannot create a DataIntegration association for a DataIntegration that has been /// previously associated. Use a different DataIntegration, or recreate the DataIntegration /// using the CreateDataIntegration /// API. /// /// /// /// Container for the necessary parameters to execute the ListDataIntegrations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDataIntegrations service method, as returned by AppIntegrationsService. /// /// You do not have sufficient access to perform this action. /// /// /// Request processing failed due to an error or failure with the service. /// /// /// The request is not valid. /// /// /// The throttling limit has been exceeded. /// /// REST API Reference for ListDataIntegrations Operation public virtual Task ListDataIntegrationsAsync(ListDataIntegrationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataIntegrationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataIntegrationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListEventIntegrationAssociations internal virtual ListEventIntegrationAssociationsResponse ListEventIntegrationAssociations(ListEventIntegrationAssociationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEventIntegrationAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEventIntegrationAssociationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a paginated list of event integration associations in the account. /// /// Container for the necessary parameters to execute the ListEventIntegrationAssociations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListEventIntegrationAssociations service method, as returned by AppIntegrationsService. /// /// You do not have sufficient access to perform this action. /// /// /// Request processing failed due to an error or failure with the service. /// /// /// The request is not valid. /// /// /// The specified resource was not found. /// /// /// The throttling limit has been exceeded. /// /// REST API Reference for ListEventIntegrationAssociations Operation public virtual Task ListEventIntegrationAssociationsAsync(ListEventIntegrationAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEventIntegrationAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEventIntegrationAssociationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListEventIntegrations internal virtual ListEventIntegrationsResponse ListEventIntegrations(ListEventIntegrationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEventIntegrationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEventIntegrationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a paginated list of event integrations in the account. /// /// Container for the necessary parameters to execute the ListEventIntegrations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListEventIntegrations service method, as returned by AppIntegrationsService. /// /// You do not have sufficient access to perform this action. /// /// /// Request processing failed due to an error or failure with the service. /// /// /// The request is not valid. /// /// /// The throttling limit has been exceeded. /// /// REST API Reference for ListEventIntegrations Operation public virtual Task ListEventIntegrationsAsync(ListEventIntegrationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEventIntegrationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEventIntegrationsResponseUnmarshaller.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 for the specified 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 AppIntegrationsService. /// /// Request processing failed due to an error or failure with the service. /// /// /// The request is not valid. /// /// /// The specified resource was not found. /// /// /// The throttling limit has been exceeded. /// /// 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 TagResource internal virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds the specified tags to 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 AppIntegrationsService. /// /// Request processing failed due to an error or failure with the service. /// /// /// The request is not valid. /// /// /// The specified resource was not found. /// /// /// The throttling limit has been exceeded. /// /// 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); } /// /// Removes the specified 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 AppIntegrationsService. /// /// Request processing failed due to an error or failure with the service. /// /// /// The request is not valid. /// /// /// The specified resource was not found. /// /// /// The throttling limit has been exceeded. /// /// 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 UpdateDataIntegration internal virtual UpdateDataIntegrationResponse UpdateDataIntegration(UpdateDataIntegrationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDataIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDataIntegrationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the description of a DataIntegration. /// /// /// /// You cannot create a DataIntegration association for a DataIntegration that has been /// previously associated. Use a different DataIntegration, or recreate the DataIntegration /// using the CreateDataIntegration /// API. /// /// /// /// Container for the necessary parameters to execute the UpdateDataIntegration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateDataIntegration service method, as returned by AppIntegrationsService. /// /// You do not have sufficient access to perform this action. /// /// /// Request processing failed due to an error or failure with the service. /// /// /// The request is not valid. /// /// /// The specified resource was not found. /// /// /// The throttling limit has been exceeded. /// /// REST API Reference for UpdateDataIntegration Operation public virtual Task UpdateDataIntegrationAsync(UpdateDataIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDataIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDataIntegrationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateEventIntegration internal virtual UpdateEventIntegrationResponse UpdateEventIntegration(UpdateEventIntegrationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateEventIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateEventIntegrationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the description of an event integration. /// /// Container for the necessary parameters to execute the UpdateEventIntegration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateEventIntegration service method, as returned by AppIntegrationsService. /// /// You do not have sufficient access to perform this action. /// /// /// Request processing failed due to an error or failure with the service. /// /// /// The request is not valid. /// /// /// The specified resource was not found. /// /// /// The throttling limit has been exceeded. /// /// REST API Reference for UpdateEventIntegration Operation public virtual Task UpdateEventIntegrationAsync(UpdateEventIntegrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateEventIntegrationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateEventIntegrationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }