/// <summary> /// Schedules delivery of a configuration snapshot to the Amazon S3 bucket in the specified /// delivery channel. After the delivery has started, AWS Config sends following notifications /// using an Amazon SNS topic that you have specified. /// /// <ul> <li>Notification of starting the delivery.</li> <li>Notification of delivery /// completed, if the delivery was successfully completed.</li> <li>Notification of delivery /// failure, if the delivery failed to complete.</li> </ul> /// </summary> /// <param name="deliveryChannelName">The name of the delivery channel through which the snapshot is delivered.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeliverConfigSnapshot service method, as returned by ConfigService.</returns> /// <exception cref="Amazon.ConfigService.Model.NoAvailableConfigurationRecorderException"> /// There are no configuration recorders available to provide the role needed to describe /// your resources. Create a configuration recorder. /// </exception> /// <exception cref="Amazon.ConfigService.Model.NoRunningConfigurationRecorderException"> /// There is no configuration recorder running. /// </exception> /// <exception cref="Amazon.ConfigService.Model.NoSuchDeliveryChannelException"> /// You have specified a delivery channel that does not exist. /// </exception> public Task <DeliverConfigSnapshotResponse> DeliverConfigSnapshotAsync(string deliveryChannelName, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DeliverConfigSnapshotRequest(); request.DeliveryChannelName = deliveryChannelName; return(DeliverConfigSnapshotAsync(request, cancellationToken)); }
internal DeliverConfigSnapshotResponse DeliverConfigSnapshot(DeliverConfigSnapshotRequest request) { var marshaller = new DeliverConfigSnapshotRequestMarshaller(); var unmarshaller = DeliverConfigSnapshotResponseUnmarshaller.Instance; return(Invoke <DeliverConfigSnapshotRequest, DeliverConfigSnapshotResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DeliverConfigSnapshot operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeliverConfigSnapshot 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> public Task <DeliverConfigSnapshotResponse> DeliverConfigSnapshotAsync(DeliverConfigSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeliverConfigSnapshotRequestMarshaller(); var unmarshaller = DeliverConfigSnapshotResponseUnmarshaller.Instance; return(InvokeAsync <DeliverConfigSnapshotRequest, DeliverConfigSnapshotResponse>(request, marshaller, unmarshaller, cancellationToken)); }