ScheduledTaskImageProps

class aws_cdk.aws_ecs_patterns.ScheduledTaskImageProps(*, image, command=None, environment=None, log_driver=None, secrets=None)

Bases: object

__init__(*, image, command=None, environment=None, log_driver=None, secrets=None)
Parameters
  • image (ContainerImage) – The image used to start a container. Image or taskDefinition must be specified, but not both. Default: - none

  • command (Optional[List[str]]) – 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.

  • environment (Optional[Mapping[str, str]]) – The environment variables to pass to the container. Default: none

  • log_driver (Optional[LogDriver]) – The log driver to use. Default: - AwsLogDriver if enableLogging is true

  • secrets (Optional[Mapping[str, Secret]]) – The secret to expose to the container as an environment variable. Default: - No secret environment variables.

Return type

None

Attributes

command

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 :default: - CMD value built into container image.

Return type

Optional[List[str]]

environment

The environment variables to pass to the container.

default :default: none

Return type

Optional[Mapping[str, str]]

image

The image used to start a container.

Image or taskDefinition must be specified, but not both.

default :default: - none

Return type

ContainerImage

log_driver

The log driver to use.

default :default: - AwsLogDriver if enableLogging is true

Return type

Optional[LogDriver]

secrets

The secret to expose to the container as an environment variable.

default :default: - No secret environment variables.

Return type

Optional[Mapping[str, Secret]]