Skip to content

ECS  >  Structures  >  ExecuteCommandConfiguration

ExecuteCommandConfiguration

Structure Class

ExecuteCommandConfiguration dataclass

Bases: _SerdeShape

The details of the execute command configuration.

Attributes

kms_key_id class-attribute instance-attribute
kms_key_id: str | None = ...

Specify an Key Management Service key ID to encrypt the data between the local client and the container.

log_configuration class-attribute instance-attribute
log_configuration: ExecuteCommandLogConfiguration | None = ...

The log configuration for the results of the execute command actions. The logs can be sent to CloudWatch Logs or an Amazon S3 bucket. When logging=OVERRIDE is specified, a logConfiguration must be provided.

logging class-attribute instance-attribute
logging: str | None = ...

The log setting to use for redirecting logs for your execute command results. The following log settings are available.

  • NONE: The execute command session is not logged.

  • DEFAULT: The awslogs configuration in the task definition is used. If no logging parameter is specified, it defaults to this value. If no awslogs log driver is configured in the task definition, the output won't be logged.

  • OVERRIDE: Specify the logging details as a part of logConfiguration. If the OVERRIDE logging option is specified, the logConfiguration is required.