@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.845Z") @Stability(value=Stable) public interface ScheduledTaskImageProps extends software.amazon.jsii.JsiiSerializable
// 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"))
.environment(Map.of(
"environmentKey", "environment"))
.logDriver(logDriver)
.secrets(Map.of(
"secretsKey", secret))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ScheduledTaskImageProps.Builder
A builder for
ScheduledTaskImageProps |
static class |
ScheduledTaskImageProps.Jsii$Proxy
An implementation for
ScheduledTaskImageProps |
| Modifier and Type | Method and Description |
|---|---|
static ScheduledTaskImageProps.Builder |
builder() |
default List<String> |
getCommand()
The command that is passed to the container.
|
default Map<String,String> |
getEnvironment()
The environment variables to pass to the container.
|
ContainerImage |
getImage()
The image used to start a container.
|
default LogDriver |
getLogDriver()
The log driver to use.
|
default Map<String,Secret> |
getSecrets()
The secret to expose to the container as an environment variable.
|
@Stability(value=Stable) @NotNull ContainerImage getImage()
Image or taskDefinition must be specified, but not both.
Default: - none
@Stability(value=Stable) @Nullable default List<String> getCommand()
If you provide a shell command as a single string, you have to quote command-line arguments.
Default: - CMD value built into container image.
@Stability(value=Stable) @Nullable default Map<String,String> getEnvironment()
Default: none
@Stability(value=Stable) @Nullable default LogDriver getLogDriver()
Default: - AwsLogDriver if enableLogging is true
@Stability(value=Stable) @Nullable default Map<String,Secret> getSecrets()
Default: - No secret environment variables.
@Stability(value=Stable) static ScheduledTaskImageProps.Builder builder()
ScheduledTaskImageProps.Builder of ScheduledTaskImagePropsCopyright © 2022. All rights reserved.