/// <summary> /// Returns the <code>UnlockCode</code> code value for the specified job. A particular /// <code>UnlockCode</code> value can be accessed for up to 90 days after the associated /// job has been created. /// /// /// <para> /// The <code>UnlockCode</code> value is a 29-character code with 25 alphanumeric characters /// and 4 hyphens. This code is used to decrypt the manifest file when it is passed along /// with the manifest to the Snowball through the Snowball client when the client is started /// for the first time. /// </para> /// /// <para> /// As a best practice, we recommend that you don't save a copy of the <code>UnlockCode</code> /// in the same location as the manifest file for that job. Saving these separately helps /// prevent unauthorized parties from gaining access to the Snowball associated with that /// job. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetJobUnlockCode service method.</param> /// /// <returns>The response from the GetJobUnlockCode service method, as returned by Snowball.</returns> /// <exception cref="Amazon.Snowball.Model.InvalidJobStateException"> /// The action can't be performed because the job's current state doesn't allow that action /// to be performed. /// </exception> /// <exception cref="Amazon.Snowball.Model.InvalidResourceException"> /// The specified resource can't be found. Check the information you provided in your /// last request, and try again. /// </exception> public GetJobUnlockCodeResponse GetJobUnlockCode(GetJobUnlockCodeRequest request) { var marshaller = new GetJobUnlockCodeRequestMarshaller(); var unmarshaller = GetJobUnlockCodeResponseUnmarshaller.Instance; return(Invoke <GetJobUnlockCodeRequest, GetJobUnlockCodeResponse>(request, marshaller, unmarshaller)); }
internal virtual GetJobUnlockCodeResponse GetJobUnlockCode(GetJobUnlockCodeRequest request) { var marshaller = GetJobUnlockCodeRequestMarshaller.Instance; var unmarshaller = GetJobUnlockCodeResponseUnmarshaller.Instance; return(Invoke <GetJobUnlockCodeRequest, GetJobUnlockCodeResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the GetJobUnlockCode operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetJobUnlockCode operation on AmazonSnowballClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetJobUnlockCode /// operation.</returns> public IAsyncResult BeginGetJobUnlockCode(GetJobUnlockCodeRequest request, AsyncCallback callback, object state) { var marshaller = new GetJobUnlockCodeRequestMarshaller(); var unmarshaller = GetJobUnlockCodeResponseUnmarshaller.Instance; return(BeginInvoke <GetJobUnlockCodeRequest>(request, marshaller, unmarshaller, callback, state)); }
/// <summary> /// Initiates the asynchronous execution of the GetJobUnlockCode operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetJobUnlockCode 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 <GetJobUnlockCodeResponse> GetJobUnlockCodeAsync(GetJobUnlockCodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetJobUnlockCodeRequestMarshaller(); var unmarshaller = GetJobUnlockCodeResponseUnmarshaller.Instance; return(InvokeAsync <GetJobUnlockCodeRequest, GetJobUnlockCodeResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the GetJobUnlockCode operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetJobUnlockCode 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/snowball-2016-06-30/GetJobUnlockCode">REST API Reference for GetJobUnlockCode Operation</seealso> public virtual Task <GetJobUnlockCodeResponse> GetJobUnlockCodeAsync(GetJobUnlockCodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetJobUnlockCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetJobUnlockCodeResponseUnmarshaller.Instance; return(InvokeAsync <GetJobUnlockCodeResponse>(request, options, cancellationToken)); }
internal virtual GetJobUnlockCodeResponse GetJobUnlockCode(GetJobUnlockCodeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetJobUnlockCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetJobUnlockCodeResponseUnmarshaller.Instance; return(Invoke <GetJobUnlockCodeResponse>(request, options)); }