interface WorkflowProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ARCRegionSwitch.Mixins.CfnPlanPropsMixin.WorkflowProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsarcregionswitch/mixins#CfnPlanPropsMixin_WorkflowProperty |
Java | software.amazon.awscdk.mixins.preview.services.arcregionswitch.mixins.CfnPlanPropsMixin.WorkflowProperty |
Python | aws_cdk.mixins_preview.aws_arcregionswitch.mixins.CfnPlanPropsMixin.WorkflowProperty |
TypeScript | @aws-cdk/mixins-preview » aws_arcregionswitch » mixins » CfnPlanPropsMixin » WorkflowProperty |
Represents a workflow in a Region switch plan.
A workflow defines a sequence of steps to execute during a Region switch.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as arcregionswitch_mixins } from '@aws-cdk/mixins-preview/aws-arcregionswitch';
declare const stepProperty_: arcregionswitch_mixins.CfnPlanPropsMixin.StepProperty;
const workflowProperty: arcregionswitch_mixins.CfnPlanPropsMixin.WorkflowProperty = {
steps: [{
description: 'description',
executionBlockConfiguration: {
arcRoutingControlConfig: {
crossAccountRole: 'crossAccountRole',
externalId: 'externalId',
regionAndRoutingControls: {
regionAndRoutingControlsKey: [{
routingControlArn: 'routingControlArn',
state: 'state',
}],
},
timeoutMinutes: 123,
},
customActionLambdaConfig: {
lambdas: [{
arn: 'arn',
crossAccountRole: 'crossAccountRole',
externalId: 'externalId',
}],
regionToRun: 'regionToRun',
retryIntervalMinutes: 123,
timeoutMinutes: 123,
ungraceful: {
behavior: 'behavior',
},
},
ec2AsgCapacityIncreaseConfig: {
asgs: [{
arn: 'arn',
crossAccountRole: 'crossAccountRole',
externalId: 'externalId',
}],
capacityMonitoringApproach: 'capacityMonitoringApproach',
targetPercent: 123,
timeoutMinutes: 123,
ungraceful: {
minimumSuccessPercentage: 123,
},
},
ecsCapacityIncreaseConfig: {
capacityMonitoringApproach: 'capacityMonitoringApproach',
services: [{
clusterArn: 'clusterArn',
crossAccountRole: 'crossAccountRole',
externalId: 'externalId',
serviceArn: 'serviceArn',
}],
targetPercent: 123,
timeoutMinutes: 123,
ungraceful: {
minimumSuccessPercentage: 123,
},
},
eksResourceScalingConfig: {
capacityMonitoringApproach: 'capacityMonitoringApproach',
eksClusters: [{
clusterArn: 'clusterArn',
crossAccountRole: 'crossAccountRole',
externalId: 'externalId',
}],
kubernetesResourceType: {
apiVersion: 'apiVersion',
kind: 'kind',
},
scalingResources: [{
scalingResourcesKey: {
scalingResourcesKey: {
hpaName: 'hpaName',
name: 'name',
namespace: 'namespace',
},
},
}],
targetPercent: 123,
timeoutMinutes: 123,
ungraceful: {
minimumSuccessPercentage: 123,
},
},
executionApprovalConfig: {
approvalRole: 'approvalRole',
timeoutMinutes: 123,
},
globalAuroraConfig: {
behavior: 'behavior',
crossAccountRole: 'crossAccountRole',
databaseClusterArns: ['databaseClusterArns'],
externalId: 'externalId',
globalClusterIdentifier: 'globalClusterIdentifier',
timeoutMinutes: 123,
ungraceful: {
ungraceful: 'ungraceful',
},
},
parallelConfig: {
steps: [stepProperty_],
},
regionSwitchPlanConfig: {
arn: 'arn',
crossAccountRole: 'crossAccountRole',
externalId: 'externalId',
},
route53HealthCheckConfig: {
crossAccountRole: 'crossAccountRole',
externalId: 'externalId',
hostedZoneId: 'hostedZoneId',
recordName: 'recordName',
recordSets: [{
recordSetIdentifier: 'recordSetIdentifier',
region: 'region',
}],
timeoutMinutes: 123,
},
},
executionBlockType: 'executionBlockType',
name: 'name',
}],
workflowDescription: 'workflowDescription',
workflowTargetAction: 'workflowTargetAction',
workflowTargetRegion: 'workflowTargetRegion',
};
Properties
| Name | Type | Description |
|---|---|---|
| steps? | IResolvable | (IResolvable | Step)[] | The steps that make up the workflow. |
| workflow | string | The description of the workflow. |
| workflow | string | The action that the workflow performs. |
| workflow | string | The AWS Region that the workflow targets. |
steps?
Type:
IResolvable | (IResolvable | Step)[]
(optional)
The steps that make up the workflow.
workflowDescription?
Type:
string
(optional)
The description of the workflow.
workflowTargetAction?
Type:
string
(optional)
The action that the workflow performs.
Valid values include ACTIVATE and DEACTIVATE.
workflowTargetRegion?
Type:
string
(optional)
The AWS Region that the workflow targets.

.NET
Go
Java
Python
TypeScript