Documentation ¶
Index ¶
- func AthenaGetQueryExecution_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func AthenaGetQueryExecution_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func AthenaGetQueryExecution_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func AthenaGetQueryExecution_IsConstruct(x interface{}) *bool
- func AthenaGetQueryExecution_PrefixStates(root constructs.IConstruct, prefix *string)
- func AthenaGetQueryResults_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func AthenaGetQueryResults_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func AthenaGetQueryResults_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func AthenaGetQueryResults_IsConstruct(x interface{}) *bool
- func AthenaGetQueryResults_PrefixStates(root constructs.IConstruct, prefix *string)
- func AthenaStartQueryExecution_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func AthenaStartQueryExecution_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func AthenaStartQueryExecution_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func AthenaStartQueryExecution_IsConstruct(x interface{}) *bool
- func AthenaStartQueryExecution_PrefixStates(root constructs.IConstruct, prefix *string)
- func AthenaStopQueryExecution_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func AthenaStopQueryExecution_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func AthenaStopQueryExecution_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func AthenaStopQueryExecution_IsConstruct(x interface{}) *bool
- func AthenaStopQueryExecution_PrefixStates(root constructs.IConstruct, prefix *string)
- func BatchSubmitJob_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func BatchSubmitJob_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func BatchSubmitJob_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func BatchSubmitJob_IsConstruct(x interface{}) *bool
- func BatchSubmitJob_PrefixStates(root constructs.IConstruct, prefix *string)
- func BedrockInvokeModel_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func BedrockInvokeModel_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func BedrockInvokeModel_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func BedrockInvokeModel_IsConstruct(x interface{}) *bool
- func BedrockInvokeModel_PrefixStates(root constructs.IConstruct, prefix *string)
- func CallApiGatewayHttpApiEndpoint_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func CallApiGatewayHttpApiEndpoint_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func CallApiGatewayHttpApiEndpoint_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func CallApiGatewayHttpApiEndpoint_IsConstruct(x interface{}) *bool
- func CallApiGatewayHttpApiEndpoint_PrefixStates(root constructs.IConstruct, prefix *string)
- func CallApiGatewayRestApiEndpoint_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func CallApiGatewayRestApiEndpoint_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func CallApiGatewayRestApiEndpoint_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func CallApiGatewayRestApiEndpoint_IsConstruct(x interface{}) *bool
- func CallApiGatewayRestApiEndpoint_PrefixStates(root constructs.IConstruct, prefix *string)
- func CallAwsServiceCrossRegion_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func CallAwsServiceCrossRegion_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func CallAwsServiceCrossRegion_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func CallAwsServiceCrossRegion_IsConstruct(x interface{}) *bool
- func CallAwsServiceCrossRegion_PrefixStates(root constructs.IConstruct, prefix *string)
- func CallAwsService_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func CallAwsService_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func CallAwsService_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func CallAwsService_IsConstruct(x interface{}) *bool
- func CallAwsService_PrefixStates(root constructs.IConstruct, prefix *string)
- func CodeBuildStartBuildBatch_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func CodeBuildStartBuildBatch_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func CodeBuildStartBuildBatch_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func CodeBuildStartBuildBatch_IsConstruct(x interface{}) *bool
- func CodeBuildStartBuildBatch_PrefixStates(root constructs.IConstruct, prefix *string)
- func CodeBuildStartBuild_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func CodeBuildStartBuild_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func CodeBuildStartBuild_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func CodeBuildStartBuild_IsConstruct(x interface{}) *bool
- func CodeBuildStartBuild_PrefixStates(root constructs.IConstruct, prefix *string)
- func DynamoDeleteItem_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func DynamoDeleteItem_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func DynamoDeleteItem_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func DynamoDeleteItem_IsConstruct(x interface{}) *bool
- func DynamoDeleteItem_PrefixStates(root constructs.IConstruct, prefix *string)
- func DynamoGetItem_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func DynamoGetItem_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func DynamoGetItem_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func DynamoGetItem_IsConstruct(x interface{}) *bool
- func DynamoGetItem_PrefixStates(root constructs.IConstruct, prefix *string)
- func DynamoPutItem_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func DynamoPutItem_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func DynamoPutItem_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func DynamoPutItem_IsConstruct(x interface{}) *bool
- func DynamoPutItem_PrefixStates(root constructs.IConstruct, prefix *string)
- func DynamoUpdateItem_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func DynamoUpdateItem_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func DynamoUpdateItem_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func DynamoUpdateItem_IsConstruct(x interface{}) *bool
- func DynamoUpdateItem_PrefixStates(root constructs.IConstruct, prefix *string)
- func EcsRunTask_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func EcsRunTask_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EcsRunTask_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EcsRunTask_IsConstruct(x interface{}) *bool
- func EcsRunTask_PrefixStates(root constructs.IConstruct, prefix *string)
- func EksCall_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func EksCall_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EksCall_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EksCall_IsConstruct(x interface{}) *bool
- func EksCall_PrefixStates(root constructs.IConstruct, prefix *string)
- func EmrAddStep_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func EmrAddStep_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrAddStep_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrAddStep_IsConstruct(x interface{}) *bool
- func EmrAddStep_PrefixStates(root constructs.IConstruct, prefix *string)
- func EmrCancelStep_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func EmrCancelStep_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrCancelStep_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrCancelStep_IsConstruct(x interface{}) *bool
- func EmrCancelStep_PrefixStates(root constructs.IConstruct, prefix *string)
- func EmrContainersCreateVirtualCluster_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func EmrContainersCreateVirtualCluster_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrContainersCreateVirtualCluster_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrContainersCreateVirtualCluster_IsConstruct(x interface{}) *bool
- func EmrContainersCreateVirtualCluster_PrefixStates(root constructs.IConstruct, prefix *string)
- func EmrContainersDeleteVirtualCluster_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func EmrContainersDeleteVirtualCluster_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrContainersDeleteVirtualCluster_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrContainersDeleteVirtualCluster_IsConstruct(x interface{}) *bool
- func EmrContainersDeleteVirtualCluster_PrefixStates(root constructs.IConstruct, prefix *string)
- func EmrContainersStartJobRun_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func EmrContainersStartJobRun_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrContainersStartJobRun_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrContainersStartJobRun_IsConstruct(x interface{}) *bool
- func EmrContainersStartJobRun_PrefixStates(root constructs.IConstruct, prefix *string)
- func EmrCreateCluster_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func EmrCreateCluster_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrCreateCluster_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrCreateCluster_IsConstruct(x interface{}) *bool
- func EmrCreateCluster_PrefixStates(root constructs.IConstruct, prefix *string)
- func EmrModifyInstanceFleetByName_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func EmrModifyInstanceFleetByName_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrModifyInstanceFleetByName_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrModifyInstanceFleetByName_IsConstruct(x interface{}) *bool
- func EmrModifyInstanceFleetByName_PrefixStates(root constructs.IConstruct, prefix *string)
- func EmrModifyInstanceGroupByName_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func EmrModifyInstanceGroupByName_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrModifyInstanceGroupByName_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrModifyInstanceGroupByName_IsConstruct(x interface{}) *bool
- func EmrModifyInstanceGroupByName_PrefixStates(root constructs.IConstruct, prefix *string)
- func EmrSetClusterTerminationProtection_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func EmrSetClusterTerminationProtection_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrSetClusterTerminationProtection_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrSetClusterTerminationProtection_IsConstruct(x interface{}) *bool
- func EmrSetClusterTerminationProtection_PrefixStates(root constructs.IConstruct, prefix *string)
- func EmrTerminateCluster_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func EmrTerminateCluster_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrTerminateCluster_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EmrTerminateCluster_IsConstruct(x interface{}) *bool
- func EmrTerminateCluster_PrefixStates(root constructs.IConstruct, prefix *string)
- func EvaluateExpression_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func EvaluateExpression_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EvaluateExpression_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EvaluateExpression_IsConstruct(x interface{}) *bool
- func EvaluateExpression_PrefixStates(root constructs.IConstruct, prefix *string)
- func EventBridgePutEvents_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func EventBridgePutEvents_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EventBridgePutEvents_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EventBridgePutEvents_IsConstruct(x interface{}) *bool
- func EventBridgePutEvents_PrefixStates(root constructs.IConstruct, prefix *string)
- func EventBridgeSchedulerCreateScheduleTask_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func EventBridgeSchedulerCreateScheduleTask_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EventBridgeSchedulerCreateScheduleTask_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func EventBridgeSchedulerCreateScheduleTask_IsConstruct(x interface{}) *bool
- func EventBridgeSchedulerCreateScheduleTask_PrefixStates(root constructs.IConstruct, prefix *string)
- func GlueDataBrewStartJobRun_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func GlueDataBrewStartJobRun_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func GlueDataBrewStartJobRun_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func GlueDataBrewStartJobRun_IsConstruct(x interface{}) *bool
- func GlueDataBrewStartJobRun_PrefixStates(root constructs.IConstruct, prefix *string)
- func GlueStartCrawlerRun_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func GlueStartCrawlerRun_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func GlueStartCrawlerRun_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func GlueStartCrawlerRun_IsConstruct(x interface{}) *bool
- func GlueStartCrawlerRun_PrefixStates(root constructs.IConstruct, prefix *string)
- func GlueStartJobRun_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func GlueStartJobRun_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func GlueStartJobRun_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func GlueStartJobRun_IsConstruct(x interface{}) *bool
- func GlueStartJobRun_PrefixStates(root constructs.IConstruct, prefix *string)
- func HttpInvoke_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func HttpInvoke_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func HttpInvoke_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func HttpInvoke_IsConstruct(x interface{}) *bool
- func HttpInvoke_PrefixStates(root constructs.IConstruct, prefix *string)
- func LambdaInvoke_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func LambdaInvoke_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func LambdaInvoke_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func LambdaInvoke_IsConstruct(x interface{}) *bool
- func LambdaInvoke_PrefixStates(root constructs.IConstruct, prefix *string)
- func MediaConvertCreateJob_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func MediaConvertCreateJob_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func MediaConvertCreateJob_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func MediaConvertCreateJob_IsConstruct(x interface{}) *bool
- func MediaConvertCreateJob_PrefixStates(root constructs.IConstruct, prefix *string)
- func NewAcceleratorType_Override(a AcceleratorType, instanceTypeIdentifier *string)
- func NewAthenaGetQueryExecution_Override(a AthenaGetQueryExecution, scope constructs.Construct, id *string, ...)
- func NewAthenaGetQueryResults_Override(a AthenaGetQueryResults, scope constructs.Construct, id *string, ...)
- func NewAthenaStartQueryExecution_Override(a AthenaStartQueryExecution, scope constructs.Construct, id *string, ...)
- func NewAthenaStopQueryExecution_Override(a AthenaStopQueryExecution, scope constructs.Construct, id *string, ...)
- func NewBatchSubmitJob_Override(b BatchSubmitJob, scope constructs.Construct, id *string, ...)
- func NewBedrockInvokeModel_Override(b BedrockInvokeModel, scope constructs.Construct, id *string, ...)
- func NewCallApiGatewayHttpApiEndpoint_Override(c CallApiGatewayHttpApiEndpoint, scope constructs.Construct, id *string, ...)
- func NewCallApiGatewayRestApiEndpoint_Override(c CallApiGatewayRestApiEndpoint, scope constructs.Construct, id *string, ...)
- func NewCallAwsServiceCrossRegion_Override(c CallAwsServiceCrossRegion, scope constructs.Construct, id *string, ...)
- func NewCallAwsService_Override(c CallAwsService, scope constructs.Construct, id *string, ...)
- func NewClassification_Override(c Classification, classificationStatement *string)
- func NewCodeBuildStartBuildBatch_Override(c CodeBuildStartBuildBatch, scope constructs.Construct, id *string, ...)
- func NewCodeBuildStartBuild_Override(c CodeBuildStartBuild, scope constructs.Construct, id *string, ...)
- func NewContainerDefinition_Override(c ContainerDefinition, options *ContainerDefinitionOptions)
- func NewDockerImage_Override(d DockerImage)
- func NewDynamoDeleteItem_Override(d DynamoDeleteItem, scope constructs.Construct, id *string, ...)
- func NewDynamoGetItem_Override(d DynamoGetItem, scope constructs.Construct, id *string, ...)
- func NewDynamoProjectionExpression_Override(d DynamoProjectionExpression)
- func NewDynamoPutItem_Override(d DynamoPutItem, scope constructs.Construct, id *string, ...)
- func NewDynamoUpdateItem_Override(d DynamoUpdateItem, scope constructs.Construct, id *string, ...)
- func NewEcsEc2LaunchTarget_Override(e EcsEc2LaunchTarget, options *EcsEc2LaunchTargetOptions)
- func NewEcsFargateLaunchTarget_Override(e EcsFargateLaunchTarget, options *EcsFargateLaunchTargetOptions)
- func NewEcsRunTask_Override(e EcsRunTask, scope constructs.Construct, id *string, props *EcsRunTaskProps)
- func NewEksCall_Override(e EksCall, scope constructs.Construct, id *string, props *EksCallProps)
- func NewEmrAddStep_Override(e EmrAddStep, scope constructs.Construct, id *string, props *EmrAddStepProps)
- func NewEmrCancelStep_Override(e EmrCancelStep, scope constructs.Construct, id *string, ...)
- func NewEmrContainersCreateVirtualCluster_Override(e EmrContainersCreateVirtualCluster, scope constructs.Construct, id *string, ...)
- func NewEmrContainersDeleteVirtualCluster_Override(e EmrContainersDeleteVirtualCluster, scope constructs.Construct, id *string, ...)
- func NewEmrContainersStartJobRun_Override(e EmrContainersStartJobRun, scope constructs.Construct, id *string, ...)
- func NewEmrCreateCluster_Override(e EmrCreateCluster, scope constructs.Construct, id *string, ...)
- func NewEmrModifyInstanceFleetByName_Override(e EmrModifyInstanceFleetByName, scope constructs.Construct, id *string, ...)
- func NewEmrModifyInstanceGroupByName_Override(e EmrModifyInstanceGroupByName, scope constructs.Construct, id *string, ...)
- func NewEmrSetClusterTerminationProtection_Override(e EmrSetClusterTerminationProtection, scope constructs.Construct, id *string, ...)
- func NewEmrTerminateCluster_Override(e EmrTerminateCluster, scope constructs.Construct, id *string, ...)
- func NewEvaluateExpression_Override(e EvaluateExpression, scope constructs.Construct, id *string, ...)
- func NewEventBridgePutEvents_Override(e EventBridgePutEvents, scope constructs.Construct, id *string, ...)
- func NewEventBridgeSchedulerCreateScheduleTask_Override(e EventBridgeSchedulerCreateScheduleTask, scope constructs.Construct, ...)
- func NewEventBridgeSchedulerTarget_Override(e EventBridgeSchedulerTarget, props *EventBridgeSchedulerTargetProps)
- func NewGlueDataBrewStartJobRun_Override(g GlueDataBrewStartJobRun, scope constructs.Construct, id *string, ...)
- func NewGlueStartCrawlerRun_Override(g GlueStartCrawlerRun, scope constructs.Construct, id *string, ...)
- func NewGlueStartJobRun_Override(g GlueStartJobRun, scope constructs.Construct, id *string, ...)
- func NewHttpInvoke_Override(h HttpInvoke, scope constructs.Construct, id *string, props *HttpInvokeProps)
- func NewLambdaInvoke_Override(l LambdaInvoke, scope constructs.Construct, id *string, ...)
- func NewMediaConvertCreateJob_Override(m MediaConvertCreateJob, scope constructs.Construct, id *string, ...)
- func NewReleaseLabel_Override(r ReleaseLabel, label *string)
- func NewS3Location_Override(s S3Location)
- func NewSageMakerCreateEndpointConfig_Override(s SageMakerCreateEndpointConfig, scope constructs.Construct, id *string, ...)
- func NewSageMakerCreateEndpoint_Override(s SageMakerCreateEndpoint, scope constructs.Construct, id *string, ...)
- func NewSageMakerCreateModel_Override(s SageMakerCreateModel, scope constructs.Construct, id *string, ...)
- func NewSageMakerCreateTrainingJob_Override(s SageMakerCreateTrainingJob, scope constructs.Construct, id *string, ...)
- func NewSageMakerCreateTransformJob_Override(s SageMakerCreateTransformJob, scope constructs.Construct, id *string, ...)
- func NewSageMakerUpdateEndpoint_Override(s SageMakerUpdateEndpoint, scope constructs.Construct, id *string, ...)
- func NewSnsPublish_Override(s SnsPublish, scope constructs.Construct, id *string, props *SnsPublishProps)
- func NewSqsSendMessage_Override(s SqsSendMessage, scope constructs.Construct, id *string, ...)
- func NewStepFunctionsInvokeActivity_Override(s StepFunctionsInvokeActivity, scope constructs.Construct, id *string, ...)
- func NewStepFunctionsStartExecution_Override(s StepFunctionsStartExecution, scope constructs.Construct, id *string, ...)
- func SageMakerCreateEndpointConfig_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func SageMakerCreateEndpointConfig_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func SageMakerCreateEndpointConfig_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func SageMakerCreateEndpointConfig_IsConstruct(x interface{}) *bool
- func SageMakerCreateEndpointConfig_PrefixStates(root constructs.IConstruct, prefix *string)
- func SageMakerCreateEndpoint_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func SageMakerCreateEndpoint_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func SageMakerCreateEndpoint_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func SageMakerCreateEndpoint_IsConstruct(x interface{}) *bool
- func SageMakerCreateEndpoint_PrefixStates(root constructs.IConstruct, prefix *string)
- func SageMakerCreateModel_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func SageMakerCreateModel_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func SageMakerCreateModel_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func SageMakerCreateModel_IsConstruct(x interface{}) *bool
- func SageMakerCreateModel_PrefixStates(root constructs.IConstruct, prefix *string)
- func SageMakerCreateTrainingJob_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func SageMakerCreateTrainingJob_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func SageMakerCreateTrainingJob_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func SageMakerCreateTrainingJob_IsConstruct(x interface{}) *bool
- func SageMakerCreateTrainingJob_PrefixStates(root constructs.IConstruct, prefix *string)
- func SageMakerCreateTransformJob_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func SageMakerCreateTransformJob_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func SageMakerCreateTransformJob_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func SageMakerCreateTransformJob_IsConstruct(x interface{}) *bool
- func SageMakerCreateTransformJob_PrefixStates(root constructs.IConstruct, prefix *string)
- func SageMakerUpdateEndpoint_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func SageMakerUpdateEndpoint_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func SageMakerUpdateEndpoint_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func SageMakerUpdateEndpoint_IsConstruct(x interface{}) *bool
- func SageMakerUpdateEndpoint_PrefixStates(root constructs.IConstruct, prefix *string)
- func SnsPublish_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func SnsPublish_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func SnsPublish_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func SnsPublish_IsConstruct(x interface{}) *bool
- func SnsPublish_PrefixStates(root constructs.IConstruct, prefix *string)
- func SqsSendMessage_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func SqsSendMessage_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func SqsSendMessage_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func SqsSendMessage_IsConstruct(x interface{}) *bool
- func SqsSendMessage_PrefixStates(root constructs.IConstruct, prefix *string)
- func StepFunctionsInvokeActivity_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func StepFunctionsInvokeActivity_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func StepFunctionsInvokeActivity_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func StepFunctionsInvokeActivity_IsConstruct(x interface{}) *bool
- func StepFunctionsInvokeActivity_PrefixStates(root constructs.IConstruct, prefix *string)
- func StepFunctionsStartExecution_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
- func StepFunctionsStartExecution_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func StepFunctionsStartExecution_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
- func StepFunctionsStartExecution_IsConstruct(x interface{}) *bool
- func StepFunctionsStartExecution_PrefixStates(root constructs.IConstruct, prefix *string)
- type AcceleratorClass
- type AcceleratorType
- type ActionAfterCompletion
- type ActionOnFailure
- type AlgorithmSpecification
- type ApplicationConfiguration
- type AssembleWith
- type AthenaGetQueryExecution
- type AthenaGetQueryExecutionProps
- type AthenaGetQueryResults
- type AthenaGetQueryResultsProps
- type AthenaStartQueryExecution
- type AthenaStartQueryExecutionProps
- type AthenaStopQueryExecution
- type AthenaStopQueryExecutionProps
- type AuthType
- type BatchContainerOverrides
- type BatchJobDependency
- type BatchStrategy
- type BatchSubmitJob
- type BatchSubmitJobProps
- type BedrockInvokeModel
- type BedrockInvokeModelInputProps
- type BedrockInvokeModelOutputProps
- type BedrockInvokeModelProps
- type CallApiGatewayEndpointBaseProps
- type CallApiGatewayHttpApiEndpoint
- type CallApiGatewayHttpApiEndpointProps
- type CallApiGatewayRestApiEndpoint
- type CallApiGatewayRestApiEndpointProps
- type CallAwsService
- type CallAwsServiceCrossRegion
- type CallAwsServiceCrossRegionProps
- type CallAwsServiceProps
- type Channel
- type Classification
- func Classification_SPARK() Classification
- func Classification_SPARK_DEFAULTS() Classification
- func Classification_SPARK_ENV() Classification
- func Classification_SPARK_HIVE_SITE() Classification
- func Classification_SPARK_LOG4J() Classification
- func Classification_SPARK_METRICS() Classification
- func NewClassification(classificationStatement *string) Classification
- type CodeBuildStartBuild
- type CodeBuildStartBuildBatch
- type CodeBuildStartBuildBatchProps
- type CodeBuildStartBuildProps
- type CommonEcsRunTaskProps
- type CompressionType
- type ContainerDefinition
- type ContainerDefinitionConfig
- type ContainerDefinitionOptions
- type ContainerOverride
- type ContainerOverrides
- type CronOptions
- type DataSource
- type DockerImage
- func DockerImage_FromAsset(scope constructs.Construct, id *string, ...) DockerImage
- func DockerImage_FromEcrRepository(repository awsecr.IRepository, tagOrDigest *string) DockerImage
- func DockerImage_FromJsonExpression(expression *string, allowAnyEcrImagePull *bool) DockerImage
- func DockerImage_FromRegistry(imageUri *string) DockerImage
- type DockerImageConfig
- type DynamoAttributeValue
- func DynamoAttributeValue_BooleanFromJsonPath(value *string) DynamoAttributeValue
- func DynamoAttributeValue_FromBinary(value *string) DynamoAttributeValue
- func DynamoAttributeValue_FromBinarySet(value *[]*string) DynamoAttributeValue
- func DynamoAttributeValue_FromBoolean(value *bool) DynamoAttributeValue
- func DynamoAttributeValue_FromList(value *[]DynamoAttributeValue) DynamoAttributeValue
- func DynamoAttributeValue_FromMap(value *map[string]DynamoAttributeValue) DynamoAttributeValue
- func DynamoAttributeValue_FromNull(value *bool) DynamoAttributeValue
- func DynamoAttributeValue_FromNumber(value *float64) DynamoAttributeValue
- func DynamoAttributeValue_FromNumberSet(value *[]*float64) DynamoAttributeValue
- func DynamoAttributeValue_FromString(value *string) DynamoAttributeValue
- func DynamoAttributeValue_FromStringSet(value *[]*string) DynamoAttributeValue
- func DynamoAttributeValue_ListFromJsonPath(value *string) DynamoAttributeValue
- func DynamoAttributeValue_MapFromJsonPath(value *string) DynamoAttributeValue
- func DynamoAttributeValue_NumberFromString(value *string) DynamoAttributeValue
- func DynamoAttributeValue_NumberSetFromStrings(value *[]*string) DynamoAttributeValue
- type DynamoConsumedCapacity
- type DynamoDeleteItem
- type DynamoDeleteItemProps
- type DynamoGetItem
- type DynamoGetItemProps
- type DynamoItemCollectionMetrics
- type DynamoProjectionExpression
- type DynamoPutItem
- type DynamoPutItemProps
- type DynamoReturnValues
- type DynamoUpdateItem
- type DynamoUpdateItemProps
- type EcsEc2LaunchTarget
- type EcsEc2LaunchTargetOptions
- type EcsFargateLaunchTarget
- type EcsFargateLaunchTargetOptions
- type EcsLaunchTargetConfig
- type EcsRunTask
- type EcsRunTaskProps
- type EksCall
- type EksCallProps
- type EksClusterInput
- type EmrAddStep
- type EmrAddStepProps
- type EmrCancelStep
- type EmrCancelStepProps
- type EmrContainersCreateVirtualCluster
- type EmrContainersCreateVirtualClusterProps
- type EmrContainersDeleteVirtualCluster
- type EmrContainersDeleteVirtualClusterProps
- type EmrContainersStartJobRun
- type EmrContainersStartJobRunProps
- type EmrCreateCluster
- type EmrCreateClusterProps
- type EmrCreateCluster_ApplicationConfigProperty
- type EmrCreateCluster_AutoScalingPolicyProperty
- type EmrCreateCluster_BootstrapActionConfigProperty
- type EmrCreateCluster_CloudWatchAlarmComparisonOperator
- type EmrCreateCluster_CloudWatchAlarmDefinitionProperty
- type EmrCreateCluster_CloudWatchAlarmStatistic
- type EmrCreateCluster_CloudWatchAlarmUnit
- type EmrCreateCluster_ConfigurationProperty
- type EmrCreateCluster_EbsBlockDeviceConfigProperty
- type EmrCreateCluster_EbsBlockDeviceVolumeType
- type EmrCreateCluster_EbsConfigurationProperty
- type EmrCreateCluster_EmrClusterScaleDownBehavior
- type EmrCreateCluster_InstanceFleetConfigProperty
- type EmrCreateCluster_InstanceFleetProvisioningSpecificationsProperty
- type EmrCreateCluster_InstanceGroupConfigProperty
- type EmrCreateCluster_InstanceMarket
- type EmrCreateCluster_InstanceRoleType
- type EmrCreateCluster_InstanceTypeConfigProperty
- type EmrCreateCluster_InstancesConfigProperty
- type EmrCreateCluster_KerberosAttributesProperty
- type EmrCreateCluster_MetricDimensionProperty
- type EmrCreateCluster_OnDemandAllocationStrategy
- type EmrCreateCluster_OnDemandProvisioningSpecificationProperty
- type EmrCreateCluster_PlacementTypeProperty
- type EmrCreateCluster_ScalingActionProperty
- type EmrCreateCluster_ScalingAdjustmentType
- type EmrCreateCluster_ScalingConstraintsProperty
- type EmrCreateCluster_ScalingRuleProperty
- type EmrCreateCluster_ScalingTriggerProperty
- type EmrCreateCluster_ScriptBootstrapActionConfigProperty
- type EmrCreateCluster_SimpleScalingPolicyConfigurationProperty
- type EmrCreateCluster_SpotAllocationStrategy
- type EmrCreateCluster_SpotProvisioningSpecificationProperty
- type EmrCreateCluster_SpotTimeoutAction
- type EmrCreateCluster_VolumeSpecificationProperty
- type EmrModifyInstanceFleetByName
- type EmrModifyInstanceFleetByNameProps
- type EmrModifyInstanceGroupByName
- type EmrModifyInstanceGroupByNameProps
- type EmrModifyInstanceGroupByName_InstanceGroupModifyConfigProperty
- type EmrModifyInstanceGroupByName_InstanceResizePolicyProperty
- type EmrModifyInstanceGroupByName_ShrinkPolicyProperty
- type EmrSetClusterTerminationProtection
- type EmrSetClusterTerminationProtectionProps
- type EmrTerminateCluster
- type EmrTerminateClusterProps
- type EncryptionConfiguration
- type EncryptionOption
- type EvaluateExpression
- type EvaluateExpressionProps
- type EventBridgePutEvents
- type EventBridgePutEventsEntry
- type EventBridgePutEventsProps
- type EventBridgeSchedulerCreateScheduleTask
- type EventBridgeSchedulerCreateScheduleTaskProps
- type EventBridgeSchedulerTarget
- type EventBridgeSchedulerTargetProps
- type ExecutionClass
- type GlueDataBrewStartJobRun
- type GlueDataBrewStartJobRunProps
- type GlueStartCrawlerRun
- type GlueStartCrawlerRunProps
- type GlueStartJobRun
- type GlueStartJobRunProps
- type Guardrail
- type HttpInvoke
- type HttpInvokeProps
- type HttpMethod
- type HttpMethods
- type IContainerDefinition
- type IEcsLaunchTarget
- type ISageMakerTask
- type InputMode
- type JobDependency
- type JobDriver
- type LambdaInvocationType
- type LambdaInvoke
- type LambdaInvokeProps
- type LaunchTargetBindOptions
- type MediaConvertCreateJob
- type MediaConvertCreateJobProps
- type MessageAttribute
- type MessageAttributeDataType
- type MetricDefinition
- type Mode
- type ModelClientOptions
- type Monitoring
- type OutputDataConfig
- type ProductionVariant
- type QueryExecutionContext
- type RecordWrapperType
- type ReleaseLabel
- type ResourceConfig
- type ResultConfiguration
- type RetryPolicy
- type S3DataDistributionType
- type S3DataSource
- type S3DataType
- type S3Location
- type S3LocationBindOptions
- type S3LocationConfig
- type SageMakerCreateEndpoint
- type SageMakerCreateEndpointConfig
- type SageMakerCreateEndpointConfigProps
- type SageMakerCreateEndpointProps
- type SageMakerCreateModel
- type SageMakerCreateModelProps
- type SageMakerCreateTrainingJob
- type SageMakerCreateTrainingJobProps
- type SageMakerCreateTransformJob
- type SageMakerCreateTransformJobProps
- type SageMakerUpdateEndpoint
- type SageMakerUpdateEndpointProps
- type Schedule
- type ShuffleConfig
- type SnsPublish
- type SnsPublishProps
- type SparkSubmitJobDriver
- type SplitType
- type SqsSendMessage
- type SqsSendMessageProps
- type StepFunctionsInvokeActivity
- type StepFunctionsInvokeActivityProps
- type StepFunctionsStartExecution
- type StepFunctionsStartExecutionProps
- type StoppingCondition
- type TaskEnvironmentVariable
- type TransformDataSource
- type TransformInput
- type TransformOutput
- type TransformResources
- type TransformS3DataSource
- type URLEncodingFormat
- type VirtualClusterInput
- type VpcConfig
- type WorkerConfigurationProperty
- type WorkerType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AthenaGetQueryExecution_FilterNextables ¶
func AthenaGetQueryExecution_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func AthenaGetQueryExecution_FindReachableEndStates ¶
func AthenaGetQueryExecution_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func AthenaGetQueryExecution_FindReachableStates ¶
func AthenaGetQueryExecution_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func AthenaGetQueryExecution_IsConstruct ¶
func AthenaGetQueryExecution_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func AthenaGetQueryExecution_PrefixStates ¶
func AthenaGetQueryExecution_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func AthenaGetQueryResults_FilterNextables ¶
func AthenaGetQueryResults_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func AthenaGetQueryResults_FindReachableEndStates ¶
func AthenaGetQueryResults_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func AthenaGetQueryResults_FindReachableStates ¶
func AthenaGetQueryResults_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func AthenaGetQueryResults_IsConstruct ¶
func AthenaGetQueryResults_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func AthenaGetQueryResults_PrefixStates ¶
func AthenaGetQueryResults_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func AthenaStartQueryExecution_FilterNextables ¶
func AthenaStartQueryExecution_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func AthenaStartQueryExecution_FindReachableEndStates ¶
func AthenaStartQueryExecution_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func AthenaStartQueryExecution_FindReachableStates ¶
func AthenaStartQueryExecution_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func AthenaStartQueryExecution_IsConstruct ¶
func AthenaStartQueryExecution_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func AthenaStartQueryExecution_PrefixStates ¶
func AthenaStartQueryExecution_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func AthenaStopQueryExecution_FilterNextables ¶
func AthenaStopQueryExecution_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func AthenaStopQueryExecution_FindReachableEndStates ¶
func AthenaStopQueryExecution_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func AthenaStopQueryExecution_FindReachableStates ¶
func AthenaStopQueryExecution_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func AthenaStopQueryExecution_IsConstruct ¶
func AthenaStopQueryExecution_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func AthenaStopQueryExecution_PrefixStates ¶
func AthenaStopQueryExecution_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func BatchSubmitJob_FilterNextables ¶
func BatchSubmitJob_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func BatchSubmitJob_FindReachableEndStates ¶
func BatchSubmitJob_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func BatchSubmitJob_FindReachableStates ¶
func BatchSubmitJob_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func BatchSubmitJob_IsConstruct ¶
func BatchSubmitJob_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func BatchSubmitJob_PrefixStates ¶
func BatchSubmitJob_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func BedrockInvokeModel_FilterNextables ¶ added in v2.115.0
func BedrockInvokeModel_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func BedrockInvokeModel_FindReachableEndStates ¶ added in v2.115.0
func BedrockInvokeModel_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func BedrockInvokeModel_FindReachableStates ¶ added in v2.115.0
func BedrockInvokeModel_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func BedrockInvokeModel_IsConstruct ¶ added in v2.115.0
func BedrockInvokeModel_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func BedrockInvokeModel_PrefixStates ¶ added in v2.115.0
func BedrockInvokeModel_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func CallApiGatewayHttpApiEndpoint_FilterNextables ¶
func CallApiGatewayHttpApiEndpoint_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func CallApiGatewayHttpApiEndpoint_FindReachableEndStates ¶
func CallApiGatewayHttpApiEndpoint_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func CallApiGatewayHttpApiEndpoint_FindReachableStates ¶
func CallApiGatewayHttpApiEndpoint_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func CallApiGatewayHttpApiEndpoint_IsConstruct ¶
func CallApiGatewayHttpApiEndpoint_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CallApiGatewayHttpApiEndpoint_PrefixStates ¶
func CallApiGatewayHttpApiEndpoint_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func CallApiGatewayRestApiEndpoint_FilterNextables ¶
func CallApiGatewayRestApiEndpoint_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func CallApiGatewayRestApiEndpoint_FindReachableEndStates ¶
func CallApiGatewayRestApiEndpoint_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func CallApiGatewayRestApiEndpoint_FindReachableStates ¶
func CallApiGatewayRestApiEndpoint_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func CallApiGatewayRestApiEndpoint_IsConstruct ¶
func CallApiGatewayRestApiEndpoint_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CallApiGatewayRestApiEndpoint_PrefixStates ¶
func CallApiGatewayRestApiEndpoint_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func CallAwsServiceCrossRegion_FilterNextables ¶ added in v2.148.0
func CallAwsServiceCrossRegion_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func CallAwsServiceCrossRegion_FindReachableEndStates ¶ added in v2.148.0
func CallAwsServiceCrossRegion_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func CallAwsServiceCrossRegion_FindReachableStates ¶ added in v2.148.0
func CallAwsServiceCrossRegion_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func CallAwsServiceCrossRegion_IsConstruct ¶ added in v2.148.0
func CallAwsServiceCrossRegion_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CallAwsServiceCrossRegion_PrefixStates ¶ added in v2.148.0
func CallAwsServiceCrossRegion_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func CallAwsService_FilterNextables ¶
func CallAwsService_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func CallAwsService_FindReachableEndStates ¶
func CallAwsService_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func CallAwsService_FindReachableStates ¶
func CallAwsService_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func CallAwsService_IsConstruct ¶
func CallAwsService_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CallAwsService_PrefixStates ¶
func CallAwsService_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func CodeBuildStartBuildBatch_FilterNextables ¶ added in v2.132.0
func CodeBuildStartBuildBatch_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func CodeBuildStartBuildBatch_FindReachableEndStates ¶ added in v2.132.0
func CodeBuildStartBuildBatch_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func CodeBuildStartBuildBatch_FindReachableStates ¶ added in v2.132.0
func CodeBuildStartBuildBatch_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func CodeBuildStartBuildBatch_IsConstruct ¶ added in v2.132.0
func CodeBuildStartBuildBatch_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CodeBuildStartBuildBatch_PrefixStates ¶ added in v2.132.0
func CodeBuildStartBuildBatch_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func CodeBuildStartBuild_FilterNextables ¶
func CodeBuildStartBuild_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func CodeBuildStartBuild_FindReachableEndStates ¶
func CodeBuildStartBuild_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func CodeBuildStartBuild_FindReachableStates ¶
func CodeBuildStartBuild_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func CodeBuildStartBuild_IsConstruct ¶
func CodeBuildStartBuild_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CodeBuildStartBuild_PrefixStates ¶
func CodeBuildStartBuild_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func DynamoDeleteItem_FilterNextables ¶
func DynamoDeleteItem_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func DynamoDeleteItem_FindReachableEndStates ¶
func DynamoDeleteItem_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func DynamoDeleteItem_FindReachableStates ¶
func DynamoDeleteItem_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func DynamoDeleteItem_IsConstruct ¶
func DynamoDeleteItem_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func DynamoDeleteItem_PrefixStates ¶
func DynamoDeleteItem_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func DynamoGetItem_FilterNextables ¶
func DynamoGetItem_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func DynamoGetItem_FindReachableEndStates ¶
func DynamoGetItem_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func DynamoGetItem_FindReachableStates ¶
func DynamoGetItem_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func DynamoGetItem_IsConstruct ¶
func DynamoGetItem_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func DynamoGetItem_PrefixStates ¶
func DynamoGetItem_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func DynamoPutItem_FilterNextables ¶
func DynamoPutItem_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func DynamoPutItem_FindReachableEndStates ¶
func DynamoPutItem_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func DynamoPutItem_FindReachableStates ¶
func DynamoPutItem_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func DynamoPutItem_IsConstruct ¶
func DynamoPutItem_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func DynamoPutItem_PrefixStates ¶
func DynamoPutItem_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func DynamoUpdateItem_FilterNextables ¶
func DynamoUpdateItem_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func DynamoUpdateItem_FindReachableEndStates ¶
func DynamoUpdateItem_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func DynamoUpdateItem_FindReachableStates ¶
func DynamoUpdateItem_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func DynamoUpdateItem_IsConstruct ¶
func DynamoUpdateItem_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func DynamoUpdateItem_PrefixStates ¶
func DynamoUpdateItem_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func EcsRunTask_FilterNextables ¶
func EcsRunTask_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func EcsRunTask_FindReachableEndStates ¶
func EcsRunTask_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func EcsRunTask_FindReachableStates ¶
func EcsRunTask_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func EcsRunTask_IsConstruct ¶
func EcsRunTask_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func EcsRunTask_PrefixStates ¶
func EcsRunTask_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func EksCall_FilterNextables ¶
func EksCall_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func EksCall_FindReachableEndStates ¶
func EksCall_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func EksCall_FindReachableStates ¶
func EksCall_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func EksCall_IsConstruct ¶
func EksCall_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func EksCall_PrefixStates ¶
func EksCall_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func EmrAddStep_FilterNextables ¶
func EmrAddStep_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func EmrAddStep_FindReachableEndStates ¶
func EmrAddStep_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func EmrAddStep_FindReachableStates ¶
func EmrAddStep_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func EmrAddStep_IsConstruct ¶
func EmrAddStep_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func EmrAddStep_PrefixStates ¶
func EmrAddStep_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func EmrCancelStep_FilterNextables ¶
func EmrCancelStep_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func EmrCancelStep_FindReachableEndStates ¶
func EmrCancelStep_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func EmrCancelStep_FindReachableStates ¶
func EmrCancelStep_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func EmrCancelStep_IsConstruct ¶
func EmrCancelStep_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func EmrCancelStep_PrefixStates ¶
func EmrCancelStep_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func EmrContainersCreateVirtualCluster_FilterNextables ¶ added in v2.1.0
func EmrContainersCreateVirtualCluster_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func EmrContainersCreateVirtualCluster_FindReachableEndStates ¶ added in v2.1.0
func EmrContainersCreateVirtualCluster_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func EmrContainersCreateVirtualCluster_FindReachableStates ¶ added in v2.1.0
func EmrContainersCreateVirtualCluster_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func EmrContainersCreateVirtualCluster_IsConstruct ¶ added in v2.1.0
func EmrContainersCreateVirtualCluster_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func EmrContainersCreateVirtualCluster_PrefixStates ¶ added in v2.1.0
func EmrContainersCreateVirtualCluster_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func EmrContainersDeleteVirtualCluster_FilterNextables ¶ added in v2.1.0
func EmrContainersDeleteVirtualCluster_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func EmrContainersDeleteVirtualCluster_FindReachableEndStates ¶ added in v2.1.0
func EmrContainersDeleteVirtualCluster_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func EmrContainersDeleteVirtualCluster_FindReachableStates ¶ added in v2.1.0
func EmrContainersDeleteVirtualCluster_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func EmrContainersDeleteVirtualCluster_IsConstruct ¶ added in v2.1.0
func EmrContainersDeleteVirtualCluster_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func EmrContainersDeleteVirtualCluster_PrefixStates ¶ added in v2.1.0
func EmrContainersDeleteVirtualCluster_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func EmrContainersStartJobRun_FilterNextables ¶ added in v2.1.0
func EmrContainersStartJobRun_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func EmrContainersStartJobRun_FindReachableEndStates ¶ added in v2.1.0
func EmrContainersStartJobRun_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func EmrContainersStartJobRun_FindReachableStates ¶ added in v2.1.0
func EmrContainersStartJobRun_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func EmrContainersStartJobRun_IsConstruct ¶ added in v2.1.0
func EmrContainersStartJobRun_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func EmrContainersStartJobRun_PrefixStates ¶ added in v2.1.0
func EmrContainersStartJobRun_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func EmrCreateCluster_FilterNextables ¶
func EmrCreateCluster_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func EmrCreateCluster_FindReachableEndStates ¶
func EmrCreateCluster_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func EmrCreateCluster_FindReachableStates ¶
func EmrCreateCluster_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func EmrCreateCluster_IsConstruct ¶
func EmrCreateCluster_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func EmrCreateCluster_PrefixStates ¶
func EmrCreateCluster_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func EmrModifyInstanceFleetByName_FilterNextables ¶
func EmrModifyInstanceFleetByName_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func EmrModifyInstanceFleetByName_FindReachableEndStates ¶
func EmrModifyInstanceFleetByName_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func EmrModifyInstanceFleetByName_FindReachableStates ¶
func EmrModifyInstanceFleetByName_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func EmrModifyInstanceFleetByName_IsConstruct ¶
func EmrModifyInstanceFleetByName_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func EmrModifyInstanceFleetByName_PrefixStates ¶
func EmrModifyInstanceFleetByName_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func EmrModifyInstanceGroupByName_FilterNextables ¶
func EmrModifyInstanceGroupByName_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func EmrModifyInstanceGroupByName_FindReachableEndStates ¶
func EmrModifyInstanceGroupByName_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func EmrModifyInstanceGroupByName_FindReachableStates ¶
func EmrModifyInstanceGroupByName_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func EmrModifyInstanceGroupByName_IsConstruct ¶
func EmrModifyInstanceGroupByName_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func EmrModifyInstanceGroupByName_PrefixStates ¶
func EmrModifyInstanceGroupByName_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func EmrSetClusterTerminationProtection_FilterNextables ¶
func EmrSetClusterTerminationProtection_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func EmrSetClusterTerminationProtection_FindReachableEndStates ¶
func EmrSetClusterTerminationProtection_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func EmrSetClusterTerminationProtection_FindReachableStates ¶
func EmrSetClusterTerminationProtection_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func EmrSetClusterTerminationProtection_IsConstruct ¶
func EmrSetClusterTerminationProtection_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func EmrSetClusterTerminationProtection_PrefixStates ¶
func EmrSetClusterTerminationProtection_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func EmrTerminateCluster_FilterNextables ¶
func EmrTerminateCluster_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func EmrTerminateCluster_FindReachableEndStates ¶
func EmrTerminateCluster_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func EmrTerminateCluster_FindReachableStates ¶
func EmrTerminateCluster_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func EmrTerminateCluster_IsConstruct ¶
func EmrTerminateCluster_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func EmrTerminateCluster_PrefixStates ¶
func EmrTerminateCluster_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func EvaluateExpression_FilterNextables ¶
func EvaluateExpression_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func EvaluateExpression_FindReachableEndStates ¶
func EvaluateExpression_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func EvaluateExpression_FindReachableStates ¶
func EvaluateExpression_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func EvaluateExpression_IsConstruct ¶
func EvaluateExpression_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func EvaluateExpression_PrefixStates ¶
func EvaluateExpression_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func EventBridgePutEvents_FilterNextables ¶
func EventBridgePutEvents_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func EventBridgePutEvents_FindReachableEndStates ¶
func EventBridgePutEvents_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func EventBridgePutEvents_FindReachableStates ¶
func EventBridgePutEvents_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func EventBridgePutEvents_IsConstruct ¶
func EventBridgePutEvents_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func EventBridgePutEvents_PrefixStates ¶
func EventBridgePutEvents_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func EventBridgeSchedulerCreateScheduleTask_FilterNextables ¶ added in v2.168.0
func EventBridgeSchedulerCreateScheduleTask_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func EventBridgeSchedulerCreateScheduleTask_FindReachableEndStates ¶ added in v2.168.0
func EventBridgeSchedulerCreateScheduleTask_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func EventBridgeSchedulerCreateScheduleTask_FindReachableStates ¶ added in v2.168.0
func EventBridgeSchedulerCreateScheduleTask_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func EventBridgeSchedulerCreateScheduleTask_IsConstruct ¶ added in v2.168.0
func EventBridgeSchedulerCreateScheduleTask_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func EventBridgeSchedulerCreateScheduleTask_PrefixStates ¶ added in v2.168.0
func EventBridgeSchedulerCreateScheduleTask_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func GlueDataBrewStartJobRun_FilterNextables ¶
func GlueDataBrewStartJobRun_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func GlueDataBrewStartJobRun_FindReachableEndStates ¶
func GlueDataBrewStartJobRun_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func GlueDataBrewStartJobRun_FindReachableStates ¶
func GlueDataBrewStartJobRun_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func GlueDataBrewStartJobRun_IsConstruct ¶
func GlueDataBrewStartJobRun_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func GlueDataBrewStartJobRun_PrefixStates ¶
func GlueDataBrewStartJobRun_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func GlueStartCrawlerRun_FilterNextables ¶ added in v2.133.0
func GlueStartCrawlerRun_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func GlueStartCrawlerRun_FindReachableEndStates ¶ added in v2.133.0
func GlueStartCrawlerRun_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func GlueStartCrawlerRun_FindReachableStates ¶ added in v2.133.0
func GlueStartCrawlerRun_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func GlueStartCrawlerRun_IsConstruct ¶ added in v2.133.0
func GlueStartCrawlerRun_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func GlueStartCrawlerRun_PrefixStates ¶ added in v2.133.0
func GlueStartCrawlerRun_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func GlueStartJobRun_FilterNextables ¶
func GlueStartJobRun_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func GlueStartJobRun_FindReachableEndStates ¶
func GlueStartJobRun_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func GlueStartJobRun_FindReachableStates ¶
func GlueStartJobRun_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func GlueStartJobRun_IsConstruct ¶
func GlueStartJobRun_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func GlueStartJobRun_PrefixStates ¶
func GlueStartJobRun_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func HttpInvoke_FilterNextables ¶ added in v2.138.0
func HttpInvoke_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func HttpInvoke_FindReachableEndStates ¶ added in v2.138.0
func HttpInvoke_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func HttpInvoke_FindReachableStates ¶ added in v2.138.0
func HttpInvoke_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func HttpInvoke_IsConstruct ¶ added in v2.138.0
func HttpInvoke_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func HttpInvoke_PrefixStates ¶ added in v2.138.0
func HttpInvoke_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func LambdaInvoke_FilterNextables ¶
func LambdaInvoke_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func LambdaInvoke_FindReachableEndStates ¶
func LambdaInvoke_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func LambdaInvoke_FindReachableStates ¶
func LambdaInvoke_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func LambdaInvoke_IsConstruct ¶
func LambdaInvoke_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func LambdaInvoke_PrefixStates ¶
func LambdaInvoke_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func MediaConvertCreateJob_FilterNextables ¶ added in v2.144.0
func MediaConvertCreateJob_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func MediaConvertCreateJob_FindReachableEndStates ¶ added in v2.144.0
func MediaConvertCreateJob_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func MediaConvertCreateJob_FindReachableStates ¶ added in v2.144.0
func MediaConvertCreateJob_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func MediaConvertCreateJob_IsConstruct ¶ added in v2.144.0
func MediaConvertCreateJob_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func MediaConvertCreateJob_PrefixStates ¶ added in v2.144.0
func MediaConvertCreateJob_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func NewAcceleratorType_Override ¶
func NewAcceleratorType_Override(a AcceleratorType, instanceTypeIdentifier *string)
func NewAthenaGetQueryExecution_Override ¶
func NewAthenaGetQueryExecution_Override(a AthenaGetQueryExecution, scope constructs.Construct, id *string, props *AthenaGetQueryExecutionProps)
func NewAthenaGetQueryResults_Override ¶
func NewAthenaGetQueryResults_Override(a AthenaGetQueryResults, scope constructs.Construct, id *string, props *AthenaGetQueryResultsProps)
func NewAthenaStartQueryExecution_Override ¶
func NewAthenaStartQueryExecution_Override(a AthenaStartQueryExecution, scope constructs.Construct, id *string, props *AthenaStartQueryExecutionProps)
func NewAthenaStopQueryExecution_Override ¶
func NewAthenaStopQueryExecution_Override(a AthenaStopQueryExecution, scope constructs.Construct, id *string, props *AthenaStopQueryExecutionProps)
func NewBatchSubmitJob_Override ¶
func NewBatchSubmitJob_Override(b BatchSubmitJob, scope constructs.Construct, id *string, props *BatchSubmitJobProps)
func NewBedrockInvokeModel_Override ¶ added in v2.115.0
func NewBedrockInvokeModel_Override(b BedrockInvokeModel, scope constructs.Construct, id *string, props *BedrockInvokeModelProps)
func NewCallApiGatewayHttpApiEndpoint_Override ¶
func NewCallApiGatewayHttpApiEndpoint_Override(c CallApiGatewayHttpApiEndpoint, scope constructs.Construct, id *string, props *CallApiGatewayHttpApiEndpointProps)
func NewCallApiGatewayRestApiEndpoint_Override ¶
func NewCallApiGatewayRestApiEndpoint_Override(c CallApiGatewayRestApiEndpoint, scope constructs.Construct, id *string, props *CallApiGatewayRestApiEndpointProps)
func NewCallAwsServiceCrossRegion_Override ¶ added in v2.148.0
func NewCallAwsServiceCrossRegion_Override(c CallAwsServiceCrossRegion, scope constructs.Construct, id *string, props *CallAwsServiceCrossRegionProps)
func NewCallAwsService_Override ¶
func NewCallAwsService_Override(c CallAwsService, scope constructs.Construct, id *string, props *CallAwsServiceProps)
func NewClassification_Override ¶ added in v2.1.0
func NewClassification_Override(c Classification, classificationStatement *string)
Creates a new Classification.
func NewCodeBuildStartBuildBatch_Override ¶ added in v2.132.0
func NewCodeBuildStartBuildBatch_Override(c CodeBuildStartBuildBatch, scope constructs.Construct, id *string, props *CodeBuildStartBuildBatchProps)
func NewCodeBuildStartBuild_Override ¶
func NewCodeBuildStartBuild_Override(c CodeBuildStartBuild, scope constructs.Construct, id *string, props *CodeBuildStartBuildProps)
func NewContainerDefinition_Override ¶
func NewContainerDefinition_Override(c ContainerDefinition, options *ContainerDefinitionOptions)
func NewDockerImage_Override ¶
func NewDockerImage_Override(d DockerImage)
func NewDynamoDeleteItem_Override ¶
func NewDynamoDeleteItem_Override(d DynamoDeleteItem, scope constructs.Construct, id *string, props *DynamoDeleteItemProps)
func NewDynamoGetItem_Override ¶
func NewDynamoGetItem_Override(d DynamoGetItem, scope constructs.Construct, id *string, props *DynamoGetItemProps)
func NewDynamoProjectionExpression_Override ¶
func NewDynamoProjectionExpression_Override(d DynamoProjectionExpression)
func NewDynamoPutItem_Override ¶
func NewDynamoPutItem_Override(d DynamoPutItem, scope constructs.Construct, id *string, props *DynamoPutItemProps)
func NewDynamoUpdateItem_Override ¶
func NewDynamoUpdateItem_Override(d DynamoUpdateItem, scope constructs.Construct, id *string, props *DynamoUpdateItemProps)
func NewEcsEc2LaunchTarget_Override ¶
func NewEcsEc2LaunchTarget_Override(e EcsEc2LaunchTarget, options *EcsEc2LaunchTargetOptions)
func NewEcsFargateLaunchTarget_Override ¶
func NewEcsFargateLaunchTarget_Override(e EcsFargateLaunchTarget, options *EcsFargateLaunchTargetOptions)
func NewEcsRunTask_Override ¶
func NewEcsRunTask_Override(e EcsRunTask, scope constructs.Construct, id *string, props *EcsRunTaskProps)
func NewEksCall_Override ¶
func NewEksCall_Override(e EksCall, scope constructs.Construct, id *string, props *EksCallProps)
func NewEmrAddStep_Override ¶
func NewEmrAddStep_Override(e EmrAddStep, scope constructs.Construct, id *string, props *EmrAddStepProps)
func NewEmrCancelStep_Override ¶
func NewEmrCancelStep_Override(e EmrCancelStep, scope constructs.Construct, id *string, props *EmrCancelStepProps)
func NewEmrContainersCreateVirtualCluster_Override ¶ added in v2.1.0
func NewEmrContainersCreateVirtualCluster_Override(e EmrContainersCreateVirtualCluster, scope constructs.Construct, id *string, props *EmrContainersCreateVirtualClusterProps)
func NewEmrContainersDeleteVirtualCluster_Override ¶ added in v2.1.0
func NewEmrContainersDeleteVirtualCluster_Override(e EmrContainersDeleteVirtualCluster, scope constructs.Construct, id *string, props *EmrContainersDeleteVirtualClusterProps)
func NewEmrContainersStartJobRun_Override ¶ added in v2.1.0
func NewEmrContainersStartJobRun_Override(e EmrContainersStartJobRun, scope constructs.Construct, id *string, props *EmrContainersStartJobRunProps)
func NewEmrCreateCluster_Override ¶
func NewEmrCreateCluster_Override(e EmrCreateCluster, scope constructs.Construct, id *string, props *EmrCreateClusterProps)
func NewEmrModifyInstanceFleetByName_Override ¶
func NewEmrModifyInstanceFleetByName_Override(e EmrModifyInstanceFleetByName, scope constructs.Construct, id *string, props *EmrModifyInstanceFleetByNameProps)
func NewEmrModifyInstanceGroupByName_Override ¶
func NewEmrModifyInstanceGroupByName_Override(e EmrModifyInstanceGroupByName, scope constructs.Construct, id *string, props *EmrModifyInstanceGroupByNameProps)
func NewEmrSetClusterTerminationProtection_Override ¶
func NewEmrSetClusterTerminationProtection_Override(e EmrSetClusterTerminationProtection, scope constructs.Construct, id *string, props *EmrSetClusterTerminationProtectionProps)
func NewEmrTerminateCluster_Override ¶
func NewEmrTerminateCluster_Override(e EmrTerminateCluster, scope constructs.Construct, id *string, props *EmrTerminateClusterProps)
func NewEvaluateExpression_Override ¶
func NewEvaluateExpression_Override(e EvaluateExpression, scope constructs.Construct, id *string, props *EvaluateExpressionProps)
func NewEventBridgePutEvents_Override ¶
func NewEventBridgePutEvents_Override(e EventBridgePutEvents, scope constructs.Construct, id *string, props *EventBridgePutEventsProps)
func NewEventBridgeSchedulerCreateScheduleTask_Override ¶ added in v2.168.0
func NewEventBridgeSchedulerCreateScheduleTask_Override(e EventBridgeSchedulerCreateScheduleTask, scope constructs.Construct, id *string, props *EventBridgeSchedulerCreateScheduleTaskProps)
func NewEventBridgeSchedulerTarget_Override ¶ added in v2.168.0
func NewEventBridgeSchedulerTarget_Override(e EventBridgeSchedulerTarget, props *EventBridgeSchedulerTargetProps)
func NewGlueDataBrewStartJobRun_Override ¶
func NewGlueDataBrewStartJobRun_Override(g GlueDataBrewStartJobRun, scope constructs.Construct, id *string, props *GlueDataBrewStartJobRunProps)
func NewGlueStartCrawlerRun_Override ¶ added in v2.133.0
func NewGlueStartCrawlerRun_Override(g GlueStartCrawlerRun, scope constructs.Construct, id *string, props *GlueStartCrawlerRunProps)
func NewGlueStartJobRun_Override ¶
func NewGlueStartJobRun_Override(g GlueStartJobRun, scope constructs.Construct, id *string, props *GlueStartJobRunProps)
func NewHttpInvoke_Override ¶ added in v2.138.0
func NewHttpInvoke_Override(h HttpInvoke, scope constructs.Construct, id *string, props *HttpInvokeProps)
func NewLambdaInvoke_Override ¶
func NewLambdaInvoke_Override(l LambdaInvoke, scope constructs.Construct, id *string, props *LambdaInvokeProps)
func NewMediaConvertCreateJob_Override ¶ added in v2.144.0
func NewMediaConvertCreateJob_Override(m MediaConvertCreateJob, scope constructs.Construct, id *string, props *MediaConvertCreateJobProps)
func NewReleaseLabel_Override ¶ added in v2.1.0
func NewReleaseLabel_Override(r ReleaseLabel, label *string)
Initializes the label string.
func NewS3Location_Override ¶
func NewS3Location_Override(s S3Location)
func NewSageMakerCreateEndpointConfig_Override ¶
func NewSageMakerCreateEndpointConfig_Override(s SageMakerCreateEndpointConfig, scope constructs.Construct, id *string, props *SageMakerCreateEndpointConfigProps)
func NewSageMakerCreateEndpoint_Override ¶
func NewSageMakerCreateEndpoint_Override(s SageMakerCreateEndpoint, scope constructs.Construct, id *string, props *SageMakerCreateEndpointProps)
func NewSageMakerCreateModel_Override ¶
func NewSageMakerCreateModel_Override(s SageMakerCreateModel, scope constructs.Construct, id *string, props *SageMakerCreateModelProps)
func NewSageMakerCreateTrainingJob_Override ¶
func NewSageMakerCreateTrainingJob_Override(s SageMakerCreateTrainingJob, scope constructs.Construct, id *string, props *SageMakerCreateTrainingJobProps)
func NewSageMakerCreateTransformJob_Override ¶
func NewSageMakerCreateTransformJob_Override(s SageMakerCreateTransformJob, scope constructs.Construct, id *string, props *SageMakerCreateTransformJobProps)
func NewSageMakerUpdateEndpoint_Override ¶
func NewSageMakerUpdateEndpoint_Override(s SageMakerUpdateEndpoint, scope constructs.Construct, id *string, props *SageMakerUpdateEndpointProps)
func NewSnsPublish_Override ¶
func NewSnsPublish_Override(s SnsPublish, scope constructs.Construct, id *string, props *SnsPublishProps)
func NewSqsSendMessage_Override ¶
func NewSqsSendMessage_Override(s SqsSendMessage, scope constructs.Construct, id *string, props *SqsSendMessageProps)
func NewStepFunctionsInvokeActivity_Override ¶
func NewStepFunctionsInvokeActivity_Override(s StepFunctionsInvokeActivity, scope constructs.Construct, id *string, props *StepFunctionsInvokeActivityProps)
func NewStepFunctionsStartExecution_Override ¶
func NewStepFunctionsStartExecution_Override(s StepFunctionsStartExecution, scope constructs.Construct, id *string, props *StepFunctionsStartExecutionProps)
func SageMakerCreateEndpointConfig_FilterNextables ¶
func SageMakerCreateEndpointConfig_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func SageMakerCreateEndpointConfig_FindReachableEndStates ¶
func SageMakerCreateEndpointConfig_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func SageMakerCreateEndpointConfig_FindReachableStates ¶
func SageMakerCreateEndpointConfig_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func SageMakerCreateEndpointConfig_IsConstruct ¶
func SageMakerCreateEndpointConfig_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func SageMakerCreateEndpointConfig_PrefixStates ¶
func SageMakerCreateEndpointConfig_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func SageMakerCreateEndpoint_FilterNextables ¶
func SageMakerCreateEndpoint_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func SageMakerCreateEndpoint_FindReachableEndStates ¶
func SageMakerCreateEndpoint_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func SageMakerCreateEndpoint_FindReachableStates ¶
func SageMakerCreateEndpoint_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func SageMakerCreateEndpoint_IsConstruct ¶
func SageMakerCreateEndpoint_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func SageMakerCreateEndpoint_PrefixStates ¶
func SageMakerCreateEndpoint_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func SageMakerCreateModel_FilterNextables ¶
func SageMakerCreateModel_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func SageMakerCreateModel_FindReachableEndStates ¶
func SageMakerCreateModel_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func SageMakerCreateModel_FindReachableStates ¶
func SageMakerCreateModel_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func SageMakerCreateModel_IsConstruct ¶
func SageMakerCreateModel_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func SageMakerCreateModel_PrefixStates ¶
func SageMakerCreateModel_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func SageMakerCreateTrainingJob_FilterNextables ¶
func SageMakerCreateTrainingJob_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func SageMakerCreateTrainingJob_FindReachableEndStates ¶
func SageMakerCreateTrainingJob_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func SageMakerCreateTrainingJob_FindReachableStates ¶
func SageMakerCreateTrainingJob_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func SageMakerCreateTrainingJob_IsConstruct ¶
func SageMakerCreateTrainingJob_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func SageMakerCreateTrainingJob_PrefixStates ¶
func SageMakerCreateTrainingJob_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func SageMakerCreateTransformJob_FilterNextables ¶
func SageMakerCreateTransformJob_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func SageMakerCreateTransformJob_FindReachableEndStates ¶
func SageMakerCreateTransformJob_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func SageMakerCreateTransformJob_FindReachableStates ¶
func SageMakerCreateTransformJob_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func SageMakerCreateTransformJob_IsConstruct ¶
func SageMakerCreateTransformJob_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func SageMakerCreateTransformJob_PrefixStates ¶
func SageMakerCreateTransformJob_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func SageMakerUpdateEndpoint_FilterNextables ¶
func SageMakerUpdateEndpoint_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func SageMakerUpdateEndpoint_FindReachableEndStates ¶
func SageMakerUpdateEndpoint_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func SageMakerUpdateEndpoint_FindReachableStates ¶
func SageMakerUpdateEndpoint_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func SageMakerUpdateEndpoint_IsConstruct ¶
func SageMakerUpdateEndpoint_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func SageMakerUpdateEndpoint_PrefixStates ¶
func SageMakerUpdateEndpoint_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func SnsPublish_FilterNextables ¶
func SnsPublish_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func SnsPublish_FindReachableEndStates ¶
func SnsPublish_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func SnsPublish_FindReachableStates ¶
func SnsPublish_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func SnsPublish_IsConstruct ¶
func SnsPublish_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func SnsPublish_PrefixStates ¶
func SnsPublish_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func SqsSendMessage_FilterNextables ¶
func SqsSendMessage_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func SqsSendMessage_FindReachableEndStates ¶
func SqsSendMessage_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func SqsSendMessage_FindReachableStates ¶
func SqsSendMessage_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func SqsSendMessage_IsConstruct ¶
func SqsSendMessage_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func SqsSendMessage_PrefixStates ¶
func SqsSendMessage_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func StepFunctionsInvokeActivity_FilterNextables ¶
func StepFunctionsInvokeActivity_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func StepFunctionsInvokeActivity_FindReachableEndStates ¶
func StepFunctionsInvokeActivity_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func StepFunctionsInvokeActivity_FindReachableStates ¶
func StepFunctionsInvokeActivity_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func StepFunctionsInvokeActivity_IsConstruct ¶
func StepFunctionsInvokeActivity_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func StepFunctionsInvokeActivity_PrefixStates ¶
func StepFunctionsInvokeActivity_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
func StepFunctionsStartExecution_FilterNextables ¶
func StepFunctionsStartExecution_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable
Return only the states that allow chaining from an array of states.
func StepFunctionsStartExecution_FindReachableEndStates ¶
func StepFunctionsStartExecution_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of end states states reachable through transitions from the given start state.
func StepFunctionsStartExecution_FindReachableStates ¶
func StepFunctionsStartExecution_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func StepFunctionsStartExecution_IsConstruct ¶
func StepFunctionsStartExecution_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func StepFunctionsStartExecution_PrefixStates ¶
func StepFunctionsStartExecution_PrefixStates(root constructs.IConstruct, prefix *string)
Add a prefix to the stateId of all States found in a construct tree.
Types ¶
type AcceleratorClass ¶
type AcceleratorClass interface { // - Elastic Inference accelerator generation. Version() *string }
The generation of Elastic Inference (EI) instance.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" acceleratorClass := awscdk.Aws_stepfunctions_tasks.AcceleratorClass_Of(jsii.String("version"))
See: https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html
func AcceleratorClass_EIA1 ¶
func AcceleratorClass_EIA1() AcceleratorClass
func AcceleratorClass_EIA2 ¶
func AcceleratorClass_EIA2() AcceleratorClass
func AcceleratorClass_Of ¶
func AcceleratorClass_Of(version *string) AcceleratorClass
Custom AcceleratorType.
type AcceleratorType ¶
type AcceleratorType interface { // Return the accelerator type as a dotted string. ToString() *string }
The size of the Elastic Inference (EI) instance to use for the production variant.
EI instances provide on-demand GPU computing for inference.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" acceleratorType := awscdk.Aws_stepfunctions_tasks.NewAcceleratorType(jsii.String("instanceTypeIdentifier"))
See: https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html
func AcceleratorType_Of ¶
func AcceleratorType_Of(acceleratorClass AcceleratorClass, instanceSize awsec2.InstanceSize) AcceleratorType
AcceleratorType.
This class takes a combination of a class and size.
func NewAcceleratorType ¶
func NewAcceleratorType(instanceTypeIdentifier *string) AcceleratorType
type ActionAfterCompletion ¶ added in v2.168.0
type ActionAfterCompletion string
The action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.
Example:
import scheduler "github.com/aws/aws-cdk-go/awscdk" import kms "github.com/aws/aws-cdk-go/awscdk" var key key var scheduleGroup cfnScheduleGroup var targetQueue queue var deadLetterQueue queue schedulerRole := iam.NewRole(this, jsii.String("SchedulerRole"), &RoleProps{ AssumedBy: iam.NewServicePrincipal(jsii.String("scheduler.amazonaws.com")), }) // To send the message to the queue // This policy changes depending on the type of target. schedulerRole.AddToPrincipalPolicy(iam.NewPolicyStatement(&PolicyStatementProps{ Actions: []*string{ jsii.String("sqs:SendMessage"), }, Resources: []*string{ targetQueue.QueueArn, }, })) createScheduleTask1 := tasks.NewEventBridgeSchedulerCreateScheduleTask(this, jsii.String("createSchedule"), &EventBridgeSchedulerCreateScheduleTaskProps{ ScheduleName: jsii.String("TestSchedule"), ActionAfterCompletion: tasks.ActionAfterCompletion_NONE, ClientToken: jsii.String("testToken"), Description: jsii.String("TestDescription"), StartDate: NewDate(), EndDate: NewDate(NewDate().getTime() + 1000 * 60 * 60), FlexibleTimeWindow: awscdk.Duration_Minutes(jsii.Number(5)), GroupName: scheduleGroup.ref, KmsKey: key, Schedule: tasks.Schedule_Rate(awscdk.Duration_*Minutes(jsii.Number(5))), Timezone: jsii.String("UTC"), Enabled: jsii.Boolean(true), Target: tasks.NewEventBridgeSchedulerTarget(&EventBridgeSchedulerTargetProps{ Arn: targetQueue.*QueueArn, Role: schedulerRole, RetryPolicy: &RetryPolicy{ MaximumRetryAttempts: jsii.Number(2), MaximumEventAge: awscdk.Duration_*Minutes(jsii.Number(5)), }, DeadLetterQueue: *DeadLetterQueue, }), })
const ( // Takes no action. ActionAfterCompletion_NONE ActionAfterCompletion = "NONE" // Deletes the schedule. ActionAfterCompletion_DELETE ActionAfterCompletion = "DELETE" )
type ActionOnFailure ¶
type ActionOnFailure string
The action to take when the cluster step fails.
Example:
tasks.NewEmrAddStep(this, jsii.String("Task"), &EmrAddStepProps{ ClusterId: jsii.String("ClusterId"), Name: jsii.String("StepName"), Jar: jsii.String("Jar"), ActionOnFailure: tasks.ActionOnFailure_CONTINUE, })
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_StepConfig.html
Here, they are named as TERMINATE_JOB_FLOW, TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE respectively.
Default: CONTINUE.
const ( // Terminate the Cluster on Step Failure. ActionOnFailure_TERMINATE_CLUSTER ActionOnFailure = "TERMINATE_CLUSTER" // Cancel Step execution and enter WAITING state. ActionOnFailure_CANCEL_AND_WAIT ActionOnFailure = "CANCEL_AND_WAIT" // Continue to the next Step. ActionOnFailure_CONTINUE ActionOnFailure = "CONTINUE" )
type AlgorithmSpecification ¶
type AlgorithmSpecification struct { // Name of the algorithm resource to use for the training job. // // This must be an algorithm resource that you created or subscribe to on AWS Marketplace. // If you specify a value for this parameter, you can't specify a value for TrainingImage. // Default: - No algorithm is specified. // AlgorithmName *string `field:"optional" json:"algorithmName" yaml:"algorithmName"` // List of metric definition objects. // // Each object specifies the metric name and regular expressions used to parse algorithm logs. // Default: - No metrics. // MetricDefinitions *[]*MetricDefinition `field:"optional" json:"metricDefinitions" yaml:"metricDefinitions"` // Registry path of the Docker image that contains the training algorithm. // Default: - No Docker image is specified. // TrainingImage DockerImage `field:"optional" json:"trainingImage" yaml:"trainingImage"` // Input mode that the algorithm supports. // Default: 'File' mode. // TrainingInputMode InputMode `field:"optional" json:"trainingInputMode" yaml:"trainingInputMode"` }
Specify the training algorithm and algorithm-specific metadata.
Example:
tasks.NewSageMakerCreateTrainingJob(this, jsii.String("TrainSagemaker"), &SageMakerCreateTrainingJobProps{ TrainingJobName: sfn.JsonPath_StringAt(jsii.String("$.JobName")), AlgorithmSpecification: &AlgorithmSpecification{ AlgorithmName: jsii.String("BlazingText"), TrainingInputMode: tasks.InputMode_FILE, }, InputDataConfig: []channel{ &channel{ ChannelName: jsii.String("train"), DataSource: &DataSource{ S3DataSource: &S3DataSource{ S3DataType: tasks.S3DataType_S3_PREFIX, S3Location: tasks.S3Location_FromJsonExpression(jsii.String("$.S3Bucket")), }, }, }, }, OutputDataConfig: &OutputDataConfig{ S3OutputLocation: tasks.S3Location_FromBucket(s3.Bucket_FromBucketName(this, jsii.String("Bucket"), jsii.String("amzn-s3-demo-bucket")), jsii.String("myoutputpath")), }, ResourceConfig: &ResourceConfig{ InstanceCount: jsii.Number(1), InstanceType: ec2.NewInstanceType(sfn.JsonPath_*StringAt(jsii.String("$.InstanceType"))), VolumeSize: awscdk.Size_Gibibytes(jsii.Number(50)), }, // optional: default is 1 instance of EC2 `M4.XLarge` with `10GB` volume StoppingCondition: &StoppingCondition{ MaxRuntime: awscdk.Duration_Hours(jsii.Number(2)), }, })
type ApplicationConfiguration ¶ added in v2.1.0
type ApplicationConfiguration struct { // The classification within a configuration. // // Length Constraints: Minimum length of 1. Maximum length of 1024. Classification Classification `field:"required" json:"classification" yaml:"classification"` // A list of additional configurations to apply within a configuration object. // // Array Members: Maximum number of 100 items. // Default: - No other configurations. // NestedConfig *[]*ApplicationConfiguration `field:"optional" json:"nestedConfig" yaml:"nestedConfig"` // A set of properties specified within a configuration classification. // // Map Entries: Maximum number of 100 items. // Default: - No properties. // Properties *map[string]*string `field:"optional" json:"properties" yaml:"properties"` }
A configuration specification to be used when provisioning virtual clusters, which can include configurations for applications and software bundled with Amazon EMR on EKS.
A configuration consists of a classification, properties, and optional nested configurations. A classification refers to an application-specific configuration file. Properties are the settings you want to change in that file.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" var applicationConfiguration_ applicationConfiguration var classification classification applicationConfiguration := &applicationConfiguration{ Classification: classification, // the properties below are optional NestedConfig: []*applicationConfiguration{ applicationConfiguration_, }, Properties: map[string]*string{ "propertiesKey": jsii.String("properties"), }, }
See: https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-configure-apps.html
type AssembleWith ¶
type AssembleWith string
How to assemble the results of the transform job as a single S3 object.
const ( // Concatenate the results in binary format. AssembleWith_NONE AssembleWith = "NONE" // Add a newline character at the end of every transformed record. AssembleWith_LINE AssembleWith = "LINE" )
type AthenaGetQueryExecution ¶
type AthenaGetQueryExecution interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Get an Athena Query Execution as a Task.
Example:
getQueryExecutionJob := tasks.NewAthenaGetQueryExecution(this, jsii.String("Get Query Execution"), &AthenaGetQueryExecutionProps{ QueryExecutionId: sfn.JsonPath_StringAt(jsii.String("$.QueryExecutionId")), })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-athena.html
func NewAthenaGetQueryExecution ¶
func NewAthenaGetQueryExecution(scope constructs.Construct, id *string, props *AthenaGetQueryExecutionProps) AthenaGetQueryExecution
type AthenaGetQueryExecutionProps ¶
type AthenaGetQueryExecutionProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // Query that will be retrieved. // // Example value: `adfsaf-23trf23-f23rt23`. QueryExecutionId *string `field:"required" json:"queryExecutionId" yaml:"queryExecutionId"` }
Properties for getting a Query Execution.
Example:
getQueryExecutionJob := tasks.NewAthenaGetQueryExecution(this, jsii.String("Get Query Execution"), &AthenaGetQueryExecutionProps{ QueryExecutionId: sfn.JsonPath_StringAt(jsii.String("$.QueryExecutionId")), })
type AthenaGetQueryResults ¶
type AthenaGetQueryResults interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Get an Athena Query Results as a Task.
Example:
getQueryResultsJob := tasks.NewAthenaGetQueryResults(this, jsii.String("Get Query Results"), &AthenaGetQueryResultsProps{ QueryExecutionId: sfn.JsonPath_StringAt(jsii.String("$.QueryExecutionId")), })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-athena.html
func NewAthenaGetQueryResults ¶
func NewAthenaGetQueryResults(scope constructs.Construct, id *string, props *AthenaGetQueryResultsProps) AthenaGetQueryResults
type AthenaGetQueryResultsProps ¶
type AthenaGetQueryResultsProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // Query that will be retrieved. // // Example value: `adfsaf-23trf23-f23rt23`. QueryExecutionId *string `field:"required" json:"queryExecutionId" yaml:"queryExecutionId"` // Max number of results. // Default: 1000. // MaxResults *float64 `field:"optional" json:"maxResults" yaml:"maxResults"` // Pagination token. // Default: - No next token. // NextToken *string `field:"optional" json:"nextToken" yaml:"nextToken"` }
Properties for getting a Query Results.
Example:
getQueryResultsJob := tasks.NewAthenaGetQueryResults(this, jsii.String("Get Query Results"), &AthenaGetQueryResultsProps{ QueryExecutionId: sfn.JsonPath_StringAt(jsii.String("$.QueryExecutionId")), })
type AthenaStartQueryExecution ¶
type AthenaStartQueryExecution interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Start an Athena Query as a Task.
Example:
startQueryExecutionJob := tasks.NewAthenaStartQueryExecution(this, jsii.String("Start Athena Query"), &AthenaStartQueryExecutionProps{ QueryString: sfn.JsonPath_StringAt(jsii.String("$.queryString")), QueryExecutionContext: &QueryExecutionContext{ DatabaseName: jsii.String("mydatabase"), }, ResultConfiguration: &ResultConfiguration{ EncryptionConfiguration: &EncryptionConfiguration{ EncryptionOption: tasks.EncryptionOption_S3_MANAGED, }, OutputLocation: &Location{ BucketName: jsii.String("amzn-s3-demo-bucket"), ObjectKey: jsii.String("folder"), }, }, ExecutionParameters: []*string{ jsii.String("param1"), jsii.String("param2"), }, })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-athena.html
func NewAthenaStartQueryExecution ¶
func NewAthenaStartQueryExecution(scope constructs.Construct, id *string, props *AthenaStartQueryExecutionProps) AthenaStartQueryExecution
type AthenaStartQueryExecutionProps ¶
type AthenaStartQueryExecutionProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // Query that will be started. QueryString *string `field:"required" json:"queryString" yaml:"queryString"` // Unique string string to ensure idempotence. // Default: - No client request token. // ClientRequestToken *string `field:"optional" json:"clientRequestToken" yaml:"clientRequestToken"` // A list of values for the parameters in a query. // // The values are applied sequentially to the parameters in the query in the order // in which the parameters occur. // Default: - No parameters. // ExecutionParameters *[]*string `field:"optional" json:"executionParameters" yaml:"executionParameters"` // Database within which query executes. // Default: - No query execution context. // QueryExecutionContext *QueryExecutionContext `field:"optional" json:"queryExecutionContext" yaml:"queryExecutionContext"` // Configuration on how and where to save query. // Default: - No result configuration. // ResultConfiguration *ResultConfiguration `field:"optional" json:"resultConfiguration" yaml:"resultConfiguration"` // Specifies, in minutes, the maximum age of a previous query result that Athena should consider for reuse. // Default: - Query results are not reused. // ResultReuseConfigurationMaxAge awscdk.Duration `field:"optional" json:"resultReuseConfigurationMaxAge" yaml:"resultReuseConfigurationMaxAge"` // Configuration on how and where to save query. // Default: - No work group. // WorkGroup *string `field:"optional" json:"workGroup" yaml:"workGroup"` }
Properties for starting a Query Execution.
Example:
startQueryExecutionJob := tasks.NewAthenaStartQueryExecution(this, jsii.String("Start Athena Query"), &AthenaStartQueryExecutionProps{ QueryString: sfn.JsonPath_StringAt(jsii.String("$.queryString")), QueryExecutionContext: &QueryExecutionContext{ DatabaseName: jsii.String("mydatabase"), }, ResultConfiguration: &ResultConfiguration{ EncryptionConfiguration: &EncryptionConfiguration{ EncryptionOption: tasks.EncryptionOption_S3_MANAGED, }, OutputLocation: &Location{ BucketName: jsii.String("amzn-s3-demo-bucket"), ObjectKey: jsii.String("folder"), }, }, ExecutionParameters: []*string{ jsii.String("param1"), jsii.String("param2"), }, })
type AthenaStopQueryExecution ¶
type AthenaStopQueryExecution interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Stop an Athena Query Execution as a Task.
Example:
stopQueryExecutionJob := tasks.NewAthenaStopQueryExecution(this, jsii.String("Stop Query Execution"), &AthenaStopQueryExecutionProps{ QueryExecutionId: sfn.JsonPath_StringAt(jsii.String("$.QueryExecutionId")), })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-athena.html
func NewAthenaStopQueryExecution ¶
func NewAthenaStopQueryExecution(scope constructs.Construct, id *string, props *AthenaStopQueryExecutionProps) AthenaStopQueryExecution
type AthenaStopQueryExecutionProps ¶
type AthenaStopQueryExecutionProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // Query that will be stopped. QueryExecutionId *string `field:"required" json:"queryExecutionId" yaml:"queryExecutionId"` }
Properties for stoping a Query Execution.
Example:
stopQueryExecutionJob := tasks.NewAthenaStopQueryExecution(this, jsii.String("Stop Query Execution"), &AthenaStopQueryExecutionProps{ QueryExecutionId: sfn.JsonPath_StringAt(jsii.String("$.QueryExecutionId")), })
type AuthType ¶
type AuthType string
The authentication method used to call the endpoint.
const ( // Call the API direclty with no authorization method. AuthType_NO_AUTH AuthType = "NO_AUTH" // Use the IAM role associated with the current state machine for authorization. AuthType_IAM_ROLE AuthType = "IAM_ROLE" // Use the resource policy of the API for authorization. AuthType_RESOURCE_POLICY AuthType = "RESOURCE_POLICY" )
type BatchContainerOverrides ¶
type BatchContainerOverrides struct { // The command to send to the container that overrides the default command from the Docker image or the job definition. // Default: - No command overrides. // Command *[]*string `field:"optional" json:"command" yaml:"command"` // The environment variables to send to the container. // // You can add new environment variables, which are added to the container // at launch, or you can override the existing environment variables from // the Docker image or the job definition. // Default: - No environment overrides. // Environment *map[string]*string `field:"optional" json:"environment" yaml:"environment"` // The number of physical GPUs to reserve for the container. // // The number of GPUs reserved for all containers in a job // should not exceed the number of available GPUs on the compute // resource that the job is launched on. // Default: - No GPU reservation. // GpuCount *float64 `field:"optional" json:"gpuCount" yaml:"gpuCount"` // The instance type to use for a multi-node parallel job. // // This parameter is not valid for single-node container jobs. // Default: - No instance type overrides. // InstanceType awsec2.InstanceType `field:"optional" json:"instanceType" yaml:"instanceType"` // Memory reserved for the job. // Default: - No memory overrides. The memory supplied in the job definition will be used. // Memory awscdk.Size `field:"optional" json:"memory" yaml:"memory"` // The number of vCPUs to reserve for the container. // // This value overrides the value set in the job definition. // Default: - No vCPUs overrides. // Vcpus *float64 `field:"optional" json:"vcpus" yaml:"vcpus"` }
The overrides that should be sent to a container.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" var instanceType instanceType var size size batchContainerOverrides := &BatchContainerOverrides{ Command: []*string{ jsii.String("command"), }, Environment: map[string]*string{ "environmentKey": jsii.String("environment"), }, GpuCount: jsii.Number(123), InstanceType: instanceType, Memory: size, Vcpus: jsii.Number(123), }
type BatchJobDependency ¶
type BatchJobDependency struct { // The job ID of the AWS Batch job associated with this dependency. // Default: - No jobId. // JobId *string `field:"optional" json:"jobId" yaml:"jobId"` // The type of the job dependency. // Default: - No type. // Type *string `field:"optional" json:"type" yaml:"type"` }
An object representing an AWS Batch job dependency.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" batchJobDependency := &BatchJobDependency{ JobId: jsii.String("jobId"), Type: jsii.String("type"), }
type BatchStrategy ¶
type BatchStrategy string
Specifies the number of records to include in a mini-batch for an HTTP inference request.
const ( // Fits multiple records in a mini-batch. BatchStrategy_MULTI_RECORD BatchStrategy = "MULTI_RECORD" // Use a single record when making an invocation request. BatchStrategy_SINGLE_RECORD BatchStrategy = "SINGLE_RECORD" )
type BatchSubmitJob ¶
type BatchSubmitJob interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Task to submits an AWS Batch job from a job definition.
Example:
import batch "github.com/aws/aws-cdk-go/awscdk" var batchJobDefinition ecsJobDefinition var batchQueue jobQueue task := tasks.NewBatchSubmitJob(this, jsii.String("Submit Job"), &BatchSubmitJobProps{ JobDefinitionArn: batchJobDefinition.JobDefinitionArn, JobName: jsii.String("MyJob"), JobQueueArn: batchQueue.JobQueueArn, })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-batch.html
func NewBatchSubmitJob ¶
func NewBatchSubmitJob(scope constructs.Construct, id *string, props *BatchSubmitJobProps) BatchSubmitJob
type BatchSubmitJobProps ¶
type BatchSubmitJobProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The arn of the job definition used by this job. JobDefinitionArn *string `field:"required" json:"jobDefinitionArn" yaml:"jobDefinitionArn"` // The name of the job. // // The first character must be alphanumeric, and up to 128 letters (uppercase and lowercase), // numbers, hyphens, and underscores are allowed. JobName *string `field:"required" json:"jobName" yaml:"jobName"` // The arn of the job queue into which the job is submitted. JobQueueArn *string `field:"required" json:"jobQueueArn" yaml:"jobQueueArn"` // The array size can be between 2 and 10,000. // // If you specify array properties for a job, it becomes an array job. // For more information, see Array Jobs in the AWS Batch User Guide. // Default: - No array size. // ArraySize *float64 `field:"optional" json:"arraySize" yaml:"arraySize"` // The number of times to move a job to the RUNNABLE status. // // You may specify between 1 and 10 attempts. // If the value of attempts is greater than one, // the job is retried on failure the same number of attempts as the value. // Default: 1. // Attempts *float64 `field:"optional" json:"attempts" yaml:"attempts"` // A list of container overrides in JSON format that specify the name of a container in the specified job definition and the overrides it should receive. // See: https://docs.aws.amazon.com/batch/latest/APIReference/API_SubmitJob.html#Batch-SubmitJob-request-containerOverrides // // Default: - No container overrides. // ContainerOverrides *BatchContainerOverrides `field:"optional" json:"containerOverrides" yaml:"containerOverrides"` // A list of dependencies for the job. // // A job can depend upon a maximum of 20 jobs. // See: https://docs.aws.amazon.com/batch/latest/APIReference/API_SubmitJob.html#Batch-SubmitJob-request-dependsOn // // Default: - No dependencies. // DependsOn *[]*BatchJobDependency `field:"optional" json:"dependsOn" yaml:"dependsOn"` // The payload to be passed as parameters to the batch job. // Default: - No parameters are passed. // Payload awsstepfunctions.TaskInput `field:"optional" json:"payload" yaml:"payload"` // The tags applied to the job request. // Default: {} - no tags. // Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"` }
Properties for RunBatchJob.
Example:
import batch "github.com/aws/aws-cdk-go/awscdk" var batchJobDefinition ecsJobDefinition var batchQueue jobQueue task := tasks.NewBatchSubmitJob(this, jsii.String("Submit Job"), &BatchSubmitJobProps{ JobDefinitionArn: batchJobDefinition.JobDefinitionArn, JobName: jsii.String("MyJob"), JobQueueArn: batchQueue.JobQueueArn, })
type BedrockInvokeModel ¶ added in v2.115.0
type BedrockInvokeModel interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions Task to invoke a model in Bedrock.
Example:
import "github.com/aws/aws-cdk-go/awscdk" model := bedrock.FoundationModel_FromFoundationModelId(this, jsii.String("Model"), bedrock.FoundationModelIdentifier_AMAZON_TITAN_TEXT_G1_EXPRESS_V1()) task := tasks.NewBedrockInvokeModel(this, jsii.String("Prompt Model"), &BedrockInvokeModelProps{ Model: Model, Body: sfn.TaskInput_FromObject(map[string]interface{}{ "inputText": jsii.String("Generate a list of five first names."), "textGenerationConfig": map[string]*f64{ "maxTokenCount": jsii.Number(100), "temperature": jsii.Number(1), }, }), ResultSelector: map[string]interface{}{ "names": sfn.JsonPath_stringAt(jsii.String("$.Body.results[0].outputText")), }, })
func NewBedrockInvokeModel ¶ added in v2.115.0
func NewBedrockInvokeModel(scope constructs.Construct, id *string, props *BedrockInvokeModelProps) BedrockInvokeModel
type BedrockInvokeModelInputProps ¶ added in v2.115.0
type BedrockInvokeModelInputProps struct { // The source location where the API response is written. // // This field can be used to specify s3 URI in the form of token. // Default: - The API response body is returned in the result. // S3InputUri *string `field:"optional" json:"s3InputUri" yaml:"s3InputUri"` // S3 object to retrieve the input data from. // // If the S3 location is not set, then the Body must be set. // Default: - Input data is retrieved from the `body` field. // S3Location *awss3.Location `field:"optional" json:"s3Location" yaml:"s3Location"` }
Location to retrieve the input data, prior to calling Bedrock InvokeModel.
Example:
import "github.com/aws/aws-cdk-go/awscdk" model := bedrock.FoundationModel_FromFoundationModelId(this, jsii.String("Model"), bedrock.FoundationModelIdentifier_AMAZON_TITAN_TEXT_G1_EXPRESS_V1()) task := tasks.NewBedrockInvokeModel(this, jsii.String("Prompt Model"), &BedrockInvokeModelProps{ Model: Model, Input: &BedrockInvokeModelInputProps{ S3InputUri: sfn.JsonPath_StringAt(jsii.String("$.prompt")), }, Output: &BedrockInvokeModelOutputProps{ S3OutputUri: sfn.JsonPath_*StringAt(jsii.String("$.prompt")), }, })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-bedrock.html
type BedrockInvokeModelOutputProps ¶ added in v2.115.0
type BedrockInvokeModelOutputProps struct { // S3 object where the Bedrock InvokeModel API response is written. // // If you specify this field, the API response body is replaced with // a reference to the Amazon S3 location of the original output. // Default: - Response body is returned in the task result. // S3Location *awss3.Location `field:"optional" json:"s3Location" yaml:"s3Location"` // The destination location where the API response is written. // // This field can be used to specify s3 URI in the form of token. // Default: - The API response body is returned in the result. // S3OutputUri *string `field:"optional" json:"s3OutputUri" yaml:"s3OutputUri"` }
Location where the Bedrock InvokeModel API response is written.
Example:
import "github.com/aws/aws-cdk-go/awscdk" model := bedrock.FoundationModel_FromFoundationModelId(this, jsii.String("Model"), bedrock.FoundationModelIdentifier_AMAZON_TITAN_TEXT_G1_EXPRESS_V1()) task := tasks.NewBedrockInvokeModel(this, jsii.String("Prompt Model"), &BedrockInvokeModelProps{ Model: Model, Input: &BedrockInvokeModelInputProps{ S3InputUri: sfn.JsonPath_StringAt(jsii.String("$.prompt")), }, Output: &BedrockInvokeModelOutputProps{ S3OutputUri: sfn.JsonPath_*StringAt(jsii.String("$.prompt")), }, })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-bedrock.html
type BedrockInvokeModelProps ¶ added in v2.115.0
type BedrockInvokeModelProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The Bedrock model that the task will invoke. // See: https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html // Model awsbedrock.IModel `field:"required" json:"model" yaml:"model"` // The desired MIME type of the inference body in the response. // See: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModel.html // // Default: 'application/json'. // Accept *string `field:"optional" json:"accept" yaml:"accept"` // The input data for the Bedrock model invocation. // // The inference parameters contained in the body depend on the Bedrock model being used. // // The body must be in the format specified in the `contentType` field. // For example, if the content type is `application/json`, the body must be // JSON formatted. // // The body must be up to 256 KB in size. For input data that exceeds 256 KB, // use `input` instead to retrieve the input data from S3. // // You must specify either the `body` or the `input` field, but not both. // See: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html // // Default: - Input data is retrieved from the location specified in the `input` field. // Body awsstepfunctions.TaskInput `field:"optional" json:"body" yaml:"body"` // The MIME type of the input data in the request. // See: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModel.html // // Default: 'application/json'. // // Deprecated: This property does not require configuration because the only acceptable value is 'application/json'. ContentType *string `field:"optional" json:"contentType" yaml:"contentType"` // The guardrail is applied to the invocation. // Default: - No guardrail is applied to the invocation. // Guardrail Guardrail `field:"optional" json:"guardrail" yaml:"guardrail"` // The source location to retrieve the input data from. // Default: - Input data is retrieved from the `body` field. // Input *BedrockInvokeModelInputProps `field:"optional" json:"input" yaml:"input"` // The destination location where the API response is written. // // If you specify this field, the API response body is replaced with a reference to the // output location. // Default: - The API response body is returned in the result. // Output *BedrockInvokeModelOutputProps `field:"optional" json:"output" yaml:"output"` // Specifies whether to enable or disable the Bedrock trace. // Default: - Trace is not enabled for the invocation. // TraceEnabled *bool `field:"optional" json:"traceEnabled" yaml:"traceEnabled"` }
Properties for invoking a Bedrock Model.
Example:
import "github.com/aws/aws-cdk-go/awscdk" model := bedrock.FoundationModel_FromFoundationModelId(this, jsii.String("Model"), bedrock.FoundationModelIdentifier_AMAZON_TITAN_TEXT_G1_EXPRESS_V1()) task := tasks.NewBedrockInvokeModel(this, jsii.String("Prompt Model"), &BedrockInvokeModelProps{ Model: Model, Body: sfn.TaskInput_FromObject(map[string]interface{}{ "inputText": jsii.String("Generate a list of five first names."), "textGenerationConfig": map[string]*f64{ "maxTokenCount": jsii.Number(100), "temperature": jsii.Number(1), }, }), ResultSelector: map[string]interface{}{ "names": sfn.JsonPath_stringAt(jsii.String("$.Body.results[0].outputText")), }, })
type CallApiGatewayEndpointBaseProps ¶
type CallApiGatewayEndpointBaseProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // Http method for the API. Method HttpMethod `field:"required" json:"method" yaml:"method"` // Path parameters appended after API endpoint. // Default: - No path. // ApiPath *string `field:"optional" json:"apiPath" yaml:"apiPath"` // Authentication methods. // Default: AuthType.NO_AUTH // AuthType AuthType `field:"optional" json:"authType" yaml:"authType"` // HTTP request information that does not relate to contents of the request. // Default: - No headers. // Headers awsstepfunctions.TaskInput `field:"optional" json:"headers" yaml:"headers"` // Query strings attatched to end of request. // Default: - No query parameters. // QueryParameters awsstepfunctions.TaskInput `field:"optional" json:"queryParameters" yaml:"queryParameters"` // HTTP Request body. // Default: - No request body. // RequestBody awsstepfunctions.TaskInput `field:"optional" json:"requestBody" yaml:"requestBody"` }
Base CallApiGatewayEdnpoint Task Props.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" var resultSelector interface{} var taskInput taskInput var taskRole taskRole var timeout timeout callApiGatewayEndpointBaseProps := &CallApiGatewayEndpointBaseProps{ Method: awscdk.Aws_stepfunctions_tasks.HttpMethod_GET, // the properties below are optional ApiPath: jsii.String("apiPath"), AuthType: awscdk.*Aws_stepfunctions_tasks.AuthType_NO_AUTH, Comment: jsii.String("comment"), Credentials: &Credentials{ Role: taskRole, }, Headers: taskInput, Heartbeat: cdk.Duration_Minutes(jsii.Number(30)), HeartbeatTimeout: timeout, InputPath: jsii.String("inputPath"), IntegrationPattern: awscdk.Aws_stepfunctions.IntegrationPattern_REQUEST_RESPONSE, OutputPath: jsii.String("outputPath"), QueryParameters: taskInput, RequestBody: taskInput, ResultPath: jsii.String("resultPath"), ResultSelector: map[string]interface{}{ "resultSelectorKey": resultSelector, }, StateName: jsii.String("stateName"), TaskTimeout: timeout, Timeout: cdk.Duration_*Minutes(jsii.Number(30)), }
type CallApiGatewayHttpApiEndpoint ¶
type CallApiGatewayHttpApiEndpoint interface { awsstepfunctions.TaskStateBase ApiEndpoint() *string ArnForExecuteApi() *string Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} StageName() *string // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) CreatePolicyStatements() *[]awsiam.PolicyStatement // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Call HTTP API endpoint as a Task.
Example:
import apigatewayv2 "github.com/aws/aws-cdk-go/awscdk" httpApi := apigatewayv2.NewHttpApi(this, jsii.String("MyHttpApi")) invokeTask := tasks.NewCallApiGatewayHttpApiEndpoint(this, jsii.String("Call HTTP API"), &CallApiGatewayHttpApiEndpointProps{ ApiId: httpApi.ApiId, ApiStack: awscdk.*stack_Of(httpApi), Method: tasks.HttpMethod_GET, })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-api-gateway.html
func NewCallApiGatewayHttpApiEndpoint ¶
func NewCallApiGatewayHttpApiEndpoint(scope constructs.Construct, id *string, props *CallApiGatewayHttpApiEndpointProps) CallApiGatewayHttpApiEndpoint
type CallApiGatewayHttpApiEndpointProps ¶
type CallApiGatewayHttpApiEndpointProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // Http method for the API. Method HttpMethod `field:"required" json:"method" yaml:"method"` // Path parameters appended after API endpoint. // Default: - No path. // ApiPath *string `field:"optional" json:"apiPath" yaml:"apiPath"` // Authentication methods. // Default: AuthType.NO_AUTH // AuthType AuthType `field:"optional" json:"authType" yaml:"authType"` // HTTP request information that does not relate to contents of the request. // Default: - No headers. // Headers awsstepfunctions.TaskInput `field:"optional" json:"headers" yaml:"headers"` // Query strings attatched to end of request. // Default: - No query parameters. // QueryParameters awsstepfunctions.TaskInput `field:"optional" json:"queryParameters" yaml:"queryParameters"` // HTTP Request body. // Default: - No request body. // RequestBody awsstepfunctions.TaskInput `field:"optional" json:"requestBody" yaml:"requestBody"` // The Id of the API to call. ApiId *string `field:"required" json:"apiId" yaml:"apiId"` // The Stack in which the API is defined. ApiStack awscdk.Stack `field:"required" json:"apiStack" yaml:"apiStack"` // Name of the stage where the API is deployed to in API Gateway. // Default: '$default'. // StageName *string `field:"optional" json:"stageName" yaml:"stageName"` }
Properties for calling an HTTP API Endpoint.
Example:
import apigatewayv2 "github.com/aws/aws-cdk-go/awscdk" httpApi := apigatewayv2.NewHttpApi(this, jsii.String("MyHttpApi")) invokeTask := tasks.NewCallApiGatewayHttpApiEndpoint(this, jsii.String("Call HTTP API"), &CallApiGatewayHttpApiEndpointProps{ ApiId: httpApi.ApiId, ApiStack: awscdk.*stack_Of(httpApi), Method: tasks.HttpMethod_GET, })
type CallApiGatewayRestApiEndpoint ¶
type CallApiGatewayRestApiEndpoint interface { awsstepfunctions.TaskStateBase ApiEndpoint() *string ArnForExecuteApi() *string Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} StageName() *string // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) CreatePolicyStatements() *[]awsiam.PolicyStatement // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Call REST API endpoint as a Task.
Be aware that the header values must be arrays. When passing the Task Token in the headers field `WAIT_FOR_TASK_TOKEN` integration, use `JsonPath.array()` to wrap the token in an array:
```ts import * as apigateway from 'aws-cdk-lib/aws-apigateway'; declare const api: apigateway.RestApi;
new tasks.CallApiGatewayRestApiEndpoint(this, 'Endpoint', { api, stageName: 'Stage', method: tasks.HttpMethod.PUT, integrationPattern: sfn.IntegrationPattern.WAIT_FOR_TASK_TOKEN, headers: sfn.TaskInput.fromObject({ TaskToken: sfn.JsonPath.array(sfn.JsonPath.taskToken), }), });
```.
Example:
import apigateway "github.com/aws/aws-cdk-go/awscdk" var api restApi tasks.NewCallApiGatewayRestApiEndpoint(this, jsii.String("Endpoint"), &CallApiGatewayRestApiEndpointProps{ Api: Api, StageName: jsii.String("Stage"), Method: tasks.HttpMethod_PUT, IntegrationPattern: sfn.IntegrationPattern_WAIT_FOR_TASK_TOKEN, Headers: sfn.TaskInput_FromObject(map[string]interface{}{ "TaskToken": sfn.JsonPath_array(sfn.JsonPath_taskToken()), }), })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-api-gateway.html
func NewCallApiGatewayRestApiEndpoint ¶
func NewCallApiGatewayRestApiEndpoint(scope constructs.Construct, id *string, props *CallApiGatewayRestApiEndpointProps) CallApiGatewayRestApiEndpoint
type CallApiGatewayRestApiEndpointProps ¶
type CallApiGatewayRestApiEndpointProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // Http method for the API. Method HttpMethod `field:"required" json:"method" yaml:"method"` // Path parameters appended after API endpoint. // Default: - No path. // ApiPath *string `field:"optional" json:"apiPath" yaml:"apiPath"` // Authentication methods. // Default: AuthType.NO_AUTH // AuthType AuthType `field:"optional" json:"authType" yaml:"authType"` // HTTP request information that does not relate to contents of the request. // Default: - No headers. // Headers awsstepfunctions.TaskInput `field:"optional" json:"headers" yaml:"headers"` // Query strings attatched to end of request. // Default: - No query parameters. // QueryParameters awsstepfunctions.TaskInput `field:"optional" json:"queryParameters" yaml:"queryParameters"` // HTTP Request body. // Default: - No request body. // RequestBody awsstepfunctions.TaskInput `field:"optional" json:"requestBody" yaml:"requestBody"` // API to call. Api awsapigateway.IRestApi `field:"required" json:"api" yaml:"api"` // Name of the stage where the API is deployed to in API Gateway. StageName *string `field:"required" json:"stageName" yaml:"stageName"` }
Properties for calling an REST API Endpoint.
Example:
import apigateway "github.com/aws/aws-cdk-go/awscdk" var api restApi tasks.NewCallApiGatewayRestApiEndpoint(this, jsii.String("Endpoint"), &CallApiGatewayRestApiEndpointProps{ Api: Api, StageName: jsii.String("Stage"), Method: tasks.HttpMethod_PUT, IntegrationPattern: sfn.IntegrationPattern_WAIT_FOR_TASK_TOKEN, Headers: sfn.TaskInput_FromObject(map[string]interface{}{ "TaskToken": sfn.JsonPath_array(sfn.JsonPath_taskToken()), }), })
type CallAwsService ¶
type CallAwsService interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A StepFunctions task to call an AWS service API.
Example:
var myBucket bucket getObject := tasks.NewCallAwsService(this, jsii.String("GetObject"), &CallAwsServiceProps{ Service: jsii.String("s3"), Action: jsii.String("getObject"), Parameters: map[string]interface{}{ "Bucket": myBucket.bucketName, "Key": sfn.JsonPath_stringAt(jsii.String("$.key")), }, IamResources: []*string{ myBucket.ArnForObjects(jsii.String("*")), }, })
func NewCallAwsService ¶
func NewCallAwsService(scope constructs.Construct, id *string, props *CallAwsServiceProps) CallAwsService
type CallAwsServiceCrossRegion ¶ added in v2.148.0
type CallAwsServiceCrossRegion interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) LambdaFunction() awslambda.IFunction // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions task to call an AWS service API across regions.
This task creates a Lambda function to call cross-region AWS API and invokes it.
Example:
var myBucket bucket getObject := tasks.NewCallAwsServiceCrossRegion(this, jsii.String("GetObject"), &CallAwsServiceCrossRegionProps{ Region: jsii.String("ap-northeast-1"), Service: jsii.String("s3"), Action: jsii.String("getObject"), Parameters: map[string]interface{}{ "Bucket": myBucket.bucketName, "Key": sfn.JsonPath_stringAt(jsii.String("$.key")), }, IamResources: []*string{ myBucket.ArnForObjects(jsii.String("*")), }, })
func NewCallAwsServiceCrossRegion ¶ added in v2.148.0
func NewCallAwsServiceCrossRegion(scope constructs.Construct, id *string, props *CallAwsServiceCrossRegionProps) CallAwsServiceCrossRegion
type CallAwsServiceCrossRegionProps ¶ added in v2.148.0
type CallAwsServiceCrossRegionProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The API action to call. // // Use camelCase. Action *string `field:"required" json:"action" yaml:"action"` // The resources for the IAM statement that will be added to the Lambda function role's policy to allow the state machine to make the API call. IamResources *[]*string `field:"required" json:"iamResources" yaml:"iamResources"` // The AWS region to call this AWS API for. // // Example: // "us-east-1" // Region *string `field:"required" json:"region" yaml:"region"` // The AWS service to call in AWS SDK for JavaScript v3 format. // // Example: // "s3" // // See: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/ // Service *string `field:"required" json:"service" yaml:"service"` // Additional IAM statements that will be added to the state machine role's policy. // // Use in the case where the call requires more than a single statement to // be executed, e.g. `rekognition:detectLabels` requires also S3 permissions // to read the object on which it must act. // Default: - no additional statements are added. // AdditionalIamStatements *[]awsiam.PolicyStatement `field:"optional" json:"additionalIamStatements" yaml:"additionalIamStatements"` // The AWS API endpoint. // Default: Do not override API endpoint. // Endpoint *string `field:"optional" json:"endpoint" yaml:"endpoint"` // The action for the IAM statement that will be added to the Lambda function role's policy to allow the state machine to make the API call. // // By default the action for this IAM statement will be `service:action`. // // Use in the case where the IAM action name does not match with the // API service/action name, e.g. `s3:ListBuckets` requires `s3:ListAllMyBuckets`. // Default: - service:action. // IamAction *string `field:"optional" json:"iamAction" yaml:"iamAction"` // Parameters for the API action call in AWS SDK for JavaScript v3 format. // Default: - no parameters. // Parameters *map[string]interface{} `field:"optional" json:"parameters" yaml:"parameters"` // Whether to retry on the backend Lambda service exceptions. // // This handles `Lambda.ServiceException`, `Lambda.AWSLambdaException`, // `Lambda.SdkClientException`, and `Lambda.ClientExecutionTimeoutException` // with an interval of 2 seconds, a back-off rate // of 2 and 6 maximum attempts. // See: https://docs.aws.amazon.com/step-functions/latest/dg/bp-lambda-serviceexception.html // // Default: true. // RetryOnServiceExceptions *bool `field:"optional" json:"retryOnServiceExceptions" yaml:"retryOnServiceExceptions"` }
Properties for calling an AWS service's API action from your state machine across regions.
Example:
var myBucket bucket getObject := tasks.NewCallAwsServiceCrossRegion(this, jsii.String("GetObject"), &CallAwsServiceCrossRegionProps{ Region: jsii.String("ap-northeast-1"), Service: jsii.String("s3"), Action: jsii.String("getObject"), Parameters: map[string]interface{}{ "Bucket": myBucket.bucketName, "Key": sfn.JsonPath_stringAt(jsii.String("$.key")), }, IamResources: []*string{ myBucket.ArnForObjects(jsii.String("*")), }, })
type CallAwsServiceProps ¶
type CallAwsServiceProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The API action to call. // // Use camelCase. Action *string `field:"required" json:"action" yaml:"action"` // The resources for the IAM statement that will be added to the state machine role's policy to allow the state machine to make the API call. // // By default the action for this IAM statement will be `service:action`. IamResources *[]*string `field:"required" json:"iamResources" yaml:"iamResources"` // The AWS service to call. // See: https://docs.aws.amazon.com/step-functions/latest/dg/supported-services-awssdk.html // Service *string `field:"required" json:"service" yaml:"service"` // Additional IAM statements that will be added to the state machine role's policy. // // Use in the case where the call requires more than a single statement to // be executed, e.g. `rekognition:detectLabels` requires also S3 permissions // to read the object on which it must act. // Default: - no additional statements are added. // AdditionalIamStatements *[]awsiam.PolicyStatement `field:"optional" json:"additionalIamStatements" yaml:"additionalIamStatements"` // The action for the IAM statement that will be added to the state machine role's policy to allow the state machine to make the API call. // // Use in the case where the IAM action name does not match with the // API service/action name, e.g. `s3:ListBuckets` requires `s3:ListAllMyBuckets`. // Default: - service:action. // IamAction *string `field:"optional" json:"iamAction" yaml:"iamAction"` // Parameters for the API action call. // // Use PascalCase for the parameter names. // Default: - no parameters. // Parameters *map[string]interface{} `field:"optional" json:"parameters" yaml:"parameters"` }
Properties for calling an AWS service's API action from your state machine.
Example:
var myBucket bucket getObject := tasks.NewCallAwsService(this, jsii.String("GetObject"), &CallAwsServiceProps{ Service: jsii.String("s3"), Action: jsii.String("getObject"), Parameters: map[string]interface{}{ "Bucket": myBucket.bucketName, "Key": sfn.JsonPath_stringAt(jsii.String("$.key")), }, IamResources: []*string{ myBucket.ArnForObjects(jsii.String("*")), }, })
See: https://docs.aws.amazon.com/step-functions/latest/dg/supported-services-awssdk.html
type Channel ¶
type Channel struct { // Name of the channel. ChannelName *string `field:"required" json:"channelName" yaml:"channelName"` // Location of the channel data. DataSource *DataSource `field:"required" json:"dataSource" yaml:"dataSource"` // Compression type if training data is compressed. // Default: - None. // CompressionType CompressionType `field:"optional" json:"compressionType" yaml:"compressionType"` // The MIME type of the data. // Default: - None. // ContentType *string `field:"optional" json:"contentType" yaml:"contentType"` // Input mode to use for the data channel in a training job. // Default: - None. // InputMode InputMode `field:"optional" json:"inputMode" yaml:"inputMode"` // Specify RecordIO as the value when input data is in raw format but the training algorithm requires the RecordIO format. // // In this case, Amazon SageMaker wraps each individual S3 object in a RecordIO record. // If the input data is already in RecordIO format, you don't need to set this attribute. // Default: - None. // RecordWrapperType RecordWrapperType `field:"optional" json:"recordWrapperType" yaml:"recordWrapperType"` // Shuffle config option for input data in a channel. // Default: - None. // ShuffleConfig *ShuffleConfig `field:"optional" json:"shuffleConfig" yaml:"shuffleConfig"` }
Describes the training, validation or test dataset and the Amazon S3 location where it is stored.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" var s3Location s3Location channel := &Channel{ ChannelName: jsii.String("channelName"), DataSource: &DataSource{ S3DataSource: &S3DataSource{ S3Location: s3Location, // the properties below are optional AttributeNames: []*string{ jsii.String("attributeNames"), }, S3DataDistributionType: awscdk.Aws_stepfunctions_tasks.S3DataDistributionType_FULLY_REPLICATED, S3DataType: awscdk.*Aws_stepfunctions_tasks.S3DataType_MANIFEST_FILE, }, }, // the properties below are optional CompressionType: awscdk.*Aws_stepfunctions_tasks.CompressionType_NONE, ContentType: jsii.String("contentType"), InputMode: awscdk.*Aws_stepfunctions_tasks.InputMode_PIPE, RecordWrapperType: awscdk.*Aws_stepfunctions_tasks.RecordWrapperType_NONE, ShuffleConfig: &ShuffleConfig{ Seed: jsii.Number(123), }, }
type Classification ¶ added in v2.1.0
type Classification interface { // A literal string in case a new EMR classification is released, if not already defined. ClassificationStatement() *string }
The classification within a EMR Containers application configuration.
Class can be extended to add other classifications. For example, new Classification('xxx-yyy');.
Example:
tasks.NewEmrContainersStartJobRun(this, jsii.String("EMR Containers Start Job Run"), &EmrContainersStartJobRunProps{ VirtualCluster: tasks.VirtualClusterInput_FromVirtualClusterId(jsii.String("de92jdei2910fwedz")), ReleaseLabel: tasks.ReleaseLabel_EMR_6_2_0(), JobName: jsii.String("EMR-Containers-Job"), JobDriver: &JobDriver{ SparkSubmitJobDriver: &SparkSubmitJobDriver{ EntryPoint: sfn.TaskInput_FromText(jsii.String("local:///usr/lib/spark/examples/src/main/python/pi.py")), }, }, ApplicationConfig: []applicationConfiguration{ &applicationConfiguration{ Classification: tasks.Classification_SPARK_DEFAULTS(), Properties: map[string]*string{ "spark.executor.instances": jsii.String("1"), "spark.executor.memory": jsii.String("512M"), }, }, }, })
func Classification_SPARK ¶ added in v2.1.0
func Classification_SPARK() Classification
func Classification_SPARK_DEFAULTS ¶ added in v2.1.0
func Classification_SPARK_DEFAULTS() Classification
func Classification_SPARK_ENV ¶ added in v2.1.0
func Classification_SPARK_ENV() Classification
func Classification_SPARK_HIVE_SITE ¶ added in v2.1.0
func Classification_SPARK_HIVE_SITE() Classification
func Classification_SPARK_LOG4J ¶ added in v2.1.0
func Classification_SPARK_LOG4J() Classification
func Classification_SPARK_METRICS ¶ added in v2.1.0
func Classification_SPARK_METRICS() Classification
func NewClassification ¶ added in v2.1.0
func NewClassification(classificationStatement *string) Classification
Creates a new Classification.
type CodeBuildStartBuild ¶
type CodeBuildStartBuild interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Start a CodeBuild Build as a task.
Example:
import "github.com/aws/aws-cdk-go/awscdk" codebuildProject := codebuild.NewProject(this, jsii.String("Project"), &ProjectProps{ ProjectName: jsii.String("MyTestProject"), BuildSpec: codebuild.BuildSpec_FromObject(map[string]interface{}{ "version": jsii.String("0.2"), "phases": map[string]map[string][]*string{ "build": map[string][]*string{ "commands": []*string{ jsii.String("echo \"Hello, CodeBuild!\""), }, }, }, }), }) task := tasks.NewCodeBuildStartBuild(this, jsii.String("Task"), &CodeBuildStartBuildProps{ Project: codebuildProject, IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, EnvironmentVariablesOverride: map[string]buildEnvironmentVariable{ "ZONE": &buildEnvironmentVariable{ "type": codebuild.BuildEnvironmentVariableType_PLAINTEXT, "value": sfn.JsonPath_stringAt(jsii.String("$.envVariables.zone")), }, }, })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-codebuild.html
func NewCodeBuildStartBuild ¶
func NewCodeBuildStartBuild(scope constructs.Construct, id *string, props *CodeBuildStartBuildProps) CodeBuildStartBuild
type CodeBuildStartBuildBatch ¶ added in v2.132.0
type CodeBuildStartBuildBatch interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Start a CodeBuild BatchBuild as a task.
Example:
import "github.com/aws/aws-cdk-go/awscdk" project := codebuild.NewProject(this, jsii.String("Project"), &ProjectProps{ ProjectName: jsii.String("MyTestProject"), BuildSpec: codebuild.BuildSpec_FromObjectToYaml(map[string]interface{}{ "version": jsii.Number(0.2), "batch": map[string][]map[string]*string{ "build-list": []map[string]*string{ map[string]*string{ "identifier": jsii.String("id"), "buildspec": jsii.String("version: 0.2\nphases:\n build:\n commands:\n - echo \"Hello, from small!\""), }, }, }, }), }) project.EnableBatchBuilds() task := tasks.NewCodeBuildStartBuildBatch(this, jsii.String("buildBatchTask"), &CodeBuildStartBuildBatchProps{ Project: Project, IntegrationPattern: sfn.IntegrationPattern_REQUEST_RESPONSE, EnvironmentVariablesOverride: map[string]buildEnvironmentVariable{ "test": &buildEnvironmentVariable{ "type": codebuild.BuildEnvironmentVariableType_PLAINTEXT, "value": jsii.String("testValue"), }, }, })
See: https://docs.aws.amazon.com/codebuild/latest/APIReference/API_StartBuildBatch.html
func NewCodeBuildStartBuildBatch ¶ added in v2.132.0
func NewCodeBuildStartBuildBatch(scope constructs.Construct, id *string, props *CodeBuildStartBuildBatchProps) CodeBuildStartBuildBatch
type CodeBuildStartBuildBatchProps ¶ added in v2.132.0
type CodeBuildStartBuildBatchProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // CodeBuild project to start. Project awscodebuild.IProject `field:"required" json:"project" yaml:"project"` // A set of environment variables to be used for this build only. // Default: - the latest environment variables already defined in the build project. // EnvironmentVariablesOverride *map[string]*awscodebuild.BuildEnvironmentVariable `field:"optional" json:"environmentVariablesOverride" yaml:"environmentVariablesOverride"` }
Properties for CodeBuildStartBuildBatch.
Example:
import "github.com/aws/aws-cdk-go/awscdk" project := codebuild.NewProject(this, jsii.String("Project"), &ProjectProps{ ProjectName: jsii.String("MyTestProject"), BuildSpec: codebuild.BuildSpec_FromObjectToYaml(map[string]interface{}{ "version": jsii.Number(0.2), "batch": map[string][]map[string]*string{ "build-list": []map[string]*string{ map[string]*string{ "identifier": jsii.String("id"), "buildspec": jsii.String("version: 0.2\nphases:\n build:\n commands:\n - echo \"Hello, from small!\""), }, }, }, }), }) project.EnableBatchBuilds() task := tasks.NewCodeBuildStartBuildBatch(this, jsii.String("buildBatchTask"), &CodeBuildStartBuildBatchProps{ Project: Project, IntegrationPattern: sfn.IntegrationPattern_REQUEST_RESPONSE, EnvironmentVariablesOverride: map[string]buildEnvironmentVariable{ "test": &buildEnvironmentVariable{ "type": codebuild.BuildEnvironmentVariableType_PLAINTEXT, "value": jsii.String("testValue"), }, }, })
type CodeBuildStartBuildProps ¶
type CodeBuildStartBuildProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // CodeBuild project to start. Project awscodebuild.IProject `field:"required" json:"project" yaml:"project"` // A set of environment variables to be used for this build only. // Default: - the latest environment variables already defined in the build project. // EnvironmentVariablesOverride *map[string]*awscodebuild.BuildEnvironmentVariable `field:"optional" json:"environmentVariablesOverride" yaml:"environmentVariablesOverride"` }
Properties for CodeBuildStartBuild.
Example:
import "github.com/aws/aws-cdk-go/awscdk" codebuildProject := codebuild.NewProject(this, jsii.String("Project"), &ProjectProps{ ProjectName: jsii.String("MyTestProject"), BuildSpec: codebuild.BuildSpec_FromObject(map[string]interface{}{ "version": jsii.String("0.2"), "phases": map[string]map[string][]*string{ "build": map[string][]*string{ "commands": []*string{ jsii.String("echo \"Hello, CodeBuild!\""), }, }, }, }), }) task := tasks.NewCodeBuildStartBuild(this, jsii.String("Task"), &CodeBuildStartBuildProps{ Project: codebuildProject, IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, EnvironmentVariablesOverride: map[string]buildEnvironmentVariable{ "ZONE": &buildEnvironmentVariable{ "type": codebuild.BuildEnvironmentVariableType_PLAINTEXT, "value": sfn.JsonPath_stringAt(jsii.String("$.envVariables.zone")), }, }, })
type CommonEcsRunTaskProps ¶
type CommonEcsRunTaskProps struct { // The topic to run the task on. Cluster awsecs.ICluster `field:"required" json:"cluster" yaml:"cluster"` // Task Definition used for running tasks in the service. // // Note: this must be TaskDefinition, and not ITaskDefinition, // as it requires properties that are not known for imported task definitions // If you want to run a RunTask with an imported task definition, // consider using CustomState. TaskDefinition awsecs.TaskDefinition `field:"required" json:"taskDefinition" yaml:"taskDefinition"` // Container setting overrides. // // Key is the name of the container to override, value is the // values you want to override. // Default: - No overrides. // ContainerOverrides *[]*ContainerOverride `field:"optional" json:"containerOverrides" yaml:"containerOverrides"` // The service integration pattern indicates different ways to call RunTask in ECS. // // The valid value for Lambda is FIRE_AND_FORGET, SYNC and WAIT_FOR_TASK_TOKEN. // Default: FIRE_AND_FORGET. // IntegrationPattern awsstepfunctions.ServiceIntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` }
Basic properties for ECS Tasks.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" var cluster cluster var containerDefinition containerDefinition var taskDefinition taskDefinition commonEcsRunTaskProps := &CommonEcsRunTaskProps{ Cluster: cluster, TaskDefinition: taskDefinition, // the properties below are optional ContainerOverrides: []containerOverride{ &containerOverride{ ContainerDefinition: containerDefinition, // the properties below are optional Command: []*string{ jsii.String("command"), }, Cpu: jsii.Number(123), Environment: []taskEnvironmentVariable{ &taskEnvironmentVariable{ Name: jsii.String("name"), Value: jsii.String("value"), }, }, MemoryLimit: jsii.Number(123), MemoryReservation: jsii.Number(123), }, }, IntegrationPattern: awscdk.Aws_stepfunctions.ServiceIntegrationPattern_FIRE_AND_FORGET, }
type CompressionType ¶
type CompressionType string
Compression type of the data.
const ( // None compression type. CompressionType_NONE CompressionType = "NONE" // Gzip compression type. CompressionType_GZIP CompressionType = "GZIP" )
type ContainerDefinition ¶
type ContainerDefinition interface { IContainerDefinition // Called when the ContainerDefinition type configured on Sagemaker Task. Bind(task ISageMakerTask) *ContainerDefinitionConfig }
Describes the container, as part of model definition.
Example:
tasks.NewSageMakerCreateModel(this, jsii.String("Sagemaker"), &SageMakerCreateModelProps{ ModelName: jsii.String("MyModel"), PrimaryContainer: tasks.NewContainerDefinition(&ContainerDefinitionOptions{ Image: tasks.DockerImage_FromJsonExpression(sfn.JsonPath_StringAt(jsii.String("$.Model.imageName"))), Mode: tasks.Mode_SINGLE_MODEL, ModelS3Location: tasks.S3Location_FromJsonExpression(jsii.String("$.TrainingJob.ModelArtifacts.S3ModelArtifacts")), }), })
See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ContainerDefinition.html
func NewContainerDefinition ¶
func NewContainerDefinition(options *ContainerDefinitionOptions) ContainerDefinition
type ContainerDefinitionConfig ¶
type ContainerDefinitionConfig struct { // Additional parameters to pass to the base task. // Default: - No additional parameters passed. // Parameters *map[string]interface{} `field:"optional" json:"parameters" yaml:"parameters"` }
Configuration options for the ContainerDefinition.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" var parameters interface{} containerDefinitionConfig := &ContainerDefinitionConfig{ Parameters: map[string]interface{}{ "parametersKey": parameters, }, }
type ContainerDefinitionOptions ¶
type ContainerDefinitionOptions struct { // This parameter is ignored for models that contain only a PrimaryContainer. // // When a ContainerDefinition is part of an inference pipeline, // the value of the parameter uniquely identifies the container for the purposes of logging and metrics. // Default: - None. // ContainerHostName *string `field:"optional" json:"containerHostName" yaml:"containerHostName"` // The environment variables to set in the Docker container. // Default: - No variables. // EnvironmentVariables awsstepfunctions.TaskInput `field:"optional" json:"environmentVariables" yaml:"environmentVariables"` // The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored. // Default: - None. // Image DockerImage `field:"optional" json:"image" yaml:"image"` // Defines how many models the container hosts. // Default: - Mode.SINGLE_MODEL // Mode Mode `field:"optional" json:"mode" yaml:"mode"` // The name or Amazon Resource Name (ARN) of the model package to use to create the model. // Default: - None. // ModelPackageName *string `field:"optional" json:"modelPackageName" yaml:"modelPackageName"` // The S3 path where the model artifacts, which result from model training, are stored. // // This path must point to a single gzip compressed tar archive (.tar.gz suffix). // The S3 path is required for Amazon SageMaker built-in algorithms, but not if you use your own algorithms. // Default: - None. // ModelS3Location S3Location `field:"optional" json:"modelS3Location" yaml:"modelS3Location"` }
Properties to define a ContainerDefinition.
Example:
tasks.NewSageMakerCreateModel(this, jsii.String("Sagemaker"), &SageMakerCreateModelProps{ ModelName: jsii.String("MyModel"), PrimaryContainer: tasks.NewContainerDefinition(&ContainerDefinitionOptions{ Image: tasks.DockerImage_FromJsonExpression(sfn.JsonPath_StringAt(jsii.String("$.Model.imageName"))), Mode: tasks.Mode_SINGLE_MODEL, ModelS3Location: tasks.S3Location_FromJsonExpression(jsii.String("$.TrainingJob.ModelArtifacts.S3ModelArtifacts")), }), })
See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ContainerDefinition.html
type ContainerOverride ¶
type ContainerOverride struct { // Name of the container inside the task definition. ContainerDefinition awsecs.ContainerDefinition `field:"required" json:"containerDefinition" yaml:"containerDefinition"` // Command to run inside the container. // Default: - Default command from the Docker image or the task definition. // Command *[]*string `field:"optional" json:"command" yaml:"command"` // The number of cpu units reserved for the container. // Default: - The default value from the task definition. // Cpu *float64 `field:"optional" json:"cpu" yaml:"cpu"` // The environment variables to send to the container. // // You can add new environment variables, which are added to the container at launch, // or you can override the existing environment variables from the Docker image or the task definition. // Default: - The existing environment variables from the Docker image or the task definition. // Environment *[]*TaskEnvironmentVariable `field:"optional" json:"environment" yaml:"environment"` // The hard limit (in MiB) of memory to present to the container. // Default: - The default value from the task definition. // MemoryLimit *float64 `field:"optional" json:"memoryLimit" yaml:"memoryLimit"` // The soft limit (in MiB) of memory to reserve for the container. // Default: - The default value from the task definition. // MemoryReservation *float64 `field:"optional" json:"memoryReservation" yaml:"memoryReservation"` }
A list of container overrides that specify the name of a container and the overrides it should receive.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" var containerDefinition containerDefinition containerOverride := &ContainerOverride{ ContainerDefinition: containerDefinition, // the properties below are optional Command: []*string{ jsii.String("command"), }, Cpu: jsii.Number(123), Environment: []taskEnvironmentVariable{ &taskEnvironmentVariable{ Name: jsii.String("name"), Value: jsii.String("value"), }, }, MemoryLimit: jsii.Number(123), MemoryReservation: jsii.Number(123), }
type ContainerOverrides ¶
type ContainerOverrides struct { // The command to send to the container that overrides the default command from the Docker image or the job definition. // Default: - No command overrides. // Command *[]*string `field:"optional" json:"command" yaml:"command"` // The environment variables to send to the container. // // You can add new environment variables, which are added to the container // at launch, or you can override the existing environment variables from // the Docker image or the job definition. // Default: - No environment overrides. // Environment *map[string]*string `field:"optional" json:"environment" yaml:"environment"` // The number of physical GPUs to reserve for the container. // // The number of GPUs reserved for all containers in a job // should not exceed the number of available GPUs on the compute // resource that the job is launched on. // Default: - No GPU reservation. // GpuCount *float64 `field:"optional" json:"gpuCount" yaml:"gpuCount"` // The instance type to use for a multi-node parallel job. // // This parameter is not valid for single-node container jobs. // Default: - No instance type overrides. // InstanceType awsec2.InstanceType `field:"optional" json:"instanceType" yaml:"instanceType"` // The number of MiB of memory reserved for the job. // // This value overrides the value set in the job definition. // Default: - No memory overrides. // Memory *float64 `field:"optional" json:"memory" yaml:"memory"` // The number of vCPUs to reserve for the container. // // This value overrides the value set in the job definition. // Default: - No vCPUs overrides. // Vcpus *float64 `field:"optional" json:"vcpus" yaml:"vcpus"` }
The overrides that should be sent to a container.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" var instanceType instanceType containerOverrides := &ContainerOverrides{ Command: []*string{ jsii.String("command"), }, Environment: map[string]*string{ "environmentKey": jsii.String("environment"), }, GpuCount: jsii.Number(123), InstanceType: instanceType, Memory: jsii.Number(123), Vcpus: jsii.Number(123), }
type CronOptions ¶ added in v2.168.0
type CronOptions struct { // The day of the month to run this rule at. // Default: - Every day of the month. // Day *string `field:"optional" json:"day" yaml:"day"` // The hour to run this rule at. // Default: - Every hour. // Hour *string `field:"optional" json:"hour" yaml:"hour"` // The minute to run this rule at. // Default: - Every minute. // Minute *string `field:"optional" json:"minute" yaml:"minute"` // The month to run this rule at. // Default: - Every month. // Month *string `field:"optional" json:"month" yaml:"month"` // The day of the week to run this rule at. // Default: - Whichever day of the week that `day` falls on. // WeekDay *string `field:"optional" json:"weekDay" yaml:"weekDay"` // The year to run this rule at. // Default: - Every year. // Year *string `field:"optional" json:"year" yaml:"year"` }
Options to configure a cron expression.
All fields are strings so you can use complex expressions. Absence of a field implies '*' or '?', whichever one is appropriate.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" cronOptions := &CronOptions{ Day: jsii.String("day"), Hour: jsii.String("hour"), Minute: jsii.String("minute"), Month: jsii.String("month"), WeekDay: jsii.String("weekDay"), Year: jsii.String("year"), }
type DataSource ¶
type DataSource struct { // S3 location of the data source that is associated with a channel. S3DataSource *S3DataSource `field:"required" json:"s3DataSource" yaml:"s3DataSource"` }
Location of the channel data.
Example:
tasks.NewSageMakerCreateTrainingJob(this, jsii.String("TrainSagemaker"), &SageMakerCreateTrainingJobProps{ TrainingJobName: sfn.JsonPath_StringAt(jsii.String("$.JobName")), AlgorithmSpecification: &AlgorithmSpecification{ AlgorithmName: jsii.String("BlazingText"), TrainingInputMode: tasks.InputMode_FILE, }, InputDataConfig: []channel{ &channel{ ChannelName: jsii.String("train"), DataSource: &DataSource{ S3DataSource: &S3DataSource{ S3DataType: tasks.S3DataType_S3_PREFIX, S3Location: tasks.S3Location_FromJsonExpression(jsii.String("$.S3Bucket")), }, }, }, }, OutputDataConfig: &OutputDataConfig{ S3OutputLocation: tasks.S3Location_FromBucket(s3.Bucket_FromBucketName(this, jsii.String("Bucket"), jsii.String("amzn-s3-demo-bucket")), jsii.String("myoutputpath")), }, ResourceConfig: &ResourceConfig{ InstanceCount: jsii.Number(1), InstanceType: ec2.NewInstanceType(sfn.JsonPath_*StringAt(jsii.String("$.InstanceType"))), VolumeSize: awscdk.Size_Gibibytes(jsii.Number(50)), }, // optional: default is 1 instance of EC2 `M4.XLarge` with `10GB` volume StoppingCondition: &StoppingCondition{ MaxRuntime: awscdk.Duration_Hours(jsii.Number(2)), }, })
type DockerImage ¶
type DockerImage interface { // Called when the image is used by a SageMaker task. Bind(task ISageMakerTask) *DockerImageConfig }
Creates `IDockerImage` instances.
Example:
tasks.NewSageMakerCreateModel(this, jsii.String("Sagemaker"), &SageMakerCreateModelProps{ ModelName: jsii.String("MyModel"), PrimaryContainer: tasks.NewContainerDefinition(&ContainerDefinitionOptions{ Image: tasks.DockerImage_FromJsonExpression(sfn.JsonPath_StringAt(jsii.String("$.Model.imageName"))), Mode: tasks.Mode_SINGLE_MODEL, ModelS3Location: tasks.S3Location_FromJsonExpression(jsii.String("$.TrainingJob.ModelArtifacts.S3ModelArtifacts")), }), })
func DockerImage_FromAsset ¶
func DockerImage_FromAsset(scope constructs.Construct, id *string, props *awsecrassets.DockerImageAssetProps) DockerImage
Reference a Docker image that is provided as an Asset in the current app.
func DockerImage_FromEcrRepository ¶
func DockerImage_FromEcrRepository(repository awsecr.IRepository, tagOrDigest *string) DockerImage
Reference a Docker image stored in an ECR repository.
func DockerImage_FromJsonExpression ¶
func DockerImage_FromJsonExpression(expression *string, allowAnyEcrImagePull *bool) DockerImage
Reference a Docker image which URI is obtained from the task's input.
func DockerImage_FromRegistry ¶
func DockerImage_FromRegistry(imageUri *string) DockerImage
Reference a Docker image by it's URI.
When referencing ECR images, prefer using `inEcr`.
type DockerImageConfig ¶
type DockerImageConfig struct { // The fully qualified URI of the Docker image. ImageUri *string `field:"required" json:"imageUri" yaml:"imageUri"` }
Configuration for a using Docker image.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" dockerImageConfig := &DockerImageConfig{ ImageUri: jsii.String("imageUri"), }
type DynamoAttributeValue ¶
type DynamoAttributeValue interface { // Represents the data for the attribute. // // Data can be // i.e. "S": "Hello" AttributeValue() interface{} // Returns the DynamoDB attribute value. ToObject() interface{} }
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
Example:
var myTable table tasks.NewDynamoDeleteItem(this, jsii.String("DeleteItem"), &DynamoDeleteItemProps{ Key: map[string]dynamoAttributeValue{ "MessageId": tasks.*dynamoAttributeValue_fromString(jsii.String("message-007")), }, Table: myTable, ResultPath: sfn.JsonPath_DISCARD(), })
See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
func DynamoAttributeValue_BooleanFromJsonPath ¶
func DynamoAttributeValue_BooleanFromJsonPath(value *string) DynamoAttributeValue
Sets an attribute of type Boolean from state input through Json path.
For example: "BOOL": true.
func DynamoAttributeValue_FromBinary ¶
func DynamoAttributeValue_FromBinary(value *string) DynamoAttributeValue
Sets an attribute of type Binary.
For example: "B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk".
func DynamoAttributeValue_FromBinarySet ¶
func DynamoAttributeValue_FromBinarySet(value *[]*string) DynamoAttributeValue
Sets an attribute of type Binary Set.
For example: "BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="].
func DynamoAttributeValue_FromBoolean ¶
func DynamoAttributeValue_FromBoolean(value *bool) DynamoAttributeValue
Sets an attribute of type Boolean.
For example: "BOOL": true.
func DynamoAttributeValue_FromList ¶
func DynamoAttributeValue_FromList(value *[]DynamoAttributeValue) DynamoAttributeValue
Sets an attribute of type List.
For example: "L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N", "3.14159"}]
func DynamoAttributeValue_FromMap ¶
func DynamoAttributeValue_FromMap(value *map[string]DynamoAttributeValue) DynamoAttributeValue
Sets an attribute of type Map.
For example: "M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}}.
func DynamoAttributeValue_FromNull ¶
func DynamoAttributeValue_FromNull(value *bool) DynamoAttributeValue
Sets an attribute of type Null.
For example: "NULL": true.
func DynamoAttributeValue_FromNumber ¶
func DynamoAttributeValue_FromNumber(value *float64) DynamoAttributeValue
Sets a literal number.
For example: 1234 Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
func DynamoAttributeValue_FromNumberSet ¶
func DynamoAttributeValue_FromNumberSet(value *[]*float64) DynamoAttributeValue
Sets an attribute of type Number Set.
For example: "NS": ["42.2", "-19", "7.5", "3.14"] Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
func DynamoAttributeValue_FromString ¶
func DynamoAttributeValue_FromString(value *string) DynamoAttributeValue
Sets an attribute of type String.
For example: "S": "Hello" Strings may be literal values or as JsonPath. Example values:
- `DynamoAttributeValue.fromString('someValue')` - `DynamoAttributeValue.fromString(JsonPath.stringAt('$.bar'))`
func DynamoAttributeValue_FromStringSet ¶
func DynamoAttributeValue_FromStringSet(value *[]*string) DynamoAttributeValue
Sets an attribute of type String Set.
For example: "SS": ["Giraffe", "Hippo" ,"Zebra"].
func DynamoAttributeValue_ListFromJsonPath ¶
func DynamoAttributeValue_ListFromJsonPath(value *string) DynamoAttributeValue
Sets an attribute of type List.
For example: "L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"S", "Veggies"}].
func DynamoAttributeValue_MapFromJsonPath ¶
func DynamoAttributeValue_MapFromJsonPath(value *string) DynamoAttributeValue
Sets an attribute of type Map.
For example: "M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}}.
func DynamoAttributeValue_NumberFromString ¶
func DynamoAttributeValue_NumberFromString(value *string) DynamoAttributeValue
Sets an attribute of type Number.
For example: "N": "123.45" Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
Numbers may be expressed as literal strings or as JsonPath.
func DynamoAttributeValue_NumberSetFromStrings ¶
func DynamoAttributeValue_NumberSetFromStrings(value *[]*string) DynamoAttributeValue
Sets an attribute of type Number Set.
For example: "NS": ["42.2", "-19", "7.5", "3.14"] Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
Numbers may be expressed as literal strings or as JsonPath.
type DynamoConsumedCapacity ¶
type DynamoConsumedCapacity string
Determines the level of detail about provisioned throughput consumption that is returned.
const ( // The response includes the aggregate ConsumedCapacity for the operation, together with ConsumedCapacity for each table and secondary index that was accessed. DynamoConsumedCapacity_INDEXES DynamoConsumedCapacity = "INDEXES" // The response includes only the aggregate ConsumedCapacity for the operation. DynamoConsumedCapacity_TOTAL DynamoConsumedCapacity = "TOTAL" // No ConsumedCapacity details are included in the response. DynamoConsumedCapacity_NONE DynamoConsumedCapacity = "NONE" )
type DynamoDeleteItem ¶
type DynamoDeleteItem interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A StepFunctions task to call DynamoDeleteItem.
Example:
var myTable table tasks.NewDynamoDeleteItem(this, jsii.String("DeleteItem"), &DynamoDeleteItemProps{ Key: map[string]dynamoAttributeValue{ "MessageId": tasks.*dynamoAttributeValue_fromString(jsii.String("message-007")), }, Table: myTable, ResultPath: sfn.JsonPath_DISCARD(), })
func NewDynamoDeleteItem ¶
func NewDynamoDeleteItem(scope constructs.Construct, id *string, props *DynamoDeleteItemProps) DynamoDeleteItem
type DynamoDeleteItemProps ¶
type DynamoDeleteItemProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // Primary key of the item to retrieve. // // For the primary key, you must provide all of the attributes. // For example, with a simple primary key, you only need to provide a value for the partition key. // For a composite primary key, you must provide values for both the partition key and the sort key. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_GetItem.html#DDB-GetItem-request-Key // Key *map[string]DynamoAttributeValue `field:"required" json:"key" yaml:"key"` // The name of the table containing the requested item. Table awsdynamodb.ITable `field:"required" json:"table" yaml:"table"` // A condition that must be satisfied in order for a conditional DeleteItem to succeed. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DeleteItem.html#DDB-DeleteItem-request-ConditionExpression // // Default: - No condition expression. // ConditionExpression *string `field:"optional" json:"conditionExpression" yaml:"conditionExpression"` // One or more substitution tokens for attribute names in an expression. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DeleteItem.html#DDB-DeleteItem-request-ExpressionAttributeNames // // Default: - No expression attribute names. // ExpressionAttributeNames *map[string]*string `field:"optional" json:"expressionAttributeNames" yaml:"expressionAttributeNames"` // One or more values that can be substituted in an expression. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DeleteItem.html#DDB-DeleteItem-request-ExpressionAttributeValues // // Default: - No expression attribute values. // ExpressionAttributeValues *map[string]DynamoAttributeValue `field:"optional" json:"expressionAttributeValues" yaml:"expressionAttributeValues"` // Determines the level of detail about provisioned throughput consumption that is returned in the response. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DeleteItem.html#DDB-DeleteItem-request-ReturnConsumedCapacity // // Default: DynamoConsumedCapacity.NONE // ReturnConsumedCapacity DynamoConsumedCapacity `field:"optional" json:"returnConsumedCapacity" yaml:"returnConsumedCapacity"` // Determines whether item collection metrics are returned. // // If set to SIZE, the response includes statistics about item collections, if any, // that were modified during the operation are returned in the response. // If set to NONE (the default), no statistics are returned. // Default: DynamoItemCollectionMetrics.NONE // ReturnItemCollectionMetrics DynamoItemCollectionMetrics `field:"optional" json:"returnItemCollectionMetrics" yaml:"returnItemCollectionMetrics"` // Use ReturnValues if you want to get the item attributes as they appeared before they were deleted. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DeleteItem.html#DDB-DeleteItem-request-ReturnValues // // Default: DynamoReturnValues.NONE // ReturnValues DynamoReturnValues `field:"optional" json:"returnValues" yaml:"returnValues"` }
Properties for DynamoDeleteItem Task.
Example:
var myTable table tasks.NewDynamoDeleteItem(this, jsii.String("DeleteItem"), &DynamoDeleteItemProps{ Key: map[string]dynamoAttributeValue{ "MessageId": tasks.*dynamoAttributeValue_fromString(jsii.String("message-007")), }, Table: myTable, ResultPath: sfn.JsonPath_DISCARD(), })
type DynamoGetItem ¶
type DynamoGetItem interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A StepFunctions task to call DynamoGetItem.
Example:
var myTable table tasks.NewDynamoGetItem(this, jsii.String("Get Item"), &DynamoGetItemProps{ Key: map[string]dynamoAttributeValue{ "messageId": tasks.*dynamoAttributeValue_fromString(jsii.String("message-007")), }, Table: myTable, })
func NewDynamoGetItem ¶
func NewDynamoGetItem(scope constructs.Construct, id *string, props *DynamoGetItemProps) DynamoGetItem
type DynamoGetItemProps ¶
type DynamoGetItemProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // Primary key of the item to retrieve. // // For the primary key, you must provide all of the attributes. // For example, with a simple primary key, you only need to provide a value for the partition key. // For a composite primary key, you must provide values for both the partition key and the sort key. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_GetItem.html#DDB-GetItem-request-Key // Key *map[string]DynamoAttributeValue `field:"required" json:"key" yaml:"key"` // The name of the table containing the requested item. Table awsdynamodb.ITable `field:"required" json:"table" yaml:"table"` // Determines the read consistency model: If set to true, then the operation uses strongly consistent reads; // // otherwise, the operation uses eventually consistent reads. // Default: false. // ConsistentRead *bool `field:"optional" json:"consistentRead" yaml:"consistentRead"` // One or more substitution tokens for attribute names in an expression. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_GetItem.html#DDB-GetItem-request-ExpressionAttributeNames // // Default: - No expression attributes. // ExpressionAttributeNames *map[string]*string `field:"optional" json:"expressionAttributeNames" yaml:"expressionAttributeNames"` // An array of DynamoProjectionExpression that identifies one or more attributes to retrieve from the table. // // These attributes can include scalars, sets, or elements of a JSON document. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_GetItem.html#DDB-GetItem-request-ProjectionExpression // // Default: - No projection expression. // ProjectionExpression *[]DynamoProjectionExpression `field:"optional" json:"projectionExpression" yaml:"projectionExpression"` // Determines the level of detail about provisioned throughput consumption that is returned in the response. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_GetItem.html#DDB-GetItem-request-ReturnConsumedCapacity // // Default: DynamoConsumedCapacity.NONE // ReturnConsumedCapacity DynamoConsumedCapacity `field:"optional" json:"returnConsumedCapacity" yaml:"returnConsumedCapacity"` }
Properties for DynamoGetItem Task.
Example:
var myTable table tasks.NewDynamoGetItem(this, jsii.String("Get Item"), &DynamoGetItemProps{ Key: map[string]dynamoAttributeValue{ "messageId": tasks.*dynamoAttributeValue_fromString(jsii.String("message-007")), }, Table: myTable, })
type DynamoItemCollectionMetrics ¶
type DynamoItemCollectionMetrics string
Determines whether item collection metrics are returned.
const ( // If set to SIZE, the response includes statistics about item collections, if any, that were modified during the operation. DynamoItemCollectionMetrics_SIZE DynamoItemCollectionMetrics = "SIZE" // If set to NONE, no statistics are returned. DynamoItemCollectionMetrics_NONE DynamoItemCollectionMetrics = "NONE" )
type DynamoProjectionExpression ¶
type DynamoProjectionExpression interface { // Adds the array literal access for passed index. AtIndex(index *float64) DynamoProjectionExpression // converts and return the string expression. ToString() *string // Adds the passed attribute to the chain. WithAttribute(attr *string) DynamoProjectionExpression }
Class to generate projection expression.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" dynamoProjectionExpression := awscdk.Aws_stepfunctions_tasks.NewDynamoProjectionExpression()
func NewDynamoProjectionExpression ¶
func NewDynamoProjectionExpression() DynamoProjectionExpression
type DynamoPutItem ¶
type DynamoPutItem interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A StepFunctions task to call DynamoPutItem.
Example:
var myTable table tasks.NewDynamoPutItem(this, jsii.String("PutItem"), &DynamoPutItemProps{ Item: map[string]dynamoAttributeValue{ "MessageId": tasks.*dynamoAttributeValue_fromString(jsii.String("message-007")), "Text": tasks.*dynamoAttributeValue_fromString(sfn.JsonPath_stringAt(jsii.String("$.bar"))), "TotalCount": tasks.*dynamoAttributeValue_fromNumber(jsii.Number(10)), }, Table: myTable, })
func NewDynamoPutItem ¶
func NewDynamoPutItem(scope constructs.Construct, id *string, props *DynamoPutItemProps) DynamoPutItem
type DynamoPutItemProps ¶
type DynamoPutItemProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // A map of attribute name/value pairs, one for each attribute. // // Only the primary key attributes are required; // you can optionally provide other attribute name-value pairs for the item. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html#DDB-PutItem-request-Item // Item *map[string]DynamoAttributeValue `field:"required" json:"item" yaml:"item"` // The name of the table where the item should be written . Table awsdynamodb.ITable `field:"required" json:"table" yaml:"table"` // A condition that must be satisfied in order for a conditional PutItem operation to succeed. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html#DDB-PutItem-request-ConditionExpression // // Default: - No condition expression. // ConditionExpression *string `field:"optional" json:"conditionExpression" yaml:"conditionExpression"` // One or more substitution tokens for attribute names in an expression. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html#DDB-PutItem-request-ExpressionAttributeNames // // Default: - No expression attribute names. // ExpressionAttributeNames *map[string]*string `field:"optional" json:"expressionAttributeNames" yaml:"expressionAttributeNames"` // One or more values that can be substituted in an expression. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html#DDB-PutItem-request-ExpressionAttributeValues // // Default: - No expression attribute values. // ExpressionAttributeValues *map[string]DynamoAttributeValue `field:"optional" json:"expressionAttributeValues" yaml:"expressionAttributeValues"` // Determines the level of detail about provisioned throughput consumption that is returned in the response. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html#DDB-PutItem-request-ReturnConsumedCapacity // // Default: DynamoConsumedCapacity.NONE // ReturnConsumedCapacity DynamoConsumedCapacity `field:"optional" json:"returnConsumedCapacity" yaml:"returnConsumedCapacity"` // The item collection metrics to returned in the response. // See: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LSI.html#LSI.ItemCollections // // Default: DynamoItemCollectionMetrics.NONE // ReturnItemCollectionMetrics DynamoItemCollectionMetrics `field:"optional" json:"returnItemCollectionMetrics" yaml:"returnItemCollectionMetrics"` // Use ReturnValues if you want to get the item attributes as they appeared before they were updated with the PutItem request. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html#DDB-PutItem-request-ReturnValues // // Default: DynamoReturnValues.NONE // ReturnValues DynamoReturnValues `field:"optional" json:"returnValues" yaml:"returnValues"` }
Properties for DynamoPutItem Task.
Example:
var myTable table tasks.NewDynamoPutItem(this, jsii.String("PutItem"), &DynamoPutItemProps{ Item: map[string]dynamoAttributeValue{ "MessageId": tasks.*dynamoAttributeValue_fromString(jsii.String("message-007")), "Text": tasks.*dynamoAttributeValue_fromString(sfn.JsonPath_stringAt(jsii.String("$.bar"))), "TotalCount": tasks.*dynamoAttributeValue_fromNumber(jsii.Number(10)), }, Table: myTable, })
type DynamoReturnValues ¶
type DynamoReturnValues string
Use ReturnValues if you want to get the item attributes as they appear before or after they are changed.
const ( // Nothing is returned. DynamoReturnValues_NONE DynamoReturnValues = "NONE" // Returns all of the attributes of the item. DynamoReturnValues_ALL_OLD DynamoReturnValues = "ALL_OLD" // Returns only the updated attributes. DynamoReturnValues_UPDATED_OLD DynamoReturnValues = "UPDATED_OLD" // Returns all of the attributes of the item. DynamoReturnValues_ALL_NEW DynamoReturnValues = "ALL_NEW" // Returns only the updated attributes. DynamoReturnValues_UPDATED_NEW DynamoReturnValues = "UPDATED_NEW" )
type DynamoUpdateItem ¶
type DynamoUpdateItem interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A StepFunctions task to call DynamoUpdateItem.
Example:
var myTable table tasks.NewDynamoUpdateItem(this, jsii.String("UpdateItem"), &DynamoUpdateItemProps{ Key: map[string]dynamoAttributeValue{ "MessageId": tasks.*dynamoAttributeValue_fromString(jsii.String("message-007")), }, Table: myTable, ExpressionAttributeValues: map[string]*dynamoAttributeValue{ ":val": tasks.*dynamoAttributeValue_numberFromString(sfn.JsonPath_stringAt(jsii.String("$.Item.TotalCount.N"))), ":rand": tasks.*dynamoAttributeValue_fromNumber(jsii.Number(20)), }, UpdateExpression: jsii.String("SET TotalCount = :val + :rand"), })
func NewDynamoUpdateItem ¶
func NewDynamoUpdateItem(scope constructs.Construct, id *string, props *DynamoUpdateItemProps) DynamoUpdateItem
type DynamoUpdateItemProps ¶
type DynamoUpdateItemProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // Primary key of the item to retrieve. // // For the primary key, you must provide all of the attributes. // For example, with a simple primary key, you only need to provide a value for the partition key. // For a composite primary key, you must provide values for both the partition key and the sort key. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_GetItem.html#DDB-GetItem-request-Key // Key *map[string]DynamoAttributeValue `field:"required" json:"key" yaml:"key"` // The name of the table containing the requested item. Table awsdynamodb.ITable `field:"required" json:"table" yaml:"table"` // A condition that must be satisfied in order for a conditional DeleteItem to succeed. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateItem.html#DDB-UpdateItem-request-ConditionExpression // // Default: - No condition expression. // ConditionExpression *string `field:"optional" json:"conditionExpression" yaml:"conditionExpression"` // One or more substitution tokens for attribute names in an expression. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateItem.html#DDB-UpdateItem-request-ExpressionAttributeNames // // Default: - No expression attribute names. // ExpressionAttributeNames *map[string]*string `field:"optional" json:"expressionAttributeNames" yaml:"expressionAttributeNames"` // One or more values that can be substituted in an expression. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateItem.html#DDB-UpdateItem-request-ExpressionAttributeValues // // Default: - No expression attribute values. // ExpressionAttributeValues *map[string]DynamoAttributeValue `field:"optional" json:"expressionAttributeValues" yaml:"expressionAttributeValues"` // Determines the level of detail about provisioned throughput consumption that is returned in the response. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateItem.html#DDB-UpdateItem-request-ReturnConsumedCapacity // // Default: DynamoConsumedCapacity.NONE // ReturnConsumedCapacity DynamoConsumedCapacity `field:"optional" json:"returnConsumedCapacity" yaml:"returnConsumedCapacity"` // Determines whether item collection metrics are returned. // // If set to SIZE, the response includes statistics about item collections, if any, // that were modified during the operation are returned in the response. // If set to NONE (the default), no statistics are returned. // Default: DynamoItemCollectionMetrics.NONE // ReturnItemCollectionMetrics DynamoItemCollectionMetrics `field:"optional" json:"returnItemCollectionMetrics" yaml:"returnItemCollectionMetrics"` // Use ReturnValues if you want to get the item attributes as they appeared before they were deleted. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateItem.html#DDB-UpdateItem-request-ReturnValues // // Default: DynamoReturnValues.NONE // ReturnValues DynamoReturnValues `field:"optional" json:"returnValues" yaml:"returnValues"` // An expression that defines one or more attributes to be updated, the action to be performed on them, and new values for them. // See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateItem.html#DDB-UpdateItem-request-UpdateExpression // // Default: - No update expression. // UpdateExpression *string `field:"optional" json:"updateExpression" yaml:"updateExpression"` }
Properties for DynamoUpdateItem Task.
Example:
var myTable table tasks.NewDynamoUpdateItem(this, jsii.String("UpdateItem"), &DynamoUpdateItemProps{ Key: map[string]dynamoAttributeValue{ "MessageId": tasks.*dynamoAttributeValue_fromString(jsii.String("message-007")), }, Table: myTable, ExpressionAttributeValues: map[string]*dynamoAttributeValue{ ":val": tasks.*dynamoAttributeValue_numberFromString(sfn.JsonPath_stringAt(jsii.String("$.Item.TotalCount.N"))), ":rand": tasks.*dynamoAttributeValue_fromNumber(jsii.Number(20)), }, UpdateExpression: jsii.String("SET TotalCount = :val + :rand"), })
type EcsEc2LaunchTarget ¶
type EcsEc2LaunchTarget interface { IEcsLaunchTarget // Called when the EC2 launch type is configured on RunTask. Bind(_task EcsRunTask, launchTargetOptions *LaunchTargetBindOptions) *EcsLaunchTargetConfig }
Configuration for running an ECS task on EC2.
Example:
vpc := ec2.Vpc_FromLookup(this, jsii.String("Vpc"), &VpcLookupOptions{ IsDefault: jsii.Boolean(true), }) cluster := ecs.NewCluster(this, jsii.String("Ec2Cluster"), &ClusterProps{ Vpc: Vpc, }) cluster.AddCapacity(jsii.String("DefaultAutoScalingGroup"), &AddCapacityOptions{ InstanceType: ec2.NewInstanceType(jsii.String("t2.micro")), VpcSubnets: &SubnetSelection{ SubnetType: ec2.SubnetType_PUBLIC, }, }) taskDefinition := ecs.NewTaskDefinition(this, jsii.String("TD"), &TaskDefinitionProps{ Compatibility: ecs.Compatibility_EC2, }) taskDefinition.AddContainer(jsii.String("TheContainer"), &ContainerDefinitionOptions{ Image: ecs.ContainerImage_FromRegistry(jsii.String("foo/bar")), MemoryLimitMiB: jsii.Number(256), }) runTask := tasks.NewEcsRunTask(this, jsii.String("Run"), &EcsRunTaskProps{ IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, Cluster: Cluster, TaskDefinition: TaskDefinition, LaunchTarget: tasks.NewEcsEc2LaunchTarget(&EcsEc2LaunchTargetOptions{ PlacementStrategies: []placementStrategy{ ecs.*placementStrategy_SpreadAcrossInstances(), ecs.*placementStrategy_PackedByCpu(), ecs.*placementStrategy_Randomly(), }, PlacementConstraints: []placementConstraint{ ecs.*placementConstraint_MemberOf(jsii.String("blieptuut")), }, }), PropagatedTagSource: ecs.PropagatedTagSource_TASK_DEFINITION, })
See: https://docs.aws.amazon.com/AmazonECS/latest/userguide/launch_types.html#launch-type-ec2
func NewEcsEc2LaunchTarget ¶
func NewEcsEc2LaunchTarget(options *EcsEc2LaunchTargetOptions) EcsEc2LaunchTarget
type EcsEc2LaunchTargetOptions ¶
type EcsEc2LaunchTargetOptions struct { // Placement constraints. // Default: - None. // PlacementConstraints *[]awsecs.PlacementConstraint `field:"optional" json:"placementConstraints" yaml:"placementConstraints"` // Placement strategies. // Default: - None. // PlacementStrategies *[]awsecs.PlacementStrategy `field:"optional" json:"placementStrategies" yaml:"placementStrategies"` }
Options to run an ECS task on EC2 in StepFunctions and ECS.
Example:
vpc := ec2.Vpc_FromLookup(this, jsii.String("Vpc"), &VpcLookupOptions{ IsDefault: jsii.Boolean(true), }) cluster := ecs.NewCluster(this, jsii.String("Ec2Cluster"), &ClusterProps{ Vpc: Vpc, }) cluster.AddCapacity(jsii.String("DefaultAutoScalingGroup"), &AddCapacityOptions{ InstanceType: ec2.NewInstanceType(jsii.String("t2.micro")), VpcSubnets: &SubnetSelection{ SubnetType: ec2.SubnetType_PUBLIC, }, }) taskDefinition := ecs.NewTaskDefinition(this, jsii.String("TD"), &TaskDefinitionProps{ Compatibility: ecs.Compatibility_EC2, }) taskDefinition.AddContainer(jsii.String("TheContainer"), &ContainerDefinitionOptions{ Image: ecs.ContainerImage_FromRegistry(jsii.String("foo/bar")), MemoryLimitMiB: jsii.Number(256), }) runTask := tasks.NewEcsRunTask(this, jsii.String("Run"), &EcsRunTaskProps{ IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, Cluster: Cluster, TaskDefinition: TaskDefinition, LaunchTarget: tasks.NewEcsEc2LaunchTarget(&EcsEc2LaunchTargetOptions{ PlacementStrategies: []placementStrategy{ ecs.*placementStrategy_SpreadAcrossInstances(), ecs.*placementStrategy_PackedByCpu(), ecs.*placementStrategy_Randomly(), }, PlacementConstraints: []placementConstraint{ ecs.*placementConstraint_MemberOf(jsii.String("blieptuut")), }, }), PropagatedTagSource: ecs.PropagatedTagSource_TASK_DEFINITION, })
type EcsFargateLaunchTarget ¶
type EcsFargateLaunchTarget interface { IEcsLaunchTarget // Called when the Fargate launch type configured on RunTask. Bind(_task EcsRunTask, launchTargetOptions *LaunchTargetBindOptions) *EcsLaunchTargetConfig }
Configuration for running an ECS task on Fargate.
Example:
vpc := ec2.Vpc_FromLookup(this, jsii.String("Vpc"), &VpcLookupOptions{ IsDefault: jsii.Boolean(true), }) cluster := ecs.NewCluster(this, jsii.String("FargateCluster"), &ClusterProps{ Vpc: Vpc, }) taskDefinition := ecs.NewTaskDefinition(this, jsii.String("TD"), &TaskDefinitionProps{ MemoryMiB: jsii.String("512"), Cpu: jsii.String("256"), Compatibility: ecs.Compatibility_FARGATE, }) containerDefinition := taskDefinition.AddContainer(jsii.String("TheContainer"), &ContainerDefinitionOptions{ Image: ecs.ContainerImage_FromRegistry(jsii.String("foo/bar")), MemoryLimitMiB: jsii.Number(256), }) runTask := tasks.NewEcsRunTask(this, jsii.String("RunFargate"), &EcsRunTaskProps{ IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, Cluster: Cluster, TaskDefinition: TaskDefinition, AssignPublicIp: jsii.Boolean(true), ContainerOverrides: []containerOverride{ &containerOverride{ ContainerDefinition: *ContainerDefinition, Environment: []taskEnvironmentVariable{ &taskEnvironmentVariable{ Name: jsii.String("SOME_KEY"), Value: sfn.JsonPath_StringAt(jsii.String("$.SomeKey")), }, }, }, }, LaunchTarget: tasks.NewEcsFargateLaunchTarget(), PropagatedTagSource: ecs.PropagatedTagSource_TASK_DEFINITION, })
See: https://docs.aws.amazon.com/AmazonECS/latest/userguide/launch_types.html#launch-type-fargate
func NewEcsFargateLaunchTarget ¶
func NewEcsFargateLaunchTarget(options *EcsFargateLaunchTargetOptions) EcsFargateLaunchTarget
type EcsFargateLaunchTargetOptions ¶
type EcsFargateLaunchTargetOptions struct { // Refers to a specific runtime environment for Fargate task infrastructure. // // Fargate platform version is a combination of the kernel and container runtime versions. // See: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html // PlatformVersion awsecs.FargatePlatformVersion `field:"required" json:"platformVersion" yaml:"platformVersion"` }
Properties to define an ECS service.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" ecsFargateLaunchTargetOptions := &EcsFargateLaunchTargetOptions{ PlatformVersion: awscdk.Aws_ecs.FargatePlatformVersion_LATEST, }
type EcsLaunchTargetConfig ¶
type EcsLaunchTargetConfig struct { // Additional parameters to pass to the base task. // Default: - No additional parameters passed. // Parameters *map[string]interface{} `field:"optional" json:"parameters" yaml:"parameters"` }
Configuration options for the ECS launch type.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" var parameters interface{} ecsLaunchTargetConfig := &EcsLaunchTargetConfig{ Parameters: map[string]interface{}{ "parametersKey": parameters, }, }
type EcsRunTask ¶
type EcsRunTask interface { awsstepfunctions.TaskStateBase awsec2.IConnectable Branches() *[]awsstepfunctions.StateGraph Comment() *string // Manage allowed network traffic for this service. Connections() awsec2.Connections DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Run a Task on ECS or Fargate.
Example:
vpc := ec2.Vpc_FromLookup(this, jsii.String("Vpc"), &VpcLookupOptions{ IsDefault: jsii.Boolean(true), }) cluster := ecs.NewCluster(this, jsii.String("FargateCluster"), &ClusterProps{ Vpc: Vpc, }) taskDefinition := ecs.NewTaskDefinition(this, jsii.String("TD"), &TaskDefinitionProps{ MemoryMiB: jsii.String("512"), Cpu: jsii.String("256"), Compatibility: ecs.Compatibility_FARGATE, }) containerDefinition := taskDefinition.AddContainer(jsii.String("TheContainer"), &ContainerDefinitionOptions{ Image: ecs.ContainerImage_FromRegistry(jsii.String("foo/bar")), MemoryLimitMiB: jsii.Number(256), }) runTask := tasks.NewEcsRunTask(this, jsii.String("RunFargate"), &EcsRunTaskProps{ IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, Cluster: Cluster, TaskDefinition: TaskDefinition, AssignPublicIp: jsii.Boolean(true), ContainerOverrides: []containerOverride{ &containerOverride{ ContainerDefinition: *ContainerDefinition, Environment: []taskEnvironmentVariable{ &taskEnvironmentVariable{ Name: jsii.String("SOME_KEY"), Value: sfn.JsonPath_StringAt(jsii.String("$.SomeKey")), }, }, }, }, LaunchTarget: tasks.NewEcsFargateLaunchTarget(), PropagatedTagSource: ecs.PropagatedTagSource_TASK_DEFINITION, })
func NewEcsRunTask ¶
func NewEcsRunTask(scope constructs.Construct, id *string, props *EcsRunTaskProps) EcsRunTask
type EcsRunTaskProps ¶
type EcsRunTaskProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The ECS cluster to run the task on. Cluster awsecs.ICluster `field:"required" json:"cluster" yaml:"cluster"` // An Amazon ECS launch type determines the type of infrastructure on which your tasks and services are hosted. // See: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html // LaunchTarget IEcsLaunchTarget `field:"required" json:"launchTarget" yaml:"launchTarget"` // [disable-awslint:ref-via-interface] Task Definition used for running tasks in the service. // // Note: this must be TaskDefinition, and not ITaskDefinition, // as it requires properties that are not known for imported task definitions // If you want to run a RunTask with an imported task definition, // consider using CustomState. TaskDefinition awsecs.TaskDefinition `field:"required" json:"taskDefinition" yaml:"taskDefinition"` // Assign public IP addresses to each task. // Default: false. // AssignPublicIp *bool `field:"optional" json:"assignPublicIp" yaml:"assignPublicIp"` // Container setting overrides. // // Specify the container to use and the overrides to apply. // Default: - No overrides. // ContainerOverrides *[]*ContainerOverride `field:"optional" json:"containerOverrides" yaml:"containerOverrides"` // Cpu setting override. // See: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskOverride.html // // Default: - No override. // Cpu *string `field:"optional" json:"cpu" yaml:"cpu"` // Whether ECS Exec should be enabled. // See: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#ECS-RunTask-request-enableExecuteCommand // // Default: false. // EnableExecuteCommand *bool `field:"optional" json:"enableExecuteCommand" yaml:"enableExecuteCommand"` // Memory setting override. // See: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskOverride.html // // Default: - No override. // MemoryMiB *string `field:"optional" json:"memoryMiB" yaml:"memoryMiB"` // Specifies whether to propagate the tags from the task definition to the task. // // An error will be received if you specify the SERVICE option when running a task. // See: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#ECS-RunTask-request-propagateTags // // Default: - No tags are propagated. // PropagatedTagSource awsecs.PropagatedTagSource `field:"optional" json:"propagatedTagSource" yaml:"propagatedTagSource"` // The revision number of ECS task definition family. // Default: - '$latest'. // RevisionNumber *float64 `field:"optional" json:"revisionNumber" yaml:"revisionNumber"` // Existing security groups to use for the tasks. // Default: - A new security group is created. // SecurityGroups *[]awsec2.ISecurityGroup `field:"optional" json:"securityGroups" yaml:"securityGroups"` // Subnets to place the task's ENIs. // Default: - Public subnets if assignPublicIp is set. Private subnets otherwise. // Subnets *awsec2.SubnetSelection `field:"optional" json:"subnets" yaml:"subnets"` }
Properties for ECS Tasks.
Example:
vpc := ec2.Vpc_FromLookup(this, jsii.String("Vpc"), &VpcLookupOptions{ IsDefault: jsii.Boolean(true), }) cluster := ecs.NewCluster(this, jsii.String("FargateCluster"), &ClusterProps{ Vpc: Vpc, }) taskDefinition := ecs.NewTaskDefinition(this, jsii.String("TD"), &TaskDefinitionProps{ MemoryMiB: jsii.String("512"), Cpu: jsii.String("256"), Compatibility: ecs.Compatibility_FARGATE, }) containerDefinition := taskDefinition.AddContainer(jsii.String("TheContainer"), &ContainerDefinitionOptions{ Image: ecs.ContainerImage_FromRegistry(jsii.String("foo/bar")), MemoryLimitMiB: jsii.Number(256), }) runTask := tasks.NewEcsRunTask(this, jsii.String("RunFargate"), &EcsRunTaskProps{ IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, Cluster: Cluster, TaskDefinition: TaskDefinition, AssignPublicIp: jsii.Boolean(true), ContainerOverrides: []containerOverride{ &containerOverride{ ContainerDefinition: *ContainerDefinition, Environment: []taskEnvironmentVariable{ &taskEnvironmentVariable{ Name: jsii.String("SOME_KEY"), Value: sfn.JsonPath_StringAt(jsii.String("$.SomeKey")), }, }, }, }, LaunchTarget: tasks.NewEcsFargateLaunchTarget(), PropagatedTagSource: ecs.PropagatedTagSource_TASK_DEFINITION, })
type EksCall ¶
type EksCall interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string // No policies are required due to eks:call is an Http service integration and does not call and EKS API directly. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-eks.html#connect-eks-permissions // TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Call a EKS endpoint as a Task.
Example:
import "github.com/aws/aws-cdk-go/awscdk" myEksCluster := eks.NewCluster(this, jsii.String("my sample cluster"), &ClusterProps{ Version: eks.KubernetesVersion_V1_18(), ClusterName: jsii.String("myEksCluster"), }) tasks.NewEksCall(this, jsii.String("Call a EKS Endpoint"), &EksCallProps{ Cluster: myEksCluster, HttpMethod: tasks.HttpMethods_GET, HttpPath: jsii.String("/api/v1/namespaces/default/pods"), })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-eks.html
func NewEksCall ¶
func NewEksCall(scope constructs.Construct, id *string, props *EksCallProps) EksCall
type EksCallProps ¶
type EksCallProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The EKS cluster. Cluster awseks.ICluster `field:"required" json:"cluster" yaml:"cluster"` // HTTP method ("GET", "POST", "PUT", ...) part of HTTP request. HttpMethod HttpMethods `field:"required" json:"httpMethod" yaml:"httpMethod"` // HTTP path of the Kubernetes REST API operation For example: /api/v1/namespaces/default/pods. HttpPath *string `field:"required" json:"httpPath" yaml:"httpPath"` // Query Parameters part of HTTP request. // Default: - no query parameters. // QueryParameters *map[string]*[]*string `field:"optional" json:"queryParameters" yaml:"queryParameters"` // Request body part of HTTP request. // Default: - No request body. // RequestBody awsstepfunctions.TaskInput `field:"optional" json:"requestBody" yaml:"requestBody"` }
Properties for calling a EKS endpoint with EksCall.
Example:
import "github.com/aws/aws-cdk-go/awscdk" myEksCluster := eks.NewCluster(this, jsii.String("my sample cluster"), &ClusterProps{ Version: eks.KubernetesVersion_V1_18(), ClusterName: jsii.String("myEksCluster"), }) tasks.NewEksCall(this, jsii.String("Call a EKS Endpoint"), &EksCallProps{ Cluster: myEksCluster, HttpMethod: tasks.HttpMethods_GET, HttpPath: jsii.String("/api/v1/namespaces/default/pods"), })
type EksClusterInput ¶ added in v2.1.0
type EksClusterInput interface { // The name of the EKS Cluster. ClusterName() *string }
Class that supports methods which return the EKS cluster name depending on input type.
Example:
tasks.NewEmrContainersCreateVirtualCluster(this, jsii.String("Create a Virtual Cluster"), &EmrContainersCreateVirtualClusterProps{ EksCluster: tasks.EksClusterInput_FromTaskInput(sfn.TaskInput_FromText(jsii.String("clusterId"))), EksNamespace: jsii.String("specified-namespace"), })
func EksClusterInput_FromCluster ¶ added in v2.1.0
func EksClusterInput_FromCluster(cluster awseks.ICluster) EksClusterInput
Specify an existing EKS Cluster as the name for this Cluster.
func EksClusterInput_FromTaskInput ¶ added in v2.1.0
func EksClusterInput_FromTaskInput(taskInput awsstepfunctions.TaskInput) EksClusterInput
Specify a Task Input as the name for this Cluster.
type EmrAddStep ¶
type EmrAddStep interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions Task to add a Step to an EMR Cluster.
The StepConfiguration is defined as Parameters in the state machine definition.
OUTPUT: the StepId.
Example:
tasks.NewEmrAddStep(this, jsii.String("Task"), &EmrAddStepProps{ ClusterId: jsii.String("ClusterId"), Name: jsii.String("StepName"), Jar: jsii.String("Jar"), ActionOnFailure: tasks.ActionOnFailure_CONTINUE, })
func NewEmrAddStep ¶
func NewEmrAddStep(scope constructs.Construct, id *string, props *EmrAddStepProps) EmrAddStep
type EmrAddStepProps ¶
type EmrAddStepProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The ClusterId to add the Step to. ClusterId *string `field:"required" json:"clusterId" yaml:"clusterId"` // A path to a JAR file run during the step. // See: https://docs.aws.amazon.com/emr/latest/APIReference/API_HadoopJarStepConfig.html // Jar *string `field:"required" json:"jar" yaml:"jar"` // The name of the Step. // See: https://docs.aws.amazon.com/emr/latest/APIReference/API_StepConfig.html // Name *string `field:"required" json:"name" yaml:"name"` // The action to take when the cluster step fails. // See: https://docs.aws.amazon.com/emr/latest/APIReference/API_StepConfig.html // // Default: ActionOnFailure.CONTINUE // ActionOnFailure ActionOnFailure `field:"optional" json:"actionOnFailure" yaml:"actionOnFailure"` // A list of command line arguments passed to the JAR file's main function when executed. // See: https://docs.aws.amazon.com/emr/latest/APIReference/API_HadoopJarStepConfig.html // // Default: - No args. // Args *[]*string `field:"optional" json:"args" yaml:"args"` // The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. // See: https://docs.aws.amazon.com/emr/latest/APIReference/API_AddJobFlowSteps.html#API_AddJobFlowSteps_RequestSyntax // // Default: - Uses EC2 instance profile role. // ExecutionRoleArn *string `field:"optional" json:"executionRoleArn" yaml:"executionRoleArn"` // The name of the main class in the specified Java file. // // If not specified, the JAR file should specify a Main-Class in its manifest file. // See: https://docs.aws.amazon.com/emr/latest/APIReference/API_HadoopJarStepConfig.html // // Default: - No mainClass. // MainClass *string `field:"optional" json:"mainClass" yaml:"mainClass"` // A list of Java properties that are set when the step runs. // // You can use these properties to pass key value pairs to your main function. // See: https://docs.aws.amazon.com/emr/latest/APIReference/API_HadoopJarStepConfig.html // // Default: - No properties. // Properties *map[string]*string `field:"optional" json:"properties" yaml:"properties"` }
Properties for EmrAddStep.
Example:
tasks.NewEmrAddStep(this, jsii.String("Task"), &EmrAddStepProps{ ClusterId: jsii.String("ClusterId"), Name: jsii.String("StepName"), Jar: jsii.String("Jar"), ActionOnFailure: tasks.ActionOnFailure_CONTINUE, })
type EmrCancelStep ¶
type EmrCancelStep interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions Task to to cancel a Step on an EMR Cluster.
Example:
tasks.NewEmrCancelStep(this, jsii.String("Task"), &EmrCancelStepProps{ ClusterId: jsii.String("ClusterId"), StepId: jsii.String("StepId"), })
func NewEmrCancelStep ¶
func NewEmrCancelStep(scope constructs.Construct, id *string, props *EmrCancelStepProps) EmrCancelStep
type EmrCancelStepProps ¶
type EmrCancelStepProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The ClusterId to update. ClusterId *string `field:"required" json:"clusterId" yaml:"clusterId"` // The StepId to cancel. StepId *string `field:"required" json:"stepId" yaml:"stepId"` }
Properties for EmrCancelStep.
Example:
tasks.NewEmrCancelStep(this, jsii.String("Task"), &EmrCancelStepProps{ ClusterId: jsii.String("ClusterId"), StepId: jsii.String("StepId"), })
type EmrContainersCreateVirtualCluster ¶ added in v2.1.0
type EmrContainersCreateVirtualCluster interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Task that creates an EMR Containers virtual cluster from an EKS cluster.
Example:
tasks.NewEmrContainersCreateVirtualCluster(this, jsii.String("Create a Virtual Cluster"), &EmrContainersCreateVirtualClusterProps{ EksCluster: tasks.EksClusterInput_FromTaskInput(sfn.TaskInput_FromText(jsii.String("clusterId"))), EksNamespace: jsii.String("specified-namespace"), })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-emr-eks.html
func NewEmrContainersCreateVirtualCluster ¶ added in v2.1.0
func NewEmrContainersCreateVirtualCluster(scope constructs.Construct, id *string, props *EmrContainersCreateVirtualClusterProps) EmrContainersCreateVirtualCluster
type EmrContainersCreateVirtualClusterProps ¶ added in v2.1.0
type EmrContainersCreateVirtualClusterProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // EKS Cluster or task input that contains the name of the cluster. EksCluster EksClusterInput `field:"required" json:"eksCluster" yaml:"eksCluster"` // The namespace of an EKS cluster. // Default: - 'default'. // EksNamespace *string `field:"optional" json:"eksNamespace" yaml:"eksNamespace"` // The tags assigned to the virtual cluster. // Default: {}. // Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"` // Name of the virtual cluster that will be created. // Default: - the name of the state machine execution that runs this task and state name. // VirtualClusterName *string `field:"optional" json:"virtualClusterName" yaml:"virtualClusterName"` }
Properties to define a EMR Containers CreateVirtualCluster Task on an EKS cluster.
Example:
tasks.NewEmrContainersCreateVirtualCluster(this, jsii.String("Create a Virtual Cluster"), &EmrContainersCreateVirtualClusterProps{ EksCluster: tasks.EksClusterInput_FromTaskInput(sfn.TaskInput_FromText(jsii.String("clusterId"))), EksNamespace: jsii.String("specified-namespace"), })
type EmrContainersDeleteVirtualCluster ¶ added in v2.1.0
type EmrContainersDeleteVirtualCluster interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Deletes an EMR Containers virtual cluster as a Task.
Example:
tasks.NewEmrContainersDeleteVirtualCluster(this, jsii.String("Delete a Virtual Cluster"), &EmrContainersDeleteVirtualClusterProps{ VirtualClusterId: sfn.TaskInput_FromJsonPathAt(jsii.String("$.virtualCluster")), })
See: https://docs.amazonaws.cn/en_us/step-functions/latest/dg/connect-emr-eks.html
func NewEmrContainersDeleteVirtualCluster ¶ added in v2.1.0
func NewEmrContainersDeleteVirtualCluster(scope constructs.Construct, id *string, props *EmrContainersDeleteVirtualClusterProps) EmrContainersDeleteVirtualCluster
type EmrContainersDeleteVirtualClusterProps ¶ added in v2.1.0
type EmrContainersDeleteVirtualClusterProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The ID of the virtual cluster that will be deleted. VirtualClusterId awsstepfunctions.TaskInput `field:"required" json:"virtualClusterId" yaml:"virtualClusterId"` }
Properties to define a EMR Containers DeleteVirtualCluster Task.
Example:
tasks.NewEmrContainersDeleteVirtualCluster(this, jsii.String("Delete a Virtual Cluster"), &EmrContainersDeleteVirtualClusterProps{ VirtualClusterId: sfn.TaskInput_FromJsonPathAt(jsii.String("$.virtualCluster")), })
type EmrContainersStartJobRun ¶ added in v2.1.0
type EmrContainersStartJobRun interface { awsstepfunctions.TaskStateBase awsiam.IGrantable Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // The principal to grant permissions to. GrantPrincipal() awsiam.IPrincipal // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Starts a job run.
A job is a unit of work that you submit to Amazon EMR on EKS for execution. The work performed by the job can be defined by a Spark jar, PySpark script, or SparkSQL query. A job run is an execution of the job on the virtual cluster.
Example:
tasks.NewEmrContainersStartJobRun(this, jsii.String("EMR Containers Start Job Run"), &EmrContainersStartJobRunProps{ VirtualCluster: tasks.VirtualClusterInput_FromVirtualClusterId(jsii.String("de92jdei2910fwedz")), ReleaseLabel: tasks.ReleaseLabel_EMR_6_2_0(), JobName: jsii.String("EMR-Containers-Job"), JobDriver: &JobDriver{ SparkSubmitJobDriver: &SparkSubmitJobDriver{ EntryPoint: sfn.TaskInput_FromText(jsii.String("local:///usr/lib/spark/examples/src/main/python/pi.py")), }, }, ApplicationConfig: []applicationConfiguration{ &applicationConfiguration{ Classification: tasks.Classification_SPARK_DEFAULTS(), Properties: map[string]*string{ "spark.executor.instances": jsii.String("1"), "spark.executor.memory": jsii.String("512M"), }, }, }, })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-emr-eks.html
func NewEmrContainersStartJobRun ¶ added in v2.1.0
func NewEmrContainersStartJobRun(scope constructs.Construct, id *string, props *EmrContainersStartJobRunProps) EmrContainersStartJobRun
type EmrContainersStartJobRunProps ¶ added in v2.1.0
type EmrContainersStartJobRunProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The job driver for the job run. // See: https://docs.aws.amazon.com/emr-on-eks/latest/APIReference/API_JobDriver.html // JobDriver *JobDriver `field:"required" json:"jobDriver" yaml:"jobDriver"` // The Amazon EMR release version to use for the job run. ReleaseLabel ReleaseLabel `field:"required" json:"releaseLabel" yaml:"releaseLabel"` // The ID of the virtual cluster where the job will be run. VirtualCluster VirtualClusterInput `field:"required" json:"virtualCluster" yaml:"virtualCluster"` // The configurations for the application running in the job run. // // Maximum of 100 items. // See: https://docs.aws.amazon.com/emr-on-eks/latest/APIReference/API_Configuration.html // // Default: - No application config. // ApplicationConfig *[]*ApplicationConfiguration `field:"optional" json:"applicationConfig" yaml:"applicationConfig"` // The execution role for the job run. // // If `virtualClusterId` is from a JSON input path, an execution role must be provided. // If an execution role is provided, follow the documentation to update the role trust policy. // See: https://docs.aws.amazon.com/emr/latest/EMR-on-EKS-DevelopmentGuide/setting-up-trust-policy.html // // Default: - Automatically generated only when the provided `virtualClusterId` is not an encoded JSON path. // ExecutionRole awsiam.IRole `field:"optional" json:"executionRole" yaml:"executionRole"` // The name of the job run. // Default: - No job run name. // JobName *string `field:"optional" json:"jobName" yaml:"jobName"` // Configuration for monitoring the job run. // See: https://docs.aws.amazon.com/emr-on-eks/latest/APIReference/API_MonitoringConfiguration.html // // Default: - logging enabled and resources automatically generated if `monitoring.logging` is set to `true` // Monitoring *Monitoring `field:"optional" json:"monitoring" yaml:"monitoring"` // The tags assigned to job runs. // Default: - None. // Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"` }
The props for a EMR Containers StartJobRun Task.
Example:
tasks.NewEmrContainersStartJobRun(this, jsii.String("EMR Containers Start Job Run"), &EmrContainersStartJobRunProps{ VirtualCluster: tasks.VirtualClusterInput_FromVirtualClusterId(jsii.String("de92jdei2910fwedz")), ReleaseLabel: tasks.ReleaseLabel_EMR_6_2_0(), JobName: jsii.String("EMR-Containers-Job"), JobDriver: &JobDriver{ SparkSubmitJobDriver: &SparkSubmitJobDriver{ EntryPoint: sfn.TaskInput_FromText(jsii.String("local:///usr/lib/spark/examples/src/main/python/pi.py")), }, }, ApplicationConfig: []applicationConfiguration{ &applicationConfiguration{ Classification: tasks.Classification_SPARK_DEFAULTS(), Properties: map[string]*string{ "spark.executor.instances": jsii.String("1"), "spark.executor.memory": jsii.String("512M"), }, }, }, })
type EmrCreateCluster ¶
type EmrCreateCluster interface { awsstepfunctions.TaskStateBase // The autoscaling role for the EMR Cluster. // // Only available after task has been added to a state machine. AutoScalingRole() awsiam.IRole Branches() *[]awsstepfunctions.StateGraph // The instance role for the EMR Cluster. // // Only available after task has been added to a state machine. ClusterRole() awsiam.IRole Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // The service role for the EMR Cluster. // // Only available after task has been added to a state machine. ServiceRole() awsiam.IRole // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions Task to create an EMR Cluster.
The ClusterConfiguration is defined as Parameters in the state machine definition.
OUTPUT: the ClusterId.
Example:
clusterRole := iam.NewRole(this, jsii.String("ClusterRole"), &RoleProps{ AssumedBy: iam.NewServicePrincipal(jsii.String("ec2.amazonaws.com")), }) serviceRole := iam.NewRole(this, jsii.String("ServiceRole"), &RoleProps{ AssumedBy: iam.NewServicePrincipal(jsii.String("elasticmapreduce.amazonaws.com")), }) autoScalingRole := iam.NewRole(this, jsii.String("AutoScalingRole"), &RoleProps{ AssumedBy: iam.NewServicePrincipal(jsii.String("elasticmapreduce.amazonaws.com")), }) autoScalingRole.AssumeRolePolicy.AddStatements( iam.NewPolicyStatement(&PolicyStatementProps{ Effect: iam.Effect_ALLOW, Principals: []iPrincipal{ iam.NewServicePrincipal(jsii.String("application-autoscaling.amazonaws.com")), }, Actions: []*string{ jsii.String("sts:AssumeRole"), }, })) tasks.NewEmrCreateCluster(this, jsii.String("Create Cluster"), &EmrCreateClusterProps{ Instances: &InstancesConfigProperty{ }, ClusterRole: ClusterRole, Name: sfn.TaskInput_FromJsonPathAt(jsii.String("$.ClusterName")).value, ServiceRole: ServiceRole, AutoScalingRole: AutoScalingRole, })
func NewEmrCreateCluster ¶
func NewEmrCreateCluster(scope constructs.Construct, id *string, props *EmrCreateClusterProps) EmrCreateCluster
type EmrCreateClusterProps ¶
type EmrCreateClusterProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // A specification of the number and type of Amazon EC2 instances. Instances *EmrCreateCluster_InstancesConfigProperty `field:"required" json:"instances" yaml:"instances"` // The Name of the Cluster. Name *string `field:"required" json:"name" yaml:"name"` // A JSON string for selecting additional features. // Default: - None. // AdditionalInfo *string `field:"optional" json:"additionalInfo" yaml:"additionalInfo"` // A case-insensitive list of applications for Amazon EMR to install and configure when launching the cluster. // Default: - EMR selected default. // Applications *[]*EmrCreateCluster_ApplicationConfigProperty `field:"optional" json:"applications" yaml:"applications"` // An IAM role for automatic scaling policies. // Default: - A role will be created. // AutoScalingRole awsiam.IRole `field:"optional" json:"autoScalingRole" yaml:"autoScalingRole"` // The amount of idle time after which the cluster automatically terminates. // // You can specify a minimum of 60 seconds and a maximum of 604800 seconds (seven days). // Default: - No timeout. // AutoTerminationPolicyIdleTimeout awscdk.Duration `field:"optional" json:"autoTerminationPolicyIdleTimeout" yaml:"autoTerminationPolicyIdleTimeout"` // A list of bootstrap actions to run before Hadoop starts on the cluster nodes. // Default: - None. // BootstrapActions *[]*EmrCreateCluster_BootstrapActionConfigProperty `field:"optional" json:"bootstrapActions" yaml:"bootstrapActions"` // Also called instance profile and EC2 role. // // An IAM role for an EMR cluster. The EC2 instances of the cluster assume this role. // // This attribute has been renamed from jobFlowRole to clusterRole to align with other ERM/StepFunction integration parameters. // Default: - * A Role will be created. // ClusterRole awsiam.IRole `field:"optional" json:"clusterRole" yaml:"clusterRole"` // The list of configurations supplied for the EMR cluster you are creating. // Default: - None. // Configurations *[]*EmrCreateCluster_ConfigurationProperty `field:"optional" json:"configurations" yaml:"configurations"` // The ID of a custom Amazon EBS-backed Linux AMI. // Default: - None. // CustomAmiId *string `field:"optional" json:"customAmiId" yaml:"customAmiId"` // The size of the EBS root device volume of the Linux AMI that is used for each EC2 instance. // Default: - EMR selected default. // EbsRootVolumeSize awscdk.Size `field:"optional" json:"ebsRootVolumeSize" yaml:"ebsRootVolumeSize"` // Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. // Default: - None. // KerberosAttributes *EmrCreateCluster_KerberosAttributesProperty `field:"optional" json:"kerberosAttributes" yaml:"kerberosAttributes"` // The location in Amazon S3 to write the log files of the job flow. // Default: - None. // LogUri *string `field:"optional" json:"logUri" yaml:"logUri"` // The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster. // Default: - EMR selected default. // ReleaseLabel *string `field:"optional" json:"releaseLabel" yaml:"releaseLabel"` // Specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. // Default: - EMR selected default. // ScaleDownBehavior EmrCreateCluster_EmrClusterScaleDownBehavior `field:"optional" json:"scaleDownBehavior" yaml:"scaleDownBehavior"` // The name of a security configuration to apply to the cluster. // Default: - None. // SecurityConfiguration *string `field:"optional" json:"securityConfiguration" yaml:"securityConfiguration"` // The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf. // Default: - A role will be created that Amazon EMR service can assume. // ServiceRole awsiam.IRole `field:"optional" json:"serviceRole" yaml:"serviceRole"` // Specifies the step concurrency level to allow multiple steps to run in parallel. // // Requires EMR release label 5.28.0 or above. // Must be in range [1, 256]. // Default: 1 - no step concurrency allowed. // StepConcurrencyLevel *float64 `field:"optional" json:"stepConcurrencyLevel" yaml:"stepConcurrencyLevel"` // A list of tags to associate with a cluster and propagate to Amazon EC2 instances. // Default: - None. // Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"` // A value of true indicates that all IAM users in the AWS account can perform cluster actions if they have the proper IAM policy permissions. // Default: true. // VisibleToAllUsers *bool `field:"optional" json:"visibleToAllUsers" yaml:"visibleToAllUsers"` }
Properties for EmrCreateCluster.
See the RunJobFlow API for complete documentation on input parameters.
Example:
clusterRole := iam.NewRole(this, jsii.String("ClusterRole"), &RoleProps{ AssumedBy: iam.NewServicePrincipal(jsii.String("ec2.amazonaws.com")), }) serviceRole := iam.NewRole(this, jsii.String("ServiceRole"), &RoleProps{ AssumedBy: iam.NewServicePrincipal(jsii.String("elasticmapreduce.amazonaws.com")), }) autoScalingRole := iam.NewRole(this, jsii.String("AutoScalingRole"), &RoleProps{ AssumedBy: iam.NewServicePrincipal(jsii.String("elasticmapreduce.amazonaws.com")), }) autoScalingRole.AssumeRolePolicy.AddStatements( iam.NewPolicyStatement(&PolicyStatementProps{ Effect: iam.Effect_ALLOW, Principals: []iPrincipal{ iam.NewServicePrincipal(jsii.String("application-autoscaling.amazonaws.com")), }, Actions: []*string{ jsii.String("sts:AssumeRole"), }, })) tasks.NewEmrCreateCluster(this, jsii.String("Create Cluster"), &EmrCreateClusterProps{ Instances: &InstancesConfigProperty{ }, ClusterRole: ClusterRole, Name: sfn.TaskInput_FromJsonPathAt(jsii.String("$.ClusterName")).value, ServiceRole: ServiceRole, AutoScalingRole: AutoScalingRole, })
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_RunJobFlow.html
type EmrCreateCluster_ApplicationConfigProperty ¶
type EmrCreateCluster_ApplicationConfigProperty struct { // The name of the application. Name *string `field:"required" json:"name" yaml:"name"` // This option is for advanced users only. // // This is meta information about third-party applications that third-party vendors use // for testing purposes. // Default: No additionalInfo. // AdditionalInfo *map[string]*string `field:"optional" json:"additionalInfo" yaml:"additionalInfo"` // Arguments for Amazon EMR to pass to the application. // Default: No args. // Args *[]*string `field:"optional" json:"args" yaml:"args"` // The version of the application. // Default: No version. // Version *string `field:"optional" json:"version" yaml:"version"` }
Properties for the EMR Cluster Applications.
Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to install and configure when launching the cluster.
See the RunJobFlow API for complete documentation on input parameters.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" applicationConfigProperty := &ApplicationConfigProperty{ Name: jsii.String("name"), // the properties below are optional AdditionalInfo: map[string]*string{ "additionalInfoKey": jsii.String("additionalInfo"), }, Args: []*string{ jsii.String("args"), }, Version: jsii.String("version"), }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_Application.html
type EmrCreateCluster_AutoScalingPolicyProperty ¶
type EmrCreateCluster_AutoScalingPolicyProperty struct { // The upper and lower EC2 instance limits for an automatic scaling policy. // // Automatic scaling activity will not cause an instance // group to grow above or below these limits. Constraints *EmrCreateCluster_ScalingConstraintsProperty `field:"required" json:"constraints" yaml:"constraints"` // The scale-in and scale-out rules that comprise the automatic scaling policy. Rules *[]*EmrCreateCluster_ScalingRuleProperty `field:"required" json:"rules" yaml:"rules"` }
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" autoScalingPolicyProperty := &AutoScalingPolicyProperty{ Constraints: &ScalingConstraintsProperty{ MaxCapacity: jsii.Number(123), MinCapacity: jsii.Number(123), }, Rules: []scalingRuleProperty{ &scalingRuleProperty{ Action: &ScalingActionProperty{ SimpleScalingPolicyConfiguration: &SimpleScalingPolicyConfigurationProperty{ ScalingAdjustment: jsii.Number(123), // the properties below are optional AdjustmentType: awscdk.Aws_stepfunctions_tasks.EmrCreateCluster.ScalingAdjustmentType_CHANGE_IN_CAPACITY, CoolDown: jsii.Number(123), }, // the properties below are optional Market: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.InstanceMarket_ON_DEMAND, }, Name: jsii.String("name"), Trigger: &ScalingTriggerProperty{ CloudWatchAlarmDefinition: &CloudWatchAlarmDefinitionProperty{ ComparisonOperator: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmComparisonOperator_GREATER_THAN_OR_EQUAL, MetricName: jsii.String("metricName"), Period: cdk.Duration_Minutes(jsii.Number(30)), // the properties below are optional Dimensions: []metricDimensionProperty{ &metricDimensionProperty{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, EvaluationPeriods: jsii.Number(123), Namespace: jsii.String("namespace"), Statistic: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmStatistic_SAMPLE_COUNT, Threshold: jsii.Number(123), Unit: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmUnit_NONE, }, }, // the properties below are optional Description: jsii.String("description"), }, }, }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_AutoScalingPolicy.html
type EmrCreateCluster_BootstrapActionConfigProperty ¶
type EmrCreateCluster_BootstrapActionConfigProperty struct { // The name of the bootstrap action. Name *string `field:"required" json:"name" yaml:"name"` // The script run by the bootstrap action. ScriptBootstrapAction *EmrCreateCluster_ScriptBootstrapActionConfigProperty `field:"required" json:"scriptBootstrapAction" yaml:"scriptBootstrapAction"` }
Configuration of a bootstrap action.
See the RunJobFlow API for complete documentation on input parameters.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" bootstrapActionConfigProperty := &BootstrapActionConfigProperty{ Name: jsii.String("name"), ScriptBootstrapAction: &ScriptBootstrapActionConfigProperty{ Path: jsii.String("path"), // the properties below are optional Args: []*string{ jsii.String("args"), }, }, }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_BootstrapActionConfig.html
type EmrCreateCluster_CloudWatchAlarmComparisonOperator ¶
type EmrCreateCluster_CloudWatchAlarmComparisonOperator string
CloudWatch Alarm Comparison Operators.
const ( // GREATER_THAN_OR_EQUAL. EmrCreateCluster_CloudWatchAlarmComparisonOperator_GREATER_THAN_OR_EQUAL EmrCreateCluster_CloudWatchAlarmComparisonOperator = "GREATER_THAN_OR_EQUAL" // GREATER_THAN. EmrCreateCluster_CloudWatchAlarmComparisonOperator_GREATER_THAN EmrCreateCluster_CloudWatchAlarmComparisonOperator = "GREATER_THAN" // LESS_THAN. EmrCreateCluster_CloudWatchAlarmComparisonOperator_LESS_THAN EmrCreateCluster_CloudWatchAlarmComparisonOperator = "LESS_THAN" // LESS_THAN_OR_EQUAL. EmrCreateCluster_CloudWatchAlarmComparisonOperator_LESS_THAN_OR_EQUAL EmrCreateCluster_CloudWatchAlarmComparisonOperator = "LESS_THAN_OR_EQUAL" )
type EmrCreateCluster_CloudWatchAlarmDefinitionProperty ¶
type EmrCreateCluster_CloudWatchAlarmDefinitionProperty struct { // Determines how the metric specified by MetricName is compared to the value specified by Threshold. ComparisonOperator EmrCreateCluster_CloudWatchAlarmComparisonOperator `field:"required" json:"comparisonOperator" yaml:"comparisonOperator"` // The name of the CloudWatch metric that is watched to determine an alarm condition. MetricName *string `field:"required" json:"metricName" yaml:"metricName"` // The period, in seconds, over which the statistic is applied. // // EMR CloudWatch metrics are emitted every five minutes (300 seconds), so if // an EMR CloudWatch metric is specified, specify 300. Period awscdk.Duration `field:"required" json:"period" yaml:"period"` // A CloudWatch metric dimension. // Default: - No dimensions. // Dimensions *[]*EmrCreateCluster_MetricDimensionProperty `field:"optional" json:"dimensions" yaml:"dimensions"` // The number of periods, in five-minute increments, during which the alarm condition must exist before the alarm triggers automatic scaling activity. // Default: 1. // EvaluationPeriods *float64 `field:"optional" json:"evaluationPeriods" yaml:"evaluationPeriods"` // The namespace for the CloudWatch metric. // Default: 'AWS/ElasticMapReduce'. // Namespace *string `field:"optional" json:"namespace" yaml:"namespace"` // The statistic to apply to the metric associated with the alarm. // Default: CloudWatchAlarmStatistic.AVERAGE // Statistic EmrCreateCluster_CloudWatchAlarmStatistic `field:"optional" json:"statistic" yaml:"statistic"` // The value against which the specified statistic is compared. // Default: - None. // Threshold *float64 `field:"optional" json:"threshold" yaml:"threshold"` // The unit of measure associated with the CloudWatch metric being watched. // // The value specified for Unit must correspond to the units // specified in the CloudWatch metric. // Default: CloudWatchAlarmUnit.NONE // Unit EmrCreateCluster_CloudWatchAlarmUnit `field:"optional" json:"unit" yaml:"unit"` }
The definition of a CloudWatch metric alarm, which determines when an automatic scaling activity is triggered.
When the defined alarm conditions are satisfied, scaling activity begins.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" cloudWatchAlarmDefinitionProperty := &CloudWatchAlarmDefinitionProperty{ ComparisonOperator: awscdk.Aws_stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmComparisonOperator_GREATER_THAN_OR_EQUAL, MetricName: jsii.String("metricName"), Period: cdk.Duration_Minutes(jsii.Number(30)), // the properties below are optional Dimensions: []metricDimensionProperty{ &metricDimensionProperty{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, EvaluationPeriods: jsii.Number(123), Namespace: jsii.String("namespace"), Statistic: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmStatistic_SAMPLE_COUNT, Threshold: jsii.Number(123), Unit: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmUnit_NONE, }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_CloudWatchAlarmDefinition.html
type EmrCreateCluster_CloudWatchAlarmStatistic ¶
type EmrCreateCluster_CloudWatchAlarmStatistic string
CloudWatch Alarm Statistics.
const ( // SAMPLE_COUNT. EmrCreateCluster_CloudWatchAlarmStatistic_SAMPLE_COUNT EmrCreateCluster_CloudWatchAlarmStatistic = "SAMPLE_COUNT" // AVERAGE. EmrCreateCluster_CloudWatchAlarmStatistic_AVERAGE EmrCreateCluster_CloudWatchAlarmStatistic = "AVERAGE" // SUM. EmrCreateCluster_CloudWatchAlarmStatistic_SUM EmrCreateCluster_CloudWatchAlarmStatistic = "SUM" // MINIMUM. EmrCreateCluster_CloudWatchAlarmStatistic_MINIMUM EmrCreateCluster_CloudWatchAlarmStatistic = "MINIMUM" // MAXIMUM. EmrCreateCluster_CloudWatchAlarmStatistic_MAXIMUM EmrCreateCluster_CloudWatchAlarmStatistic = "MAXIMUM" )
type EmrCreateCluster_CloudWatchAlarmUnit ¶
type EmrCreateCluster_CloudWatchAlarmUnit string
CloudWatch Alarm Units.
const ( // NONE. EmrCreateCluster_CloudWatchAlarmUnit_NONE EmrCreateCluster_CloudWatchAlarmUnit = "NONE" // SECONDS. EmrCreateCluster_CloudWatchAlarmUnit_SECONDS EmrCreateCluster_CloudWatchAlarmUnit = "SECONDS" // MICRO_SECONDS. EmrCreateCluster_CloudWatchAlarmUnit_MICRO_SECONDS EmrCreateCluster_CloudWatchAlarmUnit = "MICRO_SECONDS" // MILLI_SECONDS. EmrCreateCluster_CloudWatchAlarmUnit_MILLI_SECONDS EmrCreateCluster_CloudWatchAlarmUnit = "MILLI_SECONDS" // BYTES. EmrCreateCluster_CloudWatchAlarmUnit_BYTES EmrCreateCluster_CloudWatchAlarmUnit = "BYTES" // KILO_BYTES. EmrCreateCluster_CloudWatchAlarmUnit_KILO_BYTES EmrCreateCluster_CloudWatchAlarmUnit = "KILO_BYTES" // MEGA_BYTES. EmrCreateCluster_CloudWatchAlarmUnit_MEGA_BYTES EmrCreateCluster_CloudWatchAlarmUnit = "MEGA_BYTES" // GIGA_BYTES. EmrCreateCluster_CloudWatchAlarmUnit_GIGA_BYTES EmrCreateCluster_CloudWatchAlarmUnit = "GIGA_BYTES" // TERA_BYTES. EmrCreateCluster_CloudWatchAlarmUnit_TERA_BYTES EmrCreateCluster_CloudWatchAlarmUnit = "TERA_BYTES" // BITS. EmrCreateCluster_CloudWatchAlarmUnit_BITS EmrCreateCluster_CloudWatchAlarmUnit = "BITS" // KILO_BITS. EmrCreateCluster_CloudWatchAlarmUnit_KILO_BITS EmrCreateCluster_CloudWatchAlarmUnit = "KILO_BITS" // MEGA_BITS. EmrCreateCluster_CloudWatchAlarmUnit_MEGA_BITS EmrCreateCluster_CloudWatchAlarmUnit = "MEGA_BITS" // GIGA_BITS. EmrCreateCluster_CloudWatchAlarmUnit_GIGA_BITS EmrCreateCluster_CloudWatchAlarmUnit = "GIGA_BITS" // TERA_BITS. EmrCreateCluster_CloudWatchAlarmUnit_TERA_BITS EmrCreateCluster_CloudWatchAlarmUnit = "TERA_BITS" // PERCENT. EmrCreateCluster_CloudWatchAlarmUnit_PERCENT EmrCreateCluster_CloudWatchAlarmUnit = "PERCENT" // COUNT. EmrCreateCluster_CloudWatchAlarmUnit_COUNT EmrCreateCluster_CloudWatchAlarmUnit = "COUNT" // BYTES_PER_SECOND. EmrCreateCluster_CloudWatchAlarmUnit_BYTES_PER_SECOND EmrCreateCluster_CloudWatchAlarmUnit = "BYTES_PER_SECOND" // KILO_BYTES_PER_SECOND. EmrCreateCluster_CloudWatchAlarmUnit_KILO_BYTES_PER_SECOND EmrCreateCluster_CloudWatchAlarmUnit = "KILO_BYTES_PER_SECOND" // MEGA_BYTES_PER_SECOND. EmrCreateCluster_CloudWatchAlarmUnit_MEGA_BYTES_PER_SECOND EmrCreateCluster_CloudWatchAlarmUnit = "MEGA_BYTES_PER_SECOND" // GIGA_BYTES_PER_SECOND. EmrCreateCluster_CloudWatchAlarmUnit_GIGA_BYTES_PER_SECOND EmrCreateCluster_CloudWatchAlarmUnit = "GIGA_BYTES_PER_SECOND" // TERA_BYTES_PER_SECOND. EmrCreateCluster_CloudWatchAlarmUnit_TERA_BYTES_PER_SECOND EmrCreateCluster_CloudWatchAlarmUnit = "TERA_BYTES_PER_SECOND" // BITS_PER_SECOND. EmrCreateCluster_CloudWatchAlarmUnit_BITS_PER_SECOND EmrCreateCluster_CloudWatchAlarmUnit = "BITS_PER_SECOND" // KILO_BITS_PER_SECOND. EmrCreateCluster_CloudWatchAlarmUnit_KILO_BITS_PER_SECOND EmrCreateCluster_CloudWatchAlarmUnit = "KILO_BITS_PER_SECOND" // MEGA_BITS_PER_SECOND. EmrCreateCluster_CloudWatchAlarmUnit_MEGA_BITS_PER_SECOND EmrCreateCluster_CloudWatchAlarmUnit = "MEGA_BITS_PER_SECOND" // GIGA_BITS_PER_SECOND. EmrCreateCluster_CloudWatchAlarmUnit_GIGA_BITS_PER_SECOND EmrCreateCluster_CloudWatchAlarmUnit = "GIGA_BITS_PER_SECOND" // TERA_BITS_PER_SECOND. EmrCreateCluster_CloudWatchAlarmUnit_TERA_BITS_PER_SECOND EmrCreateCluster_CloudWatchAlarmUnit = "TERA_BITS_PER_SECOND" // COUNT_PER_SECOND. EmrCreateCluster_CloudWatchAlarmUnit_COUNT_PER_SECOND EmrCreateCluster_CloudWatchAlarmUnit = "COUNT_PER_SECOND" )
type EmrCreateCluster_ConfigurationProperty ¶
type EmrCreateCluster_ConfigurationProperty struct { // The classification within a configuration. // Default: No classification. // Classification *string `field:"optional" json:"classification" yaml:"classification"` // A list of additional configurations to apply within a configuration object. // Default: No configurations. // Configurations *[]*EmrCreateCluster_ConfigurationProperty `field:"optional" json:"configurations" yaml:"configurations"` // A set of properties specified within a configuration classification. // Default: No properties. // Properties *map[string]*string `field:"optional" json:"properties" yaml:"properties"` }
An optional configuration specification to be used when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR.
See the RunJobFlow API for complete documentation on input parameters.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" var configurationProperty_ configurationProperty configurationProperty := &configurationProperty{ Classification: jsii.String("classification"), Configurations: []*configurationProperty{ configurationProperty_, }, Properties: map[string]*string{ "propertiesKey": jsii.String("properties"), }, }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_Configuration.html
type EmrCreateCluster_EbsBlockDeviceConfigProperty ¶
type EmrCreateCluster_EbsBlockDeviceConfigProperty struct { // EBS volume specifications such as volume type, IOPS, and size (GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster. VolumeSpecification *EmrCreateCluster_VolumeSpecificationProperty `field:"required" json:"volumeSpecification" yaml:"volumeSpecification"` // Number of EBS volumes with a specific volume configuration that will be associated with every instance in the instance group. // Default: EMR selected default. // VolumesPerInstance *float64 `field:"optional" json:"volumesPerInstance" yaml:"volumesPerInstance"` }
Configuration of requested EBS block device associated with the instance group with count of volumes that will be associated to every instance.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" var size size ebsBlockDeviceConfigProperty := &EbsBlockDeviceConfigProperty{ VolumeSpecification: &VolumeSpecificationProperty{ VolumeSize: size, VolumeType: awscdk.Aws_stepfunctions_tasks.EmrCreateCluster.EbsBlockDeviceVolumeType_GP3, // the properties below are optional Iops: jsii.Number(123), }, // the properties below are optional VolumesPerInstance: jsii.Number(123), }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_EbsBlockDeviceConfig.html
type EmrCreateCluster_EbsBlockDeviceVolumeType ¶
type EmrCreateCluster_EbsBlockDeviceVolumeType string
EBS Volume Types. See: https://docs.aws.amazon.com/emr/latest/APIReference/API_VolumeSpecification.html#EMR-Type-VolumeSpecification-VolumeType
const ( // gp3 Volume Type. EmrCreateCluster_EbsBlockDeviceVolumeType_GP3 EmrCreateCluster_EbsBlockDeviceVolumeType = "GP3" // gp2 Volume Type. EmrCreateCluster_EbsBlockDeviceVolumeType_GP2 EmrCreateCluster_EbsBlockDeviceVolumeType = "GP2" // io1 Volume Type. EmrCreateCluster_EbsBlockDeviceVolumeType_IO1 EmrCreateCluster_EbsBlockDeviceVolumeType = "IO1" // st1 Volume Type. EmrCreateCluster_EbsBlockDeviceVolumeType_ST1 EmrCreateCluster_EbsBlockDeviceVolumeType = "ST1" // sc1 Volume Type. EmrCreateCluster_EbsBlockDeviceVolumeType_SC1 EmrCreateCluster_EbsBlockDeviceVolumeType = "SC1" // Standard Volume Type. EmrCreateCluster_EbsBlockDeviceVolumeType_STANDARD EmrCreateCluster_EbsBlockDeviceVolumeType = "STANDARD" )
type EmrCreateCluster_EbsConfigurationProperty ¶
type EmrCreateCluster_EbsConfigurationProperty struct { // An array of Amazon EBS volume specifications attached to a cluster instance. // Default: - None. // EbsBlockDeviceConfigs *[]*EmrCreateCluster_EbsBlockDeviceConfigProperty `field:"optional" json:"ebsBlockDeviceConfigs" yaml:"ebsBlockDeviceConfigs"` // Indicates whether an Amazon EBS volume is EBS-optimized. // Default: - EMR selected default. // EbsOptimized *bool `field:"optional" json:"ebsOptimized" yaml:"ebsOptimized"` }
The Amazon EBS configuration of a cluster instance.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" var size size ebsConfigurationProperty := &EbsConfigurationProperty{ EbsBlockDeviceConfigs: []ebsBlockDeviceConfigProperty{ &ebsBlockDeviceConfigProperty{ VolumeSpecification: &VolumeSpecificationProperty{ VolumeSize: size, VolumeType: awscdk.Aws_stepfunctions_tasks.EmrCreateCluster.EbsBlockDeviceVolumeType_GP3, // the properties below are optional Iops: jsii.Number(123), }, // the properties below are optional VolumesPerInstance: jsii.Number(123), }, }, EbsOptimized: jsii.Boolean(false), }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_EbsConfiguration.html
type EmrCreateCluster_EmrClusterScaleDownBehavior ¶
type EmrCreateCluster_EmrClusterScaleDownBehavior string
The Cluster ScaleDownBehavior specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. See: https://docs.aws.amazon.com/emr/latest/APIReference/API_RunJobFlow.html#EMR-RunJobFlow-request-ScaleDownBehavior
const ( // Indicates that Amazon EMR terminates nodes at the instance-hour boundary, regardless of when the request to terminate the instance was submitted. // // This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version EmrCreateCluster_EmrClusterScaleDownBehavior_TERMINATE_AT_INSTANCE_HOUR EmrCreateCluster_EmrClusterScaleDownBehavior = "TERMINATE_AT_INSTANCE_HOUR" // Indicates that Amazon EMR adds nodes to a deny list and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. EmrCreateCluster_EmrClusterScaleDownBehavior_TERMINATE_AT_TASK_COMPLETION EmrCreateCluster_EmrClusterScaleDownBehavior = "TERMINATE_AT_TASK_COMPLETION" )
type EmrCreateCluster_InstanceFleetConfigProperty ¶
type EmrCreateCluster_InstanceFleetConfigProperty struct { // The node type that the instance fleet hosts. // // Valid values are MASTER,CORE,and TASK. InstanceFleetType EmrCreateCluster_InstanceRoleType `field:"required" json:"instanceFleetType" yaml:"instanceFleetType"` // The instance type configurations that define the EC2 instances in the instance fleet. // Default: No instanceTpeConfigs. // InstanceTypeConfigs *[]*EmrCreateCluster_InstanceTypeConfigProperty `field:"optional" json:"instanceTypeConfigs" yaml:"instanceTypeConfigs"` // The launch specification for the instance fleet. // Default: No launchSpecifications. // LaunchSpecifications *EmrCreateCluster_InstanceFleetProvisioningSpecificationsProperty `field:"optional" json:"launchSpecifications" yaml:"launchSpecifications"` // The friendly name of the instance fleet. // Default: No name. // Name *string `field:"optional" json:"name" yaml:"name"` // The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision. // // If not specified or set to 0, only Spot Instances are provisioned for the instance fleet using `targetSpotCapacity`. // // At least one of `targetSpotCapacity` and `targetOnDemandCapacity` should be greater than 0. // For a master instance fleet, only one of `targetSpotCapacity` and `targetOnDemandCapacity` can be specified, and its value // must be 1. // Default: No targetOnDemandCapacity. // TargetOnDemandCapacity *float64 `field:"optional" json:"targetOnDemandCapacity" yaml:"targetOnDemandCapacity"` // The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision. // // If not specified or set to 0, only On-Demand Instances are provisioned for the instance fleet using `targetOnDemandCapacity`. // // At least one of `targetSpotCapacity` and `targetOnDemandCapacity` should be greater than 0. // For a master instance fleet, only one of `targetSpotCapacity` and `targetOnDemandCapacity` can be specified, and its value // must be 1. // Default: No targetSpotCapacity. // TargetSpotCapacity *float64 `field:"optional" json:"targetSpotCapacity" yaml:"targetSpotCapacity"` }
The configuration that defines an instance fleet.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" var configurationProperty_ configurationProperty var size size instanceFleetConfigProperty := &InstanceFleetConfigProperty{ InstanceFleetType: awscdk.Aws_stepfunctions_tasks.EmrCreateCluster.InstanceRoleType_MASTER, // the properties below are optional InstanceTypeConfigs: []instanceTypeConfigProperty{ &instanceTypeConfigProperty{ InstanceType: jsii.String("instanceType"), // the properties below are optional BidPrice: jsii.String("bidPrice"), BidPriceAsPercentageOfOnDemandPrice: jsii.Number(123), Configurations: []*configurationProperty{ &configurationProperty{ Classification: jsii.String("classification"), Configurations: []*configurationProperty{ configurationProperty_, }, Properties: map[string]*string{ "propertiesKey": jsii.String("properties"), }, }, }, EbsConfiguration: &EbsConfigurationProperty{ EbsBlockDeviceConfigs: []ebsBlockDeviceConfigProperty{ &ebsBlockDeviceConfigProperty{ VolumeSpecification: &VolumeSpecificationProperty{ VolumeSize: size, VolumeType: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.EbsBlockDeviceVolumeType_GP3, // the properties below are optional Iops: jsii.Number(123), }, // the properties below are optional VolumesPerInstance: jsii.Number(123), }, }, EbsOptimized: jsii.Boolean(false), }, WeightedCapacity: jsii.Number(123), }, }, LaunchSpecifications: &InstanceFleetProvisioningSpecificationsProperty{ OnDemandSpecification: &OnDemandProvisioningSpecificationProperty{ AllocationStrategy: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.OnDemandAllocationStrategy_LOWEST_PRICE, }, SpotSpecification: &SpotProvisioningSpecificationProperty{ TimeoutAction: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.SpotTimeoutAction_SWITCH_TO_ON_DEMAND, // the properties below are optional AllocationStrategy: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.SpotAllocationStrategy_CAPACITY_OPTIMIZED, BlockDurationMinutes: jsii.Number(123), Timeout: cdk.Duration_Minutes(jsii.Number(30)), TimeoutDurationMinutes: jsii.Number(123), }, }, Name: jsii.String("name"), TargetOnDemandCapacity: jsii.Number(123), TargetSpotCapacity: jsii.Number(123), }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_InstanceFleetConfig.html
type EmrCreateCluster_InstanceFleetProvisioningSpecificationsProperty ¶
type EmrCreateCluster_InstanceFleetProvisioningSpecificationsProperty struct { // The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy. // // The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions. // On-Demand Instances allocation strategy is available in Amazon EMR releases 5.12.1 and later. // Default: - no on-demand specification. // OnDemandSpecification *EmrCreateCluster_OnDemandProvisioningSpecificationProperty `field:"optional" json:"onDemandSpecification" yaml:"onDemandSpecification"` // The launch specification for Spot instances in the fleet, which determines the defined duration and provisioning timeout behavior. // Default: - no spot specification. // SpotSpecification *EmrCreateCluster_SpotProvisioningSpecificationProperty `field:"optional" json:"spotSpecification" yaml:"spotSpecification"` }
The launch specification for On-Demand and Spot instances in the fleet, which determines the defined duration and provisioning timeout behavior, and allocation strategy.
The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions. On-Demand and Spot instance allocation strategies are available in Amazon EMR releases 5.12.1 and later.
Example:
tasks.NewEmrCreateCluster(this, jsii.String("OnDemandSpecification"), &EmrCreateClusterProps{ Instances: &InstancesConfigProperty{ InstanceFleets: []instanceFleetConfigProperty{ &instanceFleetConfigProperty{ InstanceFleetType: tasks.EmrCreateCluster.InstanceRoleType_MASTER, LaunchSpecifications: &InstanceFleetProvisioningSpecificationsProperty{ OnDemandSpecification: &OnDemandProvisioningSpecificationProperty{ AllocationStrategy: tasks.EmrCreateCluster.OnDemandAllocationStrategy_LOWEST_PRICE, }, }, }, }, }, Name: jsii.String("OnDemandCluster"), IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, }) tasks.NewEmrCreateCluster(this, jsii.String("SpotSpecification"), &EmrCreateClusterProps{ Instances: &InstancesConfigProperty{ InstanceFleets: []*instanceFleetConfigProperty{ &instanceFleetConfigProperty{ InstanceFleetType: tasks.EmrCreateCluster.InstanceRoleType_MASTER, LaunchSpecifications: &InstanceFleetProvisioningSpecificationsProperty{ SpotSpecification: &SpotProvisioningSpecificationProperty{ AllocationStrategy: tasks.EmrCreateCluster.SpotAllocationStrategy_CAPACITY_OPTIMIZED, TimeoutAction: tasks.EmrCreateCluster.SpotTimeoutAction_TERMINATE_CLUSTER, Timeout: awscdk.Duration_Minutes(jsii.Number(5)), }, }, }, }, }, Name: jsii.String("SpotCluster"), IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, })
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_InstanceFleetProvisioningSpecifications.html
type EmrCreateCluster_InstanceGroupConfigProperty ¶
type EmrCreateCluster_InstanceGroupConfigProperty struct { // Target number of instances for the instance group. InstanceCount *float64 `field:"required" json:"instanceCount" yaml:"instanceCount"` // The role of the instance group in the cluster. InstanceRole EmrCreateCluster_InstanceRoleType `field:"required" json:"instanceRole" yaml:"instanceRole"` // The EC2 instance type for all instances in the instance group. InstanceType *string `field:"required" json:"instanceType" yaml:"instanceType"` // An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. // Default: - None. // AutoScalingPolicy *EmrCreateCluster_AutoScalingPolicyProperty `field:"optional" json:"autoScalingPolicy" yaml:"autoScalingPolicy"` // The bid price for each EC2 Spot instance type as defined by InstanceType. // // Expressed in USD. // Default: - None. // BidPrice *string `field:"optional" json:"bidPrice" yaml:"bidPrice"` // The list of configurations supplied for an EMR cluster instance group. // Default: - None. // Configurations *[]*EmrCreateCluster_ConfigurationProperty `field:"optional" json:"configurations" yaml:"configurations"` // EBS configurations that will be attached to each EC2 instance in the instance group. // Default: - None. // EbsConfiguration *EmrCreateCluster_EbsConfigurationProperty `field:"optional" json:"ebsConfiguration" yaml:"ebsConfiguration"` // Market type of the EC2 instances used to create a cluster node. // Default: - EMR selected default. // Market EmrCreateCluster_InstanceMarket `field:"optional" json:"market" yaml:"market"` // Friendly name given to the instance group. // Default: - None. // Name *string `field:"optional" json:"name" yaml:"name"` }
Configuration defining a new instance group.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" var configurationProperty_ configurationProperty var size size instanceGroupConfigProperty := &InstanceGroupConfigProperty{ InstanceCount: jsii.Number(123), InstanceRole: awscdk.Aws_stepfunctions_tasks.EmrCreateCluster.InstanceRoleType_MASTER, InstanceType: jsii.String("instanceType"), // the properties below are optional AutoScalingPolicy: &AutoScalingPolicyProperty{ Constraints: &ScalingConstraintsProperty{ MaxCapacity: jsii.Number(123), MinCapacity: jsii.Number(123), }, Rules: []scalingRuleProperty{ &scalingRuleProperty{ Action: &ScalingActionProperty{ SimpleScalingPolicyConfiguration: &SimpleScalingPolicyConfigurationProperty{ ScalingAdjustment: jsii.Number(123), // the properties below are optional AdjustmentType: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.ScalingAdjustmentType_CHANGE_IN_CAPACITY, CoolDown: jsii.Number(123), }, // the properties below are optional Market: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.InstanceMarket_ON_DEMAND, }, Name: jsii.String("name"), Trigger: &ScalingTriggerProperty{ CloudWatchAlarmDefinition: &CloudWatchAlarmDefinitionProperty{ ComparisonOperator: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmComparisonOperator_GREATER_THAN_OR_EQUAL, MetricName: jsii.String("metricName"), Period: cdk.Duration_Minutes(jsii.Number(30)), // the properties below are optional Dimensions: []metricDimensionProperty{ &metricDimensionProperty{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, EvaluationPeriods: jsii.Number(123), Namespace: jsii.String("namespace"), Statistic: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmStatistic_SAMPLE_COUNT, Threshold: jsii.Number(123), Unit: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmUnit_NONE, }, }, // the properties below are optional Description: jsii.String("description"), }, }, }, BidPrice: jsii.String("bidPrice"), Configurations: []*configurationProperty{ &configurationProperty{ Classification: jsii.String("classification"), Configurations: []*configurationProperty{ configurationProperty_, }, Properties: map[string]*string{ "propertiesKey": jsii.String("properties"), }, }, }, EbsConfiguration: &EbsConfigurationProperty{ EbsBlockDeviceConfigs: []ebsBlockDeviceConfigProperty{ &ebsBlockDeviceConfigProperty{ VolumeSpecification: &VolumeSpecificationProperty{ VolumeSize: size, VolumeType: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.EbsBlockDeviceVolumeType_GP3, // the properties below are optional Iops: jsii.Number(123), }, // the properties below are optional VolumesPerInstance: jsii.Number(123), }, }, EbsOptimized: jsii.Boolean(false), }, Market: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.InstanceMarket_ON_DEMAND, Name: jsii.String("name"), }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_InstanceGroupConfig.html
type EmrCreateCluster_InstanceMarket ¶
type EmrCreateCluster_InstanceMarket string
EC2 Instance Market.
const ( // On Demand Instance. EmrCreateCluster_InstanceMarket_ON_DEMAND EmrCreateCluster_InstanceMarket = "ON_DEMAND" // Spot Instance. EmrCreateCluster_InstanceMarket_SPOT EmrCreateCluster_InstanceMarket = "SPOT" )
type EmrCreateCluster_InstanceRoleType ¶
type EmrCreateCluster_InstanceRoleType string
Instance Role Types.
Example:
tasks.NewEmrCreateCluster(this, jsii.String("OnDemandSpecification"), &EmrCreateClusterProps{ Instances: &InstancesConfigProperty{ InstanceFleets: []instanceFleetConfigProperty{ &instanceFleetConfigProperty{ InstanceFleetType: tasks.EmrCreateCluster.InstanceRoleType_MASTER, LaunchSpecifications: &InstanceFleetProvisioningSpecificationsProperty{ OnDemandSpecification: &OnDemandProvisioningSpecificationProperty{ AllocationStrategy: tasks.EmrCreateCluster.OnDemandAllocationStrategy_LOWEST_PRICE, }, }, }, }, }, Name: jsii.String("OnDemandCluster"), IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, }) tasks.NewEmrCreateCluster(this, jsii.String("SpotSpecification"), &EmrCreateClusterProps{ Instances: &InstancesConfigProperty{ InstanceFleets: []*instanceFleetConfigProperty{ &instanceFleetConfigProperty{ InstanceFleetType: tasks.EmrCreateCluster.InstanceRoleType_MASTER, LaunchSpecifications: &InstanceFleetProvisioningSpecificationsProperty{ SpotSpecification: &SpotProvisioningSpecificationProperty{ AllocationStrategy: tasks.EmrCreateCluster.SpotAllocationStrategy_CAPACITY_OPTIMIZED, TimeoutAction: tasks.EmrCreateCluster.SpotTimeoutAction_TERMINATE_CLUSTER, Timeout: awscdk.Duration_Minutes(jsii.Number(5)), }, }, }, }, }, Name: jsii.String("SpotCluster"), IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, })
const ( // Master Node. EmrCreateCluster_InstanceRoleType_MASTER EmrCreateCluster_InstanceRoleType = "MASTER" // Core Node. EmrCreateCluster_InstanceRoleType_CORE EmrCreateCluster_InstanceRoleType = "CORE" // Task Node. EmrCreateCluster_InstanceRoleType_TASK EmrCreateCluster_InstanceRoleType = "TASK" )
type EmrCreateCluster_InstanceTypeConfigProperty ¶
type EmrCreateCluster_InstanceTypeConfigProperty struct { // An EC2 instance type. InstanceType *string `field:"required" json:"instanceType" yaml:"instanceType"` // The bid price for each EC2 Spot instance type as defined by InstanceType. Expressed in USD. // // Cannot specify both `bidPrice` and `bidPriceAsPercentageOfOnDemandPrice`. // Default: - None. // BidPrice *string `field:"optional" json:"bidPrice" yaml:"bidPrice"` // The bid price, as a percentage of On-Demand price. // // Cannot specify both `bidPrice` and `bidPriceAsPercentageOfOnDemandPrice`. // Default: - None. // BidPriceAsPercentageOfOnDemandPrice *float64 `field:"optional" json:"bidPriceAsPercentageOfOnDemandPrice" yaml:"bidPriceAsPercentageOfOnDemandPrice"` // A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. // Default: - None. // Configurations *[]*EmrCreateCluster_ConfigurationProperty `field:"optional" json:"configurations" yaml:"configurations"` // The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by InstanceType. // Default: - None. // EbsConfiguration *EmrCreateCluster_EbsConfigurationProperty `field:"optional" json:"ebsConfiguration" yaml:"ebsConfiguration"` // The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in the InstanceFleetConfig. // Default: - None. // WeightedCapacity *float64 `field:"optional" json:"weightedCapacity" yaml:"weightedCapacity"` }
An instance type configuration for each instance type in an instance fleet, which determines the EC2 instances Amazon EMR attempts to provision to fulfill On-Demand and Spot target capacities.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" var configurationProperty_ configurationProperty var size size instanceTypeConfigProperty := &InstanceTypeConfigProperty{ InstanceType: jsii.String("instanceType"), // the properties below are optional BidPrice: jsii.String("bidPrice"), BidPriceAsPercentageOfOnDemandPrice: jsii.Number(123), Configurations: []*configurationProperty{ &configurationProperty{ Classification: jsii.String("classification"), Configurations: []*configurationProperty{ configurationProperty_, }, Properties: map[string]*string{ "propertiesKey": jsii.String("properties"), }, }, }, EbsConfiguration: &EbsConfigurationProperty{ EbsBlockDeviceConfigs: []ebsBlockDeviceConfigProperty{ &ebsBlockDeviceConfigProperty{ VolumeSpecification: &VolumeSpecificationProperty{ VolumeSize: size, VolumeType: awscdk.Aws_stepfunctions_tasks.EmrCreateCluster.EbsBlockDeviceVolumeType_GP3, // the properties below are optional Iops: jsii.Number(123), }, // the properties below are optional VolumesPerInstance: jsii.Number(123), }, }, EbsOptimized: jsii.Boolean(false), }, WeightedCapacity: jsii.Number(123), }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_InstanceTypeConfig.html
type EmrCreateCluster_InstancesConfigProperty ¶
type EmrCreateCluster_InstancesConfigProperty struct { // A list of additional Amazon EC2 security group IDs for the master node. // Default: - None. // AdditionalMasterSecurityGroups *[]*string `field:"optional" json:"additionalMasterSecurityGroups" yaml:"additionalMasterSecurityGroups"` // A list of additional Amazon EC2 security group IDs for the core and task nodes. // Default: - None. // AdditionalSlaveSecurityGroups *[]*string `field:"optional" json:"additionalSlaveSecurityGroups" yaml:"additionalSlaveSecurityGroups"` // The name of the EC2 key pair that can be used to ssh to the master node as the user called "hadoop.". // Default: - None. // Ec2KeyName *string `field:"optional" json:"ec2KeyName" yaml:"ec2KeyName"` // Applies to clusters that use the uniform instance group configuration. // // To launch the cluster in Amazon Virtual Private Cloud (Amazon VPC), // set this parameter to the identifier of the Amazon VPC subnet where you want the cluster to launch. // Default: EMR selected default. // Ec2SubnetId *string `field:"optional" json:"ec2SubnetId" yaml:"ec2SubnetId"` // Applies to clusters that use the instance fleet configuration. // // When multiple EC2 subnet IDs are specified, Amazon EMR evaluates them and // launches instances in the optimal subnet. // Default: EMR selected default. // Ec2SubnetIds *[]*string `field:"optional" json:"ec2SubnetIds" yaml:"ec2SubnetIds"` // The identifier of the Amazon EC2 security group for the master node. // Default: - None. // EmrManagedMasterSecurityGroup *string `field:"optional" json:"emrManagedMasterSecurityGroup" yaml:"emrManagedMasterSecurityGroup"` // The identifier of the Amazon EC2 security group for the core and task nodes. // Default: - None. // EmrManagedSlaveSecurityGroup *string `field:"optional" json:"emrManagedSlaveSecurityGroup" yaml:"emrManagedSlaveSecurityGroup"` // Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop version for the cluster. // Default: - 0.18 if the AmiVersion parameter is not set. If AmiVersion is set, the version of Hadoop for that AMI version is used. // HadoopVersion *string `field:"optional" json:"hadoopVersion" yaml:"hadoopVersion"` // The number of EC2 instances in the cluster. // Default: 0. // InstanceCount *float64 `field:"optional" json:"instanceCount" yaml:"instanceCount"` // Describes the EC2 instances and instance configurations for clusters that use the instance fleet configuration. // // The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions. // Default: - None. // InstanceFleets *[]*EmrCreateCluster_InstanceFleetConfigProperty `field:"optional" json:"instanceFleets" yaml:"instanceFleets"` // Configuration for the instance groups in a cluster. // Default: - None. // InstanceGroups *[]*EmrCreateCluster_InstanceGroupConfigProperty `field:"optional" json:"instanceGroups" yaml:"instanceGroups"` // The EC2 instance type of the master node. // Default: - None. // MasterInstanceType *string `field:"optional" json:"masterInstanceType" yaml:"masterInstanceType"` // The Availability Zone in which the cluster runs. // Default: - EMR selected default. // Placement *EmrCreateCluster_PlacementTypeProperty `field:"optional" json:"placement" yaml:"placement"` // The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets. // Default: - None. // ServiceAccessSecurityGroup *string `field:"optional" json:"serviceAccessSecurityGroup" yaml:"serviceAccessSecurityGroup"` // The EC2 instance type of the core and task nodes. // Default: - None. // SlaveInstanceType *string `field:"optional" json:"slaveInstanceType" yaml:"slaveInstanceType"` // Specifies whether to lock the cluster to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job-flow error. // Default: false. // TerminationProtected *bool `field:"optional" json:"terminationProtected" yaml:"terminationProtected"` }
A specification of the number and type of Amazon EC2 instances.
See the RunJobFlow API for complete documentation on input parameters.
Example:
clusterRole := iam.NewRole(this, jsii.String("ClusterRole"), &RoleProps{ AssumedBy: iam.NewServicePrincipal(jsii.String("ec2.amazonaws.com")), }) serviceRole := iam.NewRole(this, jsii.String("ServiceRole"), &RoleProps{ AssumedBy: iam.NewServicePrincipal(jsii.String("elasticmapreduce.amazonaws.com")), }) autoScalingRole := iam.NewRole(this, jsii.String("AutoScalingRole"), &RoleProps{ AssumedBy: iam.NewServicePrincipal(jsii.String("elasticmapreduce.amazonaws.com")), }) autoScalingRole.AssumeRolePolicy.AddStatements( iam.NewPolicyStatement(&PolicyStatementProps{ Effect: iam.Effect_ALLOW, Principals: []iPrincipal{ iam.NewServicePrincipal(jsii.String("application-autoscaling.amazonaws.com")), }, Actions: []*string{ jsii.String("sts:AssumeRole"), }, })) tasks.NewEmrCreateCluster(this, jsii.String("Create Cluster"), &EmrCreateClusterProps{ Instances: &InstancesConfigProperty{ }, ClusterRole: ClusterRole, Name: sfn.TaskInput_FromJsonPathAt(jsii.String("$.ClusterName")).value, ServiceRole: ServiceRole, AutoScalingRole: AutoScalingRole, })
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_JobFlowInstancesConfig.html
type EmrCreateCluster_KerberosAttributesProperty ¶
type EmrCreateCluster_KerberosAttributesProperty struct { // The name of the Kerberos realm to which all nodes in a cluster belong. // // For example, EC2.INTERNAL. Realm *string `field:"required" json:"realm" yaml:"realm"` // The Active Directory password for ADDomainJoinUser. // Default: No adDomainJoinPassword. // AdDomainJoinPassword *string `field:"optional" json:"adDomainJoinPassword" yaml:"adDomainJoinPassword"` // Required only when establishing a cross-realm trust with an Active Directory domain. // // A user with sufficient privileges to join // resources to the domain. // Default: No adDomainJoinUser. // AdDomainJoinUser *string `field:"optional" json:"adDomainJoinUser" yaml:"adDomainJoinUser"` // Required only when establishing a cross-realm trust with a KDC in a different realm. // // The cross-realm principal password, which // must be identical across realms. // Default: No crossRealmTrustPrincipalPassword. // CrossRealmTrustPrincipalPassword *string `field:"optional" json:"crossRealmTrustPrincipalPassword" yaml:"crossRealmTrustPrincipalPassword"` // The password used within the cluster for the kadmin service on the cluster-dedicated KDC, which maintains Kerberos principals, password policies, and keytabs for the cluster. // Default: No kdcAdminPassword. // KdcAdminPassword *string `field:"optional" json:"kdcAdminPassword" yaml:"kdcAdminPassword"` }
Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration.
See the RunJobFlow API for complete documentation on input parameters.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" kerberosAttributesProperty := &KerberosAttributesProperty{ Realm: jsii.String("realm"), // the properties below are optional AdDomainJoinPassword: jsii.String("adDomainJoinPassword"), AdDomainJoinUser: jsii.String("adDomainJoinUser"), CrossRealmTrustPrincipalPassword: jsii.String("crossRealmTrustPrincipalPassword"), KdcAdminPassword: jsii.String("kdcAdminPassword"), }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_KerberosAttributes.html
type EmrCreateCluster_MetricDimensionProperty ¶
type EmrCreateCluster_MetricDimensionProperty struct { // The dimension name. Key *string `field:"required" json:"key" yaml:"key"` // The dimension value. Value *string `field:"required" json:"value" yaml:"value"` }
A CloudWatch dimension, which is specified using a Key (known as a Name in CloudWatch), Value pair.
By default, Amazon EMR uses one dimension whose Key is JobFlowID and Value is a variable representing the cluster ID, which is ${emr.clusterId}. This enables the rule to bootstrap when the cluster ID becomes available.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" metricDimensionProperty := &MetricDimensionProperty{ Key: jsii.String("key"), Value: jsii.String("value"), }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_MetricDimension.html
type EmrCreateCluster_OnDemandAllocationStrategy ¶ added in v2.116.0
type EmrCreateCluster_OnDemandAllocationStrategy string
On-Demand Allocation Strategies.
Specifies the strategy to use in launching On-Demand instance fleets. Currently, the only option is "lowest-price" (the default), which launches the lowest price first.
Example:
tasks.NewEmrCreateCluster(this, jsii.String("OnDemandSpecification"), &EmrCreateClusterProps{ Instances: &InstancesConfigProperty{ InstanceFleets: []instanceFleetConfigProperty{ &instanceFleetConfigProperty{ InstanceFleetType: tasks.EmrCreateCluster.InstanceRoleType_MASTER, LaunchSpecifications: &InstanceFleetProvisioningSpecificationsProperty{ OnDemandSpecification: &OnDemandProvisioningSpecificationProperty{ AllocationStrategy: tasks.EmrCreateCluster.OnDemandAllocationStrategy_LOWEST_PRICE, }, }, }, }, }, Name: jsii.String("OnDemandCluster"), IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, }) tasks.NewEmrCreateCluster(this, jsii.String("SpotSpecification"), &EmrCreateClusterProps{ Instances: &InstancesConfigProperty{ InstanceFleets: []*instanceFleetConfigProperty{ &instanceFleetConfigProperty{ InstanceFleetType: tasks.EmrCreateCluster.InstanceRoleType_MASTER, LaunchSpecifications: &InstanceFleetProvisioningSpecificationsProperty{ SpotSpecification: &SpotProvisioningSpecificationProperty{ AllocationStrategy: tasks.EmrCreateCluster.SpotAllocationStrategy_CAPACITY_OPTIMIZED, TimeoutAction: tasks.EmrCreateCluster.SpotTimeoutAction_TERMINATE_CLUSTER, Timeout: awscdk.Duration_Minutes(jsii.Number(5)), }, }, }, }, }, Name: jsii.String("SpotCluster"), IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, })
const ( // Lowest-price, which launches instances from the lowest priced pool that has available capacity. EmrCreateCluster_OnDemandAllocationStrategy_LOWEST_PRICE EmrCreateCluster_OnDemandAllocationStrategy = "LOWEST_PRICE" )
type EmrCreateCluster_OnDemandProvisioningSpecificationProperty ¶ added in v2.116.0
type EmrCreateCluster_OnDemandProvisioningSpecificationProperty struct { // Specifies the strategy to use in launching On-Demand instance fleets. // // Currently, the only option is lowest-price (the default), which launches the lowest price first. AllocationStrategy EmrCreateCluster_OnDemandAllocationStrategy `field:"required" json:"allocationStrategy" yaml:"allocationStrategy"` }
The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy.
Example:
tasks.NewEmrCreateCluster(this, jsii.String("OnDemandSpecification"), &EmrCreateClusterProps{ Instances: &InstancesConfigProperty{ InstanceFleets: []instanceFleetConfigProperty{ &instanceFleetConfigProperty{ InstanceFleetType: tasks.EmrCreateCluster.InstanceRoleType_MASTER, LaunchSpecifications: &InstanceFleetProvisioningSpecificationsProperty{ OnDemandSpecification: &OnDemandProvisioningSpecificationProperty{ AllocationStrategy: tasks.EmrCreateCluster.OnDemandAllocationStrategy_LOWEST_PRICE, }, }, }, }, }, Name: jsii.String("OnDemandCluster"), IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, }) tasks.NewEmrCreateCluster(this, jsii.String("SpotSpecification"), &EmrCreateClusterProps{ Instances: &InstancesConfigProperty{ InstanceFleets: []*instanceFleetConfigProperty{ &instanceFleetConfigProperty{ InstanceFleetType: tasks.EmrCreateCluster.InstanceRoleType_MASTER, LaunchSpecifications: &InstanceFleetProvisioningSpecificationsProperty{ SpotSpecification: &SpotProvisioningSpecificationProperty{ AllocationStrategy: tasks.EmrCreateCluster.SpotAllocationStrategy_CAPACITY_OPTIMIZED, TimeoutAction: tasks.EmrCreateCluster.SpotTimeoutAction_TERMINATE_CLUSTER, Timeout: awscdk.Duration_Minutes(jsii.Number(5)), }, }, }, }, }, Name: jsii.String("SpotCluster"), IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, })
type EmrCreateCluster_PlacementTypeProperty ¶
type EmrCreateCluster_PlacementTypeProperty struct { // The Amazon EC2 Availability Zone for the cluster. // // AvailabilityZone is used for uniform instance groups, while AvailabilityZones // (plural) is used for instance fleets. // Default: - EMR selected default. // AvailabilityZone *string `field:"optional" json:"availabilityZone" yaml:"availabilityZone"` // When multiple Availability Zones are specified, Amazon EMR evaluates them and launches instances in the optimal Availability Zone. // // AvailabilityZones is used for instance fleets, while AvailabilityZone (singular) is used for uniform instance groups. // Default: - EMR selected default. // AvailabilityZones *[]*string `field:"optional" json:"availabilityZones" yaml:"availabilityZones"` }
The Amazon EC2 Availability Zone configuration of the cluster (job flow).
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" placementTypeProperty := &PlacementTypeProperty{ AvailabilityZone: jsii.String("availabilityZone"), AvailabilityZones: []*string{ jsii.String("availabilityZones"), }, }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_PlacementType.html
type EmrCreateCluster_ScalingActionProperty ¶
type EmrCreateCluster_ScalingActionProperty struct { // The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment. SimpleScalingPolicyConfiguration *EmrCreateCluster_SimpleScalingPolicyConfigurationProperty `field:"required" json:"simpleScalingPolicyConfiguration" yaml:"simpleScalingPolicyConfiguration"` // Not available for instance groups. // // Instance groups use the market type specified for the group. // Default: - EMR selected default. // Market EmrCreateCluster_InstanceMarket `field:"optional" json:"market" yaml:"market"` }
The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment.
And an automatic scaling configuration, which describes how the policy adds or removes instances, the cooldown period, and the number of EC2 instances that will be added each time the CloudWatch metric alarm condition is satisfied.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" scalingActionProperty := &ScalingActionProperty{ SimpleScalingPolicyConfiguration: &SimpleScalingPolicyConfigurationProperty{ ScalingAdjustment: jsii.Number(123), // the properties below are optional AdjustmentType: awscdk.Aws_stepfunctions_tasks.EmrCreateCluster.ScalingAdjustmentType_CHANGE_IN_CAPACITY, CoolDown: jsii.Number(123), }, // the properties below are optional Market: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.InstanceMarket_ON_DEMAND, }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_ScalingAction.html
type EmrCreateCluster_ScalingAdjustmentType ¶
type EmrCreateCluster_ScalingAdjustmentType string
AutoScaling Adjustment Type.
const ( // CHANGE_IN_CAPACITY. EmrCreateCluster_ScalingAdjustmentType_CHANGE_IN_CAPACITY EmrCreateCluster_ScalingAdjustmentType = "CHANGE_IN_CAPACITY" // PERCENT_CHANGE_IN_CAPACITY. EmrCreateCluster_ScalingAdjustmentType_PERCENT_CHANGE_IN_CAPACITY EmrCreateCluster_ScalingAdjustmentType = "PERCENT_CHANGE_IN_CAPACITY" // EXACT_CAPACITY. EmrCreateCluster_ScalingAdjustmentType_EXACT_CAPACITY EmrCreateCluster_ScalingAdjustmentType = "EXACT_CAPACITY" )
type EmrCreateCluster_ScalingConstraintsProperty ¶
type EmrCreateCluster_ScalingConstraintsProperty struct { // The upper boundary of EC2 instances in an instance group beyond which scaling activities are not allowed to grow. // // Scale-out // activities will not add instances beyond this boundary. MaxCapacity *float64 `field:"required" json:"maxCapacity" yaml:"maxCapacity"` // The lower boundary of EC2 instances in an instance group below which scaling activities are not allowed to shrink. // // Scale-in // activities will not terminate instances below this boundary. MinCapacity *float64 `field:"required" json:"minCapacity" yaml:"minCapacity"` }
The upper and lower EC2 instance limits for an automatic scaling policy.
Automatic scaling activities triggered by automatic scaling rules will not cause an instance group to grow above or below these limits.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" scalingConstraintsProperty := &ScalingConstraintsProperty{ MaxCapacity: jsii.Number(123), MinCapacity: jsii.Number(123), }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_ScalingConstraints.html
type EmrCreateCluster_ScalingRuleProperty ¶
type EmrCreateCluster_ScalingRuleProperty struct { // The conditions that trigger an automatic scaling activity. Action *EmrCreateCluster_ScalingActionProperty `field:"required" json:"action" yaml:"action"` // The name used to identify an automatic scaling rule. // // Rule names must be unique within a scaling policy. Name *string `field:"required" json:"name" yaml:"name"` // The CloudWatch alarm definition that determines when automatic scaling activity is triggered. Trigger *EmrCreateCluster_ScalingTriggerProperty `field:"required" json:"trigger" yaml:"trigger"` // A friendly, more verbose description of the automatic scaling rule. // Default: - None. // Description *string `field:"optional" json:"description" yaml:"description"` }
A scale-in or scale-out rule that defines scaling activity, including the CloudWatch metric alarm that triggers activity, how EC2 instances are added or removed, and the periodicity of adjustments.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" scalingRuleProperty := &ScalingRuleProperty{ Action: &ScalingActionProperty{ SimpleScalingPolicyConfiguration: &SimpleScalingPolicyConfigurationProperty{ ScalingAdjustment: jsii.Number(123), // the properties below are optional AdjustmentType: awscdk.Aws_stepfunctions_tasks.EmrCreateCluster.ScalingAdjustmentType_CHANGE_IN_CAPACITY, CoolDown: jsii.Number(123), }, // the properties below are optional Market: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.InstanceMarket_ON_DEMAND, }, Name: jsii.String("name"), Trigger: &ScalingTriggerProperty{ CloudWatchAlarmDefinition: &CloudWatchAlarmDefinitionProperty{ ComparisonOperator: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmComparisonOperator_GREATER_THAN_OR_EQUAL, MetricName: jsii.String("metricName"), Period: cdk.Duration_Minutes(jsii.Number(30)), // the properties below are optional Dimensions: []metricDimensionProperty{ &metricDimensionProperty{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, EvaluationPeriods: jsii.Number(123), Namespace: jsii.String("namespace"), Statistic: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmStatistic_SAMPLE_COUNT, Threshold: jsii.Number(123), Unit: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmUnit_NONE, }, }, // the properties below are optional Description: jsii.String("description"), }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_ScalingRule.html
type EmrCreateCluster_ScalingTriggerProperty ¶
type EmrCreateCluster_ScalingTriggerProperty struct { // The definition of a CloudWatch metric alarm. // // When the defined alarm conditions are met along with other trigger parameters, // scaling activity begins. CloudWatchAlarmDefinition *EmrCreateCluster_CloudWatchAlarmDefinitionProperty `field:"required" json:"cloudWatchAlarmDefinition" yaml:"cloudWatchAlarmDefinition"` }
The conditions that trigger an automatic scaling activity and the definition of a CloudWatch metric alarm.
When the defined alarm conditions are met along with other trigger parameters, scaling activity begins.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" scalingTriggerProperty := &ScalingTriggerProperty{ CloudWatchAlarmDefinition: &CloudWatchAlarmDefinitionProperty{ ComparisonOperator: awscdk.Aws_stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmComparisonOperator_GREATER_THAN_OR_EQUAL, MetricName: jsii.String("metricName"), Period: cdk.Duration_Minutes(jsii.Number(30)), // the properties below are optional Dimensions: []metricDimensionProperty{ &metricDimensionProperty{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, EvaluationPeriods: jsii.Number(123), Namespace: jsii.String("namespace"), Statistic: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmStatistic_SAMPLE_COUNT, Threshold: jsii.Number(123), Unit: awscdk.*Aws_stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmUnit_NONE, }, }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_ScalingTrigger.html
type EmrCreateCluster_ScriptBootstrapActionConfigProperty ¶
type EmrCreateCluster_ScriptBootstrapActionConfigProperty struct { // Location of the script to run during a bootstrap action. // // Can be either a location in Amazon S3 or on a local file system. Path *string `field:"required" json:"path" yaml:"path"` // A list of command line arguments to pass to the bootstrap action script. // Default: No args. // Args *[]*string `field:"optional" json:"args" yaml:"args"` }
Configuration of the script to run during a bootstrap action.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" scriptBootstrapActionConfigProperty := &ScriptBootstrapActionConfigProperty{ Path: jsii.String("path"), // the properties below are optional Args: []*string{ jsii.String("args"), }, }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_ScriptBootstrapActionConfig.html
type EmrCreateCluster_SimpleScalingPolicyConfigurationProperty ¶
type EmrCreateCluster_SimpleScalingPolicyConfigurationProperty struct { // The amount by which to scale in or scale out, based on the specified AdjustmentType. // // A positive value adds to the instance group's // EC2 instance count while a negative number removes instances. If AdjustmentType is set to EXACT_CAPACITY, the number should only be // a positive integer. ScalingAdjustment *float64 `field:"required" json:"scalingAdjustment" yaml:"scalingAdjustment"` // The way in which EC2 instances are added (if ScalingAdjustment is a positive number) or terminated (if ScalingAdjustment is a negative number) each time the scaling activity is triggered. // Default: - None. // AdjustmentType EmrCreateCluster_ScalingAdjustmentType `field:"optional" json:"adjustmentType" yaml:"adjustmentType"` // The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. // Default: 0. // CoolDown *float64 `field:"optional" json:"coolDown" yaml:"coolDown"` }
An automatic scaling configuration, which describes how the policy adds or removes instances, the cooldown period, and the number of EC2 instances that will be added each time the CloudWatch metric alarm condition is satisfied.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" simpleScalingPolicyConfigurationProperty := &SimpleScalingPolicyConfigurationProperty{ ScalingAdjustment: jsii.Number(123), // the properties below are optional AdjustmentType: awscdk.Aws_stepfunctions_tasks.EmrCreateCluster.ScalingAdjustmentType_CHANGE_IN_CAPACITY, CoolDown: jsii.Number(123), }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_SimpleScalingPolicyConfiguration.html
type EmrCreateCluster_SpotAllocationStrategy ¶
type EmrCreateCluster_SpotAllocationStrategy string
Spot Allocation Strategies.
Specifies the strategy to use in launching Spot Instance fleets. For example, "capacity-optimized" launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.
Example:
tasks.NewEmrCreateCluster(this, jsii.String("OnDemandSpecification"), &EmrCreateClusterProps{ Instances: &InstancesConfigProperty{ InstanceFleets: []instanceFleetConfigProperty{ &instanceFleetConfigProperty{ InstanceFleetType: tasks.EmrCreateCluster.InstanceRoleType_MASTER, LaunchSpecifications: &InstanceFleetProvisioningSpecificationsProperty{ OnDemandSpecification: &OnDemandProvisioningSpecificationProperty{ AllocationStrategy: tasks.EmrCreateCluster.OnDemandAllocationStrategy_LOWEST_PRICE, }, }, }, }, }, Name: jsii.String("OnDemandCluster"), IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, }) tasks.NewEmrCreateCluster(this, jsii.String("SpotSpecification"), &EmrCreateClusterProps{ Instances: &InstancesConfigProperty{ InstanceFleets: []*instanceFleetConfigProperty{ &instanceFleetConfigProperty{ InstanceFleetType: tasks.EmrCreateCluster.InstanceRoleType_MASTER, LaunchSpecifications: &InstanceFleetProvisioningSpecificationsProperty{ SpotSpecification: &SpotProvisioningSpecificationProperty{ AllocationStrategy: tasks.EmrCreateCluster.SpotAllocationStrategy_CAPACITY_OPTIMIZED, TimeoutAction: tasks.EmrCreateCluster.SpotTimeoutAction_TERMINATE_CLUSTER, Timeout: awscdk.Duration_Minutes(jsii.Number(5)), }, }, }, }, }, Name: jsii.String("SpotCluster"), IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, })
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_SpotProvisioningSpecification.html
const ( // Capacity-optimized, which launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching. EmrCreateCluster_SpotAllocationStrategy_CAPACITY_OPTIMIZED EmrCreateCluster_SpotAllocationStrategy = "CAPACITY_OPTIMIZED" // Price-capacity-optimized, which launches instances from Spot Instance pools with the highest capacity availability for the number of instances that are launching. // // Recommended. EmrCreateCluster_SpotAllocationStrategy_PRICE_CAPACITY_OPTIMIZED EmrCreateCluster_SpotAllocationStrategy = "PRICE_CAPACITY_OPTIMIZED" // Lowest-price, which launches instances from the lowest priced pool that has available capacity. EmrCreateCluster_SpotAllocationStrategy_LOWEST_PRICE EmrCreateCluster_SpotAllocationStrategy = "LOWEST_PRICE" // Diversified, which launches instances across all Spot capacity pools. EmrCreateCluster_SpotAllocationStrategy_DIVERSIFIED EmrCreateCluster_SpotAllocationStrategy = "DIVERSIFIED" )
type EmrCreateCluster_SpotProvisioningSpecificationProperty ¶
type EmrCreateCluster_SpotProvisioningSpecificationProperty struct { // The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired. TimeoutAction EmrCreateCluster_SpotTimeoutAction `field:"required" json:"timeoutAction" yaml:"timeoutAction"` // Specifies the strategy to use in launching Spot Instance fleets. // Default: - No allocation strategy, i.e. spot instance type will be chosen based on current price only // AllocationStrategy EmrCreateCluster_SpotAllocationStrategy `field:"optional" json:"allocationStrategy" yaml:"allocationStrategy"` // The defined duration for Spot instances (also known as Spot blocks) in minutes. // Default: - No blockDurationMinutes. // // Deprecated: - Spot Instances with a defined duration (also known as Spot blocks) are no longer available to new customers from July 1, 2021. // For customers who have previously used the feature, we will continue to support Spot Instances with a defined duration until December 31, 2022. BlockDurationMinutes *float64 `field:"optional" json:"blockDurationMinutes" yaml:"blockDurationMinutes"` // The spot provisioning timeout period in minutes. // // The value must be between 5 and 1440 minutes. // // You must specify one of `timeout` and `timeoutDurationMinutes`. // Default: - The value in `timeoutDurationMinutes` is used. // Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The spot provisioning timeout period in minutes. // // The value must be between 5 and 1440 minutes. // // You must specify one of `timeout` and `timeoutDurationMinutes`. // Default: - The value in `timeout` is used. // // Deprecated: - Use `timeout`. TimeoutDurationMinutes *float64 `field:"optional" json:"timeoutDurationMinutes" yaml:"timeoutDurationMinutes"` }
The launch specification for Spot instances in the instance fleet, which determines the defined duration and provisioning timeout behavior.
Example:
tasks.NewEmrCreateCluster(this, jsii.String("OnDemandSpecification"), &EmrCreateClusterProps{ Instances: &InstancesConfigProperty{ InstanceFleets: []instanceFleetConfigProperty{ &instanceFleetConfigProperty{ InstanceFleetType: tasks.EmrCreateCluster.InstanceRoleType_MASTER, LaunchSpecifications: &InstanceFleetProvisioningSpecificationsProperty{ OnDemandSpecification: &OnDemandProvisioningSpecificationProperty{ AllocationStrategy: tasks.EmrCreateCluster.OnDemandAllocationStrategy_LOWEST_PRICE, }, }, }, }, }, Name: jsii.String("OnDemandCluster"), IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, }) tasks.NewEmrCreateCluster(this, jsii.String("SpotSpecification"), &EmrCreateClusterProps{ Instances: &InstancesConfigProperty{ InstanceFleets: []*instanceFleetConfigProperty{ &instanceFleetConfigProperty{ InstanceFleetType: tasks.EmrCreateCluster.InstanceRoleType_MASTER, LaunchSpecifications: &InstanceFleetProvisioningSpecificationsProperty{ SpotSpecification: &SpotProvisioningSpecificationProperty{ AllocationStrategy: tasks.EmrCreateCluster.SpotAllocationStrategy_CAPACITY_OPTIMIZED, TimeoutAction: tasks.EmrCreateCluster.SpotTimeoutAction_TERMINATE_CLUSTER, Timeout: awscdk.Duration_Minutes(jsii.Number(5)), }, }, }, }, }, Name: jsii.String("SpotCluster"), IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, })
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_SpotProvisioningSpecification.html
type EmrCreateCluster_SpotTimeoutAction ¶
type EmrCreateCluster_SpotTimeoutAction string
Spot Timeout Actions.
Example:
tasks.NewEmrCreateCluster(this, jsii.String("OnDemandSpecification"), &EmrCreateClusterProps{ Instances: &InstancesConfigProperty{ InstanceFleets: []instanceFleetConfigProperty{ &instanceFleetConfigProperty{ InstanceFleetType: tasks.EmrCreateCluster.InstanceRoleType_MASTER, LaunchSpecifications: &InstanceFleetProvisioningSpecificationsProperty{ OnDemandSpecification: &OnDemandProvisioningSpecificationProperty{ AllocationStrategy: tasks.EmrCreateCluster.OnDemandAllocationStrategy_LOWEST_PRICE, }, }, }, }, }, Name: jsii.String("OnDemandCluster"), IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, }) tasks.NewEmrCreateCluster(this, jsii.String("SpotSpecification"), &EmrCreateClusterProps{ Instances: &InstancesConfigProperty{ InstanceFleets: []*instanceFleetConfigProperty{ &instanceFleetConfigProperty{ InstanceFleetType: tasks.EmrCreateCluster.InstanceRoleType_MASTER, LaunchSpecifications: &InstanceFleetProvisioningSpecificationsProperty{ SpotSpecification: &SpotProvisioningSpecificationProperty{ AllocationStrategy: tasks.EmrCreateCluster.SpotAllocationStrategy_CAPACITY_OPTIMIZED, TimeoutAction: tasks.EmrCreateCluster.SpotTimeoutAction_TERMINATE_CLUSTER, Timeout: awscdk.Duration_Minutes(jsii.Number(5)), }, }, }, }, }, Name: jsii.String("SpotCluster"), IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, })
const ( // SWITCH_TO_ON_DEMAND. EmrCreateCluster_SpotTimeoutAction_SWITCH_TO_ON_DEMAND EmrCreateCluster_SpotTimeoutAction = "SWITCH_TO_ON_DEMAND" // TERMINATE_CLUSTER. EmrCreateCluster_SpotTimeoutAction_TERMINATE_CLUSTER EmrCreateCluster_SpotTimeoutAction = "TERMINATE_CLUSTER" )
type EmrCreateCluster_VolumeSpecificationProperty ¶
type EmrCreateCluster_VolumeSpecificationProperty struct { // The volume size. // // If the volume type is EBS-optimized, the minimum value is 10GiB. // Maximum size is 1TiB. VolumeSize awscdk.Size `field:"required" json:"volumeSize" yaml:"volumeSize"` // The volume type. // // Volume types supported are gp2, io1, standard. VolumeType EmrCreateCluster_EbsBlockDeviceVolumeType `field:"required" json:"volumeType" yaml:"volumeType"` // The number of I/O operations per second (IOPS) that the volume supports. // Default: - EMR selected default. // Iops *float64 `field:"optional" json:"iops" yaml:"iops"` }
EBS volume specifications such as volume type, IOPS, and size (GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" var size size volumeSpecificationProperty := &VolumeSpecificationProperty{ VolumeSize: size, VolumeType: awscdk.Aws_stepfunctions_tasks.EmrCreateCluster.EbsBlockDeviceVolumeType_GP3, // the properties below are optional Iops: jsii.Number(123), }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_VolumeSpecification.html
type EmrModifyInstanceFleetByName ¶
type EmrModifyInstanceFleetByName interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions Task to to modify an InstanceFleet on an EMR Cluster.
Example:
tasks.NewEmrModifyInstanceFleetByName(this, jsii.String("Task"), &EmrModifyInstanceFleetByNameProps{ ClusterId: jsii.String("ClusterId"), InstanceFleetName: jsii.String("InstanceFleetName"), TargetOnDemandCapacity: jsii.Number(2), TargetSpotCapacity: jsii.Number(0), })
func NewEmrModifyInstanceFleetByName ¶
func NewEmrModifyInstanceFleetByName(scope constructs.Construct, id *string, props *EmrModifyInstanceFleetByNameProps) EmrModifyInstanceFleetByName
type EmrModifyInstanceFleetByNameProps ¶
type EmrModifyInstanceFleetByNameProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The ClusterId to update. ClusterId *string `field:"required" json:"clusterId" yaml:"clusterId"` // The InstanceFleetName to update. InstanceFleetName *string `field:"required" json:"instanceFleetName" yaml:"instanceFleetName"` // The target capacity of On-Demand units for the instance fleet. // See: https://docs.aws.amazon.com/emr/latest/APIReference/API_InstanceFleetModifyConfig.html // // Default: - None. // TargetOnDemandCapacity *float64 `field:"required" json:"targetOnDemandCapacity" yaml:"targetOnDemandCapacity"` // The target capacity of Spot units for the instance fleet. // See: https://docs.aws.amazon.com/emr/latest/APIReference/API_InstanceFleetModifyConfig.html // // Default: - None. // TargetSpotCapacity *float64 `field:"required" json:"targetSpotCapacity" yaml:"targetSpotCapacity"` }
Properties for EmrModifyInstanceFleetByName.
Example:
tasks.NewEmrModifyInstanceFleetByName(this, jsii.String("Task"), &EmrModifyInstanceFleetByNameProps{ ClusterId: jsii.String("ClusterId"), InstanceFleetName: jsii.String("InstanceFleetName"), TargetOnDemandCapacity: jsii.Number(2), TargetSpotCapacity: jsii.Number(0), })
type EmrModifyInstanceGroupByName ¶
type EmrModifyInstanceGroupByName interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions Task to to modify an InstanceGroup on an EMR Cluster.
Example:
tasks.NewEmrModifyInstanceGroupByName(this, jsii.String("Task"), &EmrModifyInstanceGroupByNameProps{ ClusterId: jsii.String("ClusterId"), InstanceGroupName: sfn.JsonPath_StringAt(jsii.String("$.InstanceGroupName")), InstanceGroup: &InstanceGroupModifyConfigProperty{ InstanceCount: jsii.Number(1), }, })
func NewEmrModifyInstanceGroupByName ¶
func NewEmrModifyInstanceGroupByName(scope constructs.Construct, id *string, props *EmrModifyInstanceGroupByNameProps) EmrModifyInstanceGroupByName
type EmrModifyInstanceGroupByNameProps ¶
type EmrModifyInstanceGroupByNameProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The ClusterId to update. ClusterId *string `field:"required" json:"clusterId" yaml:"clusterId"` // The JSON that you want to provide to your ModifyInstanceGroup call as input. // // This uses the same syntax as the ModifyInstanceGroups API. // See: https://docs.aws.amazon.com/emr/latest/APIReference/API_ModifyInstanceGroups.html // InstanceGroup *EmrModifyInstanceGroupByName_InstanceGroupModifyConfigProperty `field:"required" json:"instanceGroup" yaml:"instanceGroup"` // The InstanceGroupName to update. InstanceGroupName *string `field:"required" json:"instanceGroupName" yaml:"instanceGroupName"` }
Properties for EmrModifyInstanceGroupByName.
Example:
tasks.NewEmrModifyInstanceGroupByName(this, jsii.String("Task"), &EmrModifyInstanceGroupByNameProps{ ClusterId: jsii.String("ClusterId"), InstanceGroupName: sfn.JsonPath_StringAt(jsii.String("$.InstanceGroupName")), InstanceGroup: &InstanceGroupModifyConfigProperty{ InstanceCount: jsii.Number(1), }, })
type EmrModifyInstanceGroupByName_InstanceGroupModifyConfigProperty ¶
type EmrModifyInstanceGroupByName_InstanceGroupModifyConfigProperty struct { // A list of new or modified configurations to apply for an instance group. // Default: - None. // Configurations *[]*EmrCreateCluster_ConfigurationProperty `field:"optional" json:"configurations" yaml:"configurations"` // The EC2 InstanceIds to terminate. // // After you terminate the instances, the instance group will not return to its original requested size. // Default: - None. // EC2InstanceIdsToTerminate *[]*string `field:"optional" json:"eC2InstanceIdsToTerminate" yaml:"eC2InstanceIdsToTerminate"` // Target size for the instance group. // Default: - None. // InstanceCount *float64 `field:"optional" json:"instanceCount" yaml:"instanceCount"` // Policy for customizing shrink operations. // See: https://docs.aws.amazon.com/emr/latest/APIReference/API_ShrinkPolicy.html // // Default: - None. // ShrinkPolicy *EmrModifyInstanceGroupByName_ShrinkPolicyProperty `field:"optional" json:"shrinkPolicy" yaml:"shrinkPolicy"` }
Modify the size or configurations of an instance group.
Example:
tasks.NewEmrModifyInstanceGroupByName(this, jsii.String("Task"), &EmrModifyInstanceGroupByNameProps{ ClusterId: jsii.String("ClusterId"), InstanceGroupName: sfn.JsonPath_StringAt(jsii.String("$.InstanceGroupName")), InstanceGroup: &InstanceGroupModifyConfigProperty{ InstanceCount: jsii.Number(1), }, })
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_InstanceGroupModifyConfig.html
type EmrModifyInstanceGroupByName_InstanceResizePolicyProperty ¶
type EmrModifyInstanceGroupByName_InstanceResizePolicyProperty struct { // Specific list of instances to be protected when shrinking an instance group. // Default: - No instances will be protected when shrinking an instance group. // InstancesToProtect *[]*string `field:"optional" json:"instancesToProtect" yaml:"instancesToProtect"` // Specific list of instances to be terminated when shrinking an instance group. // Default: - No instances will be terminated when shrinking an instance group. // InstancesToTerminate *[]*string `field:"optional" json:"instancesToTerminate" yaml:"instancesToTerminate"` // Decommissioning timeout override for the specific list of instances to be terminated. // Default: cdk.Duration.seconds // InstanceTerminationTimeout awscdk.Duration `field:"optional" json:"instanceTerminationTimeout" yaml:"instanceTerminationTimeout"` }
Custom policy for requesting termination protection or termination of specific instances when shrinking an instance group.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" instanceResizePolicyProperty := &InstanceResizePolicyProperty{ InstancesToProtect: []*string{ jsii.String("instancesToProtect"), }, InstancesToTerminate: []*string{ jsii.String("instancesToTerminate"), }, InstanceTerminationTimeout: cdk.Duration_Minutes(jsii.Number(30)), }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_InstanceResizePolicy.html
type EmrModifyInstanceGroupByName_ShrinkPolicyProperty ¶
type EmrModifyInstanceGroupByName_ShrinkPolicyProperty struct { // The desired timeout for decommissioning an instance. // // Overrides the default YARN decommissioning timeout. // Default: - EMR selected default. // DecommissionTimeout awscdk.Duration `field:"optional" json:"decommissionTimeout" yaml:"decommissionTimeout"` // Custom policy for requesting termination protection or termination of specific instances when shrinking an instance group. // Default: - None. // InstanceResizePolicy *EmrModifyInstanceGroupByName_InstanceResizePolicyProperty `field:"optional" json:"instanceResizePolicy" yaml:"instanceResizePolicy"` }
Policy for customizing shrink operations.
Allows configuration of decommissioning timeout and targeted instance shrinking.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" shrinkPolicyProperty := &ShrinkPolicyProperty{ DecommissionTimeout: cdk.Duration_Minutes(jsii.Number(30)), InstanceResizePolicy: &InstanceResizePolicyProperty{ InstancesToProtect: []*string{ jsii.String("instancesToProtect"), }, InstancesToTerminate: []*string{ jsii.String("instancesToTerminate"), }, InstanceTerminationTimeout: cdk.Duration_*Minutes(jsii.Number(30)), }, }
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_ShrinkPolicy.html
type EmrSetClusterTerminationProtection ¶
type EmrSetClusterTerminationProtection interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions Task to to set Termination Protection on an EMR Cluster.
Example:
tasks.NewEmrSetClusterTerminationProtection(this, jsii.String("Task"), &EmrSetClusterTerminationProtectionProps{ ClusterId: jsii.String("ClusterId"), TerminationProtected: jsii.Boolean(false), })
func NewEmrSetClusterTerminationProtection ¶
func NewEmrSetClusterTerminationProtection(scope constructs.Construct, id *string, props *EmrSetClusterTerminationProtectionProps) EmrSetClusterTerminationProtection
type EmrSetClusterTerminationProtectionProps ¶
type EmrSetClusterTerminationProtectionProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The ClusterId to update. ClusterId *string `field:"required" json:"clusterId" yaml:"clusterId"` // Termination protection indicator. TerminationProtected *bool `field:"required" json:"terminationProtected" yaml:"terminationProtected"` }
Properties for EmrSetClusterTerminationProtection.
Example:
tasks.NewEmrSetClusterTerminationProtection(this, jsii.String("Task"), &EmrSetClusterTerminationProtectionProps{ ClusterId: jsii.String("ClusterId"), TerminationProtected: jsii.Boolean(false), })
type EmrTerminateCluster ¶
type EmrTerminateCluster interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions Task to terminate an EMR Cluster.
Example:
tasks.NewEmrTerminateCluster(this, jsii.String("Task"), &EmrTerminateClusterProps{ ClusterId: jsii.String("ClusterId"), })
func NewEmrTerminateCluster ¶
func NewEmrTerminateCluster(scope constructs.Construct, id *string, props *EmrTerminateClusterProps) EmrTerminateCluster
type EmrTerminateClusterProps ¶
type EmrTerminateClusterProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The ClusterId to terminate. ClusterId *string `field:"required" json:"clusterId" yaml:"clusterId"` }
Properties for EmrTerminateCluster.
Example:
tasks.NewEmrTerminateCluster(this, jsii.String("Task"), &EmrTerminateClusterProps{ ClusterId: jsii.String("ClusterId"), })
type EncryptionConfiguration ¶
type EncryptionConfiguration struct { // Type of S3 server-side encryption enabled. // Default: EncryptionOption.S3_MANAGED // EncryptionOption EncryptionOption `field:"required" json:"encryptionOption" yaml:"encryptionOption"` // KMS key ARN or ID. // Default: - No KMS key for Encryption Option SSE_S3 and default master key for Encryption Option SSE_KMS and CSE_KMS. // EncryptionKey awskms.IKey `field:"optional" json:"encryptionKey" yaml:"encryptionKey"` }
Encryption Configuration of the S3 bucket.
Example:
startQueryExecutionJob := tasks.NewAthenaStartQueryExecution(this, jsii.String("Start Athena Query"), &AthenaStartQueryExecutionProps{ QueryString: sfn.JsonPath_StringAt(jsii.String("$.queryString")), QueryExecutionContext: &QueryExecutionContext{ DatabaseName: jsii.String("mydatabase"), }, ResultConfiguration: &ResultConfiguration{ EncryptionConfiguration: &EncryptionConfiguration{ EncryptionOption: tasks.EncryptionOption_S3_MANAGED, }, OutputLocation: &Location{ BucketName: jsii.String("amzn-s3-demo-bucket"), ObjectKey: jsii.String("folder"), }, }, ExecutionParameters: []*string{ jsii.String("param1"), jsii.String("param2"), }, })
See: https://docs.aws.amazon.com/athena/latest/APIReference/API_EncryptionConfiguration.html
type EncryptionOption ¶
type EncryptionOption string
Encryption Options of the S3 bucket.
Example:
startQueryExecutionJob := tasks.NewAthenaStartQueryExecution(this, jsii.String("Start Athena Query"), &AthenaStartQueryExecutionProps{ QueryString: sfn.JsonPath_StringAt(jsii.String("$.queryString")), QueryExecutionContext: &QueryExecutionContext{ DatabaseName: jsii.String("mydatabase"), }, ResultConfiguration: &ResultConfiguration{ EncryptionConfiguration: &EncryptionConfiguration{ EncryptionOption: tasks.EncryptionOption_S3_MANAGED, }, OutputLocation: &Location{ BucketName: jsii.String("amzn-s3-demo-bucket"), ObjectKey: jsii.String("folder"), }, }, ExecutionParameters: []*string{ jsii.String("param1"), jsii.String("param2"), }, })
const ( // Server side encryption (SSE) with an Amazon S3-managed key. // See: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html // EncryptionOption_S3_MANAGED EncryptionOption = "S3_MANAGED" // Server-side encryption (SSE) with an AWS KMS key managed by the account owner. // See: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html // EncryptionOption_KMS EncryptionOption = "KMS" // Client-side encryption (CSE) with an AWS KMS key managed by the account owner. // See: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html // EncryptionOption_CLIENT_SIDE_KMS EncryptionOption = "CLIENT_SIDE_KMS" )
type EvaluateExpression ¶
type EvaluateExpression interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions Task to evaluate an expression.
OUTPUT: the output of this task is the evaluated expression.
Example:
convertToSeconds := tasks.NewEvaluateExpression(this, jsii.String("Convert to seconds"), &EvaluateExpressionProps{ Expression: jsii.String("$.waitMilliseconds / 1000"), ResultPath: jsii.String("$.waitSeconds"), }) createMessage := tasks.NewEvaluateExpression(this, jsii.String("Create message"), &EvaluateExpressionProps{ // Note: this is a string inside a string. Expression: jsii.String("`Now waiting ${$.waitSeconds} seconds...`"), Runtime: lambda.Runtime_NODEJS_LATEST(), ResultPath: jsii.String("$.message"), }) publishMessage := tasks.NewSnsPublish(this, jsii.String("Publish message"), &SnsPublishProps{ Topic: sns.NewTopic(this, jsii.String("cool-topic")), Message: sfn.TaskInput_FromJsonPathAt(jsii.String("$.message")), ResultPath: jsii.String("$.sns"), }) wait := sfn.NewWait(this, jsii.String("Wait"), &WaitProps{ Time: sfn.WaitTime_SecondsPath(jsii.String("$.waitSeconds")), }) sfn.NewStateMachine(this, jsii.String("StateMachine"), &StateMachineProps{ Definition: convertToSeconds.Next(createMessage).Next(publishMessage).*Next(wait), })
func NewEvaluateExpression ¶
func NewEvaluateExpression(scope constructs.Construct, id *string, props *EvaluateExpressionProps) EvaluateExpression
type EvaluateExpressionProps ¶
type EvaluateExpressionProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The expression to evaluate. The expression may contain state paths. // // Example value: `'$.a + $.b'` Expression *string `field:"required" json:"expression" yaml:"expression"` // The runtime language to use to evaluate the expression. // Default: - the latest Lambda node runtime available in your region. // Runtime awslambda.Runtime `field:"optional" json:"runtime" yaml:"runtime"` }
Properties for EvaluateExpression.
Example:
convertToSeconds := tasks.NewEvaluateExpression(this, jsii.String("Convert to seconds"), &EvaluateExpressionProps{ Expression: jsii.String("$.waitMilliseconds / 1000"), ResultPath: jsii.String("$.waitSeconds"), }) createMessage := tasks.NewEvaluateExpression(this, jsii.String("Create message"), &EvaluateExpressionProps{ // Note: this is a string inside a string. Expression: jsii.String("`Now waiting ${$.waitSeconds} seconds...`"), Runtime: lambda.Runtime_NODEJS_LATEST(), ResultPath: jsii.String("$.message"), }) publishMessage := tasks.NewSnsPublish(this, jsii.String("Publish message"), &SnsPublishProps{ Topic: sns.NewTopic(this, jsii.String("cool-topic")), Message: sfn.TaskInput_FromJsonPathAt(jsii.String("$.message")), ResultPath: jsii.String("$.sns"), }) wait := sfn.NewWait(this, jsii.String("Wait"), &WaitProps{ Time: sfn.WaitTime_SecondsPath(jsii.String("$.waitSeconds")), }) sfn.NewStateMachine(this, jsii.String("StateMachine"), &StateMachineProps{ Definition: convertToSeconds.Next(createMessage).Next(publishMessage).*Next(wait), })
type EventBridgePutEvents ¶
type EventBridgePutEvents interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A StepFunctions Task to send events to an EventBridge event bus.
Example:
import events "github.com/aws/aws-cdk-go/awscdk" myEventBus := events.NewEventBus(this, jsii.String("EventBus"), &EventBusProps{ EventBusName: jsii.String("MyEventBus1"), }) tasks.NewEventBridgePutEvents(this, jsii.String("Send an event to EventBridge"), &EventBridgePutEventsProps{ Entries: []eventBridgePutEventsEntry{ &eventBridgePutEventsEntry{ Detail: sfn.TaskInput_FromObject(map[string]interface{}{ "Message": jsii.String("Hello from Step Functions!"), }), EventBus: myEventBus, DetailType: jsii.String("MessageFromStepFunctions"), Source: jsii.String("step.functions"), }, }, })
func NewEventBridgePutEvents ¶
func NewEventBridgePutEvents(scope constructs.Construct, id *string, props *EventBridgePutEventsProps) EventBridgePutEvents
type EventBridgePutEventsEntry ¶
type EventBridgePutEventsEntry struct { // The event body. // // Can either be provided as an object or as a JSON-serialized string. // // Example: // sfn.TaskInput_FromText(jsii.String("{\"instance-id\": \"i-1234567890abcdef0\", \"state\": \"terminated\"}")) // sfn.TaskInput_FromObject(map[string]interface{}{ // "Message": jsii.String("Hello from Step Functions"), // }) // sfn.TaskInput_FromJsonPathAt(jsii.String("$.EventDetail")) // Detail awsstepfunctions.TaskInput `field:"required" json:"detail" yaml:"detail"` // Used along with the source field to help identify the fields and values expected in the detail field. // // For example, events by CloudTrail have detail type "AWS API Call via CloudTrail". // See: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-events.html // DetailType *string `field:"required" json:"detailType" yaml:"detailType"` // The service or application that caused this event to be generated. // // Example value: `com.example.service` // See: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-events.html // Source *string `field:"required" json:"source" yaml:"source"` // The event bus the entry will be sent to. // Default: - event is sent to account's default event bus. // EventBus awsevents.IEventBus `field:"optional" json:"eventBus" yaml:"eventBus"` }
An entry to be sent to EventBridge.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" var eventBus eventBus var taskInput taskInput eventBridgePutEventsEntry := &EventBridgePutEventsEntry{ Detail: taskInput, DetailType: jsii.String("detailType"), Source: jsii.String("source"), // the properties below are optional EventBus: eventBus, }
See: https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEventsRequestEntry.html
type EventBridgePutEventsProps ¶
type EventBridgePutEventsProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The entries that will be sent. // // Minimum number of entries is 1 and maximum is 10, // unless [PutEvents API limit](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEvents.html#API_PutEvents_RequestSyntax) has changed. Entries *[]*EventBridgePutEventsEntry `field:"required" json:"entries" yaml:"entries"` }
Properties for sending events with PutEvents.
Example:
import events "github.com/aws/aws-cdk-go/awscdk" myEventBus := events.NewEventBus(this, jsii.String("EventBus"), &EventBusProps{ EventBusName: jsii.String("MyEventBus1"), }) tasks.NewEventBridgePutEvents(this, jsii.String("Send an event to EventBridge"), &EventBridgePutEventsProps{ Entries: []eventBridgePutEventsEntry{ &eventBridgePutEventsEntry{ Detail: sfn.TaskInput_FromObject(map[string]interface{}{ "Message": jsii.String("Hello from Step Functions!"), }), EventBus: myEventBus, DetailType: jsii.String("MessageFromStepFunctions"), Source: jsii.String("step.functions"), }, }, })
type EventBridgeSchedulerCreateScheduleTask ¶ added in v2.168.0
type EventBridgeSchedulerCreateScheduleTask interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Create a new AWS EventBridge Scheduler schedule.
Example:
import scheduler "github.com/aws/aws-cdk-go/awscdk" import kms "github.com/aws/aws-cdk-go/awscdk" var key key var scheduleGroup cfnScheduleGroup var targetQueue queue var deadLetterQueue queue schedulerRole := iam.NewRole(this, jsii.String("SchedulerRole"), &RoleProps{ AssumedBy: iam.NewServicePrincipal(jsii.String("scheduler.amazonaws.com")), }) // To send the message to the queue // This policy changes depending on the type of target. schedulerRole.AddToPrincipalPolicy(iam.NewPolicyStatement(&PolicyStatementProps{ Actions: []*string{ jsii.String("sqs:SendMessage"), }, Resources: []*string{ targetQueue.QueueArn, }, })) createScheduleTask1 := tasks.NewEventBridgeSchedulerCreateScheduleTask(this, jsii.String("createSchedule"), &EventBridgeSchedulerCreateScheduleTaskProps{ ScheduleName: jsii.String("TestSchedule"), ActionAfterCompletion: tasks.ActionAfterCompletion_NONE, ClientToken: jsii.String("testToken"), Description: jsii.String("TestDescription"), StartDate: NewDate(), EndDate: NewDate(NewDate().getTime() + 1000 * 60 * 60), FlexibleTimeWindow: awscdk.Duration_Minutes(jsii.Number(5)), GroupName: scheduleGroup.ref, KmsKey: key, Schedule: tasks.Schedule_Rate(awscdk.Duration_*Minutes(jsii.Number(5))), Timezone: jsii.String("UTC"), Enabled: jsii.Boolean(true), Target: tasks.NewEventBridgeSchedulerTarget(&EventBridgeSchedulerTargetProps{ Arn: targetQueue.*QueueArn, Role: schedulerRole, RetryPolicy: &RetryPolicy{ MaximumRetryAttempts: jsii.Number(2), MaximumEventAge: awscdk.Duration_*Minutes(jsii.Number(5)), }, DeadLetterQueue: *DeadLetterQueue, }), })
See: https://docs.aws.amazon.com/scheduler/latest/APIReference/API_CreateSchedule.html
func NewEventBridgeSchedulerCreateScheduleTask ¶ added in v2.168.0
func NewEventBridgeSchedulerCreateScheduleTask(scope constructs.Construct, id *string, props *EventBridgeSchedulerCreateScheduleTaskProps) EventBridgeSchedulerCreateScheduleTask
type EventBridgeSchedulerCreateScheduleTaskProps ¶ added in v2.168.0
type EventBridgeSchedulerCreateScheduleTaskProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The schedule that defines when the schedule will trigger. // See: https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html // Schedule Schedule `field:"required" json:"schedule" yaml:"schedule"` // Schedule name. ScheduleName *string `field:"required" json:"scheduleName" yaml:"scheduleName"` // The schedule's target. Target EventBridgeSchedulerTarget `field:"required" json:"target" yaml:"target"` // Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target. // Default: ActionAfterCompletion.NONE // ActionAfterCompletion ActionAfterCompletion `field:"optional" json:"actionAfterCompletion" yaml:"actionAfterCompletion"` // Unique, case-sensitive identifier to ensure the idempotency of the request. // Default: - Automatically generated. // ClientToken *string `field:"optional" json:"clientToken" yaml:"clientToken"` // The description for the schedule. // Default: - No description. // Description *string `field:"optional" json:"description" yaml:"description"` // Specifies whether the schedule is enabled or disabled. // Default: true. // Enabled *bool `field:"optional" json:"enabled" yaml:"enabled"` // The date, in UTC, before which the schedule can invoke its target. // // Depending on the schedule's recurrence expression, invocations might stop on, or before, the EndDate you specify. // EventBridge Scheduler ignores EndDate for one-time schedules. // Default: - No end date. // EndDate *time.Time `field:"optional" json:"endDate" yaml:"endDate"` // The maximum time window during which a schedule can be invoked. // // Minimum value is 1 minute. // Maximum value is 1440 minutes (1 day). // Default: - Flexible time window is not enabled. // FlexibleTimeWindow awscdk.Duration `field:"optional" json:"flexibleTimeWindow" yaml:"flexibleTimeWindow"` // The name of the schedule group to associate with this schedule. // Default: - The default schedule group is used. // GroupName *string `field:"optional" json:"groupName" yaml:"groupName"` // The customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt payload. // See: https://docs.aws.amazon.com/scheduler/latest/UserGuide/encryption-rest.html // // Default: - Use automatically generated KMS key. // KmsKey awskms.IKey `field:"optional" json:"kmsKey" yaml:"kmsKey"` // The date, in UTC, after which the schedule can begin invoking its target. // // Depending on the schedule's recurrence expression, invocations might occur on, or after, the StartDate you specify. // EventBridge Scheduler ignores StartDate for one-time schedules. // Default: - No start date. // StartDate *time.Time `field:"optional" json:"startDate" yaml:"startDate"` // The timezone in which the scheduling expression is evaluated. // Default: - UTC. // Timezone *string `field:"optional" json:"timezone" yaml:"timezone"` }
Properties for creating an AWS EventBridge Scheduler schedule.
Example:
import scheduler "github.com/aws/aws-cdk-go/awscdk" import kms "github.com/aws/aws-cdk-go/awscdk" var key key var scheduleGroup cfnScheduleGroup var targetQueue queue var deadLetterQueue queue schedulerRole := iam.NewRole(this, jsii.String("SchedulerRole"), &RoleProps{ AssumedBy: iam.NewServicePrincipal(jsii.String("scheduler.amazonaws.com")), }) // To send the message to the queue // This policy changes depending on the type of target. schedulerRole.AddToPrincipalPolicy(iam.NewPolicyStatement(&PolicyStatementProps{ Actions: []*string{ jsii.String("sqs:SendMessage"), }, Resources: []*string{ targetQueue.QueueArn, }, })) createScheduleTask1 := tasks.NewEventBridgeSchedulerCreateScheduleTask(this, jsii.String("createSchedule"), &EventBridgeSchedulerCreateScheduleTaskProps{ ScheduleName: jsii.String("TestSchedule"), ActionAfterCompletion: tasks.ActionAfterCompletion_NONE, ClientToken: jsii.String("testToken"), Description: jsii.String("TestDescription"), StartDate: NewDate(), EndDate: NewDate(NewDate().getTime() + 1000 * 60 * 60), FlexibleTimeWindow: awscdk.Duration_Minutes(jsii.Number(5)), GroupName: scheduleGroup.ref, KmsKey: key, Schedule: tasks.Schedule_Rate(awscdk.Duration_*Minutes(jsii.Number(5))), Timezone: jsii.String("UTC"), Enabled: jsii.Boolean(true), Target: tasks.NewEventBridgeSchedulerTarget(&EventBridgeSchedulerTargetProps{ Arn: targetQueue.*QueueArn, Role: schedulerRole, RetryPolicy: &RetryPolicy{ MaximumRetryAttempts: jsii.Number(2), MaximumEventAge: awscdk.Duration_*Minutes(jsii.Number(5)), }, DeadLetterQueue: *DeadLetterQueue, }), })
type EventBridgeSchedulerTarget ¶ added in v2.168.0
type EventBridgeSchedulerTarget interface { // The Amazon Resource Name (ARN) of the target. Arn() *string SetArn(val *string) // Dead letter queue for failed events. DeadLetterQueue() awssqs.IQueue SetDeadLetterQueue(val awssqs.IQueue) // The input to the target. Input() *string SetInput(val *string) // The retry policy settings. RetryPolicy() *RetryPolicy SetRetryPolicy(val *RetryPolicy) // The IAM role that EventBridge Scheduler will use for this target when the schedule is invoked. Role() awsiam.IRole SetRole(val awsiam.IRole) // return the target object for the EventBridge Scheduler. RenderTargetObject() interface{} }
The target that EventBridge Scheduler will invoke.
Example:
import scheduler "github.com/aws/aws-cdk-go/awscdk" import kms "github.com/aws/aws-cdk-go/awscdk" var key key var scheduleGroup cfnScheduleGroup var targetQueue queue var deadLetterQueue queue schedulerRole := iam.NewRole(this, jsii.String("SchedulerRole"), &RoleProps{ AssumedBy: iam.NewServicePrincipal(jsii.String("scheduler.amazonaws.com")), }) // To send the message to the queue // This policy changes depending on the type of target. schedulerRole.AddToPrincipalPolicy(iam.NewPolicyStatement(&PolicyStatementProps{ Actions: []*string{ jsii.String("sqs:SendMessage"), }, Resources: []*string{ targetQueue.QueueArn, }, })) createScheduleTask1 := tasks.NewEventBridgeSchedulerCreateScheduleTask(this, jsii.String("createSchedule"), &EventBridgeSchedulerCreateScheduleTaskProps{ ScheduleName: jsii.String("TestSchedule"), ActionAfterCompletion: tasks.ActionAfterCompletion_NONE, ClientToken: jsii.String("testToken"), Description: jsii.String("TestDescription"), StartDate: NewDate(), EndDate: NewDate(NewDate().getTime() + 1000 * 60 * 60), FlexibleTimeWindow: awscdk.Duration_Minutes(jsii.Number(5)), GroupName: scheduleGroup.ref, KmsKey: key, Schedule: tasks.Schedule_Rate(awscdk.Duration_*Minutes(jsii.Number(5))), Timezone: jsii.String("UTC"), Enabled: jsii.Boolean(true), Target: tasks.NewEventBridgeSchedulerTarget(&EventBridgeSchedulerTargetProps{ Arn: targetQueue.*QueueArn, Role: schedulerRole, RetryPolicy: &RetryPolicy{ MaximumRetryAttempts: jsii.Number(2), MaximumEventAge: awscdk.Duration_*Minutes(jsii.Number(5)), }, DeadLetterQueue: *DeadLetterQueue, }), })
func NewEventBridgeSchedulerTarget ¶ added in v2.168.0
func NewEventBridgeSchedulerTarget(props *EventBridgeSchedulerTargetProps) EventBridgeSchedulerTarget
type EventBridgeSchedulerTargetProps ¶ added in v2.168.0
type EventBridgeSchedulerTargetProps struct { // The Amazon Resource Name (ARN) of the target. // See: https://docs.aws.amazon.com/scheduler/latest/UserGuide/managing-targets.html // Arn *string `field:"required" json:"arn" yaml:"arn"` // The IAM role that EventBridge Scheduler will use for this target when the schedule is invoked. Role awsiam.IRole `field:"required" json:"role" yaml:"role"` // Dead letter queue for failed events. // Default: - No dead letter queue. // DeadLetterQueue awssqs.IQueue `field:"optional" json:"deadLetterQueue" yaml:"deadLetterQueue"` // The input to the target. // Default: - EventBridge Scheduler delivers a default notification to the target. // Input *string `field:"optional" json:"input" yaml:"input"` // The retry policy settings. // Default: - Do not retry. // RetryPolicy *RetryPolicy `field:"optional" json:"retryPolicy" yaml:"retryPolicy"` }
Properties for `EventBridgeSchedulerTarget`.
Example:
import scheduler "github.com/aws/aws-cdk-go/awscdk" import kms "github.com/aws/aws-cdk-go/awscdk" var key key var scheduleGroup cfnScheduleGroup var targetQueue queue var deadLetterQueue queue schedulerRole := iam.NewRole(this, jsii.String("SchedulerRole"), &RoleProps{ AssumedBy: iam.NewServicePrincipal(jsii.String("scheduler.amazonaws.com")), }) // To send the message to the queue // This policy changes depending on the type of target. schedulerRole.AddToPrincipalPolicy(iam.NewPolicyStatement(&PolicyStatementProps{ Actions: []*string{ jsii.String("sqs:SendMessage"), }, Resources: []*string{ targetQueue.QueueArn, }, })) createScheduleTask1 := tasks.NewEventBridgeSchedulerCreateScheduleTask(this, jsii.String("createSchedule"), &EventBridgeSchedulerCreateScheduleTaskProps{ ScheduleName: jsii.String("TestSchedule"), ActionAfterCompletion: tasks.ActionAfterCompletion_NONE, ClientToken: jsii.String("testToken"), Description: jsii.String("TestDescription"), StartDate: NewDate(), EndDate: NewDate(NewDate().getTime() + 1000 * 60 * 60), FlexibleTimeWindow: awscdk.Duration_Minutes(jsii.Number(5)), GroupName: scheduleGroup.ref, KmsKey: key, Schedule: tasks.Schedule_Rate(awscdk.Duration_*Minutes(jsii.Number(5))), Timezone: jsii.String("UTC"), Enabled: jsii.Boolean(true), Target: tasks.NewEventBridgeSchedulerTarget(&EventBridgeSchedulerTargetProps{ Arn: targetQueue.*QueueArn, Role: schedulerRole, RetryPolicy: &RetryPolicy{ MaximumRetryAttempts: jsii.Number(2), MaximumEventAge: awscdk.Duration_*Minutes(jsii.Number(5)), }, DeadLetterQueue: *DeadLetterQueue, }), })
See: https://docs.aws.amazon.com/scheduler/latest/APIReference/API_Target.html#API_Target_Contents
type ExecutionClass ¶ added in v2.147.0
type ExecutionClass string
The excecution class of the job.
Example:
tasks.NewGlueStartJobRun(this, jsii.String("Task"), &GlueStartJobRunProps{ GlueJobName: jsii.String("my-glue-job"), ExecutionClass: tasks.ExecutionClass_FLEX, })
const ( // The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary. // // Only jobs with AWS Glue version 3.0 and above and command type `glueetl` will be allowed to set `ExecutionClass` to `FLEX`. // The flexible execution class is available for Spark jobs. ExecutionClass_FLEX ExecutionClass = "FLEX" // The standard execution class is ideal for time-sensitive workloads that require fast job startup and dedicated resources. ExecutionClass_STANDARD ExecutionClass = "STANDARD" )
type GlueDataBrewStartJobRun ¶
type GlueDataBrewStartJobRun interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Start a Job run as a Task.
Example:
tasks.NewGlueDataBrewStartJobRun(this, jsii.String("Task"), &GlueDataBrewStartJobRunProps{ Name: jsii.String("databrew-job"), })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-databrew.html
func NewGlueDataBrewStartJobRun ¶
func NewGlueDataBrewStartJobRun(scope constructs.Construct, id *string, props *GlueDataBrewStartJobRunProps) GlueDataBrewStartJobRun
type GlueDataBrewStartJobRunProps ¶
type GlueDataBrewStartJobRunProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // Glue DataBrew Job to run. Name *string `field:"required" json:"name" yaml:"name"` }
Properties for starting a job run with StartJobRun.
Example:
tasks.NewGlueDataBrewStartJobRun(this, jsii.String("Task"), &GlueDataBrewStartJobRunProps{ Name: jsii.String("databrew-job"), })
type GlueStartCrawlerRun ¶ added in v2.133.0
type GlueStartCrawlerRun interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Starts an AWS Glue Crawler in a Task state.
Example:
import glue "github.com/aws/aws-cdk-go/awscdk" var myCrawler cfnCrawler // You can get the crawler name from `crawler.ref` // You can get the crawler name from `crawler.ref` tasks.NewGlueStartCrawlerRun(this, jsii.String("Task1"), &GlueStartCrawlerRunProps{ CrawlerName: myCrawler.ref, }) // Of course, you can also specify the crawler name directly. // Of course, you can also specify the crawler name directly. tasks.NewGlueStartCrawlerRun(this, jsii.String("Task2"), &GlueStartCrawlerRunProps{ CrawlerName: jsii.String("my-crawler-job"), })
func NewGlueStartCrawlerRun ¶ added in v2.133.0
func NewGlueStartCrawlerRun(scope constructs.Construct, id *string, props *GlueStartCrawlerRunProps) GlueStartCrawlerRun
type GlueStartCrawlerRunProps ¶ added in v2.133.0
type GlueStartCrawlerRunProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // Glue crawler name. CrawlerName *string `field:"required" json:"crawlerName" yaml:"crawlerName"` }
Properties for starting an AWS Glue Crawler as a task.
Example:
import glue "github.com/aws/aws-cdk-go/awscdk" var myCrawler cfnCrawler // You can get the crawler name from `crawler.ref` // You can get the crawler name from `crawler.ref` tasks.NewGlueStartCrawlerRun(this, jsii.String("Task1"), &GlueStartCrawlerRunProps{ CrawlerName: myCrawler.ref, }) // Of course, you can also specify the crawler name directly. // Of course, you can also specify the crawler name directly. tasks.NewGlueStartCrawlerRun(this, jsii.String("Task2"), &GlueStartCrawlerRunProps{ CrawlerName: jsii.String("my-crawler-job"), })
type GlueStartJobRun ¶
type GlueStartJobRun interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Starts an AWS Glue job in a Task state.
OUTPUT: the output of this task is a JobRun structure, for details consult https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-jobs-runs.html#aws-glue-api-jobs-runs-JobRun
Example:
tasks.NewGlueStartJobRun(this, jsii.String("Task"), &GlueStartJobRunProps{ GlueJobName: jsii.String("my-glue-job"), WorkerConfiguration: &WorkerConfigurationProperty{ WorkerType: tasks.WorkerType_G_1X, // Worker type NumberOfWorkers: jsii.Number(2), }, })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-glue.html
func NewGlueStartJobRun ¶
func NewGlueStartJobRun(scope constructs.Construct, id *string, props *GlueStartJobRunProps) GlueStartJobRun
type GlueStartJobRunProps ¶
type GlueStartJobRunProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // Glue job name. GlueJobName *string `field:"required" json:"glueJobName" yaml:"glueJobName"` // The job arguments specifically for this run. // // For this job run, they replace the default arguments set in the job // definition itself. // Default: - Default arguments set in the job definition. // Arguments awsstepfunctions.TaskInput `field:"optional" json:"arguments" yaml:"arguments"` // The excecution class of the job. // Default: - STANDARD. // ExecutionClass ExecutionClass `field:"optional" json:"executionClass" yaml:"executionClass"` // After a job run starts, the number of minutes to wait before sending a job run delay notification. // // Must be at least 1 minute. // Default: - Default delay set in the job definition. // NotifyDelayAfter awscdk.Duration `field:"optional" json:"notifyDelayAfter" yaml:"notifyDelayAfter"` // The name of the SecurityConfiguration structure to be used with this job run. // // This must match the Glue API. // See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-common.html#aws-glue-api-regex-oneLine // // Default: - Default configuration set in the job definition. // SecurityConfiguration *string `field:"optional" json:"securityConfiguration" yaml:"securityConfiguration"` // The worker configuration for this run. // Default: - Default worker configuration in the job definition. // WorkerConfiguration *WorkerConfigurationProperty `field:"optional" json:"workerConfiguration" yaml:"workerConfiguration"` }
Properties for starting an AWS Glue job as a task.
Example:
tasks.NewGlueStartJobRun(this, jsii.String("Task"), &GlueStartJobRunProps{ GlueJobName: jsii.String("my-glue-job"), WorkerConfiguration: &WorkerConfigurationProperty{ WorkerType: tasks.WorkerType_G_1X, // Worker type NumberOfWorkers: jsii.Number(2), }, })
type Guardrail ¶ added in v2.149.0
type Guardrail interface { // The identitifier of guardrail. GuardrailIdentifier() *string // The version of guardrail. GuardrailVersion() *string }
Guradrail settings for BedrockInvokeModel.
Example:
import "github.com/aws/aws-cdk-go/awscdk" model := bedrock.FoundationModel_FromFoundationModelId(this, jsii.String("Model"), bedrock.FoundationModelIdentifier_AMAZON_TITAN_TEXT_G1_EXPRESS_V1()) task := tasks.NewBedrockInvokeModel(this, jsii.String("Prompt Model with guardrail"), &BedrockInvokeModelProps{ Model: Model, Body: sfn.TaskInput_FromObject(map[string]interface{}{ "inputText": jsii.String("Generate a list of five first names."), "textGenerationConfig": map[string]*f64{ "maxTokenCount": jsii.Number(100), "temperature": jsii.Number(1), }, }), Guardrail: tasks.Guardrail_Enable(jsii.String("guardrailId"), jsii.Number(1)), ResultSelector: map[string]interface{}{ "names": sfn.JsonPath_stringAt(jsii.String("$.Body.results[0].outputText")), }, })
func Guardrail_Enable ¶ added in v2.149.0
Enable guardrail.
func Guardrail_EnableDraft ¶ added in v2.149.0
Enable guardrail with DRAFT version.
type HttpInvoke ¶ added in v2.138.0
type HttpInvoke interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) BuildTaskPolicyStatements() *[]awsiam.PolicyStatement // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions Task to call a public third-party API.
Example:
import "github.com/aws/aws-cdk-go/awscdk" connection := events.NewConnection(this, jsii.String("Connection"), &ConnectionProps{ Authorization: events.Authorization_Basic(jsii.String("username"), awscdk.SecretValue_UnsafePlainText(jsii.String("password"))), }) tasks.NewHttpInvoke(this, jsii.String("Invoke HTTP API"), &HttpInvokeProps{ ApiRoot: jsii.String("https://api.example.com"), ApiEndpoint: sfn.TaskInput_FromText(jsii.String("path/to/resource")), Body: sfn.TaskInput_FromObject(map[string]interface{}{ "foo": jsii.String("bar"), }), Connection: Connection, Headers: sfn.TaskInput_*FromObject(map[string]interface{}{ "Content-Type": jsii.String("application/json"), }), Method: sfn.TaskInput_*FromText(jsii.String("POST")), QueryStringParameters: sfn.TaskInput_*FromObject(map[string]interface{}{ "id": jsii.String("123"), }), UrlEncodingFormat: tasks.URLEncodingFormat_BRACKETS, })
func NewHttpInvoke ¶ added in v2.138.0
func NewHttpInvoke(scope constructs.Construct, id *string, props *HttpInvokeProps) HttpInvoke
type HttpInvokeProps ¶ added in v2.138.0
type HttpInvokeProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The API endpoint to call, relative to `apiRoot`. // // Example: // sfn.TaskInput_FromText(jsii.String("path/to/resource")) // ApiEndpoint awsstepfunctions.TaskInput `field:"required" json:"apiEndpoint" yaml:"apiEndpoint"` // Permissions are granted to call all resources under this path. // // Example: // "https://api.example.com" // ApiRoot *string `field:"required" json:"apiRoot" yaml:"apiRoot"` // The EventBridge Connection to use for authentication. Connection awsevents.IConnection `field:"required" json:"connection" yaml:"connection"` // The HTTP method to use. // // Example: // sfn.TaskInput_FromText(jsii.String("GET")) // Method awsstepfunctions.TaskInput `field:"required" json:"method" yaml:"method"` // The body to send to the HTTP endpoint. // Default: - No body is sent with the request. // Body awsstepfunctions.TaskInput `field:"optional" json:"body" yaml:"body"` // The headers to send to the HTTP endpoint. // // Example: // sfn.TaskInput_FromObject(map[string]interface{}{ // "Content-Type": jsii.String("application/json"), // }) // // Default: - No additional headers are added to the request. // Headers awsstepfunctions.TaskInput `field:"optional" json:"headers" yaml:"headers"` // The query string parameters to send to the HTTP endpoint. // Default: - No query string parameters are sent in the request. // QueryStringParameters awsstepfunctions.TaskInput `field:"optional" json:"queryStringParameters" yaml:"queryStringParameters"` // Determines whether to apply URL encoding to the request body, and which array encoding format to use. // // `URLEncodingFormat.NONE` passes the JSON-serialized `RequestBody` field as the HTTP request body. // Otherwise, the HTTP request body is the URL-encoded form data of the `RequestBody` field using the // specified array encoding format, and the `Content-Type` header is set to `application/x-www-form-urlencoded`. // Default: - URLEncodingFormat.NONE // UrlEncodingFormat URLEncodingFormat `field:"optional" json:"urlEncodingFormat" yaml:"urlEncodingFormat"` }
Properties for calling an external HTTP endpoint with HttpInvoke.
Example:
import "github.com/aws/aws-cdk-go/awscdk" connection := events.NewConnection(this, jsii.String("Connection"), &ConnectionProps{ Authorization: events.Authorization_Basic(jsii.String("username"), awscdk.SecretValue_UnsafePlainText(jsii.String("password"))), }) tasks.NewHttpInvoke(this, jsii.String("Invoke HTTP API"), &HttpInvokeProps{ ApiRoot: jsii.String("https://api.example.com"), ApiEndpoint: sfn.TaskInput_FromText(jsii.String("path/to/resource")), Body: sfn.TaskInput_FromObject(map[string]interface{}{ "foo": jsii.String("bar"), }), Connection: Connection, Headers: sfn.TaskInput_*FromObject(map[string]interface{}{ "Content-Type": jsii.String("application/json"), }), Method: sfn.TaskInput_*FromText(jsii.String("POST")), QueryStringParameters: sfn.TaskInput_*FromObject(map[string]interface{}{ "id": jsii.String("123"), }), UrlEncodingFormat: tasks.URLEncodingFormat_BRACKETS, })
type HttpMethod ¶
type HttpMethod string
Http Methods that API Gateway supports.
Example:
import apigatewayv2 "github.com/aws/aws-cdk-go/awscdk" httpApi := apigatewayv2.NewHttpApi(this, jsii.String("MyHttpApi")) invokeTask := tasks.NewCallApiGatewayHttpApiEndpoint(this, jsii.String("Call HTTP API"), &CallApiGatewayHttpApiEndpointProps{ ApiId: httpApi.ApiId, ApiStack: awscdk.*stack_Of(httpApi), Method: tasks.HttpMethod_GET, })
const ( // Retreive data from a server at the specified resource. HttpMethod_GET HttpMethod = "GET" // Send data to the API endpoint to create or udpate a resource. HttpMethod_POST HttpMethod = "POST" // Send data to the API endpoint to update or create a resource. HttpMethod_PUT HttpMethod = "PUT" // Delete the resource at the specified endpoint. HttpMethod_DELETE HttpMethod = "DELETE" // Apply partial modifications to the resource. HttpMethod_PATCH HttpMethod = "PATCH" // Retreive data from a server at the specified resource without the response body. HttpMethod_HEAD HttpMethod = "HEAD" // Return data describing what other methods and operations the server supports. HttpMethod_OPTIONS HttpMethod = "OPTIONS" )
type HttpMethods ¶
type HttpMethods string
Method type of a EKS call.
Example:
import "github.com/aws/aws-cdk-go/awscdk" myEksCluster := eks.NewCluster(this, jsii.String("my sample cluster"), &ClusterProps{ Version: eks.KubernetesVersion_V1_18(), ClusterName: jsii.String("myEksCluster"), }) tasks.NewEksCall(this, jsii.String("Call a EKS Endpoint"), &EksCallProps{ Cluster: myEksCluster, HttpMethod: tasks.HttpMethods_GET, HttpPath: jsii.String("/api/v1/namespaces/default/pods"), })
const ( // Retrieve data from a server at the specified resource. HttpMethods_GET HttpMethods = "GET" // Send data to the API endpoint to create or update a resource. HttpMethods_POST HttpMethods = "POST" // Send data to the API endpoint to update or create a resource. HttpMethods_PUT HttpMethods = "PUT" // Delete the resource at the specified endpoint. HttpMethods_DELETE HttpMethods = "DELETE" // Apply partial modifications to the resource. HttpMethods_PATCH HttpMethods = "PATCH" // Retrieve data from a server at the specified resource without the response body. HttpMethods_HEAD HttpMethods = "HEAD" )
type IContainerDefinition ¶
type IContainerDefinition interface { // Called when the ContainerDefinition is used by a SageMaker task. Bind(task ISageMakerTask) *ContainerDefinitionConfig }
Configuration of the container used to host the model. See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ContainerDefinition.html
type IEcsLaunchTarget ¶
type IEcsLaunchTarget interface { // called when the ECS launch target is configured on RunTask. Bind(task EcsRunTask, launchTargetOptions *LaunchTargetBindOptions) *EcsLaunchTargetConfig }
An Amazon ECS launch type determines the type of infrastructure on which your tasks and services are hosted. See: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html
type ISageMakerTask ¶
type ISageMakerTask interface { awsiam.IGrantable }
Task to train a machine learning model using Amazon SageMaker.
type InputMode ¶
type InputMode string
Input mode that the algorithm supports.
Example:
tasks.NewSageMakerCreateTrainingJob(this, jsii.String("TrainSagemaker"), &SageMakerCreateTrainingJobProps{ TrainingJobName: sfn.JsonPath_StringAt(jsii.String("$.JobName")), AlgorithmSpecification: &AlgorithmSpecification{ AlgorithmName: jsii.String("BlazingText"), TrainingInputMode: tasks.InputMode_FILE, }, InputDataConfig: []channel{ &channel{ ChannelName: jsii.String("train"), DataSource: &DataSource{ S3DataSource: &S3DataSource{ S3DataType: tasks.S3DataType_S3_PREFIX, S3Location: tasks.S3Location_FromJsonExpression(jsii.String("$.S3Bucket")), }, }, }, }, OutputDataConfig: &OutputDataConfig{ S3OutputLocation: tasks.S3Location_FromBucket(s3.Bucket_FromBucketName(this, jsii.String("Bucket"), jsii.String("amzn-s3-demo-bucket")), jsii.String("myoutputpath")), }, ResourceConfig: &ResourceConfig{ InstanceCount: jsii.Number(1), InstanceType: ec2.NewInstanceType(sfn.JsonPath_*StringAt(jsii.String("$.InstanceType"))), VolumeSize: awscdk.Size_Gibibytes(jsii.Number(50)), }, // optional: default is 1 instance of EC2 `M4.XLarge` with `10GB` volume StoppingCondition: &StoppingCondition{ MaxRuntime: awscdk.Duration_Hours(jsii.Number(2)), }, })
type JobDependency ¶
type JobDependency struct { // The job ID of the AWS Batch job associated with this dependency. // Default: - No jobId. // JobId *string `field:"optional" json:"jobId" yaml:"jobId"` // The type of the job dependency. // Default: - No type. // Type *string `field:"optional" json:"type" yaml:"type"` }
An object representing an AWS Batch job dependency.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" jobDependency := &JobDependency{ JobId: jsii.String("jobId"), Type: jsii.String("type"), }
type JobDriver ¶ added in v2.1.0
type JobDriver struct { // The job driver parameters specified for spark submit. // See: https://docs.aws.amazon.com/emr-on-eks/latest/APIReference/API_SparkSubmitJobDriver.html // SparkSubmitJobDriver *SparkSubmitJobDriver `field:"required" json:"sparkSubmitJobDriver" yaml:"sparkSubmitJobDriver"` }
Specify the driver that the EMR Containers job runs on.
The job driver is used to provide an input for the job that will be run.
Example:
tasks.NewEmrContainersStartJobRun(this, jsii.String("EMR Containers Start Job Run"), &EmrContainersStartJobRunProps{ VirtualCluster: tasks.VirtualClusterInput_FromVirtualClusterId(jsii.String("de92jdei2910fwedz")), ReleaseLabel: tasks.ReleaseLabel_EMR_6_2_0(), JobName: jsii.String("EMR-Containers-Job"), JobDriver: &JobDriver{ SparkSubmitJobDriver: &SparkSubmitJobDriver{ EntryPoint: sfn.TaskInput_FromText(jsii.String("local:///usr/lib/spark/examples/src/main/python/pi.py")), }, }, ApplicationConfig: []applicationConfiguration{ &applicationConfiguration{ Classification: tasks.Classification_SPARK_DEFAULTS(), Properties: map[string]*string{ "spark.executor.instances": jsii.String("1"), "spark.executor.memory": jsii.String("512M"), }, }, }, })
type LambdaInvocationType ¶
type LambdaInvocationType string
Invocation type of a Lambda.
const ( // Invoke the function synchronously. // // Keep the connection open until the function returns a response or times out. // The API response includes the function response and additional data. LambdaInvocationType_REQUEST_RESPONSE LambdaInvocationType = "REQUEST_RESPONSE" // Invoke the function asynchronously. // // Send events that fail multiple times to the function's dead-letter queue (if it's configured). // The API response only includes a status code. LambdaInvocationType_EVENT LambdaInvocationType = "EVENT" // Validate parameter values and verify that the user or role has permission to invoke the function. LambdaInvocationType_DRY_RUN LambdaInvocationType = "DRY_RUN" )
type LambdaInvoke ¶
type LambdaInvoke interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Invoke a Lambda function as a Task.
Example:
var fn function tasks.NewLambdaInvoke(this, jsii.String("Invoke with empty object as payload"), &LambdaInvokeProps{ LambdaFunction: fn, Payload: sfn.TaskInput_FromObject(map[string]interface{}{ }), }) // use the output of fn as input // use the output of fn as input tasks.NewLambdaInvoke(this, jsii.String("Invoke with payload field in the state input"), &LambdaInvokeProps{ LambdaFunction: fn, Payload: sfn.TaskInput_FromJsonPathAt(jsii.String("$.Payload")), })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-lambda.html
func NewLambdaInvoke ¶
func NewLambdaInvoke(scope constructs.Construct, id *string, props *LambdaInvokeProps) LambdaInvoke
type LambdaInvokeProps ¶
type LambdaInvokeProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // Lambda function to invoke. LambdaFunction awslambda.IFunction `field:"required" json:"lambdaFunction" yaml:"lambdaFunction"` // Up to 3583 bytes of base64-encoded data about the invoking client to pass to the function. // Default: - No context. // ClientContext *string `field:"optional" json:"clientContext" yaml:"clientContext"` // Invocation type of the Lambda function. // Default: InvocationType.REQUEST_RESPONSE // InvocationType LambdaInvocationType `field:"optional" json:"invocationType" yaml:"invocationType"` // The JSON that will be supplied as input to the Lambda function. // Default: - The state input (JSON path '$'). // Payload awsstepfunctions.TaskInput `field:"optional" json:"payload" yaml:"payload"` // Invoke the Lambda in a way that only returns the payload response without additional metadata. // // The `payloadResponseOnly` property cannot be used if `integrationPattern`, `invocationType`, // `clientContext`, or `qualifier` are specified. // It always uses the REQUEST_RESPONSE behavior. // Default: false. // PayloadResponseOnly *bool `field:"optional" json:"payloadResponseOnly" yaml:"payloadResponseOnly"` // Version or alias to invoke a published version of the function. // // You only need to supply this if you want the version of the Lambda Function to depend // on data in the state machine state. If not, you can pass the appropriate Alias or Version object // directly as the `lambdaFunction` argument. // Default: - Version or alias inherent to the `lambdaFunction` object. // // Deprecated: pass a Version or Alias object as lambdaFunction instead. Qualifier *string `field:"optional" json:"qualifier" yaml:"qualifier"` // Whether to retry on Lambda service exceptions. // // This handles `Lambda.ServiceException`, `Lambda.AWSLambdaException`, // `Lambda.SdkClientException`, and `Lambda.ClientExecutionTimeoutException` // with an interval of 2 seconds, a back-off rate // of 2 and 6 maximum attempts. // See: https://docs.aws.amazon.com/step-functions/latest/dg/bp-lambda-serviceexception.html // // Default: true. // RetryOnServiceExceptions *bool `field:"optional" json:"retryOnServiceExceptions" yaml:"retryOnServiceExceptions"` }
Properties for invoking a Lambda function with LambdaInvoke.
Example:
var fn function tasks.NewLambdaInvoke(this, jsii.String("Invoke with empty object as payload"), &LambdaInvokeProps{ LambdaFunction: fn, Payload: sfn.TaskInput_FromObject(map[string]interface{}{ }), }) // use the output of fn as input // use the output of fn as input tasks.NewLambdaInvoke(this, jsii.String("Invoke with payload field in the state input"), &LambdaInvokeProps{ LambdaFunction: fn, Payload: sfn.TaskInput_FromJsonPathAt(jsii.String("$.Payload")), })
type LaunchTargetBindOptions ¶
type LaunchTargetBindOptions struct { // Task definition to run Docker containers in Amazon ECS. TaskDefinition awsecs.ITaskDefinition `field:"required" json:"taskDefinition" yaml:"taskDefinition"` // A regional grouping of one or more container instances on which you can run tasks and services. // Default: - No cluster. // Cluster awsecs.ICluster `field:"optional" json:"cluster" yaml:"cluster"` }
Options for binding a launch target to an ECS run job task.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" var cluster cluster var taskDefinition taskDefinition launchTargetBindOptions := &LaunchTargetBindOptions{ TaskDefinition: taskDefinition, // the properties below are optional Cluster: cluster, }
type MediaConvertCreateJob ¶ added in v2.144.0
type MediaConvertCreateJob interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions Task to create a job in MediaConvert.
The JobConfiguration/Request Syntax is defined in the Parameters in the Task State.
Example:
tasks.NewMediaConvertCreateJob(this, jsii.String("CreateJob"), &MediaConvertCreateJobProps{ CreateJobRequest: map[string]interface{}{ "Role": jsii.String("arn:aws:iam::123456789012:role/MediaConvertRole"), "Settings": map[string][]map[string]interface{}{ "OutputGroups": []map[string]interface{}{ map[string]interface{}{ "Outputs": []map[string]interface{}{ map[string]interface{}{ "ContainerSettings": map[string]*string{ "Container": jsii.String("MP4"), }, "VideoDescription": map[string]map[string]interface{}{ "CodecSettings": map[string]interface{}{ "Codec": jsii.String("H_264"), "H264Settings": map[string]interface{}{ "MaxBitrate": jsii.Number(1000), "RateControlMode": jsii.String("QVBR"), "SceneChangeDetect": jsii.String("TRANSITION_DETECTION"), }, }, }, "AudioDescriptions": []map[string]map[string]interface{}{ map[string]map[string]interface{}{ "CodecSettings": map[string]interface{}{ "Codec": jsii.String("AAC"), "AacSettings": map[string]interface{}{ "Bitrate": jsii.Number(96000), "CodingMode": jsii.String("CODING_MODE_2_0"), "SampleRate": jsii.Number(48000), }, }, }, }, }, }, "OutputGroupSettings": map[string]interface{}{ "Type": jsii.String("FILE_GROUP_SETTINGS"), "FileGroupSettings": map[string]*string{ "Destination": jsii.String("s3://EXAMPLE-DESTINATION-BUCKET/"), }, }, }, }, "Inputs": []map[string]interface{}{ map[string]interface{}{ "AudioSelectors": map[string]map[string]*string{ "Audio Selector 1": map[string]*string{ "DefaultSelection": jsii.String("DEFAULT"), }, }, "FileInput": jsii.String("s3://EXAMPLE-SOURCE-BUCKET/EXAMPLE-SOURCE_FILE"), }, }, }, }, IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-mediaconvert.html
Response syntax: see CreateJobResponse schema https://docs.aws.amazon.com/mediaconvert/latest/apireference/jobs.html#jobs-response-examples
func NewMediaConvertCreateJob ¶ added in v2.144.0
func NewMediaConvertCreateJob(scope constructs.Construct, id *string, props *MediaConvertCreateJobProps) MediaConvertCreateJob
type MediaConvertCreateJobProps ¶ added in v2.144.0
type MediaConvertCreateJobProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The input data for the MediaConvert Create Job invocation. CreateJobRequest *map[string]interface{} `field:"required" json:"createJobRequest" yaml:"createJobRequest"` }
Properties for creating a MediaConvert Job.
See the CreateJob API for complete documentation.
Example:
tasks.NewMediaConvertCreateJob(this, jsii.String("CreateJob"), &MediaConvertCreateJobProps{ CreateJobRequest: map[string]interface{}{ "Role": jsii.String("arn:aws:iam::123456789012:role/MediaConvertRole"), "Settings": map[string][]map[string]interface{}{ "OutputGroups": []map[string]interface{}{ map[string]interface{}{ "Outputs": []map[string]interface{}{ map[string]interface{}{ "ContainerSettings": map[string]*string{ "Container": jsii.String("MP4"), }, "VideoDescription": map[string]map[string]interface{}{ "CodecSettings": map[string]interface{}{ "Codec": jsii.String("H_264"), "H264Settings": map[string]interface{}{ "MaxBitrate": jsii.Number(1000), "RateControlMode": jsii.String("QVBR"), "SceneChangeDetect": jsii.String("TRANSITION_DETECTION"), }, }, }, "AudioDescriptions": []map[string]map[string]interface{}{ map[string]map[string]interface{}{ "CodecSettings": map[string]interface{}{ "Codec": jsii.String("AAC"), "AacSettings": map[string]interface{}{ "Bitrate": jsii.Number(96000), "CodingMode": jsii.String("CODING_MODE_2_0"), "SampleRate": jsii.Number(48000), }, }, }, }, }, }, "OutputGroupSettings": map[string]interface{}{ "Type": jsii.String("FILE_GROUP_SETTINGS"), "FileGroupSettings": map[string]*string{ "Destination": jsii.String("s3://EXAMPLE-DESTINATION-BUCKET/"), }, }, }, }, "Inputs": []map[string]interface{}{ map[string]interface{}{ "AudioSelectors": map[string]map[string]*string{ "Audio Selector 1": map[string]*string{ "DefaultSelection": jsii.String("DEFAULT"), }, }, "FileInput": jsii.String("s3://EXAMPLE-SOURCE-BUCKET/EXAMPLE-SOURCE_FILE"), }, }, }, }, IntegrationPattern: sfn.IntegrationPattern_RUN_JOB, })
See: https://docs.aws.amazon.com/mediaconvert/latest/apireference/jobs.html#jobspost
type MessageAttribute ¶
type MessageAttribute struct { // The value of the attribute. Value interface{} `field:"required" json:"value" yaml:"value"` // The data type for the attribute. // See: https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html#SNSMessageAttributes.DataTypes // // Default: determined by type inspection if possible, fallback is String. // DataType MessageAttributeDataType `field:"optional" json:"dataType" yaml:"dataType"` }
A message attribute to add to the SNS message.
Example:
topic := sns.NewTopic(this, jsii.String("Topic")) // Use a field from the execution data as message. task1 := tasks.NewSnsPublish(this, jsii.String("Publish1"), &SnsPublishProps{ Topic: Topic, IntegrationPattern: sfn.IntegrationPattern_REQUEST_RESPONSE, Message: sfn.TaskInput_FromDataAt(jsii.String("$.state.message")), MessageAttributes: map[string]messageAttribute{ "place": &messageAttribute{ "value": sfn.JsonPath_stringAt(jsii.String("$.place")), }, "pic": &messageAttribute{ // BINARY must be explicitly set "dataType": tasks.MessageAttributeDataType_BINARY, "value": sfn.JsonPath_stringAt(jsii.String("$.pic")), }, "people": &messageAttribute{ "value": jsii.Number(4), }, "handles": &messageAttribute{ "value": []interface{}{ jsii.String("@kslater"), jsii.String("@jjf"), nil, jsii.String("@mfanning"), }, }, }, }) // Combine a field from the execution data with // a literal object. task2 := tasks.NewSnsPublish(this, jsii.String("Publish2"), &SnsPublishProps{ Topic: Topic, Message: sfn.TaskInput_FromObject(map[string]interface{}{ "field1": jsii.String("somedata"), "field2": sfn.JsonPath_stringAt(jsii.String("$.field2")), }), })
See: https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html
type MessageAttributeDataType ¶
type MessageAttributeDataType string
The data type set for the SNS message attributes.
Example:
topic := sns.NewTopic(this, jsii.String("Topic")) // Use a field from the execution data as message. task1 := tasks.NewSnsPublish(this, jsii.String("Publish1"), &SnsPublishProps{ Topic: Topic, IntegrationPattern: sfn.IntegrationPattern_REQUEST_RESPONSE, Message: sfn.TaskInput_FromDataAt(jsii.String("$.state.message")), MessageAttributes: map[string]messageAttribute{ "place": &messageAttribute{ "value": sfn.JsonPath_stringAt(jsii.String("$.place")), }, "pic": &messageAttribute{ // BINARY must be explicitly set "dataType": tasks.MessageAttributeDataType_BINARY, "value": sfn.JsonPath_stringAt(jsii.String("$.pic")), }, "people": &messageAttribute{ "value": jsii.Number(4), }, "handles": &messageAttribute{ "value": []interface{}{ jsii.String("@kslater"), jsii.String("@jjf"), nil, jsii.String("@mfanning"), }, }, }, }) // Combine a field from the execution data with // a literal object. task2 := tasks.NewSnsPublish(this, jsii.String("Publish2"), &SnsPublishProps{ Topic: Topic, Message: sfn.TaskInput_FromObject(map[string]interface{}{ "field1": jsii.String("somedata"), "field2": sfn.JsonPath_stringAt(jsii.String("$.field2")), }), })
See: https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html#SNSMessageAttributes.DataTypes
const ( // Strings are Unicode with UTF-8 binary encoding. MessageAttributeDataType_STRING MessageAttributeDataType = "STRING" // An array, formatted as a string. // See: https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html#SNSMessageAttributes.DataTypes // MessageAttributeDataType_STRING_ARRAY MessageAttributeDataType = "STRING_ARRAY" // Numbers are positive or negative integers or floating-point numbers. // See: https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html#SNSMessageAttributes.DataTypes // MessageAttributeDataType_NUMBER MessageAttributeDataType = "NUMBER" // Binary type attributes can store any binary data. // See: https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html#SNSMessageAttributes.DataTypes // MessageAttributeDataType_BINARY MessageAttributeDataType = "BINARY" )
type MetricDefinition ¶
type MetricDefinition struct { // Name of the metric. Name *string `field:"required" json:"name" yaml:"name"` // Regular expression that searches the output of a training job and gets the value of the metric. Regex *string `field:"required" json:"regex" yaml:"regex"` }
Specifies the metric name and regular expressions used to parse algorithm logs.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" metricDefinition := &MetricDefinition{ Name: jsii.String("name"), Regex: jsii.String("regex"), }
type Mode ¶
type Mode string
Specifies how many models the container hosts.
Example:
tasks.NewSageMakerCreateModel(this, jsii.String("Sagemaker"), &SageMakerCreateModelProps{ ModelName: jsii.String("MyModel"), PrimaryContainer: tasks.NewContainerDefinition(&ContainerDefinitionOptions{ Image: tasks.DockerImage_FromJsonExpression(sfn.JsonPath_StringAt(jsii.String("$.Model.imageName"))), Mode: tasks.Mode_SINGLE_MODEL, ModelS3Location: tasks.S3Location_FromJsonExpression(jsii.String("$.TrainingJob.ModelArtifacts.S3ModelArtifacts")), }), })
const ( // Container hosts a single model. Mode_SINGLE_MODEL Mode = "SINGLE_MODEL" // Container hosts multiple models. // See: https://docs.aws.amazon.com/sagemaker/latest/dg/multi-model-endpoints.html // Mode_MULTI_MODEL Mode = "MULTI_MODEL" )
type ModelClientOptions ¶
type ModelClientOptions struct { // The maximum number of retries when invocation requests are failing. // Default: 0. // InvocationsMaxRetries *float64 `field:"optional" json:"invocationsMaxRetries" yaml:"invocationsMaxRetries"` // The timeout duration for an invocation request. // Default: Duration.minutes(1) // InvocationsTimeout awscdk.Duration `field:"optional" json:"invocationsTimeout" yaml:"invocationsTimeout"` }
Configures the timeout and maximum number of retries for processing a transform job invocation.
Example:
tasks.NewSageMakerCreateTransformJob(this, jsii.String("Batch Inference"), &SageMakerCreateTransformJobProps{ TransformJobName: jsii.String("MyTransformJob"), ModelName: jsii.String("MyModelName"), ModelClientOptions: &ModelClientOptions{ InvocationsMaxRetries: jsii.Number(3), // default is 0 InvocationsTimeout: awscdk.Duration_Minutes(jsii.Number(5)), }, TransformInput: &TransformInput{ TransformDataSource: &TransformDataSource{ S3DataSource: &TransformS3DataSource{ S3Uri: jsii.String("s3://inputbucket/train"), S3DataType: tasks.S3DataType_S3_PREFIX, }, }, }, TransformOutput: &TransformOutput{ S3OutputPath: jsii.String("s3://outputbucket/TransformJobOutputPath"), }, TransformResources: &TransformResources{ InstanceCount: jsii.Number(1), InstanceType: ec2.InstanceType_Of(ec2.InstanceClass_M4, ec2.InstanceSize_XLARGE), }, })
type Monitoring ¶ added in v2.1.0
type Monitoring struct { // Amazon S3 Bucket for monitoring log publishing. // // You can configure your jobs to send log information to Amazon S3. // Default: - if `logging` is manually set to `true` and a `logBucket` is not provided, a `logBucket` will be automatically generated`. // LogBucket awss3.IBucket `field:"optional" json:"logBucket" yaml:"logBucket"` // Enable logging for this job. // // If set to true, will automatically create a Cloudwatch Log Group and S3 bucket. // This will be set to `true` implicitly if values are provided for `logGroup` or `logBucket`. // Default: true - true if values are provided for `logGroup` or `logBucket`, false otherwise. // Logging *bool `field:"optional" json:"logging" yaml:"logging"` // A log group for CloudWatch monitoring. // // You can configure your jobs to send log information to CloudWatch Logs. // Default: - if `logging` is manually set to `true` and a `logGroup` is not provided, a `logGroup` will be automatically generated`. // LogGroup awslogs.ILogGroup `field:"optional" json:"logGroup" yaml:"logGroup"` // A log stream name prefix for Cloudwatch monitoring. // Default: - Log streams created in this log group have no default prefix. // LogStreamNamePrefix *string `field:"optional" json:"logStreamNamePrefix" yaml:"logStreamNamePrefix"` // Monitoring configurations for the persistent application UI. // Default: true. // PersistentAppUI *bool `field:"optional" json:"persistentAppUI" yaml:"persistentAppUI"` }
Configuration setting for monitoring.
Example:
tasks.NewEmrContainersStartJobRun(this, jsii.String("EMR Containers Start Job Run"), &EmrContainersStartJobRunProps{ VirtualCluster: tasks.VirtualClusterInput_FromVirtualClusterId(jsii.String("de92jdei2910fwedz")), ReleaseLabel: tasks.ReleaseLabel_EMR_6_2_0(), JobDriver: &JobDriver{ SparkSubmitJobDriver: &SparkSubmitJobDriver{ EntryPoint: sfn.TaskInput_FromText(jsii.String("local:///usr/lib/spark/examples/src/main/python/pi.py")), SparkSubmitParameters: jsii.String("--conf spark.executor.instances=2 --conf spark.executor.memory=2G --conf spark.executor.cores=2 --conf spark.driver.cores=1"), }, }, Monitoring: &Monitoring{ Logging: jsii.Boolean(true), }, })
type OutputDataConfig ¶
type OutputDataConfig struct { // Identifies the S3 path where you want Amazon SageMaker to store the model artifacts. S3OutputLocation S3Location `field:"required" json:"s3OutputLocation" yaml:"s3OutputLocation"` // Optional KMS encryption key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. // Default: - Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. // EncryptionKey awskms.IKey `field:"optional" json:"encryptionKey" yaml:"encryptionKey"` }
Configures the S3 bucket where SageMaker will save the result of model training.
Example:
tasks.NewSageMakerCreateTrainingJob(this, jsii.String("TrainSagemaker"), &SageMakerCreateTrainingJobProps{ TrainingJobName: sfn.JsonPath_StringAt(jsii.String("$.JobName")), AlgorithmSpecification: &AlgorithmSpecification{ AlgorithmName: jsii.String("BlazingText"), TrainingInputMode: tasks.InputMode_FILE, }, InputDataConfig: []channel{ &channel{ ChannelName: jsii.String("train"), DataSource: &DataSource{ S3DataSource: &S3DataSource{ S3DataType: tasks.S3DataType_S3_PREFIX, S3Location: tasks.S3Location_FromJsonExpression(jsii.String("$.S3Bucket")), }, }, }, }, OutputDataConfig: &OutputDataConfig{ S3OutputLocation: tasks.S3Location_FromBucket(s3.Bucket_FromBucketName(this, jsii.String("Bucket"), jsii.String("amzn-s3-demo-bucket")), jsii.String("myoutputpath")), }, ResourceConfig: &ResourceConfig{ InstanceCount: jsii.Number(1), InstanceType: ec2.NewInstanceType(sfn.JsonPath_*StringAt(jsii.String("$.InstanceType"))), VolumeSize: awscdk.Size_Gibibytes(jsii.Number(50)), }, // optional: default is 1 instance of EC2 `M4.XLarge` with `10GB` volume StoppingCondition: &StoppingCondition{ MaxRuntime: awscdk.Duration_Hours(jsii.Number(2)), }, })
type ProductionVariant ¶
type ProductionVariant struct { // The ML compute instance type. InstanceType awsec2.InstanceType `field:"required" json:"instanceType" yaml:"instanceType"` // The name of the model that you want to host. // // This is the name that you specified when creating the model. ModelName *string `field:"required" json:"modelName" yaml:"modelName"` // The name of the production variant. VariantName *string `field:"required" json:"variantName" yaml:"variantName"` // The size of the Elastic Inference (EI) instance to use for the production variant. // Default: - None. // AcceleratorType AcceleratorType `field:"optional" json:"acceleratorType" yaml:"acceleratorType"` // Number of instances to launch initially. // Default: - 1. // InitialInstanceCount *float64 `field:"optional" json:"initialInstanceCount" yaml:"initialInstanceCount"` // Determines initial traffic distribution among all of the models that you specify in the endpoint configuration. // Default: - 1.0 // InitialVariantWeight *float64 `field:"optional" json:"initialVariantWeight" yaml:"initialVariantWeight"` }
Identifies a model that you want to host and the resources to deploy for hosting it.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" var acceleratorType acceleratorType var instanceType instanceType productionVariant := &ProductionVariant{ InstanceType: instanceType, ModelName: jsii.String("modelName"), VariantName: jsii.String("variantName"), // the properties below are optional AcceleratorType: acceleratorType, InitialInstanceCount: jsii.Number(123), InitialVariantWeight: jsii.Number(123), }
See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ProductionVariant.html
type QueryExecutionContext ¶
type QueryExecutionContext struct { // Name of catalog used in query execution. // Default: - No catalog. // CatalogName *string `field:"optional" json:"catalogName" yaml:"catalogName"` // Name of database used in query execution. // Default: - No database. // DatabaseName *string `field:"optional" json:"databaseName" yaml:"databaseName"` }
Database and data catalog context in which the query execution occurs.
Example:
startQueryExecutionJob := tasks.NewAthenaStartQueryExecution(this, jsii.String("Start Athena Query"), &AthenaStartQueryExecutionProps{ QueryString: sfn.JsonPath_StringAt(jsii.String("$.queryString")), QueryExecutionContext: &QueryExecutionContext{ DatabaseName: jsii.String("mydatabase"), }, ResultConfiguration: &ResultConfiguration{ EncryptionConfiguration: &EncryptionConfiguration{ EncryptionOption: tasks.EncryptionOption_S3_MANAGED, }, OutputLocation: &Location{ BucketName: jsii.String("amzn-s3-demo-bucket"), ObjectKey: jsii.String("folder"), }, }, ExecutionParameters: []*string{ jsii.String("param1"), jsii.String("param2"), }, })
See: https://docs.aws.amazon.com/athena/latest/APIReference/API_QueryExecutionContext.html
type RecordWrapperType ¶
type RecordWrapperType string
Define the format of the input data.
const ( // None record wrapper type. RecordWrapperType_NONE RecordWrapperType = "NONE" // RecordIO record wrapper type. RecordWrapperType_RECORD_IO RecordWrapperType = "RECORD_IO" )
type ReleaseLabel ¶ added in v2.1.0
type ReleaseLabel interface { // A literal string that contains the release-version ex. // // 'emr-x.x.x-latest' Label() *string }
The Amazon EMR release version to use for the job run.
Can be extended to include new EMR releases ¶
For example, `new ReleaseLabel('emr-x.xx.x-latest');`
Example:
tasks.NewEmrContainersStartJobRun(this, jsii.String("EMR Containers Start Job Run"), &EmrContainersStartJobRunProps{ VirtualCluster: tasks.VirtualClusterInput_FromVirtualClusterId(jsii.String("de92jdei2910fwedz")), ReleaseLabel: tasks.ReleaseLabel_EMR_6_2_0(), JobName: jsii.String("EMR-Containers-Job"), JobDriver: &JobDriver{ SparkSubmitJobDriver: &SparkSubmitJobDriver{ EntryPoint: sfn.TaskInput_FromText(jsii.String("local:///usr/lib/spark/examples/src/main/python/pi.py")), }, }, ApplicationConfig: []applicationConfiguration{ &applicationConfiguration{ Classification: tasks.Classification_SPARK_DEFAULTS(), Properties: map[string]*string{ "spark.executor.instances": jsii.String("1"), "spark.executor.memory": jsii.String("512M"), }, }, }, })
func NewReleaseLabel ¶ added in v2.1.0
func NewReleaseLabel(label *string) ReleaseLabel
Initializes the label string.
func ReleaseLabel_EMR_5_32_0 ¶ added in v2.1.0
func ReleaseLabel_EMR_5_32_0() ReleaseLabel
func ReleaseLabel_EMR_5_33_0 ¶ added in v2.1.0
func ReleaseLabel_EMR_5_33_0() ReleaseLabel
func ReleaseLabel_EMR_6_2_0 ¶ added in v2.1.0
func ReleaseLabel_EMR_6_2_0() ReleaseLabel
func ReleaseLabel_EMR_6_3_0 ¶ added in v2.1.0
func ReleaseLabel_EMR_6_3_0() ReleaseLabel
type ResourceConfig ¶
type ResourceConfig struct { // The number of ML compute instances to use. // Default: 1 instance. // InstanceCount *float64 `field:"required" json:"instanceCount" yaml:"instanceCount"` // ML compute instance type. // // To provide an instance type from the task input, supply an instance type in the following way // where the value in the task input is an EC2 instance type prepended with "ml.": // // “`ts // new ec2.InstanceType(sfn.JsonPath.stringAt('$.path.to.instanceType')); // “`. // See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceConfig.html#sagemaker-Type-ResourceConfig-InstanceType // // Default: ec2.InstanceType(ec2.InstanceClass.M4, ec2.InstanceType.XLARGE) // InstanceType awsec2.InstanceType `field:"required" json:"instanceType" yaml:"instanceType"` // Size of the ML storage volume that you want to provision. // Default: 10 GB EBS volume. // VolumeSize awscdk.Size `field:"required" json:"volumeSize" yaml:"volumeSize"` // KMS key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training job. // Default: - Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. // VolumeEncryptionKey awskms.IKey `field:"optional" json:"volumeEncryptionKey" yaml:"volumeEncryptionKey"` }
Specifies the resources, ML compute instances, and ML storage volumes to deploy for model training.
Example:
tasks.NewSageMakerCreateTrainingJob(this, jsii.String("TrainSagemaker"), &SageMakerCreateTrainingJobProps{ TrainingJobName: sfn.JsonPath_StringAt(jsii.String("$.JobName")), AlgorithmSpecification: &AlgorithmSpecification{ AlgorithmName: jsii.String("BlazingText"), TrainingInputMode: tasks.InputMode_FILE, }, InputDataConfig: []channel{ &channel{ ChannelName: jsii.String("train"), DataSource: &DataSource{ S3DataSource: &S3DataSource{ S3DataType: tasks.S3DataType_S3_PREFIX, S3Location: tasks.S3Location_FromJsonExpression(jsii.String("$.S3Bucket")), }, }, }, }, OutputDataConfig: &OutputDataConfig{ S3OutputLocation: tasks.S3Location_FromBucket(s3.Bucket_FromBucketName(this, jsii.String("Bucket"), jsii.String("amzn-s3-demo-bucket")), jsii.String("myoutputpath")), }, ResourceConfig: &ResourceConfig{ InstanceCount: jsii.Number(1), InstanceType: ec2.NewInstanceType(sfn.JsonPath_*StringAt(jsii.String("$.InstanceType"))), VolumeSize: awscdk.Size_Gibibytes(jsii.Number(50)), }, // optional: default is 1 instance of EC2 `M4.XLarge` with `10GB` volume StoppingCondition: &StoppingCondition{ MaxRuntime: awscdk.Duration_Hours(jsii.Number(2)), }, })
type ResultConfiguration ¶
type ResultConfiguration struct { // Encryption option used if enabled in S3. // Default: - SSE_S3 encryption is enabled with default encryption key. // EncryptionConfiguration *EncryptionConfiguration `field:"optional" json:"encryptionConfiguration" yaml:"encryptionConfiguration"` // S3 path of query results. // // Example value: `s3://query-results-bucket/folder/`. // Default: - Query Result Location set in Athena settings for this workgroup. // OutputLocation *awss3.Location `field:"optional" json:"outputLocation" yaml:"outputLocation"` }
Location of query result along with S3 bucket configuration.
Example:
startQueryExecutionJob := tasks.NewAthenaStartQueryExecution(this, jsii.String("Start Athena Query"), &AthenaStartQueryExecutionProps{ QueryString: sfn.JsonPath_StringAt(jsii.String("$.queryString")), QueryExecutionContext: &QueryExecutionContext{ DatabaseName: jsii.String("mydatabase"), }, ResultConfiguration: &ResultConfiguration{ EncryptionConfiguration: &EncryptionConfiguration{ EncryptionOption: tasks.EncryptionOption_S3_MANAGED, }, OutputLocation: &Location{ BucketName: jsii.String("amzn-s3-demo-bucket"), ObjectKey: jsii.String("folder"), }, }, ExecutionParameters: []*string{ jsii.String("param1"), jsii.String("param2"), }, })
See: https://docs.aws.amazon.com/athena/latest/APIReference/API_ResultConfiguration.html
type RetryPolicy ¶ added in v2.168.0
type RetryPolicy struct { // The maximum amount of time to continue to make retry attempts. MaximumEventAge awscdk.Duration `field:"required" json:"maximumEventAge" yaml:"maximumEventAge"` // The maximum number of retry attempts to make before the request fails. MaximumRetryAttempts *float64 `field:"required" json:"maximumRetryAttempts" yaml:"maximumRetryAttempts"` }
The information about the retry policy settings.
Example:
import scheduler "github.com/aws/aws-cdk-go/awscdk" import kms "github.com/aws/aws-cdk-go/awscdk" var key key var scheduleGroup cfnScheduleGroup var targetQueue queue var deadLetterQueue queue schedulerRole := iam.NewRole(this, jsii.String("SchedulerRole"), &RoleProps{ AssumedBy: iam.NewServicePrincipal(jsii.String("scheduler.amazonaws.com")), }) // To send the message to the queue // This policy changes depending on the type of target. schedulerRole.AddToPrincipalPolicy(iam.NewPolicyStatement(&PolicyStatementProps{ Actions: []*string{ jsii.String("sqs:SendMessage"), }, Resources: []*string{ targetQueue.QueueArn, }, })) createScheduleTask1 := tasks.NewEventBridgeSchedulerCreateScheduleTask(this, jsii.String("createSchedule"), &EventBridgeSchedulerCreateScheduleTaskProps{ ScheduleName: jsii.String("TestSchedule"), ActionAfterCompletion: tasks.ActionAfterCompletion_NONE, ClientToken: jsii.String("testToken"), Description: jsii.String("TestDescription"), StartDate: NewDate(), EndDate: NewDate(NewDate().getTime() + 1000 * 60 * 60), FlexibleTimeWindow: awscdk.Duration_Minutes(jsii.Number(5)), GroupName: scheduleGroup.ref, KmsKey: key, Schedule: tasks.Schedule_Rate(awscdk.Duration_*Minutes(jsii.Number(5))), Timezone: jsii.String("UTC"), Enabled: jsii.Boolean(true), Target: tasks.NewEventBridgeSchedulerTarget(&EventBridgeSchedulerTargetProps{ Arn: targetQueue.*QueueArn, Role: schedulerRole, RetryPolicy: &RetryPolicy{ MaximumRetryAttempts: jsii.Number(2), MaximumEventAge: awscdk.Duration_*Minutes(jsii.Number(5)), }, DeadLetterQueue: *DeadLetterQueue, }), })
type S3DataDistributionType ¶
type S3DataDistributionType string
S3 Data Distribution Type.
const ( // Fully replicated S3 Data Distribution Type. S3DataDistributionType_FULLY_REPLICATED S3DataDistributionType = "FULLY_REPLICATED" // Sharded By S3 Key Data Distribution Type. S3DataDistributionType_SHARDED_BY_S3_KEY S3DataDistributionType = "SHARDED_BY_S3_KEY" )
type S3DataSource ¶
type S3DataSource struct { // S3 Uri. S3Location S3Location `field:"required" json:"s3Location" yaml:"s3Location"` // List of one or more attribute names to use that are found in a specified augmented manifest file. // Default: - No attribute names. // AttributeNames *[]*string `field:"optional" json:"attributeNames" yaml:"attributeNames"` // S3 Data Distribution Type. // Default: - None. // S3DataDistributionType S3DataDistributionType `field:"optional" json:"s3DataDistributionType" yaml:"s3DataDistributionType"` // S3 Data Type. // Default: S3_PREFIX. // S3DataType S3DataType `field:"optional" json:"s3DataType" yaml:"s3DataType"` }
S3 location of the channel data.
Example:
tasks.NewSageMakerCreateTrainingJob(this, jsii.String("TrainSagemaker"), &SageMakerCreateTrainingJobProps{ TrainingJobName: sfn.JsonPath_StringAt(jsii.String("$.JobName")), AlgorithmSpecification: &AlgorithmSpecification{ AlgorithmName: jsii.String("BlazingText"), TrainingInputMode: tasks.InputMode_FILE, }, InputDataConfig: []channel{ &channel{ ChannelName: jsii.String("train"), DataSource: &DataSource{ S3DataSource: &S3DataSource{ S3DataType: tasks.S3DataType_S3_PREFIX, S3Location: tasks.S3Location_FromJsonExpression(jsii.String("$.S3Bucket")), }, }, }, }, OutputDataConfig: &OutputDataConfig{ S3OutputLocation: tasks.S3Location_FromBucket(s3.Bucket_FromBucketName(this, jsii.String("Bucket"), jsii.String("amzn-s3-demo-bucket")), jsii.String("myoutputpath")), }, ResourceConfig: &ResourceConfig{ InstanceCount: jsii.Number(1), InstanceType: ec2.NewInstanceType(sfn.JsonPath_*StringAt(jsii.String("$.InstanceType"))), VolumeSize: awscdk.Size_Gibibytes(jsii.Number(50)), }, // optional: default is 1 instance of EC2 `M4.XLarge` with `10GB` volume StoppingCondition: &StoppingCondition{ MaxRuntime: awscdk.Duration_Hours(jsii.Number(2)), }, })
See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_S3DataSource.html
type S3DataType ¶
type S3DataType string
S3 Data Type.
Example:
tasks.NewSageMakerCreateTrainingJob(this, jsii.String("TrainSagemaker"), &SageMakerCreateTrainingJobProps{ TrainingJobName: sfn.JsonPath_StringAt(jsii.String("$.JobName")), AlgorithmSpecification: &AlgorithmSpecification{ AlgorithmName: jsii.String("BlazingText"), TrainingInputMode: tasks.InputMode_FILE, }, InputDataConfig: []channel{ &channel{ ChannelName: jsii.String("train"), DataSource: &DataSource{ S3DataSource: &S3DataSource{ S3DataType: tasks.S3DataType_S3_PREFIX, S3Location: tasks.S3Location_FromJsonExpression(jsii.String("$.S3Bucket")), }, }, }, }, OutputDataConfig: &OutputDataConfig{ S3OutputLocation: tasks.S3Location_FromBucket(s3.Bucket_FromBucketName(this, jsii.String("Bucket"), jsii.String("amzn-s3-demo-bucket")), jsii.String("myoutputpath")), }, ResourceConfig: &ResourceConfig{ InstanceCount: jsii.Number(1), InstanceType: ec2.NewInstanceType(sfn.JsonPath_*StringAt(jsii.String("$.InstanceType"))), VolumeSize: awscdk.Size_Gibibytes(jsii.Number(50)), }, // optional: default is 1 instance of EC2 `M4.XLarge` with `10GB` volume StoppingCondition: &StoppingCondition{ MaxRuntime: awscdk.Duration_Hours(jsii.Number(2)), }, })
const ( // Manifest File Data Type. S3DataType_MANIFEST_FILE S3DataType = "MANIFEST_FILE" // S3 Prefix Data Type. S3DataType_S3_PREFIX S3DataType = "S3_PREFIX" // Augmented Manifest File Data Type. S3DataType_AUGMENTED_MANIFEST_FILE S3DataType = "AUGMENTED_MANIFEST_FILE" )
type S3Location ¶
type S3Location interface { // Called when the S3Location is bound to a StepFunctions task. Bind(task ISageMakerTask, opts *S3LocationBindOptions) *S3LocationConfig }
Constructs `IS3Location` objects.
Example:
tasks.NewSageMakerCreateTrainingJob(this, jsii.String("TrainSagemaker"), &SageMakerCreateTrainingJobProps{ TrainingJobName: sfn.JsonPath_StringAt(jsii.String("$.JobName")), AlgorithmSpecification: &AlgorithmSpecification{ AlgorithmName: jsii.String("BlazingText"), TrainingInputMode: tasks.InputMode_FILE, }, InputDataConfig: []channel{ &channel{ ChannelName: jsii.String("train"), DataSource: &DataSource{ S3DataSource: &S3DataSource{ S3DataType: tasks.S3DataType_S3_PREFIX, S3Location: tasks.S3Location_FromJsonExpression(jsii.String("$.S3Bucket")), }, }, }, }, OutputDataConfig: &OutputDataConfig{ S3OutputLocation: tasks.S3Location_FromBucket(s3.Bucket_FromBucketName(this, jsii.String("Bucket"), jsii.String("amzn-s3-demo-bucket")), jsii.String("myoutputpath")), }, ResourceConfig: &ResourceConfig{ InstanceCount: jsii.Number(1), InstanceType: ec2.NewInstanceType(sfn.JsonPath_*StringAt(jsii.String("$.InstanceType"))), VolumeSize: awscdk.Size_Gibibytes(jsii.Number(50)), }, // optional: default is 1 instance of EC2 `M4.XLarge` with `10GB` volume StoppingCondition: &StoppingCondition{ MaxRuntime: awscdk.Duration_Hours(jsii.Number(2)), }, })
func S3Location_FromBucket ¶
func S3Location_FromBucket(bucket awss3.IBucket, keyPrefix *string) S3Location
An `IS3Location` built with a determined bucket and key prefix.
func S3Location_FromJsonExpression ¶
func S3Location_FromJsonExpression(expression *string) S3Location
An `IS3Location` determined fully by a JSON Path from the task input.
Due to the dynamic nature of those locations, the IAM grants that will be set by `grantRead` and `grantWrite` apply to the `*` resource.
type S3LocationBindOptions ¶
type S3LocationBindOptions struct { // Allow reading from the S3 Location. // Default: false. // ForReading *bool `field:"optional" json:"forReading" yaml:"forReading"` // Allow writing to the S3 Location. // Default: false. // ForWriting *bool `field:"optional" json:"forWriting" yaml:"forWriting"` }
Options for binding an S3 Location.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" s3LocationBindOptions := &S3LocationBindOptions{ ForReading: jsii.Boolean(false), ForWriting: jsii.Boolean(false), }
type S3LocationConfig ¶
type S3LocationConfig struct { // Uniquely identifies the resource in Amazon S3. Uri *string `field:"required" json:"uri" yaml:"uri"` }
Stores information about the location of an object in Amazon S3.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" s3LocationConfig := &S3LocationConfig{ Uri: jsii.String("uri"), }
type SageMakerCreateEndpoint ¶
type SageMakerCreateEndpoint interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions Task to create a SageMaker endpoint.
Example:
tasks.NewSageMakerCreateEndpoint(this, jsii.String("SagemakerEndpoint"), &SageMakerCreateEndpointProps{ EndpointName: sfn.JsonPath_StringAt(jsii.String("$.EndpointName")), EndpointConfigName: sfn.JsonPath_*StringAt(jsii.String("$.EndpointConfigName")), })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-sagemaker.html
func NewSageMakerCreateEndpoint ¶
func NewSageMakerCreateEndpoint(scope constructs.Construct, id *string, props *SageMakerCreateEndpointProps) SageMakerCreateEndpoint
type SageMakerCreateEndpointConfig ¶
type SageMakerCreateEndpointConfig interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions Task to create a SageMaker endpoint configuration.
Example:
tasks.NewSageMakerCreateEndpointConfig(this, jsii.String("SagemakerEndpointConfig"), &SageMakerCreateEndpointConfigProps{ EndpointConfigName: jsii.String("MyEndpointConfig"), ProductionVariants: []productionVariant{ &productionVariant{ InitialInstanceCount: jsii.Number(2), InstanceType: ec2.InstanceType_Of(ec2.InstanceClass_M5, ec2.InstanceSize_XLARGE), ModelName: jsii.String("MyModel"), VariantName: jsii.String("awesome-variant"), }, }, })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-sagemaker.html
func NewSageMakerCreateEndpointConfig ¶
func NewSageMakerCreateEndpointConfig(scope constructs.Construct, id *string, props *SageMakerCreateEndpointConfigProps) SageMakerCreateEndpointConfig
type SageMakerCreateEndpointConfigProps ¶
type SageMakerCreateEndpointConfigProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The name of the endpoint configuration. EndpointConfigName *string `field:"required" json:"endpointConfigName" yaml:"endpointConfigName"` // An list of ProductionVariant objects, one for each model that you want to host at this endpoint. // // Identifies a model that you want to host and the resources to deploy for hosting it. // If you are deploying multiple models, tell Amazon SageMaker how to distribute traffic among the models by specifying variant weights. ProductionVariants *[]*ProductionVariant `field:"required" json:"productionVariants" yaml:"productionVariants"` // AWS Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. // Default: - None. // KmsKey awskms.IKey `field:"optional" json:"kmsKey" yaml:"kmsKey"` // Tags to be applied to the endpoint configuration. // Default: - No tags. // Tags awsstepfunctions.TaskInput `field:"optional" json:"tags" yaml:"tags"` }
Properties for creating an Amazon SageMaker endpoint configuration.
Example:
tasks.NewSageMakerCreateEndpointConfig(this, jsii.String("SagemakerEndpointConfig"), &SageMakerCreateEndpointConfigProps{ EndpointConfigName: jsii.String("MyEndpointConfig"), ProductionVariants: []productionVariant{ &productionVariant{ InitialInstanceCount: jsii.Number(2), InstanceType: ec2.InstanceType_Of(ec2.InstanceClass_M5, ec2.InstanceSize_XLARGE), ModelName: jsii.String("MyModel"), VariantName: jsii.String("awesome-variant"), }, }, })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-sagemaker.html
type SageMakerCreateEndpointProps ¶
type SageMakerCreateEndpointProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The name of an endpoint configuration. EndpointConfigName *string `field:"required" json:"endpointConfigName" yaml:"endpointConfigName"` // The name of the endpoint. // // The name must be unique within an AWS Region in your AWS account. EndpointName *string `field:"required" json:"endpointName" yaml:"endpointName"` // Tags to be applied to the endpoint. // Default: - No tags. // Tags awsstepfunctions.TaskInput `field:"optional" json:"tags" yaml:"tags"` }
Properties for creating an Amazon SageMaker endpoint.
Example:
tasks.NewSageMakerCreateEndpoint(this, jsii.String("SagemakerEndpoint"), &SageMakerCreateEndpointProps{ EndpointName: sfn.JsonPath_StringAt(jsii.String("$.EndpointName")), EndpointConfigName: sfn.JsonPath_*StringAt(jsii.String("$.EndpointConfigName")), })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-sagemaker.html
type SageMakerCreateModel ¶
type SageMakerCreateModel interface { awsstepfunctions.TaskStateBase awsec2.IConnectable awsiam.IGrantable Branches() *[]awsstepfunctions.StateGraph Comment() *string // Allows specify security group connections for instances of this fleet. Connections() awsec2.Connections DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // The principal to grant permissions to. GrantPrincipal() awsiam.IPrincipal // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // The execution role for the Sagemaker Create Model API. Role() awsiam.IRole // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Add the security group to all instances via the launch configuration security groups array. AddSecurityGroup(securityGroup awsec2.ISecurityGroup) // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions Task to create a SageMaker model.
Example:
tasks.NewSageMakerCreateModel(this, jsii.String("Sagemaker"), &SageMakerCreateModelProps{ ModelName: jsii.String("MyModel"), PrimaryContainer: tasks.NewContainerDefinition(&ContainerDefinitionOptions{ Image: tasks.DockerImage_FromJsonExpression(sfn.JsonPath_StringAt(jsii.String("$.Model.imageName"))), Mode: tasks.Mode_SINGLE_MODEL, ModelS3Location: tasks.S3Location_FromJsonExpression(jsii.String("$.TrainingJob.ModelArtifacts.S3ModelArtifacts")), }), })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-sagemaker.html
func NewSageMakerCreateModel ¶
func NewSageMakerCreateModel(scope constructs.Construct, id *string, props *SageMakerCreateModelProps) SageMakerCreateModel
type SageMakerCreateModelProps ¶
type SageMakerCreateModelProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The name of the new model. ModelName *string `field:"required" json:"modelName" yaml:"modelName"` // The definition of the primary docker image containing inference code, associated artifacts, and custom environment map that the inference code uses when the model is deployed for predictions. PrimaryContainer IContainerDefinition `field:"required" json:"primaryContainer" yaml:"primaryContainer"` // Specifies the containers in the inference pipeline. // Default: - None. // Containers *[]IContainerDefinition `field:"optional" json:"containers" yaml:"containers"` // Isolates the model container. // // No inbound or outbound network calls can be made to or from the model container. // Default: false. // EnableNetworkIsolation *bool `field:"optional" json:"enableNetworkIsolation" yaml:"enableNetworkIsolation"` // An execution role that you can pass in a CreateModel API request. // Default: - a role will be created. // Role awsiam.IRole `field:"optional" json:"role" yaml:"role"` // The subnets of the VPC to which the hosted model is connected (Note this parameter is only used when VPC is provided). // Default: - Private Subnets are selected. // SubnetSelection *awsec2.SubnetSelection `field:"optional" json:"subnetSelection" yaml:"subnetSelection"` // Tags to be applied to the model. // Default: - No tags. // Tags awsstepfunctions.TaskInput `field:"optional" json:"tags" yaml:"tags"` // The VPC that is accessible by the hosted model. // Default: - None. // Vpc awsec2.IVpc `field:"optional" json:"vpc" yaml:"vpc"` }
Properties for creating an Amazon SageMaker model.
Example:
tasks.NewSageMakerCreateModel(this, jsii.String("Sagemaker"), &SageMakerCreateModelProps{ ModelName: jsii.String("MyModel"), PrimaryContainer: tasks.NewContainerDefinition(&ContainerDefinitionOptions{ Image: tasks.DockerImage_FromJsonExpression(sfn.JsonPath_StringAt(jsii.String("$.Model.imageName"))), Mode: tasks.Mode_SINGLE_MODEL, ModelS3Location: tasks.S3Location_FromJsonExpression(jsii.String("$.TrainingJob.ModelArtifacts.S3ModelArtifacts")), }), })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-sagemaker.html
type SageMakerCreateTrainingJob ¶
type SageMakerCreateTrainingJob interface { awsstepfunctions.TaskStateBase awsec2.IConnectable awsiam.IGrantable Branches() *[]awsstepfunctions.StateGraph Comment() *string // Allows specify security group connections for instances of this fleet. Connections() awsec2.Connections DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // The principal to grant permissions to. GrantPrincipal() awsiam.IPrincipal // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // The execution role for the Sagemaker training job. // // Only available after task has been added to a state machine. Role() awsiam.IRole // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Add the security group to all instances via the launch configuration security groups array. AddSecurityGroup(securityGroup awsec2.ISecurityGroup) // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Class representing the SageMaker Create Training Job task.
Example:
tasks.NewSageMakerCreateTrainingJob(this, jsii.String("TrainSagemaker"), &SageMakerCreateTrainingJobProps{ TrainingJobName: sfn.JsonPath_StringAt(jsii.String("$.JobName")), AlgorithmSpecification: &AlgorithmSpecification{ AlgorithmName: jsii.String("BlazingText"), TrainingInputMode: tasks.InputMode_FILE, }, InputDataConfig: []channel{ &channel{ ChannelName: jsii.String("train"), DataSource: &DataSource{ S3DataSource: &S3DataSource{ S3DataType: tasks.S3DataType_S3_PREFIX, S3Location: tasks.S3Location_FromJsonExpression(jsii.String("$.S3Bucket")), }, }, }, }, OutputDataConfig: &OutputDataConfig{ S3OutputLocation: tasks.S3Location_FromBucket(s3.Bucket_FromBucketName(this, jsii.String("Bucket"), jsii.String("amzn-s3-demo-bucket")), jsii.String("myoutputpath")), }, ResourceConfig: &ResourceConfig{ InstanceCount: jsii.Number(1), InstanceType: ec2.NewInstanceType(sfn.JsonPath_*StringAt(jsii.String("$.InstanceType"))), VolumeSize: awscdk.Size_Gibibytes(jsii.Number(50)), }, // optional: default is 1 instance of EC2 `M4.XLarge` with `10GB` volume StoppingCondition: &StoppingCondition{ MaxRuntime: awscdk.Duration_Hours(jsii.Number(2)), }, })
func NewSageMakerCreateTrainingJob ¶
func NewSageMakerCreateTrainingJob(scope constructs.Construct, id *string, props *SageMakerCreateTrainingJobProps) SageMakerCreateTrainingJob
type SageMakerCreateTrainingJobProps ¶
type SageMakerCreateTrainingJobProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // Identifies the training algorithm to use. AlgorithmSpecification *AlgorithmSpecification `field:"required" json:"algorithmSpecification" yaml:"algorithmSpecification"` // Identifies the Amazon S3 location where you want Amazon SageMaker to save the results of model training. OutputDataConfig *OutputDataConfig `field:"required" json:"outputDataConfig" yaml:"outputDataConfig"` // Training Job Name. TrainingJobName *string `field:"required" json:"trainingJobName" yaml:"trainingJobName"` // Isolates the training container. // // No inbound or outbound network calls can be made to or from the training container. // Default: false. // EnableNetworkIsolation *bool `field:"optional" json:"enableNetworkIsolation" yaml:"enableNetworkIsolation"` // Environment variables to set in the Docker container. // Default: - No environment variables. // Environment *map[string]*string `field:"optional" json:"environment" yaml:"environment"` // Algorithm-specific parameters that influence the quality of the model. // // Set hyperparameters before you start the learning process. // For a list of hyperparameters provided by Amazon SageMaker. // See: https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html // // Default: - No hyperparameters. // Hyperparameters *map[string]interface{} `field:"optional" json:"hyperparameters" yaml:"hyperparameters"` // Describes the various datasets (e.g. train, validation, test) and the Amazon S3 location where stored. // Default: - No inputDataConfig. // InputDataConfig *[]*Channel `field:"optional" json:"inputDataConfig" yaml:"inputDataConfig"` // Specifies the resources, ML compute instances, and ML storage volumes to deploy for model training. // Default: - 1 instance of EC2 `M4.XLarge` with `10GB` volume // ResourceConfig *ResourceConfig `field:"optional" json:"resourceConfig" yaml:"resourceConfig"` // Role for the Training Job. // // The role must be granted all necessary permissions for the SageMaker training job to // be able to operate. // // See https://docs.aws.amazon.com/fr_fr/sagemaker/latest/dg/sagemaker-roles.html#sagemaker-roles-createtrainingjob-perms // Default: - a role will be created. // Role awsiam.IRole `field:"optional" json:"role" yaml:"role"` // Sets a time limit for training. // Default: - max runtime of 1 hour. // StoppingCondition *StoppingCondition `field:"optional" json:"stoppingCondition" yaml:"stoppingCondition"` // Tags to be applied to the train job. // Default: - No tags. // Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"` // Specifies the VPC that you want your training job to connect to. // Default: - No VPC. // VpcConfig *VpcConfig `field:"optional" json:"vpcConfig" yaml:"vpcConfig"` }
Properties for creating an Amazon SageMaker training job.
Example:
tasks.NewSageMakerCreateTrainingJob(this, jsii.String("TrainSagemaker"), &SageMakerCreateTrainingJobProps{ TrainingJobName: sfn.JsonPath_StringAt(jsii.String("$.JobName")), AlgorithmSpecification: &AlgorithmSpecification{ AlgorithmName: jsii.String("BlazingText"), TrainingInputMode: tasks.InputMode_FILE, }, InputDataConfig: []channel{ &channel{ ChannelName: jsii.String("train"), DataSource: &DataSource{ S3DataSource: &S3DataSource{ S3DataType: tasks.S3DataType_S3_PREFIX, S3Location: tasks.S3Location_FromJsonExpression(jsii.String("$.S3Bucket")), }, }, }, }, OutputDataConfig: &OutputDataConfig{ S3OutputLocation: tasks.S3Location_FromBucket(s3.Bucket_FromBucketName(this, jsii.String("Bucket"), jsii.String("amzn-s3-demo-bucket")), jsii.String("myoutputpath")), }, ResourceConfig: &ResourceConfig{ InstanceCount: jsii.Number(1), InstanceType: ec2.NewInstanceType(sfn.JsonPath_*StringAt(jsii.String("$.InstanceType"))), VolumeSize: awscdk.Size_Gibibytes(jsii.Number(50)), }, // optional: default is 1 instance of EC2 `M4.XLarge` with `10GB` volume StoppingCondition: &StoppingCondition{ MaxRuntime: awscdk.Duration_Hours(jsii.Number(2)), }, })
type SageMakerCreateTransformJob ¶
type SageMakerCreateTransformJob interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // The execution role for the Sagemaker transform job. // // Only available after task has been added to a state machine. Role() awsiam.IRole // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
Class representing the SageMaker Create Transform Job task.
Example:
tasks.NewSageMakerCreateTransformJob(this, jsii.String("Batch Inference"), &SageMakerCreateTransformJobProps{ TransformJobName: jsii.String("MyTransformJob"), ModelName: jsii.String("MyModelName"), ModelClientOptions: &ModelClientOptions{ InvocationsMaxRetries: jsii.Number(3), // default is 0 InvocationsTimeout: awscdk.Duration_Minutes(jsii.Number(5)), }, TransformInput: &TransformInput{ TransformDataSource: &TransformDataSource{ S3DataSource: &TransformS3DataSource{ S3Uri: jsii.String("s3://inputbucket/train"), S3DataType: tasks.S3DataType_S3_PREFIX, }, }, }, TransformOutput: &TransformOutput{ S3OutputPath: jsii.String("s3://outputbucket/TransformJobOutputPath"), }, TransformResources: &TransformResources{ InstanceCount: jsii.Number(1), InstanceType: ec2.InstanceType_Of(ec2.InstanceClass_M4, ec2.InstanceSize_XLARGE), }, })
func NewSageMakerCreateTransformJob ¶
func NewSageMakerCreateTransformJob(scope constructs.Construct, id *string, props *SageMakerCreateTransformJobProps) SageMakerCreateTransformJob
type SageMakerCreateTransformJobProps ¶
type SageMakerCreateTransformJobProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // Name of the model that you want to use for the transform job. ModelName *string `field:"required" json:"modelName" yaml:"modelName"` // Dataset to be transformed and the Amazon S3 location where it is stored. TransformInput *TransformInput `field:"required" json:"transformInput" yaml:"transformInput"` // Transform Job Name. TransformJobName *string `field:"required" json:"transformJobName" yaml:"transformJobName"` // S3 location where you want Amazon SageMaker to save the results from the transform job. TransformOutput *TransformOutput `field:"required" json:"transformOutput" yaml:"transformOutput"` // Number of records to include in a mini-batch for an HTTP inference request. // Default: - No batch strategy. // BatchStrategy BatchStrategy `field:"optional" json:"batchStrategy" yaml:"batchStrategy"` // Environment variables to set in the Docker container. // Default: - No environment variables. // Environment *map[string]*string `field:"optional" json:"environment" yaml:"environment"` // Maximum number of parallel requests that can be sent to each instance in a transform job. // Default: - Amazon SageMaker checks the optional execution-parameters to determine the settings for your chosen algorithm. // If the execution-parameters endpoint is not enabled, the default value is 1. // MaxConcurrentTransforms *float64 `field:"optional" json:"maxConcurrentTransforms" yaml:"maxConcurrentTransforms"` // Maximum allowed size of the payload, in MB. // Default: 6. // MaxPayload awscdk.Size `field:"optional" json:"maxPayload" yaml:"maxPayload"` // Configures the timeout and maximum number of retries for processing a transform job invocation. // Default: - 0 retries and 60 seconds of timeout. // ModelClientOptions *ModelClientOptions `field:"optional" json:"modelClientOptions" yaml:"modelClientOptions"` // Role for the Transform Job. // Default: - A role is created with `AmazonSageMakerFullAccess` managed policy. // Role awsiam.IRole `field:"optional" json:"role" yaml:"role"` // Tags to be applied to the train job. // Default: - No tags. // Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"` // ML compute instances for the transform job. // Default: - 1 instance of type M4.XLarge // TransformResources *TransformResources `field:"optional" json:"transformResources" yaml:"transformResources"` }
Properties for creating an Amazon SageMaker transform job task.
Example:
tasks.NewSageMakerCreateTransformJob(this, jsii.String("Batch Inference"), &SageMakerCreateTransformJobProps{ TransformJobName: jsii.String("MyTransformJob"), ModelName: jsii.String("MyModelName"), ModelClientOptions: &ModelClientOptions{ InvocationsMaxRetries: jsii.Number(3), // default is 0 InvocationsTimeout: awscdk.Duration_Minutes(jsii.Number(5)), }, TransformInput: &TransformInput{ TransformDataSource: &TransformDataSource{ S3DataSource: &TransformS3DataSource{ S3Uri: jsii.String("s3://inputbucket/train"), S3DataType: tasks.S3DataType_S3_PREFIX, }, }, }, TransformOutput: &TransformOutput{ S3OutputPath: jsii.String("s3://outputbucket/TransformJobOutputPath"), }, TransformResources: &TransformResources{ InstanceCount: jsii.Number(1), InstanceType: ec2.InstanceType_Of(ec2.InstanceClass_M4, ec2.InstanceSize_XLARGE), }, })
type SageMakerUpdateEndpoint ¶
type SageMakerUpdateEndpoint interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions Task to update a SageMaker endpoint.
Example:
tasks.NewSageMakerUpdateEndpoint(this, jsii.String("SagemakerEndpoint"), &SageMakerUpdateEndpointProps{ EndpointName: sfn.JsonPath_StringAt(jsii.String("$.Endpoint.Name")), EndpointConfigName: sfn.JsonPath_*StringAt(jsii.String("$.Endpoint.EndpointConfig")), })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-sagemaker.html
func NewSageMakerUpdateEndpoint ¶
func NewSageMakerUpdateEndpoint(scope constructs.Construct, id *string, props *SageMakerUpdateEndpointProps) SageMakerUpdateEndpoint
type SageMakerUpdateEndpointProps ¶
type SageMakerUpdateEndpointProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The name of the new endpoint configuration. EndpointConfigName *string `field:"required" json:"endpointConfigName" yaml:"endpointConfigName"` // The name of the endpoint whose configuration you want to update. EndpointName *string `field:"required" json:"endpointName" yaml:"endpointName"` }
Properties for updating Amazon SageMaker endpoint.
Example:
tasks.NewSageMakerUpdateEndpoint(this, jsii.String("SagemakerEndpoint"), &SageMakerUpdateEndpointProps{ EndpointName: sfn.JsonPath_StringAt(jsii.String("$.Endpoint.Name")), EndpointConfigName: sfn.JsonPath_*StringAt(jsii.String("$.Endpoint.EndpointConfig")), })
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-sagemaker.html
type Schedule ¶ added in v2.168.0
type Schedule interface { // The Schedule expression. ExpressionString() *string }
Schedule for EventBridge Scheduler.
Example:
import scheduler "github.com/aws/aws-cdk-go/awscdk" import kms "github.com/aws/aws-cdk-go/awscdk" var key key var scheduleGroup cfnScheduleGroup var targetQueue queue var deadLetterQueue queue schedulerRole := iam.NewRole(this, jsii.String("SchedulerRole"), &RoleProps{ AssumedBy: iam.NewServicePrincipal(jsii.String("scheduler.amazonaws.com")), }) // To send the message to the queue // This policy changes depending on the type of target. schedulerRole.AddToPrincipalPolicy(iam.NewPolicyStatement(&PolicyStatementProps{ Actions: []*string{ jsii.String("sqs:SendMessage"), }, Resources: []*string{ targetQueue.QueueArn, }, })) createScheduleTask1 := tasks.NewEventBridgeSchedulerCreateScheduleTask(this, jsii.String("createSchedule"), &EventBridgeSchedulerCreateScheduleTaskProps{ ScheduleName: jsii.String("TestSchedule"), ActionAfterCompletion: tasks.ActionAfterCompletion_NONE, ClientToken: jsii.String("testToken"), Description: jsii.String("TestDescription"), StartDate: NewDate(), EndDate: NewDate(NewDate().getTime() + 1000 * 60 * 60), FlexibleTimeWindow: awscdk.Duration_Minutes(jsii.Number(5)), GroupName: scheduleGroup.ref, KmsKey: key, Schedule: tasks.Schedule_Rate(awscdk.Duration_*Minutes(jsii.Number(5))), Timezone: jsii.String("UTC"), Enabled: jsii.Boolean(true), Target: tasks.NewEventBridgeSchedulerTarget(&EventBridgeSchedulerTargetProps{ Arn: targetQueue.*QueueArn, Role: schedulerRole, RetryPolicy: &RetryPolicy{ MaximumRetryAttempts: jsii.Number(2), MaximumEventAge: awscdk.Duration_*Minutes(jsii.Number(5)), }, DeadLetterQueue: *DeadLetterQueue, }), })
func Schedule_Cron ¶ added in v2.168.0
func Schedule_Cron(options *CronOptions) Schedule
Create a cron-based schedule from a set of cron fields.
func Schedule_OneTime ¶ added in v2.168.0
Construct a one-time schedule from a Date.
func Schedule_Rate ¶ added in v2.168.0
func Schedule_Rate(duration awscdk.Duration) Schedule
Construct a rate-based schedule from an interval.
The minimum interval is 1 minute.
type ShuffleConfig ¶
type ShuffleConfig struct { // Determines the shuffling order. Seed *float64 `field:"required" json:"seed" yaml:"seed"` }
Configuration for a shuffle option for input data in a channel.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" shuffleConfig := &ShuffleConfig{ Seed: jsii.Number(123), }
type SnsPublish ¶
type SnsPublish interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions Task to publish messages to SNS topic.
Example:
convertToSeconds := tasks.NewEvaluateExpression(this, jsii.String("Convert to seconds"), &EvaluateExpressionProps{ Expression: jsii.String("$.waitMilliseconds / 1000"), ResultPath: jsii.String("$.waitSeconds"), }) createMessage := tasks.NewEvaluateExpression(this, jsii.String("Create message"), &EvaluateExpressionProps{ // Note: this is a string inside a string. Expression: jsii.String("`Now waiting ${$.waitSeconds} seconds...`"), Runtime: lambda.Runtime_NODEJS_LATEST(), ResultPath: jsii.String("$.message"), }) publishMessage := tasks.NewSnsPublish(this, jsii.String("Publish message"), &SnsPublishProps{ Topic: sns.NewTopic(this, jsii.String("cool-topic")), Message: sfn.TaskInput_FromJsonPathAt(jsii.String("$.message")), ResultPath: jsii.String("$.sns"), }) wait := sfn.NewWait(this, jsii.String("Wait"), &WaitProps{ Time: sfn.WaitTime_SecondsPath(jsii.String("$.waitSeconds")), }) sfn.NewStateMachine(this, jsii.String("StateMachine"), &StateMachineProps{ Definition: convertToSeconds.Next(createMessage).Next(publishMessage).*Next(wait), })
func NewSnsPublish ¶
func NewSnsPublish(scope constructs.Construct, id *string, props *SnsPublishProps) SnsPublish
type SnsPublishProps ¶
type SnsPublishProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The message you want to send. // // With the exception of SMS, messages must be UTF-8 encoded strings and // at most 256 KB in size. // For SMS, each message can contain up to 140 characters. Message awsstepfunctions.TaskInput `field:"required" json:"message" yaml:"message"` // The SNS topic that the task will publish to. Topic awssns.ITopic `field:"required" json:"topic" yaml:"topic"` // Add message attributes when publishing. // // These attributes carry additional metadata about the message and may be used // for subscription filters. // See: https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html // // Default: {}. // MessageAttributes *map[string]*MessageAttribute `field:"optional" json:"messageAttributes" yaml:"messageAttributes"` // This parameter applies only to FIFO topics. // // Every message must have a unique MessageDeduplicationId, which is a token used for deduplication of sent messages. // If a message with a particular MessageDeduplicationId is sent successfully, any message sent with the same MessageDeduplicationId // during the 5-minute deduplication interval is treated as a duplicate. // // If the topic has ContentBasedDeduplication set, the system generates a MessageDeduplicationId // based on the contents of the message. Your MessageDeduplicationId overrides the generated one. // Default: - Not used for standard topics, required for FIFO topics with ContentBasedDeduplication disabled. // MessageDeduplicationId *string `field:"optional" json:"messageDeduplicationId" yaml:"messageDeduplicationId"` // This parameter applies only to FIFO topics. // // The MessageGroupId is a tag that specifies that a message belongs to a specific message group. // Messages that belong to the same message group are processed in a FIFO manner // (however, messages in different message groups might be processed out of order). // Every message must include a MessageGroupId. // Default: - Not used for standard topics, required for FIFO topics. // MessageGroupId *string `field:"optional" json:"messageGroupId" yaml:"messageGroupId"` // Send different messages for each transport protocol. // // For example, you might want to send a shorter message to SMS subscribers // and a more verbose message to email and SQS subscribers. // // Your message must be a JSON object with a top-level JSON key of // "default" with a value that is a string // You can define other top-level keys that define the message you want to // send to a specific transport protocol (i.e. "sqs", "email", "http", etc) // See: https://docs.aws.amazon.com/sns/latest/api/API_Publish.html#API_Publish_RequestParameters // // Default: false. // MessagePerSubscriptionType *bool `field:"optional" json:"messagePerSubscriptionType" yaml:"messagePerSubscriptionType"` // Used as the "Subject" line when the message is delivered to email endpoints. // // This field will also be included, if present, in the standard JSON messages // delivered to other endpoints. // Default: - No subject. // Subject *string `field:"optional" json:"subject" yaml:"subject"` }
Properties for publishing a message to an SNS topic.
Example:
convertToSeconds := tasks.NewEvaluateExpression(this, jsii.String("Convert to seconds"), &EvaluateExpressionProps{ Expression: jsii.String("$.waitMilliseconds / 1000"), ResultPath: jsii.String("$.waitSeconds"), }) createMessage := tasks.NewEvaluateExpression(this, jsii.String("Create message"), &EvaluateExpressionProps{ // Note: this is a string inside a string. Expression: jsii.String("`Now waiting ${$.waitSeconds} seconds...`"), Runtime: lambda.Runtime_NODEJS_LATEST(), ResultPath: jsii.String("$.message"), }) publishMessage := tasks.NewSnsPublish(this, jsii.String("Publish message"), &SnsPublishProps{ Topic: sns.NewTopic(this, jsii.String("cool-topic")), Message: sfn.TaskInput_FromJsonPathAt(jsii.String("$.message")), ResultPath: jsii.String("$.sns"), }) wait := sfn.NewWait(this, jsii.String("Wait"), &WaitProps{ Time: sfn.WaitTime_SecondsPath(jsii.String("$.waitSeconds")), }) sfn.NewStateMachine(this, jsii.String("StateMachine"), &StateMachineProps{ Definition: convertToSeconds.Next(createMessage).Next(publishMessage).*Next(wait), })
type SparkSubmitJobDriver ¶ added in v2.1.0
type SparkSubmitJobDriver struct { // The entry point of job application. // // Length Constraints: Minimum length of 1. Maximum length of 256. EntryPoint awsstepfunctions.TaskInput `field:"required" json:"entryPoint" yaml:"entryPoint"` // The arguments for a job application in a task input object containing an array of strings. // // Length Constraints: Minimum length of 1. Maximum length of 10280. // Default: - No arguments defined. // EntryPointArguments awsstepfunctions.TaskInput `field:"optional" json:"entryPointArguments" yaml:"entryPointArguments"` // The Spark submit parameters that are used for job runs. // // Length Constraints: Minimum length of 1. Maximum length of 102400. // Default: - No spark submit parameters. // SparkSubmitParameters *string `field:"optional" json:"sparkSubmitParameters" yaml:"sparkSubmitParameters"` }
The information about job driver for Spark submit.
Example:
tasks.NewEmrContainersStartJobRun(this, jsii.String("EMR Containers Start Job Run"), &EmrContainersStartJobRunProps{ VirtualCluster: tasks.VirtualClusterInput_FromVirtualClusterId(jsii.String("de92jdei2910fwedz")), ReleaseLabel: tasks.ReleaseLabel_EMR_6_2_0(), JobName: jsii.String("EMR-Containers-Job"), JobDriver: &JobDriver{ SparkSubmitJobDriver: &SparkSubmitJobDriver{ EntryPoint: sfn.TaskInput_FromText(jsii.String("local:///usr/lib/spark/examples/src/main/python/pi.py")), }, }, ApplicationConfig: []applicationConfiguration{ &applicationConfiguration{ Classification: tasks.Classification_SPARK_DEFAULTS(), Properties: map[string]*string{ "spark.executor.instances": jsii.String("1"), "spark.executor.memory": jsii.String("512M"), }, }, }, })
type SplitType ¶
type SplitType string
Method to use to split the transform job's data files into smaller batches.
const ( // Input data files are not split,. SplitType_NONE SplitType = "NONE" // Split records on a newline character boundary. SplitType_LINE SplitType = "LINE" // Split using MXNet RecordIO format. SplitType_RECORD_IO SplitType = "RECORD_IO" // Split using TensorFlow TFRecord format. SplitType_TF_RECORD SplitType = "TF_RECORD" )
type SqsSendMessage ¶
type SqsSendMessage interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A StepFunctions Task to send messages to SQS queue.
Example:
queue := sqs.NewQueue(this, jsii.String("Queue")) // Use a field from the execution data as message. task1 := tasks.NewSqsSendMessage(this, jsii.String("Send1"), &SqsSendMessageProps{ Queue: Queue, MessageBody: sfn.TaskInput_FromJsonPathAt(jsii.String("$.message")), }) // Combine a field from the execution data with // a literal object. task2 := tasks.NewSqsSendMessage(this, jsii.String("Send2"), &SqsSendMessageProps{ Queue: Queue, MessageBody: sfn.TaskInput_FromObject(map[string]interface{}{ "field1": jsii.String("somedata"), "field2": sfn.JsonPath_stringAt(jsii.String("$.field2")), }), })
func NewSqsSendMessage ¶
func NewSqsSendMessage(scope constructs.Construct, id *string, props *SqsSendMessageProps) SqsSendMessage
type SqsSendMessageProps ¶
type SqsSendMessageProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The text message to send to the queue. MessageBody awsstepfunctions.TaskInput `field:"required" json:"messageBody" yaml:"messageBody"` // The SQS queue that messages will be sent to. Queue awssqs.IQueue `field:"required" json:"queue" yaml:"queue"` // The length of time, for which to delay a message. // // Messages that you send to the queue remain invisible to consumers for the duration // of the delay period. The maximum allowed delay is 15 minutes. // Default: - delay set on the queue. If a delay is not set on the queue, // messages are sent immediately (0 seconds). // Delay awscdk.Duration `field:"optional" json:"delay" yaml:"delay"` // The token used for deduplication of sent messages. // // Any messages sent with the same deduplication ID are accepted successfully, // but aren't delivered during the 5-minute deduplication interval. // Default: - None. // MessageDeduplicationId *string `field:"optional" json:"messageDeduplicationId" yaml:"messageDeduplicationId"` // The tag that specifies that a message belongs to a specific message group. // // Messages that belong to the same message group are processed in a FIFO manner. // Messages in different message groups might be processed out of order. // Default: - None. // MessageGroupId *string `field:"optional" json:"messageGroupId" yaml:"messageGroupId"` }
Properties for sending a message to an SQS queue.
Example:
queue := sqs.NewQueue(this, jsii.String("Queue")) // Use a field from the execution data as message. task1 := tasks.NewSqsSendMessage(this, jsii.String("Send1"), &SqsSendMessageProps{ Queue: Queue, MessageBody: sfn.TaskInput_FromJsonPathAt(jsii.String("$.message")), }) // Combine a field from the execution data with // a literal object. task2 := tasks.NewSqsSendMessage(this, jsii.String("Send2"), &SqsSendMessageProps{ Queue: Queue, MessageBody: sfn.TaskInput_FromObject(map[string]interface{}{ "field1": jsii.String("somedata"), "field2": sfn.JsonPath_stringAt(jsii.String("$.field2")), }), })
type StepFunctionsInvokeActivity ¶
type StepFunctionsInvokeActivity interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions Task to invoke an Activity worker.
An Activity can be used directly as a Resource.
Example:
submitJobActivity := sfn.NewActivity(this, jsii.String("SubmitJob")) tasks.NewStepFunctionsInvokeActivity(this, jsii.String("Submit Job"), &StepFunctionsInvokeActivityProps{ Activity: submitJobActivity, })
func NewStepFunctionsInvokeActivity ¶
func NewStepFunctionsInvokeActivity(scope constructs.Construct, id *string, props *StepFunctionsInvokeActivityProps) StepFunctionsInvokeActivity
type StepFunctionsInvokeActivityProps ¶
type StepFunctionsInvokeActivityProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // Step Functions Activity to invoke. Activity awsstepfunctions.IActivity `field:"required" json:"activity" yaml:"activity"` // Parameters pass a collection of key-value pairs, either static values or JSONPath expressions that select from the input. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-parameters // // Default: No parameters. // Parameters *map[string]interface{} `field:"optional" json:"parameters" yaml:"parameters"` }
Properties for invoking an Activity worker.
Example:
submitJobActivity := sfn.NewActivity(this, jsii.String("SubmitJob")) tasks.NewStepFunctionsInvokeActivity(this, jsii.String("Submit Job"), &StepFunctionsInvokeActivityProps{ Activity: submitJobActivity, })
type StepFunctionsStartExecution ¶
type StepFunctionsStartExecution interface { awsstepfunctions.TaskStateBase Branches() *[]awsstepfunctions.StateGraph Comment() *string DefaultChoice() awsstepfunctions.State SetDefaultChoice(val awsstepfunctions.State) // Continuable states of this Chainable. EndStates() *[]awsstepfunctions.INextable // Descriptive identifier for this chainable. Id() *string InputPath() *string Iteration() awsstepfunctions.StateGraph SetIteration(val awsstepfunctions.StateGraph) // The tree node. Node() constructs.Node OutputPath() *string Parameters() *map[string]interface{} Processor() awsstepfunctions.StateGraph SetProcessor(val awsstepfunctions.StateGraph) ProcessorConfig() *awsstepfunctions.ProcessorConfig SetProcessorConfig(val *awsstepfunctions.ProcessorConfig) ProcessorMode() awsstepfunctions.ProcessorMode SetProcessorMode(val awsstepfunctions.ProcessorMode) ResultPath() *string ResultSelector() *map[string]interface{} // First state of this Chainable. StartState() awsstepfunctions.State // Tokenized string that evaluates to the state's ID. StateId() *string StateName() *string TaskMetrics() *awsstepfunctions.TaskMetricsConfig TaskPolicies() *[]awsiam.PolicyStatement // Add a parallel branch to this state. AddBranch(branch awsstepfunctions.StateGraph) // Add a recovery handler for this state. // // When a particular error occurs, execution will continue at the error // handler instead of failing the state machine execution. AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase // Add a choice branch to this state. AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) // Add a item processor to this state. AddItemProcessor(processor awsstepfunctions.StateGraph, config *awsstepfunctions.ProcessorConfig) // Add a map iterator to this state. AddIterator(iteration awsstepfunctions.StateGraph) // Add a prefix to the stateId of this state. AddPrefix(x *string) // Add retry configuration for this state. // // This controls if and how the execution will be retried if a particular // error occurs. AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase // Register this state as part of the given graph. // // Don't call this. It will be called automatically when you work // with states normally. BindToGraph(graph awsstepfunctions.StateGraph) // Make the indicated state the default choice transition of this state. MakeDefault(def awsstepfunctions.State) // Make the indicated state the default transition of this state. MakeNext(next awsstepfunctions.State) // Return the given named metric for this Task. // Default: - sum over 5 minutes. // Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity fails. // Default: - sum over 5 minutes. // MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times the heartbeat times out for this activity. // Default: - sum over 5 minutes. // MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the Task starts and the time it closes. // Default: - average over 5 minutes. // MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is scheduled. // Default: - sum over 5 minutes. // MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, for which the activity stays in the schedule state. // Default: - average over 5 minutes. // MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity is started. // Default: - sum over 5 minutes. // MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity succeeds. // Default: - sum over 5 minutes. // MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // The interval, in milliseconds, between the time the activity is scheduled and the time it closes. // Default: - average over 5 minutes. // MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Metric for the number of times this activity times out. // Default: - sum over 5 minutes. // MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Continue normal execution with the given state. Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain // Render parallel branches in ASL JSON format. RenderBranches() interface{} // Render the choices in ASL JSON format. RenderChoices() interface{} // Render InputPath/Parameters/OutputPath in ASL JSON format. RenderInputOutput() interface{} // Render ItemProcessor in ASL JSON format. RenderItemProcessor() interface{} // Render map iterator in ASL JSON format. RenderIterator() interface{} // Render the default next state in ASL JSON format. RenderNextEnd() interface{} // Render ResultSelector in ASL JSON format. RenderResultSelector() interface{} // Render error recovery options in ASL JSON format. RenderRetryCatch() interface{} // Return the Amazon States Language object for this state. ToStateJson() *map[string]interface{} // Returns a string representation of this construct. ToString() *string // Allows the state to validate itself. ValidateState() *[]*string // Called whenever this state is bound to a graph. // // Can be overridden by subclasses. WhenBoundToGraph(graph awsstepfunctions.StateGraph) }
A Step Functions Task to call StartExecution on another state machine.
It supports three service integration patterns: REQUEST_RESPONSE, RUN_JOB, and WAIT_FOR_TASK_TOKEN.
Example:
// Define a state machine with one Pass state child := sfn.NewStateMachine(this, jsii.String("ChildStateMachine"), &StateMachineProps{ Definition: sfn.Chain_Start(sfn.NewPass(this, jsii.String("PassState"))), }) // Include the state machine in a Task state with callback pattern task := tasks.NewStepFunctionsStartExecution(this, jsii.String("ChildTask"), &StepFunctionsStartExecutionProps{ StateMachine: child, IntegrationPattern: sfn.IntegrationPattern_WAIT_FOR_TASK_TOKEN, Input: sfn.TaskInput_FromObject(map[string]interface{}{ "token": sfn.JsonPath_taskToken(), "foo": jsii.String("bar"), }), Name: jsii.String("MyExecutionName"), }) // Define a second state machine with the Task state above // Define a second state machine with the Task state above sfn.NewStateMachine(this, jsii.String("ParentStateMachine"), &StateMachineProps{ Definition: task, })
func NewStepFunctionsStartExecution ¶
func NewStepFunctionsStartExecution(scope constructs.Construct, id *string, props *StepFunctionsStartExecutionProps) StepFunctionsStartExecution
type StepFunctionsStartExecutionProps ¶
type StepFunctionsStartExecutionProps struct { // An optional description for this state. // Default: - No comment. // Comment *string `field:"optional" json:"comment" yaml:"comment"` // Credentials for an IAM Role that the State Machine assumes for executing the task. // // This enables cross-account resource invocations. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html // // Default: - None (Task is executed using the State Machine's execution role). // Credentials *awsstepfunctions.Credentials `field:"optional" json:"credentials" yaml:"credentials"` // Timeout for the heartbeat. // Default: - None. // // Deprecated: use `heartbeatTimeout`. Heartbeat awscdk.Duration `field:"optional" json:"heartbeat" yaml:"heartbeat"` // Timeout for the heartbeat. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // HeartbeatTimeout awsstepfunctions.Timeout `field:"optional" json:"heartbeatTimeout" yaml:"heartbeatTimeout"` // JSONPath expression to select part of the state to be the input to this state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // input to be the empty object {}. // Default: - The entire task input (JSON path '$'). // InputPath *string `field:"optional" json:"inputPath" yaml:"inputPath"` // AWS Step Functions integrates with services directly in the Amazon States Language. // // You can control these AWS services using service integration patterns. // // Depending on the AWS Service, the Service Integration Pattern availability will vary. // See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html // // Default: - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. // `IntegrationPattern.RUN_JOB` for the following exceptions: // `BatchSubmitJob`, `EmrAddStep`, `EmrCreateCluster`, `EmrTerminationCluster`, and `EmrContainersStartJobRun`. // IntegrationPattern awsstepfunctions.IntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"` // JSONPath expression to select select a portion of the state output to pass to the next state. // // May also be the special value JsonPath.DISCARD, which will cause the effective // output to be the empty object {}. // Default: - The entire JSON node determined by the state input, the task result, // and resultPath is passed to the next state (JSON path '$'). // OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"` // JSONPath expression to indicate where to inject the state's output. // // May also be the special value JsonPath.DISCARD, which will cause the state's // input to become its output. // Default: - Replaces the entire input with the result (JSON path '$'). // ResultPath *string `field:"optional" json:"resultPath" yaml:"resultPath"` // The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. // // You can use ResultSelector to create a payload with values that are static // or selected from the state's raw result. // See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector // // Default: - None. // ResultSelector *map[string]interface{} `field:"optional" json:"resultSelector" yaml:"resultSelector"` // Optional name for this state. // Default: - The construct ID will be used as state name. // StateName *string `field:"optional" json:"stateName" yaml:"stateName"` // Timeout for the task. // // [disable-awslint:duration-prop-type] is needed because all props interface in // aws-stepfunctions-tasks extend this interface. // Default: - None. // TaskTimeout awsstepfunctions.Timeout `field:"optional" json:"taskTimeout" yaml:"taskTimeout"` // Timeout for the task. // Default: - None. // // Deprecated: use `taskTimeout`. Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The Step Functions state machine to start the execution on. StateMachine awsstepfunctions.IStateMachine `field:"required" json:"stateMachine" yaml:"stateMachine"` // Pass the execution ID from the context object to the execution input. // // This allows the Step Functions UI to link child executions from parent executions, making it easier to trace execution flow across state machines. // // If you set this property to `true`, the `input` property must be an object (provided by `sfn.TaskInput.fromObject`) or omitted entirely. // See: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-nested-workflows.html#nested-execution-startid // // Default: - false. // AssociateWithParent *bool `field:"optional" json:"associateWithParent" yaml:"associateWithParent"` // The JSON input for the execution, same as that of StartExecution. // See: https://docs.aws.amazon.com/step-functions/latest/apireference/API_StartExecution.html // // Default: - The state input (JSON path '$'). // Input awsstepfunctions.TaskInput `field:"optional" json:"input" yaml:"input"` // The name of the execution, same as that of StartExecution. // See: https://docs.aws.amazon.com/step-functions/latest/apireference/API_StartExecution.html // // Default: - None. // Name *string `field:"optional" json:"name" yaml:"name"` }
Properties for StartExecution.
Example:
// Define a state machine with one Pass state child := sfn.NewStateMachine(this, jsii.String("ChildStateMachine"), &StateMachineProps{ Definition: sfn.Chain_Start(sfn.NewPass(this, jsii.String("PassState"))), }) // Include the state machine in a Task state with callback pattern task := tasks.NewStepFunctionsStartExecution(this, jsii.String("ChildTask"), &StepFunctionsStartExecutionProps{ StateMachine: child, IntegrationPattern: sfn.IntegrationPattern_WAIT_FOR_TASK_TOKEN, Input: sfn.TaskInput_FromObject(map[string]interface{}{ "token": sfn.JsonPath_taskToken(), "foo": jsii.String("bar"), }), Name: jsii.String("MyExecutionName"), }) // Define a second state machine with the Task state above // Define a second state machine with the Task state above sfn.NewStateMachine(this, jsii.String("ParentStateMachine"), &StateMachineProps{ Definition: task, })
type StoppingCondition ¶
type StoppingCondition struct { // The maximum length of time, in seconds, that the training or compilation job can run. // Default: - 1 hour. // MaxRuntime awscdk.Duration `field:"optional" json:"maxRuntime" yaml:"maxRuntime"` }
Specifies a limit to how long a model training job can run.
When the job reaches the time limit, Amazon SageMaker ends the training job.
Example:
tasks.NewSageMakerCreateTrainingJob(this, jsii.String("TrainSagemaker"), &SageMakerCreateTrainingJobProps{ TrainingJobName: sfn.JsonPath_StringAt(jsii.String("$.JobName")), AlgorithmSpecification: &AlgorithmSpecification{ AlgorithmName: jsii.String("BlazingText"), TrainingInputMode: tasks.InputMode_FILE, }, InputDataConfig: []channel{ &channel{ ChannelName: jsii.String("train"), DataSource: &DataSource{ S3DataSource: &S3DataSource{ S3DataType: tasks.S3DataType_S3_PREFIX, S3Location: tasks.S3Location_FromJsonExpression(jsii.String("$.S3Bucket")), }, }, }, }, OutputDataConfig: &OutputDataConfig{ S3OutputLocation: tasks.S3Location_FromBucket(s3.Bucket_FromBucketName(this, jsii.String("Bucket"), jsii.String("amzn-s3-demo-bucket")), jsii.String("myoutputpath")), }, ResourceConfig: &ResourceConfig{ InstanceCount: jsii.Number(1), InstanceType: ec2.NewInstanceType(sfn.JsonPath_*StringAt(jsii.String("$.InstanceType"))), VolumeSize: awscdk.Size_Gibibytes(jsii.Number(50)), }, // optional: default is 1 instance of EC2 `M4.XLarge` with `10GB` volume StoppingCondition: &StoppingCondition{ MaxRuntime: awscdk.Duration_Hours(jsii.Number(2)), }, })
type TaskEnvironmentVariable ¶
type TaskEnvironmentVariable struct { // Name for the environment variable. // // Use `JsonPath` class's static methods to specify name from a JSON path. Name *string `field:"required" json:"name" yaml:"name"` // Value of the environment variable. // // Use `JsonPath` class's static methods to specify value from a JSON path. Value *string `field:"required" json:"value" yaml:"value"` }
An environment variable to be set in the container run as a task.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" taskEnvironmentVariable := &TaskEnvironmentVariable{ Name: jsii.String("name"), Value: jsii.String("value"), }
type TransformDataSource ¶
type TransformDataSource struct { // S3 location of the input data. S3DataSource *TransformS3DataSource `field:"required" json:"s3DataSource" yaml:"s3DataSource"` }
S3 location of the input data that the model can consume.
Example:
tasks.NewSageMakerCreateTransformJob(this, jsii.String("Batch Inference"), &SageMakerCreateTransformJobProps{ TransformJobName: jsii.String("MyTransformJob"), ModelName: jsii.String("MyModelName"), ModelClientOptions: &ModelClientOptions{ InvocationsMaxRetries: jsii.Number(3), // default is 0 InvocationsTimeout: awscdk.Duration_Minutes(jsii.Number(5)), }, TransformInput: &TransformInput{ TransformDataSource: &TransformDataSource{ S3DataSource: &TransformS3DataSource{ S3Uri: jsii.String("s3://inputbucket/train"), S3DataType: tasks.S3DataType_S3_PREFIX, }, }, }, TransformOutput: &TransformOutput{ S3OutputPath: jsii.String("s3://outputbucket/TransformJobOutputPath"), }, TransformResources: &TransformResources{ InstanceCount: jsii.Number(1), InstanceType: ec2.InstanceType_Of(ec2.InstanceClass_M4, ec2.InstanceSize_XLARGE), }, })
type TransformInput ¶
type TransformInput struct { // S3 location of the channel data. TransformDataSource *TransformDataSource `field:"required" json:"transformDataSource" yaml:"transformDataSource"` // The compression type of the transform data. // Default: NONE. // CompressionType CompressionType `field:"optional" json:"compressionType" yaml:"compressionType"` // Multipurpose internet mail extension (MIME) type of the data. // Default: - None. // ContentType *string `field:"optional" json:"contentType" yaml:"contentType"` // Method to use to split the transform job's data files into smaller batches. // Default: NONE. // SplitType SplitType `field:"optional" json:"splitType" yaml:"splitType"` }
Dataset to be transformed and the Amazon S3 location where it is stored.
Example:
tasks.NewSageMakerCreateTransformJob(this, jsii.String("Batch Inference"), &SageMakerCreateTransformJobProps{ TransformJobName: jsii.String("MyTransformJob"), ModelName: jsii.String("MyModelName"), ModelClientOptions: &ModelClientOptions{ InvocationsMaxRetries: jsii.Number(3), // default is 0 InvocationsTimeout: awscdk.Duration_Minutes(jsii.Number(5)), }, TransformInput: &TransformInput{ TransformDataSource: &TransformDataSource{ S3DataSource: &TransformS3DataSource{ S3Uri: jsii.String("s3://inputbucket/train"), S3DataType: tasks.S3DataType_S3_PREFIX, }, }, }, TransformOutput: &TransformOutput{ S3OutputPath: jsii.String("s3://outputbucket/TransformJobOutputPath"), }, TransformResources: &TransformResources{ InstanceCount: jsii.Number(1), InstanceType: ec2.InstanceType_Of(ec2.InstanceClass_M4, ec2.InstanceSize_XLARGE), }, })
type TransformOutput ¶
type TransformOutput struct { // S3 path where you want Amazon SageMaker to store the results of the transform job. S3OutputPath *string `field:"required" json:"s3OutputPath" yaml:"s3OutputPath"` // MIME type used to specify the output data. // Default: - None. // Accept *string `field:"optional" json:"accept" yaml:"accept"` // Defines how to assemble the results of the transform job as a single S3 object. // Default: - None. // AssembleWith AssembleWith `field:"optional" json:"assembleWith" yaml:"assembleWith"` // AWS KMS key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. // Default: - default KMS key for Amazon S3 for your role's account. // EncryptionKey awskms.IKey `field:"optional" json:"encryptionKey" yaml:"encryptionKey"` }
S3 location where you want Amazon SageMaker to save the results from the transform job.
Example:
tasks.NewSageMakerCreateTransformJob(this, jsii.String("Batch Inference"), &SageMakerCreateTransformJobProps{ TransformJobName: jsii.String("MyTransformJob"), ModelName: jsii.String("MyModelName"), ModelClientOptions: &ModelClientOptions{ InvocationsMaxRetries: jsii.Number(3), // default is 0 InvocationsTimeout: awscdk.Duration_Minutes(jsii.Number(5)), }, TransformInput: &TransformInput{ TransformDataSource: &TransformDataSource{ S3DataSource: &TransformS3DataSource{ S3Uri: jsii.String("s3://inputbucket/train"), S3DataType: tasks.S3DataType_S3_PREFIX, }, }, }, TransformOutput: &TransformOutput{ S3OutputPath: jsii.String("s3://outputbucket/TransformJobOutputPath"), }, TransformResources: &TransformResources{ InstanceCount: jsii.Number(1), InstanceType: ec2.InstanceType_Of(ec2.InstanceClass_M4, ec2.InstanceSize_XLARGE), }, })
type TransformResources ¶
type TransformResources struct { // Number of ML compute instances to use in the transform job. InstanceCount *float64 `field:"required" json:"instanceCount" yaml:"instanceCount"` // ML compute instance type for the transform job. InstanceType awsec2.InstanceType `field:"required" json:"instanceType" yaml:"instanceType"` // AWS KMS key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s). // Default: - None. // VolumeEncryptionKey awskms.IKey `field:"optional" json:"volumeEncryptionKey" yaml:"volumeEncryptionKey"` }
ML compute instances for the transform job.
Example:
tasks.NewSageMakerCreateTransformJob(this, jsii.String("Batch Inference"), &SageMakerCreateTransformJobProps{ TransformJobName: jsii.String("MyTransformJob"), ModelName: jsii.String("MyModelName"), ModelClientOptions: &ModelClientOptions{ InvocationsMaxRetries: jsii.Number(3), // default is 0 InvocationsTimeout: awscdk.Duration_Minutes(jsii.Number(5)), }, TransformInput: &TransformInput{ TransformDataSource: &TransformDataSource{ S3DataSource: &TransformS3DataSource{ S3Uri: jsii.String("s3://inputbucket/train"), S3DataType: tasks.S3DataType_S3_PREFIX, }, }, }, TransformOutput: &TransformOutput{ S3OutputPath: jsii.String("s3://outputbucket/TransformJobOutputPath"), }, TransformResources: &TransformResources{ InstanceCount: jsii.Number(1), InstanceType: ec2.InstanceType_Of(ec2.InstanceClass_M4, ec2.InstanceSize_XLARGE), }, })
type TransformS3DataSource ¶
type TransformS3DataSource struct { // Identifies either a key name prefix or a manifest. S3Uri *string `field:"required" json:"s3Uri" yaml:"s3Uri"` // S3 Data Type. // Default: 'S3Prefix'. // S3DataType S3DataType `field:"optional" json:"s3DataType" yaml:"s3DataType"` }
Location of the channel data.
Example:
tasks.NewSageMakerCreateTransformJob(this, jsii.String("Batch Inference"), &SageMakerCreateTransformJobProps{ TransformJobName: jsii.String("MyTransformJob"), ModelName: jsii.String("MyModelName"), ModelClientOptions: &ModelClientOptions{ InvocationsMaxRetries: jsii.Number(3), // default is 0 InvocationsTimeout: awscdk.Duration_Minutes(jsii.Number(5)), }, TransformInput: &TransformInput{ TransformDataSource: &TransformDataSource{ S3DataSource: &TransformS3DataSource{ S3Uri: jsii.String("s3://inputbucket/train"), S3DataType: tasks.S3DataType_S3_PREFIX, }, }, }, TransformOutput: &TransformOutput{ S3OutputPath: jsii.String("s3://outputbucket/TransformJobOutputPath"), }, TransformResources: &TransformResources{ InstanceCount: jsii.Number(1), InstanceType: ec2.InstanceType_Of(ec2.InstanceClass_M4, ec2.InstanceSize_XLARGE), }, })
type URLEncodingFormat ¶ added in v2.138.0
type URLEncodingFormat string
The style used when applying URL encoding to array values.
Example:
import "github.com/aws/aws-cdk-go/awscdk" connection := events.NewConnection(this, jsii.String("Connection"), &ConnectionProps{ Authorization: events.Authorization_Basic(jsii.String("username"), awscdk.SecretValue_UnsafePlainText(jsii.String("password"))), }) tasks.NewHttpInvoke(this, jsii.String("Invoke HTTP API"), &HttpInvokeProps{ ApiRoot: jsii.String("https://api.example.com"), ApiEndpoint: sfn.TaskInput_FromText(jsii.String("path/to/resource")), Body: sfn.TaskInput_FromObject(map[string]interface{}{ "foo": jsii.String("bar"), }), Connection: Connection, Headers: sfn.TaskInput_*FromObject(map[string]interface{}{ "Content-Type": jsii.String("application/json"), }), Method: sfn.TaskInput_*FromText(jsii.String("POST")), QueryStringParameters: sfn.TaskInput_*FromObject(map[string]interface{}{ "id": jsii.String("123"), }), UrlEncodingFormat: tasks.URLEncodingFormat_BRACKETS, })
const ( // Encode arrays using brackets. // // For example, {'array': ['a','b','c']} encodes to 'array[]=a&array[]=b&array[]=c'. URLEncodingFormat_BRACKETS URLEncodingFormat = "BRACKETS" // Encode arrays using commas. // // For example, {'array': ['a','b','c']} encodes to 'array=a,b,c,d'. URLEncodingFormat_COMMAS URLEncodingFormat = "COMMAS" // Apply the default URL encoding style (INDICES). URLEncodingFormat_DEFAULT URLEncodingFormat = "DEFAULT" // Encode arrays using the index value. // // For example, {'array': ['a','b','c']} encodes to 'array[0]=a&array[1]=b&array[2]=c'. URLEncodingFormat_INDICES URLEncodingFormat = "INDICES" // Do not apply URL encoding. URLEncodingFormat_NONE URLEncodingFormat = "NONE" // Repeat key for each item in the array. // // For example, {'array': ['a','b','c']} encodes to 'array[]=a&array[]=b&array[]=c'. URLEncodingFormat_REPEAT URLEncodingFormat = "REPEAT" )
type VirtualClusterInput ¶ added in v2.1.0
type VirtualClusterInput interface { // The VirtualCluster Id. Id() *string }
Class that returns a virtual cluster's id depending on input type.
Example:
tasks.NewEmrContainersStartJobRun(this, jsii.String("EMR Containers Start Job Run"), &EmrContainersStartJobRunProps{ VirtualCluster: tasks.VirtualClusterInput_FromVirtualClusterId(jsii.String("de92jdei2910fwedz")), ReleaseLabel: tasks.ReleaseLabel_EMR_6_2_0(), JobName: jsii.String("EMR-Containers-Job"), JobDriver: &JobDriver{ SparkSubmitJobDriver: &SparkSubmitJobDriver{ EntryPoint: sfn.TaskInput_FromText(jsii.String("local:///usr/lib/spark/examples/src/main/python/pi.py")), }, }, ApplicationConfig: []applicationConfiguration{ &applicationConfiguration{ Classification: tasks.Classification_SPARK_DEFAULTS(), Properties: map[string]*string{ "spark.executor.instances": jsii.String("1"), "spark.executor.memory": jsii.String("512M"), }, }, }, })
func VirtualClusterInput_FromTaskInput ¶ added in v2.1.0
func VirtualClusterInput_FromTaskInput(taskInput awsstepfunctions.TaskInput) VirtualClusterInput
Input for a virtualClusterId from a Task Input.
func VirtualClusterInput_FromVirtualClusterId ¶ added in v2.1.0
func VirtualClusterInput_FromVirtualClusterId(virtualClusterId *string) VirtualClusterInput
Input for virtualClusterId from a literal string.
type VpcConfig ¶
type VpcConfig struct { // VPC. Vpc awsec2.IVpc `field:"required" json:"vpc" yaml:"vpc"` // VPC subnets. // Default: - Private Subnets are selected. // Subnets *awsec2.SubnetSelection `field:"optional" json:"subnets" yaml:"subnets"` }
Specifies the VPC that you want your Amazon SageMaker training job to connect to.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" var subnet subnet var subnetFilter subnetFilter var vpc vpc vpcConfig := &VpcConfig{ Vpc: vpc, // the properties below are optional Subnets: &SubnetSelection{ AvailabilityZones: []*string{ jsii.String("availabilityZones"), }, OnePerAz: jsii.Boolean(false), SubnetFilters: []*subnetFilter{ subnetFilter, }, SubnetGroupName: jsii.String("subnetGroupName"), Subnets: []iSubnet{ subnet, }, SubnetType: awscdk.Aws_ec2.SubnetType_PRIVATE_ISOLATED, }, }
type WorkerConfigurationProperty ¶ added in v2.144.0
type WorkerConfigurationProperty struct { // The number of workers of a defined `WorkerType` that are allocated when a job runs. NumberOfWorkers *float64 `field:"required" json:"numberOfWorkers" yaml:"numberOfWorkers"` // The type of predefined worker that is allocated when a job runs. WorkerType WorkerType `field:"required" json:"workerType" yaml:"workerType"` }
Properties for the worker configuration.
Example:
tasks.NewGlueStartJobRun(this, jsii.String("Task"), &GlueStartJobRunProps{ GlueJobName: jsii.String("my-glue-job"), WorkerConfiguration: &WorkerConfigurationProperty{ WorkerType: tasks.WorkerType_G_1X, // Worker type NumberOfWorkers: jsii.Number(2), }, })
type WorkerType ¶ added in v2.144.0
type WorkerType string
The type of predefined worker that is allocated when a job runs.
If you need to use a WorkerType that doesn't exist as a static member, you can instantiate a `WorkerType` object, e.g: `WorkerType.of('other type')`.
Example:
tasks.NewGlueStartJobRun(this, jsii.String("Task"), &GlueStartJobRunProps{ GlueJobName: jsii.String("my-glue-job"), WorkerConfiguration: &WorkerConfigurationProperty{ WorkerType: tasks.WorkerType_G_1X, // Worker type NumberOfWorkers: jsii.Number(2), }, })
const ( // Each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker. WorkerType_STANDARD WorkerType = "STANDARD" // Each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and provides 1 executor per worker. Suitable for low volume streaming jobs. WorkerType_G_025X WorkerType = "G_025X" // Each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker. // // Suitable for memory-intensive jobs. WorkerType_G_1X WorkerType = "G_1X" // Each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker. // // Suitable for memory-intensive jobs. WorkerType_G_2X WorkerType = "G_2X" // Each worker maps to 4 DPU (16 vCPU, 64 GB of memory, 256 GB disk), and provides 1 executor per worker. // // We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for AWS Glue version 3.0 or later jobs. WorkerType_G_4X WorkerType = "G_4X" // Each worker maps to 8 DPU (32 vCPU, 128 GB of memory, 512 GB disk), and provides 1 executor per worker. // // We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for AWS Glue version 3.0 or later jobs. WorkerType_G_8X WorkerType = "G_8X" // Each worker maps to 2 high-memory DPU [M-DPU] (8 vCPU, 64 GB of memory, 128 GB disk). // // Supported in Ray jobs. WorkerType_Z_2X WorkerType = "Z_2X" )
Source Files ¶
- AcceleratorClass.go
- AcceleratorClass__checks.go
- AcceleratorType.go
- AcceleratorType__checks.go
- ActionAfterCompletion.go
- ActionOnFailure.go
- AlgorithmSpecification.go
- ApplicationConfiguration.go
- AssembleWith.go
- AthenaGetQueryExecution.go
- AthenaGetQueryExecutionProps.go
- AthenaGetQueryExecution__checks.go
- AthenaGetQueryResults.go
- AthenaGetQueryResultsProps.go
- AthenaGetQueryResults__checks.go
- AthenaStartQueryExecution.go
- AthenaStartQueryExecutionProps.go
- AthenaStartQueryExecution__checks.go
- AthenaStopQueryExecution.go
- AthenaStopQueryExecutionProps.go
- AthenaStopQueryExecution__checks.go
- AuthType.go
- BatchContainerOverrides.go
- BatchJobDependency.go
- BatchStrategy.go
- BatchSubmitJob.go
- BatchSubmitJobProps.go
- BatchSubmitJob__checks.go
- BedrockInvokeModel.go
- BedrockInvokeModelInputProps.go
- BedrockInvokeModelOutputProps.go
- BedrockInvokeModelProps.go
- BedrockInvokeModel__checks.go
- CallApiGatewayEndpointBaseProps.go
- CallApiGatewayHttpApiEndpoint.go
- CallApiGatewayHttpApiEndpointProps.go
- CallApiGatewayHttpApiEndpoint__checks.go
- CallApiGatewayRestApiEndpoint.go
- CallApiGatewayRestApiEndpointProps.go
- CallApiGatewayRestApiEndpoint__checks.go
- CallAwsService.go
- CallAwsServiceCrossRegion.go
- CallAwsServiceCrossRegionProps.go
- CallAwsServiceCrossRegion__checks.go
- CallAwsServiceProps.go
- CallAwsService__checks.go
- Channel.go
- Classification.go
- Classification__checks.go
- CodeBuildStartBuild.go
- CodeBuildStartBuildBatch.go
- CodeBuildStartBuildBatchProps.go
- CodeBuildStartBuildBatch__checks.go
- CodeBuildStartBuildProps.go
- CodeBuildStartBuild__checks.go
- CommonEcsRunTaskProps.go
- CompressionType.go
- ContainerDefinition.go
- ContainerDefinitionConfig.go
- ContainerDefinitionOptions.go
- ContainerDefinition__checks.go
- ContainerOverride.go
- ContainerOverrides.go
- CronOptions.go
- DataSource.go
- DockerImage.go
- DockerImageConfig.go
- DockerImage__checks.go
- DynamoAttributeValue.go
- DynamoAttributeValue__checks.go
- DynamoConsumedCapacity.go
- DynamoDeleteItem.go
- DynamoDeleteItemProps.go
- DynamoDeleteItem__checks.go
- DynamoGetItem.go
- DynamoGetItemProps.go
- DynamoGetItem__checks.go
- DynamoItemCollectionMetrics.go
- DynamoProjectionExpression.go
- DynamoProjectionExpression__checks.go
- DynamoPutItem.go
- DynamoPutItemProps.go
- DynamoPutItem__checks.go
- DynamoReturnValues.go
- DynamoUpdateItem.go
- DynamoUpdateItemProps.go
- DynamoUpdateItem__checks.go
- EcsEc2LaunchTarget.go
- EcsEc2LaunchTargetOptions.go
- EcsEc2LaunchTarget__checks.go
- EcsFargateLaunchTarget.go
- EcsFargateLaunchTargetOptions.go
- EcsFargateLaunchTarget__checks.go
- EcsLaunchTargetConfig.go
- EcsRunTask.go
- EcsRunTaskProps.go
- EcsRunTask__checks.go
- EksCall.go
- EksCallProps.go
- EksCall__checks.go
- EksClusterInput.go
- EksClusterInput__checks.go
- EmrAddStep.go
- EmrAddStepProps.go
- EmrAddStep__checks.go
- EmrCancelStep.go
- EmrCancelStepProps.go
- EmrCancelStep__checks.go
- EmrContainersCreateVirtualCluster.go
- EmrContainersCreateVirtualClusterProps.go
- EmrContainersCreateVirtualCluster__checks.go
- EmrContainersDeleteVirtualCluster.go
- EmrContainersDeleteVirtualClusterProps.go
- EmrContainersDeleteVirtualCluster__checks.go
- EmrContainersStartJobRun.go
- EmrContainersStartJobRunProps.go
- EmrContainersStartJobRun__checks.go
- EmrCreateCluster.go
- EmrCreateClusterProps.go
- EmrCreateCluster_ApplicationConfigProperty.go
- EmrCreateCluster_AutoScalingPolicyProperty.go
- EmrCreateCluster_BootstrapActionConfigProperty.go
- EmrCreateCluster_CloudWatchAlarmComparisonOperator.go
- EmrCreateCluster_CloudWatchAlarmDefinitionProperty.go
- EmrCreateCluster_CloudWatchAlarmStatistic.go
- EmrCreateCluster_CloudWatchAlarmUnit.go
- EmrCreateCluster_ConfigurationProperty.go
- EmrCreateCluster_EbsBlockDeviceConfigProperty.go
- EmrCreateCluster_EbsBlockDeviceVolumeType.go
- EmrCreateCluster_EbsConfigurationProperty.go
- EmrCreateCluster_EmrClusterScaleDownBehavior.go
- EmrCreateCluster_InstanceFleetConfigProperty.go
- EmrCreateCluster_InstanceFleetProvisioningSpecificationsProperty.go
- EmrCreateCluster_InstanceGroupConfigProperty.go
- EmrCreateCluster_InstanceMarket.go
- EmrCreateCluster_InstanceRoleType.go
- EmrCreateCluster_InstanceTypeConfigProperty.go
- EmrCreateCluster_InstancesConfigProperty.go
- EmrCreateCluster_KerberosAttributesProperty.go
- EmrCreateCluster_MetricDimensionProperty.go
- EmrCreateCluster_OnDemandAllocationStrategy.go
- EmrCreateCluster_OnDemandProvisioningSpecificationProperty.go
- EmrCreateCluster_PlacementTypeProperty.go
- EmrCreateCluster_ScalingActionProperty.go
- EmrCreateCluster_ScalingAdjustmentType.go
- EmrCreateCluster_ScalingConstraintsProperty.go
- EmrCreateCluster_ScalingRuleProperty.go
- EmrCreateCluster_ScalingTriggerProperty.go
- EmrCreateCluster_ScriptBootstrapActionConfigProperty.go
- EmrCreateCluster_SimpleScalingPolicyConfigurationProperty.go
- EmrCreateCluster_SpotAllocationStrategy.go
- EmrCreateCluster_SpotProvisioningSpecificationProperty.go
- EmrCreateCluster_SpotTimeoutAction.go
- EmrCreateCluster_VolumeSpecificationProperty.go
- EmrCreateCluster__checks.go
- EmrModifyInstanceFleetByName.go
- EmrModifyInstanceFleetByNameProps.go
- EmrModifyInstanceFleetByName__checks.go
- EmrModifyInstanceGroupByName.go
- EmrModifyInstanceGroupByNameProps.go
- EmrModifyInstanceGroupByName_InstanceGroupModifyConfigProperty.go
- EmrModifyInstanceGroupByName_InstanceResizePolicyProperty.go
- EmrModifyInstanceGroupByName_ShrinkPolicyProperty.go
- EmrModifyInstanceGroupByName__checks.go
- EmrSetClusterTerminationProtection.go
- EmrSetClusterTerminationProtectionProps.go
- EmrSetClusterTerminationProtection__checks.go
- EmrTerminateCluster.go
- EmrTerminateClusterProps.go
- EmrTerminateCluster__checks.go
- EncryptionConfiguration.go
- EncryptionOption.go
- EvaluateExpression.go
- EvaluateExpressionProps.go
- EvaluateExpression__checks.go
- EventBridgePutEvents.go
- EventBridgePutEventsEntry.go
- EventBridgePutEventsProps.go
- EventBridgePutEvents__checks.go
- EventBridgeSchedulerCreateScheduleTask.go
- EventBridgeSchedulerCreateScheduleTaskProps.go
- EventBridgeSchedulerCreateScheduleTask__checks.go
- EventBridgeSchedulerTarget.go
- EventBridgeSchedulerTargetProps.go
- EventBridgeSchedulerTarget__checks.go
- ExecutionClass.go
- GlueDataBrewStartJobRun.go
- GlueDataBrewStartJobRunProps.go
- GlueDataBrewStartJobRun__checks.go
- GlueStartCrawlerRun.go
- GlueStartCrawlerRunProps.go
- GlueStartCrawlerRun__checks.go
- GlueStartJobRun.go
- GlueStartJobRunProps.go
- GlueStartJobRun__checks.go
- Guardrail.go
- Guardrail__checks.go
- HttpInvoke.go
- HttpInvokeProps.go
- HttpInvoke__checks.go
- HttpMethod.go
- HttpMethods.go
- IContainerDefinition.go
- IContainerDefinition__checks.go
- IEcsLaunchTarget.go
- IEcsLaunchTarget__checks.go
- ISageMakerTask.go
- InputMode.go
- JobDependency.go
- JobDriver.go
- LambdaInvocationType.go
- LambdaInvoke.go
- LambdaInvokeProps.go
- LambdaInvoke__checks.go
- LaunchTargetBindOptions.go
- MediaConvertCreateJob.go
- MediaConvertCreateJobProps.go
- MediaConvertCreateJob__checks.go
- MessageAttribute.go
- MessageAttributeDataType.go
- MetricDefinition.go
- Mode.go
- ModelClientOptions.go
- Monitoring.go
- OutputDataConfig.go
- ProductionVariant.go
- QueryExecutionContext.go
- RecordWrapperType.go
- ReleaseLabel.go
- ReleaseLabel__checks.go
- ResourceConfig.go
- ResultConfiguration.go
- RetryPolicy.go
- S3DataDistributionType.go
- S3DataSource.go
- S3DataType.go
- S3Location.go
- S3LocationBindOptions.go
- S3LocationConfig.go
- S3Location__checks.go
- SageMakerCreateEndpoint.go
- SageMakerCreateEndpointConfig.go
- SageMakerCreateEndpointConfigProps.go
- SageMakerCreateEndpointConfig__checks.go
- SageMakerCreateEndpointProps.go
- SageMakerCreateEndpoint__checks.go
- SageMakerCreateModel.go
- SageMakerCreateModelProps.go
- SageMakerCreateModel__checks.go
- SageMakerCreateTrainingJob.go
- SageMakerCreateTrainingJobProps.go
- SageMakerCreateTrainingJob__checks.go
- SageMakerCreateTransformJob.go
- SageMakerCreateTransformJobProps.go
- SageMakerCreateTransformJob__checks.go
- SageMakerUpdateEndpoint.go
- SageMakerUpdateEndpointProps.go
- SageMakerUpdateEndpoint__checks.go
- Schedule.go
- Schedule__checks.go
- ShuffleConfig.go
- SnsPublish.go
- SnsPublishProps.go
- SnsPublish__checks.go
- SparkSubmitJobDriver.go
- SplitType.go
- SqsSendMessage.go
- SqsSendMessageProps.go
- SqsSendMessage__checks.go
- StepFunctionsInvokeActivity.go
- StepFunctionsInvokeActivityProps.go
- StepFunctionsInvokeActivity__checks.go
- StepFunctionsStartExecution.go
- StepFunctionsStartExecutionProps.go
- StepFunctionsStartExecution__checks.go
- StoppingCondition.go
- TaskEnvironmentVariable.go
- TransformDataSource.go
- TransformInput.go
- TransformOutput.go
- TransformResources.go
- TransformS3DataSource.go
- URLEncodingFormat.go
- VirtualClusterInput.go
- VirtualClusterInput__checks.go
- VpcConfig.go
- WorkerConfigurationProperty.go
- WorkerType.go
- main.go