-
Notifications
You must be signed in to change notification settings - Fork 17
/
ContainerOverrides.go
70 lines (67 loc) · 2.43 KB
/
ContainerOverrides.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
package awsstepfunctionstasks
import (
"github.com/aws/aws-cdk-go/awscdk/v2/awsec2"
)
// 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 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"`
}