/* * 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 appfabric-2023-05-19.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.AppFabric.Model; using Amazon.AppFabric.Model.Internal.MarshallTransformations; using Amazon.AppFabric.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.AppFabric { /// /// Implementation for accessing AppFabric /// /// Amazon Web Services AppFabric quickly connects software as a service (SaaS) applications /// across your organization. This allows IT and security teams to easily manage and secure /// applications using a standard schema, and employees can complete everyday tasks faster /// using generative artificial intelligence (AI). You can use these APIs to complete /// AppFabric tasks, such as setting up audit log ingestions or viewing user access. For /// more information about AppFabric, including the required permissions to use the service, /// see the Amazon /// Web Services AppFabric Administration Guide. For more information about using /// the Command Line Interface (CLI) to manage your AppFabric resources, see the AppFabric /// section of the CLI Reference. /// public partial class AmazonAppFabricClient : AmazonServiceClient, IAmazonAppFabric { private static IServiceMetadata serviceMetadata = new AmazonAppFabricMetadata(); #region Constructors /// /// Constructs AmazonAppFabricClient 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 AmazonAppFabricClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppFabricConfig()) { } /// /// Constructs AmazonAppFabricClient 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 AmazonAppFabricClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppFabricConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonAppFabricClient 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 AmazonAppFabricClient Configuration Object public AmazonAppFabricClient(AmazonAppFabricConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonAppFabricClient with AWS Credentials /// /// AWS Credentials public AmazonAppFabricClient(AWSCredentials credentials) : this(credentials, new AmazonAppFabricConfig()) { } /// /// Constructs AmazonAppFabricClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonAppFabricClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAppFabricConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonAppFabricClient with AWS Credentials and an /// AmazonAppFabricClient Configuration object. /// /// AWS Credentials /// The AmazonAppFabricClient Configuration Object public AmazonAppFabricClient(AWSCredentials credentials, AmazonAppFabricConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonAppFabricClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonAppFabricClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppFabricConfig()) { } /// /// Constructs AmazonAppFabricClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonAppFabricClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppFabricConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonAppFabricClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAppFabricClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonAppFabricClient Configuration Object public AmazonAppFabricClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAppFabricConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonAppFabricClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonAppFabricClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppFabricConfig()) { } /// /// Constructs AmazonAppFabricClient 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 AmazonAppFabricClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppFabricConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonAppFabricClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAppFabricClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonAppFabricClient Configuration Object public AmazonAppFabricClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAppFabricConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IAppFabricPaginatorFactory _paginators; /// /// Paginators for the service /// public IAppFabricPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new AppFabricPaginatorFactory(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 AmazonAppFabricEndpointResolver()); } /// /// 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 BatchGetUserAccessTasks internal virtual BatchGetUserAccessTasksResponse BatchGetUserAccessTasks(BatchGetUserAccessTasksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetUserAccessTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetUserAccessTasksResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets user access details in a batch request. /// /// /// /// This action polls data from the tasks that are kicked off by the StartUserAccessTasks /// action. /// /// /// Container for the necessary parameters to execute the BatchGetUserAccessTasks service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetUserAccessTasks service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for BatchGetUserAccessTasks Operation public virtual Task BatchGetUserAccessTasksAsync(BatchGetUserAccessTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetUserAccessTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetUserAccessTasksResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ConnectAppAuthorization internal virtual ConnectAppAuthorizationResponse ConnectAppAuthorization(ConnectAppAuthorizationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ConnectAppAuthorizationRequestMarshaller.Instance; options.ResponseUnmarshaller = ConnectAppAuthorizationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Establishes a connection between Amazon Web Services AppFabric and an application, /// which allows AppFabric to call the APIs of the application. /// /// Container for the necessary parameters to execute the ConnectAppAuthorization service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ConnectAppAuthorization service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for ConnectAppAuthorization Operation public virtual Task ConnectAppAuthorizationAsync(ConnectAppAuthorizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ConnectAppAuthorizationRequestMarshaller.Instance; options.ResponseUnmarshaller = ConnectAppAuthorizationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateAppAuthorization internal virtual CreateAppAuthorizationResponse CreateAppAuthorization(CreateAppAuthorizationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAppAuthorizationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAppAuthorizationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an app authorization within an app bundle, which allows AppFabric to connect /// to an application. /// /// Container for the necessary parameters to execute the CreateAppAuthorization service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateAppAuthorization service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request has created a conflict. Check the request parameters and try again. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request exceeds a service quota. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for CreateAppAuthorization Operation public virtual Task CreateAppAuthorizationAsync(CreateAppAuthorizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAppAuthorizationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAppAuthorizationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateAppBundle internal virtual CreateAppBundleResponse CreateAppBundle(CreateAppBundleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAppBundleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAppBundleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an app bundle to collect data from an application using AppFabric. /// /// Container for the necessary parameters to execute the CreateAppBundle service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateAppBundle service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request has created a conflict. Check the request parameters and try again. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The request exceeds a service quota. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for CreateAppBundle Operation public virtual Task CreateAppBundleAsync(CreateAppBundleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAppBundleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAppBundleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateIngestion internal virtual CreateIngestionResponse CreateIngestion(CreateIngestionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateIngestionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateIngestionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a data ingestion for an application. /// /// Container for the necessary parameters to execute the CreateIngestion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateIngestion service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request has created a conflict. Check the request parameters and try again. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The request exceeds a service quota. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for CreateIngestion Operation public virtual Task CreateIngestionAsync(CreateIngestionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateIngestionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateIngestionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateIngestionDestination internal virtual CreateIngestionDestinationResponse CreateIngestionDestination(CreateIngestionDestinationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateIngestionDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateIngestionDestinationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an ingestion destination, which specifies how an application's ingested data /// is processed by Amazon Web Services AppFabric and where it's delivered. /// /// Container for the necessary parameters to execute the CreateIngestionDestination service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateIngestionDestination service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request has created a conflict. Check the request parameters and try again. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The request exceeds a service quota. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for CreateIngestionDestination Operation public virtual Task CreateIngestionDestinationAsync(CreateIngestionDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateIngestionDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateIngestionDestinationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteAppAuthorization internal virtual DeleteAppAuthorizationResponse DeleteAppAuthorization(DeleteAppAuthorizationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppAuthorizationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppAuthorizationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an app authorization. You must delete the associated ingestion before you /// can delete an app authorization. /// /// Container for the necessary parameters to execute the DeleteAppAuthorization service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteAppAuthorization service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for DeleteAppAuthorization Operation public virtual Task DeleteAppAuthorizationAsync(DeleteAppAuthorizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppAuthorizationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppAuthorizationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteAppBundle internal virtual DeleteAppBundleResponse DeleteAppBundle(DeleteAppBundleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppBundleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppBundleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an app bundle. You must delete all associated app authorizations before you /// can delete an app bundle. /// /// Container for the necessary parameters to execute the DeleteAppBundle service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteAppBundle service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request has created a conflict. Check the request parameters and try again. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for DeleteAppBundle Operation public virtual Task DeleteAppBundleAsync(DeleteAppBundleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAppBundleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAppBundleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteIngestion internal virtual DeleteIngestionResponse DeleteIngestion(DeleteIngestionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteIngestionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteIngestionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an ingestion. You must stop (disable) the ingestion and you must delete all /// associated ingestion destinations before you can delete an app ingestion. /// /// Container for the necessary parameters to execute the DeleteIngestion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteIngestion service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for DeleteIngestion Operation public virtual Task DeleteIngestionAsync(DeleteIngestionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteIngestionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteIngestionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteIngestionDestination internal virtual DeleteIngestionDestinationResponse DeleteIngestionDestination(DeleteIngestionDestinationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteIngestionDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteIngestionDestinationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an ingestion destination. /// /// /// /// This deletes the association between an ingestion and it's destination. It doesn't /// delete previously ingested data or the storage destination, such as the Amazon S3 /// bucket where the data is delivered. If the ingestion destination is deleted while /// the associated ingestion is enabled, the ingestion will fail and is eventually disabled. /// /// /// Container for the necessary parameters to execute the DeleteIngestionDestination service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteIngestionDestination service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for DeleteIngestionDestination Operation public virtual Task DeleteIngestionDestinationAsync(DeleteIngestionDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteIngestionDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteIngestionDestinationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetAppAuthorization internal virtual GetAppAuthorizationResponse GetAppAuthorization(GetAppAuthorizationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppAuthorizationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppAuthorizationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about an app authorization. /// /// Container for the necessary parameters to execute the GetAppAuthorization service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetAppAuthorization service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for GetAppAuthorization Operation public virtual Task GetAppAuthorizationAsync(GetAppAuthorizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppAuthorizationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppAuthorizationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetAppBundle internal virtual GetAppBundleResponse GetAppBundle(GetAppBundleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppBundleRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppBundleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about an app bundle. /// /// Container for the necessary parameters to execute the GetAppBundle service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetAppBundle service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for GetAppBundle Operation public virtual Task GetAppBundleAsync(GetAppBundleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetAppBundleRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAppBundleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetIngestion internal virtual GetIngestionResponse GetIngestion(GetIngestionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetIngestionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetIngestionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about an ingestion. /// /// Container for the necessary parameters to execute the GetIngestion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetIngestion service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for GetIngestion Operation public virtual Task GetIngestionAsync(GetIngestionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetIngestionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetIngestionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetIngestionDestination internal virtual GetIngestionDestinationResponse GetIngestionDestination(GetIngestionDestinationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetIngestionDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetIngestionDestinationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about an ingestion destination. /// /// Container for the necessary parameters to execute the GetIngestionDestination service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetIngestionDestination service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for GetIngestionDestination Operation public virtual Task GetIngestionDestinationAsync(GetIngestionDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetIngestionDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetIngestionDestinationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAppAuthorizations internal virtual ListAppAuthorizationsResponse ListAppAuthorizations(ListAppAuthorizationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAppAuthorizationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAppAuthorizationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of all app authorizations configured for an app bundle. /// /// Container for the necessary parameters to execute the ListAppAuthorizations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAppAuthorizations service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for ListAppAuthorizations Operation public virtual Task ListAppAuthorizationsAsync(ListAppAuthorizationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAppAuthorizationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAppAuthorizationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAppBundles internal virtual ListAppBundlesResponse ListAppBundles(ListAppBundlesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAppBundlesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAppBundlesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of app bundles. /// /// Container for the necessary parameters to execute the ListAppBundles service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAppBundles service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for ListAppBundles Operation public virtual Task ListAppBundlesAsync(ListAppBundlesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAppBundlesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAppBundlesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListIngestionDestinations internal virtual ListIngestionDestinationsResponse ListIngestionDestinations(ListIngestionDestinationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListIngestionDestinationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListIngestionDestinationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of all ingestion destinations configured for an ingestion. /// /// Container for the necessary parameters to execute the ListIngestionDestinations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListIngestionDestinations service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for ListIngestionDestinations Operation public virtual Task ListIngestionDestinationsAsync(ListIngestionDestinationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListIngestionDestinationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListIngestionDestinationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListIngestions internal virtual ListIngestionsResponse ListIngestions(ListIngestionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListIngestionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListIngestionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of all ingestions configured for an app bundle. /// /// Container for the necessary parameters to execute the ListIngestions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListIngestions service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for ListIngestions Operation public virtual Task ListIngestionsAsync(ListIngestionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListIngestionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListIngestionsResponseUnmarshaller.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); } /// /// Returns a list of tags for a 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 AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// 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 StartIngestion internal virtual StartIngestionResponse StartIngestion(StartIngestionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartIngestionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartIngestionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Starts (enables) an ingestion, which collects data from an application. /// /// Container for the necessary parameters to execute the StartIngestion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartIngestion service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request has created a conflict. Check the request parameters and try again. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for StartIngestion Operation public virtual Task StartIngestionAsync(StartIngestionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartIngestionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartIngestionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartUserAccessTasks internal virtual StartUserAccessTasksResponse StartUserAccessTasks(StartUserAccessTasksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartUserAccessTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = StartUserAccessTasksResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Starts the tasks to search user access status for a specific email address. /// /// /// /// The tasks are stopped when the user access status data is found. The tasks are terminated /// when the API calls to the application time out. /// /// /// Container for the necessary parameters to execute the StartUserAccessTasks service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartUserAccessTasks service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for StartUserAccessTasks Operation public virtual Task StartUserAccessTasksAsync(StartUserAccessTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartUserAccessTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = StartUserAccessTasksResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopIngestion internal virtual StopIngestionResponse StopIngestion(StopIngestionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopIngestionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopIngestionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Stops (disables) an ingestion. /// /// Container for the necessary parameters to execute the StopIngestion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StopIngestion service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request has created a conflict. Check the request parameters and try again. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for StopIngestion Operation public virtual Task StopIngestionAsync(StopIngestionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopIngestionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopIngestionResponseUnmarshaller.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); } /// /// Assigns one or more tags (key-value pairs) 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 AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// 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 a tag or tags from a 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 AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// 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 UpdateAppAuthorization internal virtual UpdateAppAuthorizationResponse UpdateAppAuthorization(UpdateAppAuthorizationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAppAuthorizationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAppAuthorizationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates an app authorization within an app bundle, which allows AppFabric to connect /// to an application. /// /// /// /// If the app authorization was in a connected state, updating the app authorization /// will set it back to a PendingConnect state. /// /// /// Container for the necessary parameters to execute the UpdateAppAuthorization service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateAppAuthorization service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for UpdateAppAuthorization Operation public virtual Task UpdateAppAuthorizationAsync(UpdateAppAuthorizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAppAuthorizationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAppAuthorizationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateIngestionDestination internal virtual UpdateIngestionDestinationResponse UpdateIngestionDestination(UpdateIngestionDestinationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateIngestionDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateIngestionDestinationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates an ingestion destination, which specifies how an application's ingested data /// is processed by Amazon Web Services AppFabric and where it's delivered. /// /// Container for the necessary parameters to execute the UpdateIngestionDestination service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateIngestionDestination service method, as returned by AppFabric. /// /// You are not authorized to perform this operation. /// /// /// The request has created a conflict. Check the request parameters and try again. /// /// /// The request processing has failed because of an unknown error, exception, or failure /// with an internal server. /// /// /// The specified resource does not exist. /// /// /// The request exceeds a service quota. /// /// /// The request rate exceeds the limit. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for UpdateIngestionDestination Operation public virtual Task UpdateIngestionDestinationAsync(UpdateIngestionDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateIngestionDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateIngestionDestinationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }