-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsstepfunctionstasks_ContainerOverride.go
59 lines (56 loc) · 2.15 KB
/
awsstepfunctionstasks_ContainerOverride.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
package awsstepfunctionstasks
import (
"github.com/aws/aws-cdk-go/awscdk/awsecs"
)
// 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),
// }
//
// Experimental.
type ContainerOverride struct {
// Name of the container inside the task definition.
// Experimental.
ContainerDefinition awsecs.ContainerDefinition `field:"required" json:"containerDefinition" yaml:"containerDefinition"`
// Command to run inside the container.
// Experimental.
Command *[]*string `field:"optional" json:"command" yaml:"command"`
// The number of cpu units reserved for the container.
// Experimental.
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.
// Experimental.
Environment *[]*TaskEnvironmentVariable `field:"optional" json:"environment" yaml:"environment"`
// The hard limit (in MiB) of memory to present to the container.
// Experimental.
MemoryLimit *float64 `field:"optional" json:"memoryLimit" yaml:"memoryLimit"`
// The soft limit (in MiB) of memory to reserve for the container.
// Experimental.
MemoryReservation *float64 `field:"optional" json:"memoryReservation" yaml:"memoryReservation"`
}