cdk-lambda-subminute 2.0.323 → 2.0.325

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -91,6 +91,14 @@ declare class Imagebuilder extends Service {
91
91
  * Create a lifecycle policy resource.
92
92
  */
93
93
  createLifecyclePolicy(callback?: (err: AWSError, data: Imagebuilder.Types.CreateLifecyclePolicyResponse) => void): Request<Imagebuilder.Types.CreateLifecyclePolicyResponse, AWSError>;
94
+ /**
95
+ * Create a new workflow or a new version of an existing workflow.
96
+ */
97
+ createWorkflow(params: Imagebuilder.Types.CreateWorkflowRequest, callback?: (err: AWSError, data: Imagebuilder.Types.CreateWorkflowResponse) => void): Request<Imagebuilder.Types.CreateWorkflowResponse, AWSError>;
98
+ /**
99
+ * Create a new workflow or a new version of an existing workflow.
100
+ */
101
+ createWorkflow(callback?: (err: AWSError, data: Imagebuilder.Types.CreateWorkflowResponse) => void): Request<Imagebuilder.Types.CreateWorkflowResponse, AWSError>;
94
102
  /**
95
103
  * Deletes a component build version.
96
104
  */
@@ -155,6 +163,14 @@ declare class Imagebuilder extends Service {
155
163
  * Delete the specified lifecycle policy resource.
156
164
  */
157
165
  deleteLifecyclePolicy(callback?: (err: AWSError, data: Imagebuilder.Types.DeleteLifecyclePolicyResponse) => void): Request<Imagebuilder.Types.DeleteLifecyclePolicyResponse, AWSError>;
166
+ /**
167
+ * Deletes a specific workflow resource.
168
+ */
169
+ deleteWorkflow(params: Imagebuilder.Types.DeleteWorkflowRequest, callback?: (err: AWSError, data: Imagebuilder.Types.DeleteWorkflowResponse) => void): Request<Imagebuilder.Types.DeleteWorkflowResponse, AWSError>;
170
+ /**
171
+ * Deletes a specific workflow resource.
172
+ */
173
+ deleteWorkflow(callback?: (err: AWSError, data: Imagebuilder.Types.DeleteWorkflowResponse) => void): Request<Imagebuilder.Types.DeleteWorkflowResponse, AWSError>;
158
174
  /**
159
175
  * Gets a component object.
160
176
  */
@@ -259,6 +275,14 @@ declare class Imagebuilder extends Service {
259
275
  * Get details for the specified image lifecycle policy.
260
276
  */
261
277
  getLifecyclePolicy(callback?: (err: AWSError, data: Imagebuilder.Types.GetLifecyclePolicyResponse) => void): Request<Imagebuilder.Types.GetLifecyclePolicyResponse, AWSError>;
278
+ /**
279
+ * Get a workflow resource object.
280
+ */
281
+ getWorkflow(params: Imagebuilder.Types.GetWorkflowRequest, callback?: (err: AWSError, data: Imagebuilder.Types.GetWorkflowResponse) => void): Request<Imagebuilder.Types.GetWorkflowResponse, AWSError>;
282
+ /**
283
+ * Get a workflow resource object.
284
+ */
285
+ getWorkflow(callback?: (err: AWSError, data: Imagebuilder.Types.GetWorkflowResponse) => void): Request<Imagebuilder.Types.GetWorkflowResponse, AWSError>;
262
286
  /**
263
287
  * Get the runtime information that was logged for a specific runtime instance of the workflow.
264
288
  */
@@ -427,6 +451,22 @@ declare class Imagebuilder extends Service {
427
451
  * Returns the list of tags for the specified resource.
428
452
  */
429
453
  listTagsForResource(callback?: (err: AWSError, data: Imagebuilder.Types.ListTagsForResourceResponse) => void): Request<Imagebuilder.Types.ListTagsForResourceResponse, AWSError>;
454
+ /**
455
+ * Get a list of workflow steps that are waiting for action for workflows in your Amazon Web Services account.
456
+ */
457
+ listWaitingWorkflowSteps(params: Imagebuilder.Types.ListWaitingWorkflowStepsRequest, callback?: (err: AWSError, data: Imagebuilder.Types.ListWaitingWorkflowStepsResponse) => void): Request<Imagebuilder.Types.ListWaitingWorkflowStepsResponse, AWSError>;
458
+ /**
459
+ * Get a list of workflow steps that are waiting for action for workflows in your Amazon Web Services account.
460
+ */
461
+ listWaitingWorkflowSteps(callback?: (err: AWSError, data: Imagebuilder.Types.ListWaitingWorkflowStepsResponse) => void): Request<Imagebuilder.Types.ListWaitingWorkflowStepsResponse, AWSError>;
462
+ /**
463
+ * Returns a list of build versions for a specific workflow resource.
464
+ */
465
+ listWorkflowBuildVersions(params: Imagebuilder.Types.ListWorkflowBuildVersionsRequest, callback?: (err: AWSError, data: Imagebuilder.Types.ListWorkflowBuildVersionsResponse) => void): Request<Imagebuilder.Types.ListWorkflowBuildVersionsResponse, AWSError>;
466
+ /**
467
+ * Returns a list of build versions for a specific workflow resource.
468
+ */
469
+ listWorkflowBuildVersions(callback?: (err: AWSError, data: Imagebuilder.Types.ListWorkflowBuildVersionsResponse) => void): Request<Imagebuilder.Types.ListWorkflowBuildVersionsResponse, AWSError>;
430
470
  /**
431
471
  * Returns a list of workflow runtime instance metadata objects for a specific image build version.
432
472
  */
@@ -436,13 +476,21 @@ declare class Imagebuilder extends Service {
436
476
  */
437
477
  listWorkflowExecutions(callback?: (err: AWSError, data: Imagebuilder.Types.ListWorkflowExecutionsResponse) => void): Request<Imagebuilder.Types.ListWorkflowExecutionsResponse, AWSError>;
438
478
  /**
439
- * Shows runtime data for each step in a runtime instance of the workflow that you specify in the request.
479
+ * Returns runtime data for each step in a runtime instance of the workflow that you specify in the request.
440
480
  */
441
481
  listWorkflowStepExecutions(params: Imagebuilder.Types.ListWorkflowStepExecutionsRequest, callback?: (err: AWSError, data: Imagebuilder.Types.ListWorkflowStepExecutionsResponse) => void): Request<Imagebuilder.Types.ListWorkflowStepExecutionsResponse, AWSError>;
442
482
  /**
443
- * Shows runtime data for each step in a runtime instance of the workflow that you specify in the request.
483
+ * Returns runtime data for each step in a runtime instance of the workflow that you specify in the request.
444
484
  */
445
485
  listWorkflowStepExecutions(callback?: (err: AWSError, data: Imagebuilder.Types.ListWorkflowStepExecutionsResponse) => void): Request<Imagebuilder.Types.ListWorkflowStepExecutionsResponse, AWSError>;
486
+ /**
487
+ * Lists workflow build versions based on filtering parameters.
488
+ */
489
+ listWorkflows(params: Imagebuilder.Types.ListWorkflowsRequest, callback?: (err: AWSError, data: Imagebuilder.Types.ListWorkflowsResponse) => void): Request<Imagebuilder.Types.ListWorkflowsResponse, AWSError>;
490
+ /**
491
+ * Lists workflow build versions based on filtering parameters.
492
+ */
493
+ listWorkflows(callback?: (err: AWSError, data: Imagebuilder.Types.ListWorkflowsResponse) => void): Request<Imagebuilder.Types.ListWorkflowsResponse, AWSError>;
446
494
  /**
447
495
  * Applies a policy to a component. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API PutComponentPolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to all principals with whom the resource is shared.
448
496
  */
@@ -475,6 +523,14 @@ declare class Imagebuilder extends Service {
475
523
  * Applies a policy to an image recipe. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API PutImageRecipePolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to all principals with whom the resource is shared.
476
524
  */
477
525
  putImageRecipePolicy(callback?: (err: AWSError, data: Imagebuilder.Types.PutImageRecipePolicyResponse) => void): Request<Imagebuilder.Types.PutImageRecipePolicyResponse, AWSError>;
526
+ /**
527
+ * Pauses or resumes image creation when the associated workflow runs a WaitForAction step.
528
+ */
529
+ sendWorkflowStepAction(params: Imagebuilder.Types.SendWorkflowStepActionRequest, callback?: (err: AWSError, data: Imagebuilder.Types.SendWorkflowStepActionResponse) => void): Request<Imagebuilder.Types.SendWorkflowStepActionResponse, AWSError>;
530
+ /**
531
+ * Pauses or resumes image creation when the associated workflow runs a WaitForAction step.
532
+ */
533
+ sendWorkflowStepAction(callback?: (err: AWSError, data: Imagebuilder.Types.SendWorkflowStepActionResponse) => void): Request<Imagebuilder.Types.SendWorkflowStepActionResponse, AWSError>;
478
534
  /**
479
535
  * Manually triggers a pipeline to create an image.
480
536
  */
@@ -516,11 +572,11 @@ declare class Imagebuilder extends Service {
516
572
  */
517
573
  updateDistributionConfiguration(callback?: (err: AWSError, data: Imagebuilder.Types.UpdateDistributionConfigurationResponse) => void): Request<Imagebuilder.Types.UpdateDistributionConfigurationResponse, AWSError>;
518
574
  /**
519
- * Updates an image pipeline. Image pipelines enable you to automate the creation and distribution of images. UpdateImagePipeline does not support selective updates for the pipeline. You must specify all of the required properties in the update request, not just the properties that have changed.
575
+ * Updates an image pipeline. Image pipelines enable you to automate the creation and distribution of images. You must specify exactly one recipe for your image, using either a containerRecipeArn or an imageRecipeArn. UpdateImagePipeline does not support selective updates for the pipeline. You must specify all of the required properties in the update request, not just the properties that have changed.
520
576
  */
521
577
  updateImagePipeline(params: Imagebuilder.Types.UpdateImagePipelineRequest, callback?: (err: AWSError, data: Imagebuilder.Types.UpdateImagePipelineResponse) => void): Request<Imagebuilder.Types.UpdateImagePipelineResponse, AWSError>;
522
578
  /**
523
- * Updates an image pipeline. Image pipelines enable you to automate the creation and distribution of images. UpdateImagePipeline does not support selective updates for the pipeline. You must specify all of the required properties in the update request, not just the properties that have changed.
579
+ * Updates an image pipeline. Image pipelines enable you to automate the creation and distribution of images. You must specify exactly one recipe for your image, using either a containerRecipeArn or an imageRecipeArn. UpdateImagePipeline does not support selective updates for the pipeline. You must specify all of the required properties in the update request, not just the properties that have changed.
524
580
  */
525
581
  updateImagePipeline(callback?: (err: AWSError, data: Imagebuilder.Types.UpdateImagePipelineResponse) => void): Request<Imagebuilder.Types.UpdateImagePipelineResponse, AWSError>;
526
582
  /**
@@ -676,7 +732,7 @@ declare namespace Imagebuilder {
676
732
  */
677
733
  description?: NonEmptyString;
678
734
  /**
679
- * The change description of the component.
735
+ * Describes what change has been made in this version of the component, or what makes this version different from other versions of the component.
680
736
  */
681
737
  changeDescription?: NonEmptyString;
682
738
  /**
@@ -1040,7 +1096,7 @@ declare namespace Imagebuilder {
1040
1096
  */
1041
1097
  description?: NonEmptyString;
1042
1098
  /**
1043
- * The change description of the component. Describes what change has been made in this version, or what makes this version different from other versions of this component.
1099
+ * The change description of the component. Describes what change has been made in this version, or what makes this version different from other versions of the component.
1044
1100
  */
1045
1101
  changeDescription?: NonEmptyString;
1046
1102
  /**
@@ -1255,6 +1311,14 @@ declare namespace Imagebuilder {
1255
1311
  * Contains settings for vulnerability scans.
1256
1312
  */
1257
1313
  imageScanningConfiguration?: ImageScanningConfiguration;
1314
+ /**
1315
+ * Contains an array of workflow configuration objects.
1316
+ */
1317
+ workflows?: WorkflowConfigurationList;
1318
+ /**
1319
+ * The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.
1320
+ */
1321
+ executionRole?: RoleNameOrArn;
1258
1322
  }
1259
1323
  export interface CreateImagePipelineResponse {
1260
1324
  /**
@@ -1363,6 +1427,14 @@ declare namespace Imagebuilder {
1363
1427
  * Contains settings for vulnerability scans.
1364
1428
  */
1365
1429
  imageScanningConfiguration?: ImageScanningConfiguration;
1430
+ /**
1431
+ * Contains an array of workflow configuration objects.
1432
+ */
1433
+ workflows?: WorkflowConfigurationList;
1434
+ /**
1435
+ * The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.
1436
+ */
1437
+ executionRole?: RoleNameOrArn;
1366
1438
  }
1367
1439
  export interface CreateImageResponse {
1368
1440
  /**
@@ -1464,7 +1536,7 @@ declare namespace Imagebuilder {
1464
1536
  */
1465
1537
  status?: LifecyclePolicyStatus;
1466
1538
  /**
1467
- * The role name or Amazon Resource Name (ARN) for the IAM role that grants Image Builder access to run lifecycle actions.
1539
+ * The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to run lifecycle actions.
1468
1540
  */
1469
1541
  executionRole: RoleNameOrArn;
1470
1542
  /**
@@ -1498,6 +1570,58 @@ declare namespace Imagebuilder {
1498
1570
  */
1499
1571
  lifecyclePolicyArn?: LifecyclePolicyArn;
1500
1572
  }
1573
+ export interface CreateWorkflowRequest {
1574
+ /**
1575
+ * The name of the workflow to create.
1576
+ */
1577
+ name: ResourceName;
1578
+ /**
1579
+ * The semantic version of this workflow resource. The semantic version syntax adheres to the following rules. The semantic version has four nodes: &lt;major&gt;.&lt;minor&gt;.&lt;patch&gt;/&lt;build&gt;. You can assign values for the first three, and can filter on all of them. Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node. Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.
1580
+ */
1581
+ semanticVersion: VersionNumber;
1582
+ /**
1583
+ * Describes the workflow.
1584
+ */
1585
+ description?: NonEmptyString;
1586
+ /**
1587
+ * Describes what change has been made in this version of the workflow, or what makes this version different from other versions of the workflow.
1588
+ */
1589
+ changeDescription?: NonEmptyString;
1590
+ /**
1591
+ * Contains the UTF-8 encoded YAML document content for the workflow. Alternatively, you can specify the uri of a YAML document file stored in Amazon S3. However, you cannot specify both properties.
1592
+ */
1593
+ data?: InlineWorkflowData;
1594
+ /**
1595
+ * The uri of a YAML component document file. This must be an S3 URL (s3://bucket/key), and the requester must have permission to access the S3 bucket it points to. If you use Amazon S3, you can specify component content up to your service quota. Alternatively, you can specify the YAML document inline, using the component data property. You cannot specify both properties.
1596
+ */
1597
+ uri?: Uri;
1598
+ /**
1599
+ * The ID of the KMS key that is used to encrypt this workflow resource.
1600
+ */
1601
+ kmsKeyId?: NonEmptyString;
1602
+ /**
1603
+ * Tags that apply to the workflow resource.
1604
+ */
1605
+ tags?: TagMap;
1606
+ /**
1607
+ * Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
1608
+ */
1609
+ clientToken: ClientToken;
1610
+ /**
1611
+ * The phase in the image build process for which the workflow resource is responsible.
1612
+ */
1613
+ type: WorkflowType;
1614
+ }
1615
+ export interface CreateWorkflowResponse {
1616
+ /**
1617
+ * The client token that uniquely identifies the request.
1618
+ */
1619
+ clientToken?: ClientToken;
1620
+ /**
1621
+ * The Amazon Resource Name (ARN) of the workflow resource that the request created.
1622
+ */
1623
+ workflowBuildVersionArn?: WorkflowBuildVersionArn;
1624
+ }
1501
1625
  export interface CvssScore {
1502
1626
  /**
1503
1627
  * The CVSS base score.
@@ -1680,6 +1804,18 @@ declare namespace Imagebuilder {
1680
1804
  */
1681
1805
  lifecyclePolicyArn?: LifecyclePolicyArn;
1682
1806
  }
1807
+ export interface DeleteWorkflowRequest {
1808
+ /**
1809
+ * The Amazon Resource Name (ARN) of the workflow resource to delete.
1810
+ */
1811
+ workflowBuildVersionArn: WorkflowBuildVersionArn;
1812
+ }
1813
+ export interface DeleteWorkflowResponse {
1814
+ /**
1815
+ * The ARN of the workflow resource that this request deleted.
1816
+ */
1817
+ workflowBuildVersionArn?: WorkflowBuildVersionArn;
1818
+ }
1683
1819
  export type DiskImageFormat = "VMDK"|"RAW"|"VHD"|string;
1684
1820
  export interface Distribution {
1685
1821
  /**
@@ -1914,7 +2050,7 @@ declare namespace Imagebuilder {
1914
2050
  */
1915
2051
  requestId?: NonEmptyString;
1916
2052
  /**
1917
- * The component object associated with the specified ARN.
2053
+ * The component object specified in the request.
1918
2054
  */
1919
2055
  component?: Component;
1920
2056
  }
@@ -2145,6 +2281,22 @@ declare namespace Imagebuilder {
2145
2281
  * The timestamp when the specified runtime instance of the workflow finished.
2146
2282
  */
2147
2283
  endTime?: DateTime;
2284
+ /**
2285
+ * Test workflows are defined within named runtime groups. The parallel group is a named group that contains one or more test workflows.
2286
+ */
2287
+ parallelGroup?: ParallelGroup;
2288
+ }
2289
+ export interface GetWorkflowRequest {
2290
+ /**
2291
+ * The Amazon Resource Name (ARN) of the workflow resource that you want to get.
2292
+ */
2293
+ workflowBuildVersionArn: WorkflowVersionArnOrBuildVersionArn;
2294
+ }
2295
+ export interface GetWorkflowResponse {
2296
+ /**
2297
+ * The workflow resource specified in the request.
2298
+ */
2299
+ workflow?: Workflow;
2148
2300
  }
2149
2301
  export interface GetWorkflowStepExecutionRequest {
2150
2302
  /**
@@ -2321,6 +2473,14 @@ declare namespace Imagebuilder {
2321
2473
  * Identifies the last runtime instance of the lifecycle policy to take action on the image.
2322
2474
  */
2323
2475
  lifecycleExecutionId?: LifecycleExecutionId;
2476
+ /**
2477
+ * The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.
2478
+ */
2479
+ executionRole?: RoleNameOrArn;
2480
+ /**
2481
+ * Contains the build and test workflows that are associated with the image.
2482
+ */
2483
+ workflows?: WorkflowConfigurationList;
2324
2484
  }
2325
2485
  export interface ImageAggregation {
2326
2486
  /**
@@ -2419,6 +2579,14 @@ declare namespace Imagebuilder {
2419
2579
  * Contains settings for vulnerability scans.
2420
2580
  */
2421
2581
  imageScanningConfiguration?: ImageScanningConfiguration;
2582
+ /**
2583
+ * The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.
2584
+ */
2585
+ executionRole?: RoleNameOrArn;
2586
+ /**
2587
+ * Contains the workflows that run for the image pipeline.
2588
+ */
2589
+ workflows?: WorkflowConfigurationList;
2422
2590
  }
2423
2591
  export interface ImagePipelineAggregation {
2424
2592
  /**
@@ -2779,7 +2947,7 @@ declare namespace Imagebuilder {
2779
2947
  */
2780
2948
  description?: NonEmptyString;
2781
2949
  /**
2782
- * The change description of the component. This description indicates the change that has been made in this version, or what makes this version different from other versions of this component.
2950
+ * The change description of the component. This description indicates the change that has been made in this version, or what makes this version different from other versions of the component.
2783
2951
  */
2784
2952
  changeDescription?: NonEmptyString;
2785
2953
  /**
@@ -2985,6 +3153,7 @@ declare namespace Imagebuilder {
2985
3153
  export type InfrastructureConfigurationSummaryList = InfrastructureConfigurationSummary[];
2986
3154
  export type InlineComponentData = string;
2987
3155
  export type InlineDockerFileTemplate = string;
3156
+ export type InlineWorkflowData = string;
2988
3157
  export interface InspectorScoreDetails {
2989
3158
  /**
2990
3159
  * An object that contains details about an adjustment that Amazon Inspector made to the CVSS score for the finding.
@@ -3196,7 +3365,7 @@ declare namespace Imagebuilder {
3196
3365
  */
3197
3366
  status?: LifecyclePolicyStatus;
3198
3367
  /**
3199
- * The name of the IAM role that Image Builder uses to run the lifecycle policy. This is a custom role that you create.
3368
+ * The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy. This is a custom role that you create.
3200
3369
  */
3201
3370
  executionRole?: RoleNameOrArn;
3202
3371
  /**
@@ -3270,7 +3439,7 @@ declare namespace Imagebuilder {
3270
3439
  export type LifecyclePolicyDetailActionType = "DELETE"|"DEPRECATE"|"DISABLE"|string;
3271
3440
  export interface LifecyclePolicyDetailExclusionRules {
3272
3441
  /**
3273
- * Contains a list of tags that Image Builder uses to skip lifecycle actions for AMIs that have them.
3442
+ * Contains a list of tags that Image Builder uses to skip lifecycle actions for resources that have them.
3274
3443
  */
3275
3444
  tagMap?: TagMap;
3276
3445
  /**
@@ -3284,15 +3453,15 @@ declare namespace Imagebuilder {
3284
3453
  */
3285
3454
  isPublic?: Boolean;
3286
3455
  /**
3287
- * Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.
3456
+ * Configures Amazon Web Services Regions that are excluded from the lifecycle action.
3288
3457
  */
3289
3458
  regions?: StringList;
3290
3459
  /**
3291
- * Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.
3460
+ * Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.
3292
3461
  */
3293
3462
  sharedAccounts?: AccountList;
3294
3463
  /**
3295
- * Configures Amazon Web Services Regions that are excluded from the lifecycle action.
3464
+ * Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.
3296
3465
  */
3297
3466
  lastLaunched?: LifecyclePolicyDetailExclusionRulesAmisLastLaunched;
3298
3467
  /**
@@ -3374,7 +3543,7 @@ declare namespace Imagebuilder {
3374
3543
  */
3375
3544
  status?: LifecyclePolicyStatus;
3376
3545
  /**
3377
- * The name of the IAM role that Image Builder uses to run the lifecycle policy.
3546
+ * The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy.
3378
3547
  */
3379
3548
  executionRole?: RoleNameOrArn;
3380
3549
  /**
@@ -3893,6 +4062,50 @@ declare namespace Imagebuilder {
3893
4062
  */
3894
4063
  tags?: TagMap;
3895
4064
  }
4065
+ export interface ListWaitingWorkflowStepsRequest {
4066
+ /**
4067
+ * The maximum items to return in a request.
4068
+ */
4069
+ maxResults?: RestrictedInteger;
4070
+ /**
4071
+ * A token to specify where to start paginating. This is the nextToken from a previously truncated response.
4072
+ */
4073
+ nextToken?: PaginationToken;
4074
+ }
4075
+ export interface ListWaitingWorkflowStepsResponse {
4076
+ /**
4077
+ * An array of the workflow steps that are waiting for action in your Amazon Web Services account.
4078
+ */
4079
+ steps?: WorkflowStepExecutionList;
4080
+ /**
4081
+ * The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.
4082
+ */
4083
+ nextToken?: PaginationToken;
4084
+ }
4085
+ export interface ListWorkflowBuildVersionsRequest {
4086
+ /**
4087
+ * The Amazon Resource Name (ARN) of the workflow resource for which to get a list of build versions.
4088
+ */
4089
+ workflowVersionArn: WorkflowWildcardVersionArn;
4090
+ /**
4091
+ * The maximum items to return in a request.
4092
+ */
4093
+ maxResults?: RestrictedInteger;
4094
+ /**
4095
+ * A token to specify where to start paginating. This is the nextToken from a previously truncated response.
4096
+ */
4097
+ nextToken?: PaginationToken;
4098
+ }
4099
+ export interface ListWorkflowBuildVersionsResponse {
4100
+ /**
4101
+ * A list that contains metadata for the workflow builds that have run for the workflow resource specified in the request.
4102
+ */
4103
+ workflowSummaryList?: WorkflowSummaryList;
4104
+ /**
4105
+ * The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.
4106
+ */
4107
+ nextToken?: PaginationToken;
4108
+ }
3896
4109
  export interface ListWorkflowExecutionsRequest {
3897
4110
  /**
3898
4111
  * The maximum items to return in a request.
@@ -3973,6 +4186,38 @@ declare namespace Imagebuilder {
3973
4186
  */
3974
4187
  nextToken?: PaginationToken;
3975
4188
  }
4189
+ export interface ListWorkflowsRequest {
4190
+ /**
4191
+ * Used to get a list of workflow build version filtered by the identity of the creator.
4192
+ */
4193
+ owner?: Ownership;
4194
+ /**
4195
+ * Used to streamline search results.
4196
+ */
4197
+ filters?: FilterList;
4198
+ /**
4199
+ * Specify all or part of the workflow name to streamline results.
4200
+ */
4201
+ byName?: Boolean;
4202
+ /**
4203
+ * The maximum items to return in a request.
4204
+ */
4205
+ maxResults?: RestrictedInteger;
4206
+ /**
4207
+ * A token to specify where to start paginating. This is the nextToken from a previously truncated response.
4208
+ */
4209
+ nextToken?: PaginationToken;
4210
+ }
4211
+ export interface ListWorkflowsResponse {
4212
+ /**
4213
+ * A list of workflow build versions that match the request criteria.
4214
+ */
4215
+ workflowVersionList?: WorkflowVersionList;
4216
+ /**
4217
+ * The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.
4218
+ */
4219
+ nextToken?: PaginationToken;
4220
+ }
3976
4221
  export interface Logging {
3977
4222
  /**
3978
4223
  * The Amazon S3 logging configuration.
@@ -3984,6 +4229,7 @@ declare namespace Imagebuilder {
3984
4229
  export type NonEmptyStringList = NonEmptyString[];
3985
4230
  export type NonNegativeDouble = number;
3986
4231
  export type NullableBoolean = boolean;
4232
+ export type OnWorkflowFailure = "CONTINUE"|"ABORT"|string;
3987
4233
  export type OrganizationArn = string;
3988
4234
  export type OrganizationArnList = OrganizationArn[];
3989
4235
  export type OrganizationalUnitArn = string;
@@ -4046,6 +4292,7 @@ declare namespace Imagebuilder {
4046
4292
  referenceUrls?: NonEmptyStringList;
4047
4293
  }
4048
4294
  export type PaginationToken = string;
4295
+ export type ParallelGroup = string;
4049
4296
  export type PipelineExecutionStartCondition = "EXPRESSION_MATCH_ONLY"|"EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE"|string;
4050
4297
  export type PipelineStatus = "DISABLED"|"ENABLED"|string;
4051
4298
  export type Platform = "Windows"|"Linux"|string;
@@ -4218,6 +4465,42 @@ declare namespace Imagebuilder {
4218
4465
  pipelineExecutionStartCondition?: PipelineExecutionStartCondition;
4219
4466
  }
4220
4467
  export type SecurityGroupIds = NonEmptyString[];
4468
+ export interface SendWorkflowStepActionRequest {
4469
+ /**
4470
+ * Uniquely identifies the workflow step that sent the step action.
4471
+ */
4472
+ stepExecutionId: WorkflowStepExecutionId;
4473
+ /**
4474
+ * The Amazon Resource Name (ARN) of the image build version to send action for.
4475
+ */
4476
+ imageBuildVersionArn: ImageBuildVersionArn;
4477
+ /**
4478
+ * The action for the image creation process to take while a workflow WaitForAction step waits for an asynchronous action to complete.
4479
+ */
4480
+ action: WorkflowStepActionType;
4481
+ /**
4482
+ * The reason why this action is sent.
4483
+ */
4484
+ reason?: NonEmptyString;
4485
+ /**
4486
+ * Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
4487
+ */
4488
+ clientToken: ClientToken;
4489
+ }
4490
+ export interface SendWorkflowStepActionResponse {
4491
+ /**
4492
+ * The workflow step that sent the step action.
4493
+ */
4494
+ stepExecutionId?: WorkflowStepExecutionId;
4495
+ /**
4496
+ * The Amazon Resource Name (ARN) of the image build version that received the action request.
4497
+ */
4498
+ imageBuildVersionArn?: ImageBuildVersionArn;
4499
+ /**
4500
+ * The client token that uniquely identifies the request.
4501
+ */
4502
+ clientToken?: ClientToken;
4503
+ }
4221
4504
  export type SeverityCountNumber = number;
4222
4505
  export interface SeverityCounts {
4223
4506
  /**
@@ -4431,6 +4714,14 @@ declare namespace Imagebuilder {
4431
4714
  * Contains settings for vulnerability scans.
4432
4715
  */
4433
4716
  imageScanningConfiguration?: ImageScanningConfiguration;
4717
+ /**
4718
+ * Contains the workflows to run for the pipeline.
4719
+ */
4720
+ workflows?: WorkflowConfigurationList;
4721
+ /**
4722
+ * The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.
4723
+ */
4724
+ executionRole?: RoleNameOrArn;
4434
4725
  }
4435
4726
  export interface UpdateImagePipelineResponse {
4436
4727
  /**
@@ -4528,7 +4819,7 @@ declare namespace Imagebuilder {
4528
4819
  */
4529
4820
  status?: LifecyclePolicyStatus;
4530
4821
  /**
4531
- * The name of the IAM role that Image Builder should use to update the lifecycle policy.
4822
+ * The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to update the lifecycle policy.
4532
4823
  */
4533
4824
  executionRole: RoleNameOrArn;
4534
4825
  /**
@@ -4612,7 +4903,81 @@ declare namespace Imagebuilder {
4612
4903
  remediation?: NonEmptyString;
4613
4904
  }
4614
4905
  export type VulnerablePackageList = VulnerablePackage[];
4906
+ export interface Workflow {
4907
+ /**
4908
+ * The Amazon Resource Name (ARN) of the workflow resource.
4909
+ */
4910
+ arn?: WorkflowBuildVersionArn;
4911
+ /**
4912
+ * The name of the workflow resource.
4913
+ */
4914
+ name?: ResourceName;
4915
+ /**
4916
+ * The workflow resource version. Workflow resources are immutable. To make a change, you can clone a workflow or create a new version.
4917
+ */
4918
+ version?: VersionNumber;
4919
+ /**
4920
+ * The description of the workflow.
4921
+ */
4922
+ description?: NonEmptyString;
4923
+ /**
4924
+ * Describes what change has been made in this version of the workflow, or what makes this version different from other versions of the workflow.
4925
+ */
4926
+ changeDescription?: NonEmptyString;
4927
+ /**
4928
+ * Specifies the image creation stage that the workflow applies to. Image Builder currently supports build and test workflows.
4929
+ */
4930
+ type?: WorkflowType;
4931
+ /**
4932
+ * Describes the current status of the workflow and the reason for that status.
4933
+ */
4934
+ state?: WorkflowState;
4935
+ /**
4936
+ * The owner of the workflow resource.
4937
+ */
4938
+ owner?: NonEmptyString;
4939
+ /**
4940
+ * Contains the YAML document content for the workflow.
4941
+ */
4942
+ data?: WorkflowData;
4943
+ /**
4944
+ * The KMS key identifier used to encrypt the workflow resource.
4945
+ */
4946
+ kmsKeyId?: NonEmptyString;
4947
+ /**
4948
+ * The timestamp when Image Builder created the workflow resource.
4949
+ */
4950
+ dateCreated?: DateTime;
4951
+ /**
4952
+ * The tags that apply to the workflow resource
4953
+ */
4954
+ tags?: TagMap;
4955
+ /**
4956
+ * An array of input parameters that that the image workflow uses to control actions or configure settings.
4957
+ */
4958
+ parameters?: WorkflowParameterDetailList;
4959
+ }
4615
4960
  export type WorkflowBuildVersionArn = string;
4961
+ export interface WorkflowConfiguration {
4962
+ /**
4963
+ * The Amazon Resource Name (ARN) of the workflow resource.
4964
+ */
4965
+ workflowArn: WorkflowVersionArnOrBuildVersionArn;
4966
+ /**
4967
+ * Contains parameter values for each of the parameters that the workflow document defined for the workflow resource.
4968
+ */
4969
+ parameters?: WorkflowParameterList;
4970
+ /**
4971
+ * Test workflows are defined within named runtime groups called parallel groups. The parallel group is the named group that contains this test workflow. Test workflows within a parallel group can run at the same time. Image Builder starts up to five test workflows in the group at the same time, and starts additional workflows as others complete, until all workflows in the group have completed. This field only applies for test workflows.
4972
+ */
4973
+ parallelGroup?: ParallelGroup;
4974
+ /**
4975
+ * The action to take if the workflow fails.
4976
+ */
4977
+ onFailure?: OnWorkflowFailure;
4978
+ }
4979
+ export type WorkflowConfigurationList = WorkflowConfiguration[];
4980
+ export type WorkflowData = string;
4616
4981
  export type WorkflowExecutionId = string;
4617
4982
  export type WorkflowExecutionMessage = string;
4618
4983
  export interface WorkflowExecutionMetadata {
@@ -4660,15 +5025,98 @@ declare namespace Imagebuilder {
4660
5025
  * The timestamp when this runtime instance of the workflow finished.
4661
5026
  */
4662
5027
  endTime?: DateTime;
5028
+ /**
5029
+ * The name of the test group that included the test workflow resource at runtime.
5030
+ */
5031
+ parallelGroup?: ParallelGroup;
4663
5032
  }
4664
- export type WorkflowExecutionStatus = "PENDING"|"SKIPPED"|"RUNNING"|"COMPLETED"|"FAILED"|"ROLLBACK_IN_PROGRESS"|"ROLLBACK_COMPLETED"|string;
5033
+ export type WorkflowExecutionStatus = "PENDING"|"SKIPPED"|"RUNNING"|"COMPLETED"|"FAILED"|"ROLLBACK_IN_PROGRESS"|"ROLLBACK_COMPLETED"|"CANCELLED"|string;
4665
5034
  export type WorkflowExecutionsList = WorkflowExecutionMetadata[];
5035
+ export type WorkflowNameArn = string;
5036
+ export interface WorkflowParameter {
5037
+ /**
5038
+ * The name of the workflow parameter to set.
5039
+ */
5040
+ name: WorkflowParameterName;
5041
+ /**
5042
+ * Sets the value for the named workflow parameter.
5043
+ */
5044
+ value: WorkflowParameterValueList;
5045
+ }
5046
+ export type WorkflowParameterDescription = string;
5047
+ export interface WorkflowParameterDetail {
5048
+ /**
5049
+ * The name of this input parameter.
5050
+ */
5051
+ name: WorkflowParameterName;
5052
+ /**
5053
+ * The type of input this parameter provides. The currently supported value is "string".
5054
+ */
5055
+ type: WorkflowParameterType;
5056
+ /**
5057
+ * The default value of this parameter if no input is provided.
5058
+ */
5059
+ defaultValue?: WorkflowParameterValueList;
5060
+ /**
5061
+ * Describes this parameter.
5062
+ */
5063
+ description?: WorkflowParameterDescription;
5064
+ }
5065
+ export type WorkflowParameterDetailList = WorkflowParameterDetail[];
5066
+ export type WorkflowParameterList = WorkflowParameter[];
5067
+ export type WorkflowParameterName = string;
5068
+ export type WorkflowParameterType = string;
5069
+ export type WorkflowParameterValue = string;
5070
+ export type WorkflowParameterValueList = WorkflowParameterValue[];
5071
+ export interface WorkflowState {
5072
+ /**
5073
+ * The current state of the workflow.
5074
+ */
5075
+ status?: WorkflowStatus;
5076
+ /**
5077
+ * Describes how or why the workflow changed state.
5078
+ */
5079
+ reason?: NonEmptyString;
5080
+ }
5081
+ export type WorkflowStatus = "DEPRECATED"|string;
4666
5082
  export type WorkflowStepAction = string;
5083
+ export type WorkflowStepActionType = "RESUME"|"STOP"|string;
4667
5084
  export type WorkflowStepCount = number;
4668
5085
  export type WorkflowStepDescription = string;
5086
+ export interface WorkflowStepExecution {
5087
+ /**
5088
+ * Uniquely identifies the workflow step that ran for the associated image build version.
5089
+ */
5090
+ stepExecutionId?: WorkflowStepExecutionId;
5091
+ /**
5092
+ * The Amazon Resource Name (ARN) of the image build version that ran the workflow.
5093
+ */
5094
+ imageBuildVersionArn?: ImageBuildVersionArn;
5095
+ /**
5096
+ * Uniquely identifies the runtime instance of the workflow that contains the workflow step that ran for the associated image build version.
5097
+ */
5098
+ workflowExecutionId?: WorkflowExecutionId;
5099
+ /**
5100
+ * The ARN of the workflow resource that ran.
5101
+ */
5102
+ workflowBuildVersionArn?: WorkflowBuildVersionArn;
5103
+ /**
5104
+ * The name of the workflow step.
5105
+ */
5106
+ name?: WorkflowStepName;
5107
+ /**
5108
+ * The name of the step action.
5109
+ */
5110
+ action?: WorkflowStepAction;
5111
+ /**
5112
+ * The timestamp when the workflow step started.
5113
+ */
5114
+ startTime?: DateTime;
5115
+ }
4669
5116
  export type WorkflowStepExecutionId = string;
5117
+ export type WorkflowStepExecutionList = WorkflowStepExecution[];
4670
5118
  export type WorkflowStepExecutionRollbackStatus = "RUNNING"|"COMPLETED"|"SKIPPED"|"FAILED"|string;
4671
- export type WorkflowStepExecutionStatus = "PENDING"|"SKIPPED"|"RUNNING"|"COMPLETED"|"FAILED"|string;
5119
+ export type WorkflowStepExecutionStatus = "PENDING"|"SKIPPED"|"RUNNING"|"COMPLETED"|"FAILED"|"CANCELLED"|string;
4672
5120
  export type WorkflowStepExecutionsList = WorkflowStepMetadata[];
4673
5121
  export type WorkflowStepInputs = string;
4674
5122
  export type WorkflowStepMessage = string;
@@ -4721,7 +5169,84 @@ declare namespace Imagebuilder {
4721
5169
  export type WorkflowStepName = string;
4722
5170
  export type WorkflowStepOutputs = string;
4723
5171
  export type WorkflowStepTimeoutSecondsInteger = number;
5172
+ export interface WorkflowSummary {
5173
+ /**
5174
+ * The Amazon Resource Name (ARN) of the workflow resource.
5175
+ */
5176
+ arn?: WorkflowNameArn;
5177
+ /**
5178
+ * The name of the workflow.
5179
+ */
5180
+ name?: ResourceName;
5181
+ /**
5182
+ * The version of the workflow.
5183
+ */
5184
+ version?: VersionNumber;
5185
+ /**
5186
+ * Describes the workflow.
5187
+ */
5188
+ description?: NonEmptyString;
5189
+ /**
5190
+ * The change description for the current version of the workflow resource.
5191
+ */
5192
+ changeDescription?: NonEmptyString;
5193
+ /**
5194
+ * The image creation stage that this workflow applies to. Image Builder currently supports build and test stage workflows.
5195
+ */
5196
+ type?: WorkflowType;
5197
+ /**
5198
+ * The owner of the workflow resource.
5199
+ */
5200
+ owner?: NonEmptyString;
5201
+ /**
5202
+ * Describes the current state of the workflow resource.
5203
+ */
5204
+ state?: WorkflowState;
5205
+ /**
5206
+ * The original creation date of the workflow resource.
5207
+ */
5208
+ dateCreated?: DateTime;
5209
+ /**
5210
+ * Contains a list of tags that are defined for the workflow.
5211
+ */
5212
+ tags?: TagMap;
5213
+ }
5214
+ export type WorkflowSummaryList = WorkflowSummary[];
4724
5215
  export type WorkflowType = "BUILD"|"TEST"|"DISTRIBUTION"|string;
5216
+ export interface WorkflowVersion {
5217
+ /**
5218
+ * The Amazon Resource Name (ARN) of the workflow resource.
5219
+ */
5220
+ arn?: WorkflowVersionArn;
5221
+ /**
5222
+ * The name of the workflow.
5223
+ */
5224
+ name?: ResourceName;
5225
+ /**
5226
+ * The semantic version of the workflow resource. The format includes three nodes: &lt;major&gt;.&lt;minor&gt;.&lt;patch&gt;.
5227
+ */
5228
+ version?: VersionNumber;
5229
+ /**
5230
+ * Describes the workflow.
5231
+ */
5232
+ description?: NonEmptyString;
5233
+ /**
5234
+ * The image creation stage that this workflow applies to. Image Builder currently supports build and test stage workflows.
5235
+ */
5236
+ type?: WorkflowType;
5237
+ /**
5238
+ * The owner of the workflow resource.
5239
+ */
5240
+ owner?: NonEmptyString;
5241
+ /**
5242
+ * The timestamp when Image Builder created the workflow version.
5243
+ */
5244
+ dateCreated?: DateTime;
5245
+ }
5246
+ export type WorkflowVersionArn = string;
5247
+ export type WorkflowVersionArnOrBuildVersionArn = string;
5248
+ export type WorkflowVersionList = WorkflowVersion[];
5249
+ export type WorkflowWildcardVersionArn = string;
4725
5250
  /**
4726
5251
  * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
4727
5252
  */