Skip to content

codepipeline-actions: support timeout for manual approval action #33473

@go-to-k

Description

@go-to-k

Describe the feature

The TimeoutInMinutes property, which is for the manual approval action, has been added to ActionDeclaration in CFn, but not yet added to ManualApprovalAction in CDK.

A timeout duration in minutes that can be applied against the ActionType’s default timeout value specified in Quotas for AWS CodePipeline. This attribute is available only to the manual approval ActionType.

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-actiondeclaration.html#cfn-codepipeline-pipeline-actiondeclaration-timeoutinminutes

Other ref: https://docs.aws.amazon.com/codepipeline/latest/userguide/limits.html

Manual approval action account level default timeout: 7 days

Note
The default timeout for the manual approval action can be overridden for a specific action in the pipeline, and it is configurable up to 86400 minutes (60 days) with a minimum value of 5 minutes. For more information, see ActionDeclaration in the CodePipeline API Reference.

When configured, this timeout is applied for the action. Otherwise, the account level default is used.

Use Case

The default timeout for the manual approval action is 7 days, but that often be too long or too short.

Proposed Solution

Added timeout to ManualApprovalActionProps and other related properties (such as Action, FullActionDescriptor and Stage).

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.178.1

Environment details (OS name and version, etc.)

Mac

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions