diff --git a/clients/client-codepipeline/src/commands/CreatePipelineCommand.ts b/clients/client-codepipeline/src/commands/CreatePipelineCommand.ts index 7d0cf9aa7f59..ede312d6ea55 100644 --- a/clients/client-codepipeline/src/commands/CreatePipelineCommand.ts +++ b/clients/client-codepipeline/src/commands/CreatePipelineCommand.ts @@ -85,9 +85,15 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met * configuration: { // ActionConfigurationMap * "": "STRING_VALUE", * }, + * commands: [ // CommandList + * "STRING_VALUE", + * ], * outputArtifacts: [ // OutputArtifactList * { // OutputArtifact * name: "STRING_VALUE", // required + * files: [ // FilePathList + * "STRING_VALUE", + * ], * }, * ], * inputArtifacts: [ // InputArtifactList @@ -95,6 +101,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met * name: "STRING_VALUE", // required * }, * ], + * outputVariables: [ // OutputVariableList + * "STRING_VALUE", + * ], * roleArn: "STRING_VALUE", * region: "STRING_VALUE", * namespace: "STRING_VALUE", @@ -314,9 +323,15 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met * // configuration: { // ActionConfigurationMap * // "": "STRING_VALUE", * // }, + * // commands: [ // CommandList + * // "STRING_VALUE", + * // ], * // outputArtifacts: [ // OutputArtifactList * // { // OutputArtifact * // name: "STRING_VALUE", // required + * // files: [ // FilePathList + * // "STRING_VALUE", + * // ], * // }, * // ], * // inputArtifacts: [ // InputArtifactList @@ -324,6 +339,9 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met * // name: "STRING_VALUE", // required * // }, * // ], + * // outputVariables: [ // OutputVariableList + * // "STRING_VALUE", + * // ], * // roleArn: "STRING_VALUE", * // region: "STRING_VALUE", * // namespace: "STRING_VALUE", diff --git a/clients/client-codepipeline/src/commands/GetPipelineCommand.ts b/clients/client-codepipeline/src/commands/GetPipelineCommand.ts index c546be7a59b1..c8b17d84517b 100644 --- a/clients/client-codepipeline/src/commands/GetPipelineCommand.ts +++ b/clients/client-codepipeline/src/commands/GetPipelineCommand.ts @@ -87,9 +87,15 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB * // configuration: { // ActionConfigurationMap * // "": "STRING_VALUE", * // }, + * // commands: [ // CommandList + * // "STRING_VALUE", + * // ], * // outputArtifacts: [ // OutputArtifactList * // { // OutputArtifact * // name: "STRING_VALUE", // required + * // files: [ // FilePathList + * // "STRING_VALUE", + * // ], * // }, * // ], * // inputArtifacts: [ // InputArtifactList @@ -97,6 +103,9 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB * // name: "STRING_VALUE", // required * // }, * // ], + * // outputVariables: [ // OutputVariableList + * // "STRING_VALUE", + * // ], * // roleArn: "STRING_VALUE", * // region: "STRING_VALUE", * // namespace: "STRING_VALUE", diff --git a/clients/client-codepipeline/src/commands/UpdatePipelineCommand.ts b/clients/client-codepipeline/src/commands/UpdatePipelineCommand.ts index 483888abc74d..8024a94869d8 100644 --- a/clients/client-codepipeline/src/commands/UpdatePipelineCommand.ts +++ b/clients/client-codepipeline/src/commands/UpdatePipelineCommand.ts @@ -82,9 +82,15 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met * configuration: { // ActionConfigurationMap * "": "STRING_VALUE", * }, + * commands: [ // CommandList + * "STRING_VALUE", + * ], * outputArtifacts: [ // OutputArtifactList * { // OutputArtifact * name: "STRING_VALUE", // required + * files: [ // FilePathList + * "STRING_VALUE", + * ], * }, * ], * inputArtifacts: [ // InputArtifactList @@ -92,6 +98,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met * name: "STRING_VALUE", // required * }, * ], + * outputVariables: [ // OutputVariableList + * "STRING_VALUE", + * ], * roleArn: "STRING_VALUE", * region: "STRING_VALUE", * namespace: "STRING_VALUE", @@ -305,9 +314,15 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met * // configuration: { // ActionConfigurationMap * // "": "STRING_VALUE", * // }, + * // commands: [ // CommandList + * // "STRING_VALUE", + * // ], * // outputArtifacts: [ // OutputArtifactList * // { // OutputArtifact * // name: "STRING_VALUE", // required + * // files: [ // FilePathList + * // "STRING_VALUE", + * // ], * // }, * // ], * // inputArtifacts: [ // InputArtifactList @@ -315,6 +330,9 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met * // name: "STRING_VALUE", // required * // }, * // ], + * // outputVariables: [ // OutputVariableList + * // "STRING_VALUE", + * // ], * // roleArn: "STRING_VALUE", * // region: "STRING_VALUE", * // namespace: "STRING_VALUE", diff --git a/clients/client-codepipeline/src/models/models_0.ts b/clients/client-codepipeline/src/models/models_0.ts index dd7867e3c067..ca633d753890 100644 --- a/clients/client-codepipeline/src/models/models_0.ts +++ b/clients/client-codepipeline/src/models/models_0.ts @@ -409,6 +409,12 @@ export interface OutputArtifact { * @public */ name: string | undefined; + + /** + *

The files that you want to associate with the output artifact that will be exported from the compute action.

+ * @public + */ + files?: string[]; } /** @@ -452,6 +458,18 @@ export interface ActionDeclaration { */ configuration?: Record; + /** + *

The shell commands to run with your compute action in CodePipeline. All commands are + * supported except multi-line formats. While CodeBuild logs and permissions are used, you + * do not need to create any resources in CodeBuild.

+ * + *

Using compute time for this action will incur separate charges in + * CodeBuild.

+ *
+ * @public + */ + commands?: string[]; + /** *

The name or ID of the result of the action declaration, such as a test or build * artifact.

@@ -466,6 +484,12 @@ export interface ActionDeclaration { */ inputArtifacts?: InputArtifact[]; + /** + *

The list of variables that are to be exported from the compute action. This is specifically CodeBuild environment variables as used for that action.

+ * @public + */ + outputVariables?: string[]; + /** *

The ARN of the IAM service role that performs the declared action. This is assumed * through the roleArn for the pipeline.

diff --git a/clients/client-codepipeline/src/protocols/Aws_json1_1.ts b/clients/client-codepipeline/src/protocols/Aws_json1_1.ts index 6ed81fbf3b88..ed9359250356 100644 --- a/clients/client-codepipeline/src/protocols/Aws_json1_1.ts +++ b/clients/client-codepipeline/src/protocols/Aws_json1_1.ts @@ -2514,6 +2514,8 @@ const se_ActionRevision = (input: ActionRevision, context: __SerdeContext): any // se_BlockerDeclaration omitted. +// se_CommandList omitted. + // se_Condition omitted. // se_ConditionList omitted. @@ -2564,6 +2566,8 @@ const se_CurrentRevision = (input: CurrentRevision, context: __SerdeContext): an // se_FailureDetails omitted. +// se_FilePathList omitted. + // se_GetActionTypeInput omitted. // se_GetJobDetailsInput omitted. @@ -2630,6 +2634,8 @@ const se_CurrentRevision = (input: CurrentRevision, context: __SerdeContext): an // se_OutputArtifactList omitted. +// se_OutputVariableList omitted. + // se_OutputVariablesMap omitted. // se_OverrideStageConditionInput omitted. @@ -2971,6 +2977,8 @@ const de_ArtifactRevisionList = (output: any, context: __SerdeContext): Artifact // de_BlockerDeclaration omitted. +// de_CommandList omitted. + // de_ConcurrentModificationException omitted. // de_ConcurrentPipelineExecutionsLimitExceededException omitted. @@ -3044,6 +3052,8 @@ const de_CreatePipelineOutput = (output: any, context: __SerdeContext): CreatePi // de_FailureConditions omitted. +// de_FilePathList omitted. + // de_GetActionTypeOutput omitted. // de_GetJobDetailsOutput omitted. @@ -3231,6 +3241,8 @@ const de_ListWebhooksOutput = (output: any, context: __SerdeContext): ListWebhoo // de_OutputArtifactList omitted. +// de_OutputVariableList omitted. + // de_OutputVariablesMap omitted. // de_OutputVariablesSizeExceededException omitted. diff --git a/codegen/sdk-codegen/aws-models/codepipeline.json b/codegen/sdk-codegen/aws-models/codepipeline.json index 074498ed940e..2c9dbc4f66d0 100644 --- a/codegen/sdk-codegen/aws-models/codepipeline.json +++ b/codegen/sdk-codegen/aws-models/codepipeline.json @@ -446,6 +446,12 @@ "smithy.api#documentation": "

The action's configuration. These are key-value pairs that specify input values for\n an action. For more information, see Action Structure Requirements in CodePipeline. For the list of\n configuration properties for the CloudFormation action type in CodePipeline, see Configuration Properties Reference in the CloudFormation\n User Guide. For template snippets with examples, see Using Parameter Override Functions with CodePipeline Pipelines in the\n CloudFormation User Guide.

\n

The values can be represented in either JSON or YAML format. For example, the JSON\n configuration item format is as follows:

\n

\n JSON:\n

\n

\n \"Configuration\" : { Key : Value },\n

" } }, + "commands": { + "target": "com.amazonaws.codepipeline#CommandList", + "traits": { + "smithy.api#documentation": "

The shell commands to run with your compute action in CodePipeline. All commands are\n supported except multi-line formats. While CodeBuild logs and permissions are used, you\n do not need to create any resources in CodeBuild.

\n \n

Using compute time for this action will incur separate charges in\n CodeBuild.

\n
" + } + }, "outputArtifacts": { "target": "com.amazonaws.codepipeline#OutputArtifactList", "traits": { @@ -458,6 +464,12 @@ "smithy.api#documentation": "

The name or ID of the artifact consumed by the action, such as a test or build\n artifact.

" } }, + "outputVariables": { + "target": "com.amazonaws.codepipeline#OutputVariableList", + "traits": { + "smithy.api#documentation": "

The list of variables that are to be exported from the compute action. This is specifically CodeBuild environment variables as used for that action.

" + } + }, "roleArn": { "target": "com.amazonaws.codepipeline#RoleArn", "traits": { @@ -2863,6 +2875,27 @@ } } }, + "com.amazonaws.codepipeline#Command": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1000 + } + } + }, + "com.amazonaws.codepipeline#CommandList": { + "type": "list", + "member": { + "target": "com.amazonaws.codepipeline#Command" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 50 + } + } + }, "com.amazonaws.codepipeline#ConcurrentModificationException": { "type": "structure", "members": { @@ -3920,6 +3953,27 @@ } } }, + "com.amazonaws.codepipeline#FilePath": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + } + } + }, + "com.amazonaws.codepipeline#FilePathList": { + "type": "list", + "member": { + "target": "com.amazonaws.codepipeline#FilePath" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, "com.amazonaws.codepipeline#GetActionType": { "type": "operation", "input": { @@ -5894,6 +5948,12 @@ "smithy.api#documentation": "

The name of the output of an artifact, such as \"My App\".

\n

The input artifact of an action must exactly match the output artifact declared in\n a preceding action, but the input artifact does not have to be the next action in strict\n sequence from the action that provided the output artifact. Actions in parallel can\n declare different output artifacts, which are in turn consumed by different following\n actions.

\n

Output artifact names must be unique within a pipeline.

", "smithy.api#required": {} } + }, + "files": { + "target": "com.amazonaws.codepipeline#FilePathList", + "traits": { + "smithy.api#documentation": "

The files that you want to associate with the output artifact that will be exported from the compute action.

" + } } }, "traits": { @@ -5906,6 +5966,27 @@ "target": "com.amazonaws.codepipeline#OutputArtifact" } }, + "com.amazonaws.codepipeline#OutputVariable": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + } + } + }, + "com.amazonaws.codepipeline#OutputVariableList": { + "type": "list", + "member": { + "target": "com.amazonaws.codepipeline#OutputVariable" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 15 + } + } + }, "com.amazonaws.codepipeline#OutputVariablesKey": { "type": "string", "traits": {