Skip to content

Add support for OperationPreferences.ConcurrencyMode attribute #651

@imduchy

Description

@imduchy

Hello,

I wanted to open a pull request to provide support for OperationPreferences.ConcurrencyMode[1] but it seems that the pinned version of aws-cdk-lib doesn't support that. Is there a plan to upgrade the package version?

export interface OperationPreferences {
  readonly concurrencyMode?: ConcurrencyMode;
  readonly failureToleranceCount?: number;
  readonly failureTolerancePercentage?: number;
  readonly maxConcurrentCount?: number;
  readonly maxConcurrentPercentage?: number;
  readonly regionConcurrencyType?: RegionConcurrencyType;
  readonly regionOrder?: string[];
}

/**
 * Specifies how the concurrency level behaves during the operation execution
 */
export enum ConcurrencyMode {
  STRICT_FAILURE_TOLERANCE = 'STRICT_FAILURE_TOLERANCE',
  SOFT_FAILURE_TOLERANCE = 'SOFT_FAILURE_TOLERANCE',
}

// ...

const stackSet = new cfn.CfnStackSet(this, 'Resource', {
      // ...
      operationPreferences: undefinedIfNoKeys({
        concurrencyMode: props.operationPreferences?.concurrencyMode,
        regionConcurrencyType: props.operationPreferences?.regionConcurrencyType,
        maxConcurrentPercentage: props.operationPreferences?.maxConcurrentPercentage,
        failureTolerancePercentage: props.operationPreferences?.failureTolerancePercentage,
      }),

However, the generated template doesn't contain the parameter. I suspect that it's caused by the outdated aws-cdk-lib version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions