-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsstepfunctionstasks_EcsRunTaskBaseProps.go
78 lines (75 loc) · 2.81 KB
/
awsstepfunctionstasks_EcsRunTaskBaseProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package awsstepfunctionstasks
import (
"github.com/aws/aws-cdk-go/awscdk/awsecs"
"github.com/aws/aws-cdk-go/awscdk/awsstepfunctions"
)
// Construction properties for the BaseRunTaskProps.
//
// 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 parameters interface{}
// var taskDefinition taskDefinition
//
// ecsRunTaskBaseProps := &ecsRunTaskBaseProps{
// 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,
// parameters: map[string]interface{}{
// "parametersKey": parameters,
// },
// }
//
// Deprecated: No replacement.
type EcsRunTaskBaseProps struct {
// The topic to run the task on.
// Deprecated: No replacement.
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.
// Deprecated: No replacement.
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.
// Deprecated: No replacement.
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.
// Deprecated: No replacement.
IntegrationPattern awsstepfunctions.ServiceIntegrationPattern `field:"optional" json:"integrationPattern" yaml:"integrationPattern"`
// Additional parameters to pass to the base task.
// Deprecated: No replacement.
Parameters *map[string]interface{} `field:"optional" json:"parameters" yaml:"parameters"`
}