@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:50.964Z")
public interface ScheduledTaskImageProps
// 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 java.util.List<java.lang.String> |
getCommand()
The command that is passed to the container.
|
default java.util.Map<java.lang.String,java.lang.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 java.util.Map<java.lang.String,Secret> |
getSecrets()
The secret to expose to the container as an environment variable.
|
ContainerImage getImage()
Image or taskDefinition must be specified, but not both.
Default: - none
default java.util.List<java.lang.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.
default java.util.Map<java.lang.String,java.lang.String> getEnvironment()
Default: none
default LogDriver getLogDriver()
Default: - AwsLogDriver if enableLogging is true
default java.util.Map<java.lang.String,Secret> getSecrets()
Default: - No secret environment variables.
static ScheduledTaskImageProps.Builder builder()
ScheduledTaskImageProps.Builder
of ScheduledTaskImageProps