Interface ScheduledTaskImageProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ScheduledEc2TaskImageOptions,ScheduledFargateTaskImageOptions
- All Known Implementing Classes:
ScheduledEc2TaskImageOptions.Jsii$Proxy,ScheduledFargateTaskImageOptions.Jsii$Proxy,ScheduledTaskImageProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:41.147Z")
@Stability(Stable)
public interface ScheduledTaskImageProps
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
import software.amazon.awscdk.services.ecs.patterns.*;
ContainerImage containerImage;
LogDriver logDriver;
Secret secret;
ScheduledTaskImageProps scheduledTaskImageProps = ScheduledTaskImageProps.builder()
.image(containerImage)
// the properties below are optional
.command(List.of("command"))
.containerName("containerName")
.environment(Map.of(
"environmentKey", "environment"))
.logDriver(logDriver)
.secrets(Map.of(
"secretsKey", secret))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forScheduledTaskImagePropsstatic final classAn implementation forScheduledTaskImageProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The command that is passed to the container.default StringOptional name for the container added.The environment variables to pass to the container.getImage()The image used to start a container.default LogDriverThe log driver to use.The secret to expose to the container as an environment variable.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getImage
The image used to start a container.Image or taskDefinition must be specified, but not both.
Default: - none
-
getCommand
The command that is passed to the container.If you provide a shell command as a single string, you have to quote command-line arguments.
Default: - CMD value built into container image.
-
getContainerName
Optional name for the container added.Default: - ScheduledContainer
-
getEnvironment
The environment variables to pass to the container.Default: none
-
getLogDriver
The log driver to use.Default: - AwsLogDriver if enableLogging is true
-
getSecrets
The secret to expose to the container as an environment variable.Default: - No secret environment variables.
-
builder
- Returns:
- a
ScheduledTaskImageProps.BuilderofScheduledTaskImageProps
-