import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CodePipelineClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodePipelineClient"; import type { GetJobDetailsInput, GetJobDetailsOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetJobDetailsCommand}. */ export interface GetJobDetailsCommandInput extends GetJobDetailsInput { } /** * @public * * The output of {@link GetJobDetailsCommand}. */ export interface GetJobDetailsCommandOutput extends GetJobDetailsOutput, __MetadataBearer { } declare const GetJobDetailsCommand_base: { new (input: GetJobDetailsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetJobDetailsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns information about a job. Used for custom actions only.

* *

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

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CodePipelineClient, GetJobDetailsCommand } from "@aws-sdk/client-codepipeline"; // ES Modules import * // const { CodePipelineClient, GetJobDetailsCommand } = require("@aws-sdk/client-codepipeline"); // CommonJS import * // import type { CodePipelineClientConfig } from "@aws-sdk/client-codepipeline"; * const config = {}; // type is CodePipelineClientConfig * const client = new CodePipelineClient(config); * const input = { // GetJobDetailsInput * jobId: "STRING_VALUE", // required * }; * const command = new GetJobDetailsCommand(input); * const response = await client.send(command); * // { // GetJobDetailsOutput * // jobDetails: { // JobDetails * // id: "STRING_VALUE", * // data: { // JobData * // actionTypeId: { // ActionTypeId * // category: "Source" || "Build" || "Deploy" || "Test" || "Invoke" || "Approval" || "Compute", // required * // owner: "AWS" || "ThirdParty" || "Custom", // required * // provider: "STRING_VALUE", // required * // version: "STRING_VALUE", // required * // }, * // actionConfiguration: { // ActionConfiguration * // configuration: { // ActionConfigurationMap * // "": "STRING_VALUE", * // }, * // }, * // pipelineContext: { // PipelineContext * // pipelineName: "STRING_VALUE", * // stage: { // StageContext * // name: "STRING_VALUE", * // }, * // action: { // ActionContext * // name: "STRING_VALUE", * // actionExecutionId: "STRING_VALUE", * // }, * // pipelineArn: "STRING_VALUE", * // pipelineExecutionId: "STRING_VALUE", * // }, * // inputArtifacts: [ // ArtifactList * // { // Artifact * // name: "STRING_VALUE", * // revision: "STRING_VALUE", * // location: { // ArtifactLocation * // type: "S3", * // s3Location: { // S3ArtifactLocation * // bucketName: "STRING_VALUE", // required * // objectKey: "STRING_VALUE", // required * // }, * // }, * // }, * // ], * // outputArtifacts: [ * // { * // name: "STRING_VALUE", * // revision: "STRING_VALUE", * // location: { * // type: "S3", * // s3Location: { * // bucketName: "STRING_VALUE", // required * // objectKey: "STRING_VALUE", // required * // }, * // }, * // }, * // ], * // artifactCredentials: { // AWSSessionCredentials * // accessKeyId: "STRING_VALUE", // required * // secretAccessKey: "STRING_VALUE", // required * // sessionToken: "STRING_VALUE", // required * // }, * // continuationToken: "STRING_VALUE", * // encryptionKey: { // EncryptionKey * // id: "STRING_VALUE", // required * // type: "KMS", // required * // }, * // }, * // accountId: "STRING_VALUE", * // }, * // }; * * ``` * * @param GetJobDetailsCommandInput - {@link GetJobDetailsCommandInput} * @returns {@link GetJobDetailsCommandOutput} * @see {@link GetJobDetailsCommandInput} for command's `input` shape. * @see {@link GetJobDetailsCommandOutput} for command's `response` shape. * @see {@link CodePipelineClientResolvedConfig | config} for CodePipelineClient's `config` shape. * * @throws {@link JobNotFoundException} (client fault) *

The job was specified in an invalid format or cannot be found.

* * @throws {@link ValidationException} (client fault) *

The validation was specified in an invalid format.

* * @throws {@link CodePipelineServiceException} *

Base exception class for all service exceptions from CodePipeline service.

* * * @public */ export declare class GetJobDetailsCommand extends GetJobDetailsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetJobDetailsInput; output: GetJobDetailsOutput; }; sdk: { input: GetJobDetailsCommandInput; output: GetJobDetailsCommandOutput; }; }; }