コード例 #1
0
        /// <summary>
        /// The DeleteReplicationJob API is used to delete a ReplicationJob, resulting in no further
        /// ReplicationRuns. This will delete the contents of the S3 bucket used to store SMS
        /// artifacts, but will not delete any AMIs created by the SMS service.
        /// </summary>
        /// <param name="request">Container for the necessary parameters to execute the DeleteReplicationJob service method.</param>
        ///
        /// <returns>The response from the DeleteReplicationJob service method, as returned by ServerMigrationService.</returns>
        /// <exception cref="Amazon.ServerMigrationService.Model.InvalidParameterException">
        /// A parameter specified in the request is not valid, is unsupported, or cannot be used.
        /// </exception>
        /// <exception cref="Amazon.ServerMigrationService.Model.MissingRequiredParameterException">
        /// The request is missing a required parameter. Ensure that you have supplied all the
        /// required parameters for the request.
        /// </exception>
        /// <exception cref="Amazon.ServerMigrationService.Model.OperationNotPermittedException">
        /// The specified operation is not allowed. This error can occur for a number of reasons;
        /// for example, you might be trying to start a Replication Run before seed Replication
        /// Run.
        /// </exception>
        /// <exception cref="Amazon.ServerMigrationService.Model.ReplicationJobNotFoundException">
        /// The specified Replication Job cannot be found.
        /// </exception>
        /// <exception cref="Amazon.ServerMigrationService.Model.UnauthorizedOperationException">
        /// This user does not have permissions to perform this operation.
        /// </exception>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteReplicationJob">REST API Reference for DeleteReplicationJob Operation</seealso>
        public virtual DeleteReplicationJobResponse DeleteReplicationJob(DeleteReplicationJobRequest request)
        {
            var marshaller   = new DeleteReplicationJobRequestMarshaller();
            var unmarshaller = DeleteReplicationJobResponseUnmarshaller.Instance;

            return(Invoke <DeleteReplicationJobRequest, DeleteReplicationJobResponse>(request, marshaller, unmarshaller));
        }
コード例 #2
0
        /// <summary>
        /// Initiates the asynchronous execution of the DeleteReplicationJob operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the DeleteReplicationJob operation.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        /// <returns>The task object representing the asynchronous operation.</returns>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteReplicationJob">REST API Reference for DeleteReplicationJob Operation</seealso>
        public virtual Task <DeleteReplicationJobResponse> DeleteReplicationJobAsync(DeleteReplicationJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new DeleteReplicationJobRequestMarshaller();
            var unmarshaller = DeleteReplicationJobResponseUnmarshaller.Instance;

            return(InvokeAsync <DeleteReplicationJobRequest, DeleteReplicationJobResponse>(request, marshaller,
                                                                                           unmarshaller, cancellationToken));
        }