// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2 from '@aws-cdk/aws-ec2';
import * as stepfunctions from '@aws-cdk/aws-stepfunctions';
import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
import * as cdk from '@aws-cdk/core';
declare const instanceType: ec2.InstanceType;
declare const payload: any;
const runBatchJobProps: stepfunctions_tasks.RunBatchJobProps = {
jobDefinitionArn: 'jobDefinitionArn',
jobName: 'jobName',
jobQueueArn: 'jobQueueArn',
// the properties below are optional
arraySize: 123,
attempts: 123,
containerOverrides: {
command: ['command'],
environment: {
environmentKey: 'environment',
},
gpuCount: 123,
instanceType: instanceType,
memory: 123,
vcpus: 123,
},
dependsOn: [{
jobId: 'jobId',
type: 'type',
}],
integrationPattern: stepfunctions.ServiceIntegrationPattern.FIRE_AND_FORGET,
payload: {
payloadKey: payload,
},
timeout: cdk.Duration.minutes(30),
};
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2 from '@aws-cdk/aws-ec2';
import * as stepfunctions from '@aws-cdk/aws-stepfunctions';
import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
import * as cdk from '@aws-cdk/core';
declare const instanceType: ec2.InstanceType;
declare const payload: any;
const runBatchJob = new stepfunctions_tasks.RunBatchJob({
jobDefinitionArn: 'jobDefinitionArn',
jobName: 'jobName',
jobQueueArn: 'jobQueueArn',
// the properties below are optional
arraySize: 123,
attempts: 123,
containerOverrides: {
command: ['command'],
environment: {
environmentKey: 'environment',
},
gpuCount: 123,
instanceType: instanceType,
memory: 123,
vcpus: 123,
},
dependsOn: [{
jobId: 'jobId',
type: 'type',
}],
integrationPattern: stepfunctions.ServiceIntegrationPattern.FIRE_AND_FORGET,
payload: {
payloadKey: payload,
},
timeout: cdk.Duration.minutes(30),
});
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
import * as cdk from '@aws-cdk/core';
const cloudWatchAlarmDefinitionProperty: stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmDefinitionProperty = {
comparisonOperator: stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmComparisonOperator.GREATER_THAN_OR_EQUAL,
metricName: 'metricName',
period: cdk.Duration.minutes(30),
// the properties below are optional
dimensions: [{
key: 'key',
value: 'value',
}],
evaluationPeriods: 123,
namespace: 'namespace',
statistic: stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmStatistic.SAMPLE_COUNT,
threshold: 123,
unit: stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmUnit.NONE,
};
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
import * as cdk from '@aws-cdk/core';
const instanceResizePolicyProperty: stepfunctions_tasks.EmrModifyInstanceGroupByName.InstanceResizePolicyProperty = {
instancesToProtect: ['instancesToProtect'],
instancesToTerminate: ['instancesToTerminate'],
instanceTerminationTimeout: cdk.Duration.minutes(30),
};
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
import * as cdk from '@aws-cdk/core';
const autoScalingPolicyProperty: stepfunctions_tasks.EmrCreateCluster.AutoScalingPolicyProperty = {
constraints: {
maxCapacity: 123,
minCapacity: 123,
},
rules: [{
action: {
simpleScalingPolicyConfiguration: {
scalingAdjustment: 123,
// the properties below are optional
adjustmentType: stepfunctions_tasks.EmrCreateCluster.ScalingAdjustmentType.CHANGE_IN_CAPACITY,
coolDown: 123,
},
// the properties below are optional
market: stepfunctions_tasks.EmrCreateCluster.InstanceMarket.ON_DEMAND,
},
name: 'name',
trigger: {
cloudWatchAlarmDefinition: {
comparisonOperator: stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmComparisonOperator.GREATER_THAN_OR_EQUAL,
metricName: 'metricName',
period: cdk.Duration.minutes(30),
// the properties below are optional
dimensions: [{
key: 'key',
value: 'value',
}],
evaluationPeriods: 123,
namespace: 'namespace',
statistic: stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmStatistic.SAMPLE_COUNT,
threshold: 123,
unit: stepfunctions_tasks.EmrCreateCluster.CloudWatchAlarmUnit.NONE,
},
},
// the properties below are optional
description: 'description',
}],
};