/* * 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 m2-2021-04-28.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.MainframeModernization.Model; using Amazon.MainframeModernization.Model.Internal.MarshallTransformations; using Amazon.MainframeModernization.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.MainframeModernization { /// /// Implementation for accessing MainframeModernization /// /// Amazon Web Services Mainframe Modernization provides tools and resources to help you /// plan and implement migration and modernization from mainframes to Amazon Web Services /// managed runtime environments. It provides tools for analyzing existing mainframe applications, /// developing or updating mainframe applications using COBOL or PL/I, and implementing /// an automated pipeline for continuous integration and continuous delivery (CI/CD) of /// the applications. /// public partial class AmazonMainframeModernizationClient : AmazonServiceClient, IAmazonMainframeModernization { private static IServiceMetadata serviceMetadata = new AmazonMainframeModernizationMetadata(); #region Constructors /// /// Constructs AmazonMainframeModernizationClient 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 AmazonMainframeModernizationClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMainframeModernizationConfig()) { } /// /// Constructs AmazonMainframeModernizationClient 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 AmazonMainframeModernizationClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMainframeModernizationConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMainframeModernizationClient 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 AmazonMainframeModernizationClient Configuration Object public AmazonMainframeModernizationClient(AmazonMainframeModernizationConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonMainframeModernizationClient with AWS Credentials /// /// AWS Credentials public AmazonMainframeModernizationClient(AWSCredentials credentials) : this(credentials, new AmazonMainframeModernizationConfig()) { } /// /// Constructs AmazonMainframeModernizationClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonMainframeModernizationClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonMainframeModernizationConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMainframeModernizationClient with AWS Credentials and an /// AmazonMainframeModernizationClient Configuration object. /// /// AWS Credentials /// The AmazonMainframeModernizationClient Configuration Object public AmazonMainframeModernizationClient(AWSCredentials credentials, AmazonMainframeModernizationConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonMainframeModernizationClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonMainframeModernizationClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMainframeModernizationConfig()) { } /// /// Constructs AmazonMainframeModernizationClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonMainframeModernizationClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMainframeModernizationConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonMainframeModernizationClient with AWS Access Key ID, AWS Secret Key and an /// AmazonMainframeModernizationClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonMainframeModernizationClient Configuration Object public AmazonMainframeModernizationClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonMainframeModernizationConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonMainframeModernizationClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonMainframeModernizationClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMainframeModernizationConfig()) { } /// /// Constructs AmazonMainframeModernizationClient 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 AmazonMainframeModernizationClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMainframeModernizationConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMainframeModernizationClient with AWS Access Key ID, AWS Secret Key and an /// AmazonMainframeModernizationClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonMainframeModernizationClient Configuration Object public AmazonMainframeModernizationClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonMainframeModernizationConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IMainframeModernizationPaginatorFactory _paginators; /// /// Paginators for the service /// public IMainframeModernizationPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new MainframeModernizationPaginatorFactory(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 AmazonMainframeModernizationEndpointResolver()); } /// /// 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 CancelBatchJobExecution internal virtual CancelBatchJobExecutionResponse CancelBatchJobExecution(CancelBatchJobExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelBatchJobExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelBatchJobExecutionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Cancels the running of a specific batch job execution. /// /// Container for the necessary parameters to execute the CancelBatchJobExecution service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CancelBatchJobExecution service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// The parameters provided in the request conflict with existing resources. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for CancelBatchJobExecution Operation public virtual Task CancelBatchJobExecutionAsync(CancelBatchJobExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelBatchJobExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelBatchJobExecutionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateApplication internal virtual CreateApplicationResponse CreateApplication(CreateApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a new application with given parameters. Requires an existing runtime environment /// and application definition file. /// /// Container for the necessary parameters to execute the CreateApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateApplication service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// The parameters provided in the request conflict with existing resources. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for CreateApplication Operation public virtual Task CreateApplicationAsync(CreateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateDataSetImportTask internal virtual CreateDataSetImportTaskResponse CreateDataSetImportTask(CreateDataSetImportTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDataSetImportTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDataSetImportTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Starts a data set import task for a specific application. /// /// Container for the necessary parameters to execute the CreateDataSetImportTask service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateDataSetImportTask service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// The parameters provided in the request conflict with existing resources. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for CreateDataSetImportTask Operation public virtual Task CreateDataSetImportTaskAsync(CreateDataSetImportTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDataSetImportTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDataSetImportTaskResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateDeployment internal virtual CreateDeploymentResponse CreateDeployment(CreateDeploymentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDeploymentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDeploymentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates and starts a deployment to deploy an application into a runtime environment. /// /// Container for the necessary parameters to execute the CreateDeployment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateDeployment service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// The parameters provided in the request conflict with existing resources. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for CreateDeployment Operation public virtual Task CreateDeploymentAsync(CreateDeploymentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDeploymentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDeploymentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateEnvironment internal virtual CreateEnvironmentResponse CreateEnvironment(CreateEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEnvironmentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a runtime environment for a given runtime engine. /// /// Container for the necessary parameters to execute the CreateEnvironment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateEnvironment service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// The parameters provided in the request conflict with existing resources. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for CreateEnvironment Operation public virtual Task CreateEnvironmentAsync(CreateEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEnvironmentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteApplication internal virtual DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a specific application. You cannot delete a running application. /// /// Container for the necessary parameters to execute the DeleteApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteApplication service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// The parameters provided in the request conflict with existing resources. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for DeleteApplication Operation public virtual Task DeleteApplicationAsync(DeleteApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteApplicationFromEnvironment internal virtual DeleteApplicationFromEnvironmentResponse DeleteApplicationFromEnvironment(DeleteApplicationFromEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApplicationFromEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApplicationFromEnvironmentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a specific application from the specific runtime environment where it was /// previously deployed. You cannot delete a runtime environment using DeleteEnvironment /// if any application has ever been deployed to it. This API removes the association /// of the application with the runtime environment so you can delete the environment /// smoothly. /// /// Container for the necessary parameters to execute the DeleteApplicationFromEnvironment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteApplicationFromEnvironment service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// The parameters provided in the request conflict with existing resources. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for DeleteApplicationFromEnvironment Operation public virtual Task DeleteApplicationFromEnvironmentAsync(DeleteApplicationFromEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApplicationFromEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApplicationFromEnvironmentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteEnvironment internal virtual DeleteEnvironmentResponse DeleteEnvironment(DeleteEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEnvironmentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a specific runtime environment. The environment cannot contain deployed applications. /// If it does, you must delete those applications before you delete the environment. /// /// Container for the necessary parameters to execute the DeleteEnvironment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteEnvironment service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// The parameters provided in the request conflict with existing resources. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for DeleteEnvironment Operation public virtual Task DeleteEnvironmentAsync(DeleteEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEnvironmentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetApplication internal virtual GetApplicationResponse GetApplication(GetApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes the details of a specific application. /// /// Container for the necessary parameters to execute the GetApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetApplication service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for GetApplication Operation public virtual Task GetApplicationAsync(GetApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetApplicationVersion internal virtual GetApplicationVersionResponse GetApplicationVersion(GetApplicationVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetApplicationVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApplicationVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns details about a specific version of a specific application. /// /// Container for the necessary parameters to execute the GetApplicationVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetApplicationVersion service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for GetApplicationVersion Operation public virtual Task GetApplicationVersionAsync(GetApplicationVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetApplicationVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApplicationVersionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetBatchJobExecution internal virtual GetBatchJobExecutionResponse GetBatchJobExecution(GetBatchJobExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetBatchJobExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBatchJobExecutionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the details of a specific batch job execution for a specific application. /// /// Container for the necessary parameters to execute the GetBatchJobExecution service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetBatchJobExecution service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for GetBatchJobExecution Operation public virtual Task GetBatchJobExecutionAsync(GetBatchJobExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetBatchJobExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBatchJobExecutionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDataSetDetails internal virtual GetDataSetDetailsResponse GetDataSetDetails(GetDataSetDetailsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataSetDetailsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataSetDetailsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the details of a specific data set. /// /// Container for the necessary parameters to execute the GetDataSetDetails service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDataSetDetails service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for GetDataSetDetails Operation public virtual Task GetDataSetDetailsAsync(GetDataSetDetailsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataSetDetailsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataSetDetailsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDataSetImportTask internal virtual GetDataSetImportTaskResponse GetDataSetImportTask(GetDataSetImportTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataSetImportTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataSetImportTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the status of a data set import task initiated with the CreateDataSetImportTask /// operation. /// /// Container for the necessary parameters to execute the GetDataSetImportTask service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDataSetImportTask service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for GetDataSetImportTask Operation public virtual Task GetDataSetImportTaskAsync(GetDataSetImportTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDataSetImportTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDataSetImportTaskResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDeployment internal virtual GetDeploymentResponse GetDeployment(GetDeploymentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeploymentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeploymentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets details of a specific deployment with a given deployment identifier. /// /// Container for the necessary parameters to execute the GetDeployment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDeployment service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for GetDeployment Operation public virtual Task GetDeploymentAsync(GetDeploymentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeploymentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeploymentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetEnvironment internal virtual GetEnvironmentResponse GetEnvironment(GetEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetEnvironmentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes a specific runtime environment. /// /// Container for the necessary parameters to execute the GetEnvironment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetEnvironment service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for GetEnvironment Operation public virtual Task GetEnvironmentAsync(GetEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetEnvironmentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetSignedBluinsightsUrl internal virtual GetSignedBluinsightsUrlResponse GetSignedBluinsightsUrl(GetSignedBluinsightsUrlRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSignedBluinsightsUrlRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSignedBluinsightsUrlResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a single sign-on URL that can be used to connect to AWS Blu Insights. /// /// Container for the necessary parameters to execute the GetSignedBluinsightsUrl service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetSignedBluinsightsUrl service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The number of requests made exceeds the limit. /// /// REST API Reference for GetSignedBluinsightsUrl Operation public virtual Task GetSignedBluinsightsUrlAsync(GetSignedBluinsightsUrlRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetSignedBluinsightsUrlRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSignedBluinsightsUrlResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListApplications internal virtual ListApplicationsResponse ListApplications(ListApplicationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the applications associated with a specific Amazon Web Services account. You /// can provide the unique identifier of a specific runtime environment in a query parameter /// to see all applications associated with that environment. /// /// Container for the necessary parameters to execute the ListApplications service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListApplications service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for ListApplications Operation public virtual Task ListApplicationsAsync(ListApplicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListApplicationVersions internal virtual ListApplicationVersionsResponse ListApplicationVersions(ListApplicationVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationVersionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of the application versions for a specific application. /// /// Container for the necessary parameters to execute the ListApplicationVersions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListApplicationVersions service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for ListApplicationVersions Operation public virtual Task ListApplicationVersionsAsync(ListApplicationVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationVersionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListBatchJobDefinitions internal virtual ListBatchJobDefinitionsResponse ListBatchJobDefinitions(ListBatchJobDefinitionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListBatchJobDefinitionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBatchJobDefinitionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all the available batch job definitions based on the batch job resources uploaded /// during the application creation. You can use the batch job definitions in the list /// to start a batch job. /// /// Container for the necessary parameters to execute the ListBatchJobDefinitions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListBatchJobDefinitions service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for ListBatchJobDefinitions Operation public virtual Task ListBatchJobDefinitionsAsync(ListBatchJobDefinitionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListBatchJobDefinitionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBatchJobDefinitionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListBatchJobExecutions internal virtual ListBatchJobExecutionsResponse ListBatchJobExecutions(ListBatchJobExecutionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListBatchJobExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBatchJobExecutionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists historical, current, and scheduled batch job executions for a specific application. /// /// Container for the necessary parameters to execute the ListBatchJobExecutions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListBatchJobExecutions service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for ListBatchJobExecutions Operation public virtual Task ListBatchJobExecutionsAsync(ListBatchJobExecutionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListBatchJobExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBatchJobExecutionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDataSetImportHistory internal virtual ListDataSetImportHistoryResponse ListDataSetImportHistory(ListDataSetImportHistoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataSetImportHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataSetImportHistoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the data set imports for the specified application. /// /// Container for the necessary parameters to execute the ListDataSetImportHistory service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDataSetImportHistory service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for ListDataSetImportHistory Operation public virtual Task ListDataSetImportHistoryAsync(ListDataSetImportHistoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataSetImportHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataSetImportHistoryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDataSets internal virtual ListDataSetsResponse ListDataSets(ListDataSetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataSetsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the data sets imported for a specific application. In Amazon Web Services Mainframe /// Modernization, data sets are associated with applications deployed on runtime environments. /// This is known as importing data sets. Currently, Amazon Web Services Mainframe Modernization /// can import data sets into catalogs using CreateDataSetImportTask. /// /// Container for the necessary parameters to execute the ListDataSets service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDataSets service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for ListDataSets Operation public virtual Task ListDataSetsAsync(ListDataSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDataSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDataSetsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDeployments internal virtual ListDeploymentsResponse ListDeployments(ListDeploymentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDeploymentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDeploymentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of all deployments of a specific application. A deployment is a combination /// of a specific application and a specific version of that application. Each deployment /// is mapped to a particular application version. /// /// Container for the necessary parameters to execute the ListDeployments service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDeployments service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for ListDeployments Operation public virtual Task ListDeploymentsAsync(ListDeploymentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDeploymentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDeploymentsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListEngineVersions internal virtual ListEngineVersionsResponse ListEngineVersions(ListEngineVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEngineVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEngineVersionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the available engine versions. /// /// Container for the necessary parameters to execute the ListEngineVersions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListEngineVersions service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for ListEngineVersions Operation public virtual Task ListEngineVersionsAsync(ListEngineVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEngineVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEngineVersionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListEnvironments internal virtual ListEnvironmentsResponse ListEnvironments(ListEnvironmentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEnvironmentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEnvironmentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the runtime environments. /// /// Container for the necessary parameters to execute the ListEnvironments service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListEnvironments service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for ListEnvironments Operation public virtual Task ListEnvironmentsAsync(ListEnvironmentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEnvironmentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEnvironmentsResponseUnmarshaller.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 MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// 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 StartApplication internal virtual StartApplicationResponse StartApplication(StartApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Starts an application that is currently stopped. /// /// Container for the necessary parameters to execute the StartApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartApplication service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// The parameters provided in the request conflict with existing resources. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for StartApplication Operation public virtual Task StartApplicationAsync(StartApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartBatchJob internal virtual StartBatchJobResponse StartBatchJob(StartBatchJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartBatchJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartBatchJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Starts a batch job and returns the unique identifier of this execution of the batch /// job. The associated application must be running in order to start the batch job. /// /// Container for the necessary parameters to execute the StartBatchJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartBatchJob service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// The parameters provided in the request conflict with existing resources. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for StartBatchJob Operation public virtual Task StartBatchJobAsync(StartBatchJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartBatchJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartBatchJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopApplication internal virtual StopApplicationResponse StopApplication(StopApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = StopApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Stops a running application. /// /// Container for the necessary parameters to execute the StopApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StopApplication service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// The parameters provided in the request conflict with existing resources. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for StopApplication Operation public virtual Task StopApplicationAsync(StopApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = StopApplicationResponseUnmarshaller.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 one or more 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 MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// 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 one or more 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 MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// 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 UpdateApplication internal virtual UpdateApplicationResponse UpdateApplication(UpdateApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates an application and creates a new version. /// /// Container for the necessary parameters to execute the UpdateApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateApplication service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// The parameters provided in the request conflict with existing resources. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for UpdateApplication Operation public virtual Task UpdateApplicationAsync(UpdateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateEnvironment internal virtual UpdateEnvironmentResponse UpdateEnvironment(UpdateEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateEnvironmentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the configuration details for a specific runtime environment. /// /// Container for the necessary parameters to execute the UpdateEnvironment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateEnvironment service method, as returned by MainframeModernization. /// /// The account or role doesn't have the right permissions to make the request. /// /// /// The parameters provided in the request conflict with existing resources. /// /// /// An unexpected error occurred during the processing of the request. /// /// /// The specified resource was not found. /// /// /// One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit. /// /// /// The number of requests made exceeds the limit. /// /// /// One or more parameters provided in the request is not valid. /// /// REST API Reference for UpdateEnvironment Operation public virtual Task UpdateEnvironmentAsync(UpdateEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateEnvironmentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }