Container for the parameters to the GetThirdPartyJobDetails operation. Requests the details of a job for a third party action. Only used for partner actions.

When this API is called, AWS CodePipeline returns temporary credentials for the Amazon S3 bucket used to store artifacts for the pipeline, if the action requires access to that Amazon S3 bucket for input or output artifacts. Additionally, this API returns any secret values defined for the action.

Inheritance: AmazonCodePipelineRequest
Beispiel #1
0
        public object Execute(ExecutorContext context)
        {
            var cmdletContext = context as CmdletContext;
            // create request
            var request = new Amazon.CodePipeline.Model.GetThirdPartyJobDetailsRequest();

            if (cmdletContext.ClientToken != null)
            {
                request.ClientToken = cmdletContext.ClientToken;
            }
            if (cmdletContext.JobId != null)
            {
                request.JobId = cmdletContext.JobId;
            }

            CmdletOutput output;

            // issue call
            var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint);

            try
            {
                var    response       = CallAWSServiceOperation(client, request);
                object pipelineOutput = null;
                pipelineOutput = cmdletContext.Select(response, this);
                output         = new CmdletOutput
                {
                    PipelineOutput  = pipelineOutput,
                    ServiceResponse = response
                };
            }
            catch (Exception e)
            {
                output = new CmdletOutput {
                    ErrorResponse = e
                };
            }

            return(output);
        }
        /// <summary>
        /// Initiates the asynchronous execution of the GetThirdPartyJobDetails operation.
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the GetThirdPartyJobDetails 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<GetThirdPartyJobDetailsResponse> GetThirdPartyJobDetailsAsync(GetThirdPartyJobDetailsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new GetThirdPartyJobDetailsRequestMarshaller();
            var unmarshaller = GetThirdPartyJobDetailsResponseUnmarshaller.Instance;

            return InvokeAsync<GetThirdPartyJobDetailsRequest,GetThirdPartyJobDetailsResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
        /// <summary>
        /// Requests the details of a job for a third party action. Only used for partner actions.
        /// 
        ///  <important>
        /// <para>
        /// When this API is called, AWS CodePipeline returns temporary credentials for the Amazon
        /// S3 bucket used to store artifacts for the pipeline, if the action requires access
        /// to that Amazon S3 bucket for input or output artifacts. Additionally, this API returns
        /// any secret values defined for the action.
        /// </para>
        /// </important>
        /// </summary>
        /// <param name="request">Container for the necessary parameters to execute the GetThirdPartyJobDetails service method.</param>
        /// 
        /// <returns>The response from the GetThirdPartyJobDetails service method, as returned by CodePipeline.</returns>
        /// <exception cref="Amazon.CodePipeline.Model.InvalidClientTokenException">
        /// The client token was specified in an invalid format
        /// </exception>
        /// <exception cref="Amazon.CodePipeline.Model.InvalidJobException">
        /// The specified job was specified in an invalid format or cannot be found.
        /// </exception>
        /// <exception cref="Amazon.CodePipeline.Model.JobNotFoundException">
        /// The specified job was specified in an invalid format or cannot be found.
        /// </exception>
        /// <exception cref="Amazon.CodePipeline.Model.ValidationException">
        /// The validation was specified in an invalid format.
        /// </exception>
        public GetThirdPartyJobDetailsResponse GetThirdPartyJobDetails(GetThirdPartyJobDetailsRequest request)
        {
            var marshaller = new GetThirdPartyJobDetailsRequestMarshaller();
            var unmarshaller = GetThirdPartyJobDetailsResponseUnmarshaller.Instance;

            return Invoke<GetThirdPartyJobDetailsRequest,GetThirdPartyJobDetailsResponse>(request, marshaller, unmarshaller);
        }
 /// <summary>
 /// Requests the details of a job for a third party action. Only used for partner actions.
 /// 
 ///  <important>
 /// <para>
 /// When this API is called, AWS CodePipeline returns temporary credentials for the Amazon
 /// S3 bucket used to store artifacts for the pipeline, if the action requires access
 /// to that Amazon S3 bucket for input or output artifacts. Additionally, this API returns
 /// any secret values defined for the action.
 /// </para>
 /// </important>
 /// </summary>
 /// <param name="clientToken">The clientToken portion of the clientId and clientToken pair used to verify that the calling entity is allowed access to the job and its details.</param>
 /// <param name="jobId">The unique system-generated ID used for identifying the job.</param>
 /// 
 /// <returns>The response from the GetThirdPartyJobDetails service method, as returned by CodePipeline.</returns>
 /// <exception cref="Amazon.CodePipeline.Model.InvalidClientTokenException">
 /// The client token was specified in an invalid format
 /// </exception>
 /// <exception cref="Amazon.CodePipeline.Model.InvalidJobException">
 /// The specified job was specified in an invalid format or cannot be found.
 /// </exception>
 /// <exception cref="Amazon.CodePipeline.Model.JobNotFoundException">
 /// The specified job was specified in an invalid format or cannot be found.
 /// </exception>
 /// <exception cref="Amazon.CodePipeline.Model.ValidationException">
 /// The validation was specified in an invalid format.
 /// </exception>
 public GetThirdPartyJobDetailsResponse GetThirdPartyJobDetails(string clientToken, string jobId)
 {
     var request = new GetThirdPartyJobDetailsRequest();
     request.ClientToken = clientToken;
     request.JobId = jobId;
     return GetThirdPartyJobDetails(request);
 }
Beispiel #5
0
 private Amazon.CodePipeline.Model.GetThirdPartyJobDetailsResponse CallAWSServiceOperation(IAmazonCodePipeline client, Amazon.CodePipeline.Model.GetThirdPartyJobDetailsRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS CodePipeline", "GetThirdPartyJobDetails");
     try
     {
         #if DESKTOP
         return(client.GetThirdPartyJobDetails(request));
         #elif CORECLR
         return(client.GetThirdPartyJobDetailsAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }
 /// <summary>
 /// Requests the details of a job for a third party action. Only used for partner actions.
 /// 
 ///  <important>
 /// <para>
 /// When this API is called, AWS CodePipeline returns temporary credentials for the Amazon
 /// S3 bucket used to store artifacts for the pipeline, if the action requires access
 /// to that Amazon S3 bucket for input or output artifacts. Additionally, this API returns
 /// any secret values defined for the action.
 /// </para>
 /// </important>
 /// </summary>
 /// <param name="clientToken">The clientToken portion of the clientId and clientToken pair used to verify that the calling entity is allowed access to the job and its details.</param>
 /// <param name="jobId">The unique system-generated ID used for identifying the job.</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 GetThirdPartyJobDetails service method, as returned by CodePipeline.</returns>
 /// <exception cref="Amazon.CodePipeline.Model.InvalidClientTokenException">
 /// The client token was specified in an invalid format
 /// </exception>
 /// <exception cref="Amazon.CodePipeline.Model.InvalidJobException">
 /// The specified job was specified in an invalid format or cannot be found.
 /// </exception>
 /// <exception cref="Amazon.CodePipeline.Model.JobNotFoundException">
 /// The specified job was specified in an invalid format or cannot be found.
 /// </exception>
 /// <exception cref="Amazon.CodePipeline.Model.ValidationException">
 /// The validation was specified in an invalid format.
 /// </exception>
 public Task<GetThirdPartyJobDetailsResponse> GetThirdPartyJobDetailsAsync(string clientToken, string jobId, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
 {
     var request = new GetThirdPartyJobDetailsRequest();
     request.ClientToken = clientToken;
     request.JobId = jobId;
     return GetThirdPartyJobDetailsAsync(request, cancellationToken);
 }
        /// <summary>
        /// Initiates the asynchronous execution of the GetThirdPartyJobDetails operation.
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the GetThirdPartyJobDetails operation on AmazonCodePipelineClient.</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 EndGetThirdPartyJobDetails
        ///         operation.</returns>
        public IAsyncResult BeginGetThirdPartyJobDetails(GetThirdPartyJobDetailsRequest request, AsyncCallback callback, object state)
        {
            var marshaller = new GetThirdPartyJobDetailsRequestMarshaller();
            var unmarshaller = GetThirdPartyJobDetailsResponseUnmarshaller.Instance;

            return BeginInvoke<GetThirdPartyJobDetailsRequest>(request, marshaller, unmarshaller,
                callback, state);
        }