IEcsContainerDefinition Interface
A container that can be run with ECS orchestration.
Properties
commandmay be undefinedstring[]commandmay be undefinedtyping.List[str]commandmay be undefinedList<String>Commandmay be undefinedstring[]Commandmay be undefined*[]*string#Each vCPU is equivalent to 1,024 CPU shares. For containers running on EC2 resources, you must specify at least one vCPU.
enableExecuteCommandmay be undefinedbooleanenable_execute_commandmay be undefinedboolenableExecuteCommandmay be undefinedBooleanEnableExecuteCommandmay be undefinedboolEnableExecuteCommandmay be undefined*bool#Default: undefined - AWS Batch default is false
environmentmay be undefined{ [key: string]: string }environmentmay be undefinedtyping.Mapping[str, str]environmentmay be undefinedMap<String, String>Environmentmay be undefinedIDictionary<string, string>Environmentmay be undefined*map[string]*string#Default: no environment variables
Cannot start with AWS_BATCH. We don't recommend using plaintext environment variables for sensitive information, such as credential data.
executionRoleIRoleexecution_roleIRoleexecutionRoleIRoleExecutionRoleIRoleExecutionRoleIRolerequired#imageContainerImageimageContainerImageimageContainerImageImageContainerImageImageContainerImagerequired#jobRolemay be undefinedIRolejob_rolemay be undefinedIRolejobRolemay be undefinedIRoleJobRolemay be undefinedIRoleJobRolemay be undefinedIRole#Default: no jobRole
linuxParametersmay be undefinedLinuxParameterslinux_parametersmay be undefinedLinuxParameterslinuxParametersmay be undefinedLinuxParametersLinuxParametersmay be undefinedLinuxParametersLinuxParametersmay be undefinedLinuxParameters= none#logDriverConfigmay be undefinedLogDriverConfiglog_driver_configmay be undefinedLogDriverConfiglogDriverConfigmay be undefinedLogDriverConfigLogDriverConfigmay be undefinedLogDriverConfigLogDriverConfigmay be undefinedLogDriverConfig#If your container attempts to exceed the memory specified, the container is terminated. You must specify at least 4 MiB of memory for a job.
readonlyRootFilesystemmay be undefinedbooleanreadonly_root_filesystemmay be undefinedboolreadonlyRootFilesystemmay be undefinedBooleanReadonlyRootFilesystemmay be undefinedboolReadonlyRootFilesystemmay be undefined*bool= false#secretsmay be undefined{ [key: string]: Secret }secretsmay be undefinedtyping.Mapping[str, Secret]secretsmay be undefinedMap<String, Secret>Secretsmay be undefinedIDictionary<string, Secret>Secretsmay be undefined*map[string]Secret#Default: no secrets
Allows your job definitions to reference the secret by the environment variable name defined in this property.
usermay be undefinedstringusermay be undefinedstrusermay be undefinedStringUsermay be undefinedstringUsermay be undefined*string#Default: no user
Methods
addVolume(volume: EcsVolume): voiddef add_volume(self, volume: EcsVolume) -> Nonepublic void addVolume(EcsVolume volume)public void AddVolume(EcsVolume volume)func AddVolume(Volume EcsVolume)#with(...mixins: IMixin[]): IConstructdef with(self, mixins: IMixin) -> IConstructpublic IConstruct with(IMixin mixins)public IConstruct With(IMixin mixins)func With(Mixins IMixin) IConstruct#Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited.
1 parameter · returns
Parameters
mixinsmixinsmixinsmixinsMixins— The mixins to apply.
Returns: This construct for chaining