ECS: AWS API Call via CloudTrail
This represents an AWS API call to the ECS service via CloudTrail.
Primary Model
- pydantic model botocraft.eventbridge.ecs.ECSAWSAPICallViaCloudTrailEvent[source]
Bases:
EventBridgeEvent,ECSAWSAPICallViaCloudTrailEventEventBridge event for ECS API call via CloudTrail.
Show JSON schema
{ "title": "ECSAWSAPICallViaCloudTrailEvent", "description": "EventBridge event for ECS API call via CloudTrail.", "type": "object", "properties": { "detail": { "$ref": "#/$defs/AWSAPICallViaCloudTrail" }, "detail-type": { "title": "Detail-Type", "type": "string" }, "resources": { "items": { "type": "string" }, "title": "Resources", "type": "array" }, "id": { "title": "Id", "type": "string" }, "source": { "title": "Source", "type": "string" }, "time": { "format": "date-time", "title": "Time", "type": "string" }, "region": { "title": "Region", "type": "string" }, "version": { "title": "Version", "type": "string" }, "account": { "title": "Account", "type": "string" }, "session": { "anyOf": [ {}, { "type": "null" } ], "default": null, "title": "Session" } }, "$defs": { "AWSAPICallViaCloudTrail": { "description": "Represents the detail of an AWS API call event as recorded by CloudTrail for ECS.", "properties": { "responseElements": { "anyOf": [ { "$ref": "#/$defs/ResponseElements" }, { "type": "null" } ], "default": null }, "requestParameters": { "anyOf": [ { "$ref": "#/$defs/RequestParameters" }, { "type": "null" } ], "default": null }, "userIdentity": { "$ref": "#/$defs/UserIdentity" }, "eventID": { "title": "Eventid", "type": "string" }, "awsRegion": { "title": "Awsregion", "type": "string" }, "eventVersion": { "title": "Eventversion", "type": "string" }, "sourceIPAddress": { "title": "Sourceipaddress", "type": "string" }, "eventSource": { "title": "Eventsource", "type": "string" }, "userAgent": { "title": "Useragent", "type": "string" }, "eventType": { "title": "Eventtype", "type": "string" }, "requestID": { "title": "Requestid", "type": "string" }, "eventTime": { "format": "date-time", "title": "Eventtime", "type": "string" }, "eventName": { "title": "Eventname", "type": "string" } }, "required": [ "userIdentity", "eventID", "awsRegion", "eventVersion", "sourceIPAddress", "eventSource", "userAgent", "eventType", "requestID", "eventTime", "eventName" ], "title": "AWSAPICallViaCloudTrail", "type": "object" }, "Attributes": { "description": "Represents session attributes, such as MFA status and creation date.", "properties": { "mfaAuthenticated": { "title": "Mfaauthenticated", "type": "string" }, "creationDate": { "format": "date-time", "title": "Creationdate", "type": "string" } }, "required": [ "mfaAuthenticated", "creationDate" ], "title": "Attributes", "type": "object" }, "AwsvpcConfiguration": { "description": "Represents the VPC configuration for an ECS task.", "properties": { "assignPublicIp": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Assignpublicip" }, "subnets": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Subnets" } }, "title": "AwsvpcConfiguration", "type": "object" }, "NetworkConfiguration": { "description": "Represents the network configuration for an ECS task.", "properties": { "awsvpcConfiguration": { "anyOf": [ { "$ref": "#/$defs/AwsvpcConfiguration" }, { "type": "null" } ], "default": null } }, "title": "NetworkConfiguration", "type": "object" }, "Overrides": { "description": "Represents container overrides for an ECS request.", "properties": { "containerOverrides": { "anyOf": [ { "items": { "$ref": "#/$defs/OverridesItem" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Containeroverrides" } }, "title": "Overrides", "type": "object" }, "Overrides1": { "description": "Represents container and inference accelerator overrides for an ECS response.", "properties": { "containerOverrides": { "items": { "$ref": "#/$defs/Overrides1Item" }, "title": "Containeroverrides", "type": "array" }, "inferenceAcceleratorOverrides": { "items": { "additionalProperties": true, "type": "object" }, "title": "Inferenceacceleratoroverrides", "type": "array" } }, "required": [ "containerOverrides", "inferenceAcceleratorOverrides" ], "title": "Overrides1", "type": "object" }, "Overrides1Item": { "description": "Represents overrides for a container in the ECS response.", "properties": { "resourceRequirements": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Resourcerequirements" }, "environment": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Environment" }, "memory": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Memory" }, "name": { "title": "Name", "type": "string" }, "cpu": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Cpu" }, "command": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Command" } }, "required": [ "name" ], "title": "Overrides1Item", "type": "object" }, "OverridesItem": { "description": "Represents overrides for a container in the ECS request.", "properties": { "resourceRequirements": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Resourcerequirements" }, "environment": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Environment" }, "memory": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Memory" }, "name": { "title": "Name", "type": "string" }, "cpu": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Cpu" }, "command": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Command" } }, "required": [ "name" ], "title": "OverridesItem", "type": "object" }, "RequestParameters": { "description": "Represents the parameters sent in an ECS API request via CloudTrail.", "properties": { "networkConfiguration": { "anyOf": [ { "$ref": "#/$defs/NetworkConfiguration" }, { "type": "null" } ], "default": null }, "overrides": { "anyOf": [ { "$ref": "#/$defs/Overrides" }, { "type": "null" } ], "default": null }, "placementConstraints": { "anyOf": [ { "items": { "$ref": "#/$defs/RequestParametersItem" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Placementconstraints" }, "cluster": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Cluster" }, "reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Reason" }, "executionStoppedAt": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Executionstoppedat" }, "pullStoppedAt": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Pullstoppedat" }, "startedBy": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Startedby" }, "pullStartedAt": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Pullstartedat" }, "count": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Count" }, "task": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Task" }, "containerInstance": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Containerinstance" }, "containers": { "anyOf": [ { "items": { "$ref": "#/$defs/RequestParametersItem1" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Containers" }, "taskDefinition": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Taskdefinition" }, "enableECSManagedTags": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Enableecsmanagedtags" }, "launchType": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Launchtype" }, "status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Status" } }, "title": "RequestParameters", "type": "object" }, "RequestParametersItem": { "description": "Represents a placement constraint or other parameter for an ECS request.", "properties": { "expression": { "title": "Expression", "type": "string" }, "type": { "title": "Type", "type": "string" } }, "required": [ "expression", "type" ], "title": "RequestParametersItem", "type": "object" }, "RequestParametersItem1": { "description": "Represents a container definition in the ECS request parameters.", "properties": { "containerName": { "title": "Containername", "type": "string" }, "exitCode": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Exitcode" }, "networkBindings": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Networkbindings" }, "status": { "title": "Status", "type": "string" } }, "required": [ "containerName", "status" ], "title": "RequestParametersItem1", "type": "object" }, "ResponseElements": { "description": "Represents the response elements returned by the ECS API call.", "properties": { "endpoint": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Endpoint" }, "failures": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Failures" }, "telemetryEndpoint": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Telemetryendpoint" }, "tasks": { "anyOf": [ { "items": { "$ref": "#/$defs/ResponseElementsItem" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Tasks" }, "acknowledgment": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Acknowledgment" } }, "title": "ResponseElements", "type": "object" }, "ResponseElementsItem": { "description": "Represents a single ECS task or resource returned in the ECS API response.", "properties": { "overrides": { "$ref": "#/$defs/Overrides1" }, "memory": { "title": "Memory", "type": "string" }, "attachments": { "items": { "$ref": "#/$defs/ResponseElementsItemItem" }, "title": "Attachments", "type": "array" }, "startedBy": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Startedby" }, "taskArn": { "title": "Taskarn", "type": "string" }, "cpu": { "title": "Cpu", "type": "string" }, "version": { "title": "Version", "type": "number" }, "tags": { "items": { "additionalProperties": true, "type": "object" }, "title": "Tags", "type": "array" }, "createdAt": { "title": "Createdat", "type": "string" }, "clusterArn": { "title": "Clusterarn", "type": "string" }, "taskDefinitionArn": { "title": "Taskdefinitionarn", "type": "string" }, "platformVersion": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Platformversion" }, "containers": { "items": { "$ref": "#/$defs/ResponseElementsItemItem1" }, "title": "Containers", "type": "array" }, "containerInstanceArn": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Containerinstancearn" }, "lastStatus": { "title": "Laststatus", "type": "string" }, "desiredStatus": { "title": "Desiredstatus", "type": "string" }, "group": { "title": "Group", "type": "string" }, "launchType": { "title": "Launchtype", "type": "string" } }, "required": [ "overrides", "memory", "attachments", "taskArn", "cpu", "version", "tags", "createdAt", "clusterArn", "taskDefinitionArn", "containers", "lastStatus", "desiredStatus", "group", "launchType" ], "title": "ResponseElementsItem", "type": "object" }, "ResponseElementsItemItem": { "description": "Represents an attachment for an ECS response element.", "properties": { "details": { "items": { "$ref": "#/$defs/ResponseElementsItemItemItem" }, "title": "Details", "type": "array" }, "id": { "title": "Id", "type": "string" }, "type": { "title": "Type", "type": "string" }, "status": { "title": "Status", "type": "string" } }, "required": [ "details", "id", "type", "status" ], "title": "ResponseElementsItemItem", "type": "object" }, "ResponseElementsItemItem1": { "description": "Represents a container definition in the ECS response elements.", "properties": { "image": { "title": "Image", "type": "string" }, "networkInterfaces": { "items": { "additionalProperties": true, "type": "object" }, "title": "Networkinterfaces", "type": "array" }, "memory": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Memory" }, "taskArn": { "title": "Taskarn", "type": "string" }, "name": { "title": "Name", "type": "string" }, "cpu": { "title": "Cpu", "type": "string" }, "containerArn": { "title": "Containerarn", "type": "string" }, "lastStatus": { "title": "Laststatus", "type": "string" } }, "required": [ "image", "networkInterfaces", "taskArn", "name", "cpu", "containerArn", "lastStatus" ], "title": "ResponseElementsItemItem1", "type": "object" }, "ResponseElementsItemItemItem": { "description": "Represents a detail item for an ECS response element attachment.", "properties": { "name": { "title": "Name", "type": "string" }, "value": { "title": "Value", "type": "string" } }, "required": [ "name", "value" ], "title": "ResponseElementsItemItemItem", "type": "object" }, "SessionContext": { "description": "Represents the session context for a user identity.", "properties": { "webIdFederationData": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "default": null, "title": "Webidfederationdata" }, "sessionIssuer": { "$ref": "#/$defs/SessionIssuer" }, "attributes": { "$ref": "#/$defs/Attributes" } }, "required": [ "sessionIssuer", "attributes" ], "title": "SessionContext", "type": "object" }, "SessionIssuer": { "description": "Represents the issuer of a session in the user identity context.", "properties": { "accountId": { "title": "Accountid", "type": "string" }, "principalId": { "title": "Principalid", "type": "string" }, "type": { "title": "Type", "type": "string" }, "arn": { "title": "Arn", "type": "string" }, "userName": { "title": "Username", "type": "string" } }, "required": [ "accountId", "principalId", "type", "arn", "userName" ], "title": "SessionIssuer", "type": "object" }, "UserIdentity": { "description": "Represents the identity of the user that initiated the ECS API call.", "properties": { "sessionContext": { "anyOf": [ { "$ref": "#/$defs/SessionContext" }, { "type": "null" } ], "default": null }, "accessKeyId": { "title": "Accesskeyid", "type": "string" }, "accountId": { "title": "Accountid", "type": "string" }, "principalId": { "title": "Principalid", "type": "string" }, "type": { "title": "Type", "type": "string" }, "arn": { "title": "Arn", "type": "string" }, "invokedBy": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Invokedby" } }, "required": [ "accessKeyId", "accountId", "principalId", "type", "arn" ], "title": "UserIdentity", "type": "object" } }, "required": [ "detail", "detail-type", "resources", "id", "source", "time", "region", "version", "account" ] }
- Fields:
- field detail: AWSAPICallViaCloudTrail [Required]
Where the meat of the event is
- field resources: list[str] [Required]
The resources the event applies to. This will be a list of ARNs
- field time: datetime [Required]
The time the event was generated, in UTC
- classmethod model_construct(_fields_set: set[str] | None = None, **values: Any) Self
Creates a new instance of the Model class with validated data.
Creates a new model setting __dict__ and __pydantic_fields_set__ from trusted or pre-validated data. Default values are respected, but no other validation is performed.
- !!! note
model_construct() generally respects the model_config.extra setting on the provided model. That is, if model_config.extra == ‘allow’, then all extra passed values are added to the model instance’s __dict__ and __pydantic_extra__ fields. If model_config.extra == ‘ignore’ (the default), then all extra passed values are ignored. Because no validation is performed with a call to model_construct(), having model_config.extra == ‘forbid’ does not result in an error if extra values are passed, but they will be ignored.
- Parameters:
_fields_set – A set of field names that were originally explicitly set during instantiation. If provided, this is directly used for the [model_fields_set][pydantic.BaseModel.model_fields_set] attribute. Otherwise, the field names from the values argument will be used.
values – Trusted or pre-validated data dictionary.
- Returns:
A new instance of the Model class with validated data.
- model_copy(*, update: Mapping[str, Any] | None = None, deep: bool = False) Self
- !!! abstract “Usage Documentation”
[model_copy](../concepts/serialization.md#model_copy)
Returns a copy of the model.
- !!! note
The underlying instance’s [__dict__][object.__dict__] attribute is copied. This might have unexpected side effects if you store anything in it, on top of the model fields (e.g. the value of [cached properties][functools.cached_property]).
- Parameters:
update – Values to change/add in the new model. Note: the data is not validated before creating the new model. You should trust this data.
deep – Set to True to make a deep copy of the model.
- Returns:
New model instance.
- model_dump_json(*, indent: int | None = None, include: set[int] | set[str] | Mapping[int, set[int] | set[str] | Mapping[int, IncEx | bool] | Mapping[str, IncEx | bool] | bool] | Mapping[str, set[int] | set[str] | Mapping[int, IncEx | bool] | Mapping[str, IncEx | bool] | bool] | None = None, exclude: set[int] | set[str] | Mapping[int, set[int] | set[str] | Mapping[int, IncEx | bool] | Mapping[str, IncEx | bool] | bool] | Mapping[str, set[int] | set[str] | Mapping[int, IncEx | bool] | Mapping[str, IncEx | bool] | bool] | None = None, context: Any | None = None, by_alias: bool | None = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, round_trip: bool = False, warnings: bool | Literal['none', 'warn', 'error'] = True, fallback: Callable[[Any], Any] | None = None, serialize_as_any: bool = False) str
- !!! abstract “Usage Documentation”
[model_dump_json](../concepts/serialization.md#modelmodel_dump_json)
Generates a JSON representation of the model using Pydantic’s to_json method.
- Parameters:
indent – Indentation to use in the JSON output. If None is passed, the output will be compact.
include – Field(s) to include in the JSON output.
exclude – Field(s) to exclude from the JSON output.
context – Additional context to pass to the serializer.
by_alias – Whether to serialize using field aliases.
exclude_unset – Whether to exclude fields that have not been explicitly set.
exclude_defaults – Whether to exclude fields that are set to their default value.
exclude_none – Whether to exclude fields that have a value of None.
round_trip – If True, dumped values should be valid as input for non-idempotent types such as Json[T].
warnings – How to handle serialization errors. False/”none” ignores them, True/”warn” logs errors, “error” raises a [PydanticSerializationError][pydantic_core.PydanticSerializationError].
fallback – A function to call when an unknown value is encountered. If not provided, a [PydanticSerializationError][pydantic_core.PydanticSerializationError] error is raised.
serialize_as_any – Whether to serialize fields with duck-typing serialization behavior.
- Returns:
A JSON string representation of the model.
- classmethod model_validate(obj: Any, *, strict: bool | None = None, from_attributes: bool | None = None, context: Any | None = None, by_alias: bool | None = None, by_name: bool | None = None) Self
Validate a pydantic model instance.
- Parameters:
obj – The object to validate.
strict – Whether to enforce types strictly.
from_attributes – Whether to extract data from object attributes.
context – Additional context to pass to the validator.
by_alias – Whether to use the field’s alias when validating against the provided input data.
by_name – Whether to use the field’s name when validating against the provided input data.
- Raises:
ValidationError – If the object could not be validated.
- Returns:
The validated model instance.
- classmethod model_validate_json(json_data: str | bytes | bytearray, *, strict: bool | None = None, context: Any | None = None, by_alias: bool | None = None, by_name: bool | None = None) Self
- !!! abstract “Usage Documentation”
[JSON Parsing](../concepts/json.md#json-parsing)
Validate the given JSON data against the Pydantic model.
- Parameters:
json_data – The JSON data to validate.
strict – Whether to enforce types strictly.
context – Extra variables to pass to the validator.
by_alias – Whether to use the field’s alias when validating against the provided input data.
by_name – Whether to use the field’s name when validating against the provided input data.
- Returns:
The validated Pydantic model.
- Raises:
ValidationError – If json_data is not a JSON string or the object could not be validated.
- classmethod model_validate_strings(obj: Any, *, strict: bool | None = None, context: Any | None = None, by_alias: bool | None = None, by_name: bool | None = None) Self
Validate the given object with string data against the Pydantic model.
- Parameters:
obj – The object containing string data to validate.
strict – Whether to enforce types strictly.
context – Extra variables to pass to the validator.
by_alias – Whether to use the field’s alias when validating against the provided input data.
by_name – Whether to use the field’s name when validating against the provided input data.
- Returns:
The validated Pydantic model.
- classmethod parse_file(path: str | Path, *, content_type: str | None = None, encoding: str = 'utf8', proto: DeprecatedParseProtocol | None = None, allow_pickle: bool = False) Self
- classmethod parse_raw(b: str | bytes, *, content_type: str | None = None, encoding: str = 'utf8', proto: DeprecatedParseProtocol | None = None, allow_pickle: bool = False) Self
- property container_instances: list['ContainerInstance']
Get the container instance ARN from the event.
Raw Event Models from AWS Schema
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.AWSAPICallViaCloudTrail[source]
Bases:
BaseModelRepresents the detail of an AWS API call event as recorded by CloudTrail for ECS.
Show JSON schema
{ "title": "AWSAPICallViaCloudTrail", "description": "Represents the detail of an AWS API call event as recorded by CloudTrail for ECS.", "type": "object", "properties": { "responseElements": { "anyOf": [ { "$ref": "#/$defs/ResponseElements" }, { "type": "null" } ], "default": null }, "requestParameters": { "anyOf": [ { "$ref": "#/$defs/RequestParameters" }, { "type": "null" } ], "default": null }, "userIdentity": { "$ref": "#/$defs/UserIdentity" }, "eventID": { "title": "Eventid", "type": "string" }, "awsRegion": { "title": "Awsregion", "type": "string" }, "eventVersion": { "title": "Eventversion", "type": "string" }, "sourceIPAddress": { "title": "Sourceipaddress", "type": "string" }, "eventSource": { "title": "Eventsource", "type": "string" }, "userAgent": { "title": "Useragent", "type": "string" }, "eventType": { "title": "Eventtype", "type": "string" }, "requestID": { "title": "Requestid", "type": "string" }, "eventTime": { "format": "date-time", "title": "Eventtime", "type": "string" }, "eventName": { "title": "Eventname", "type": "string" } }, "$defs": { "Attributes": { "description": "Represents session attributes, such as MFA status and creation date.", "properties": { "mfaAuthenticated": { "title": "Mfaauthenticated", "type": "string" }, "creationDate": { "format": "date-time", "title": "Creationdate", "type": "string" } }, "required": [ "mfaAuthenticated", "creationDate" ], "title": "Attributes", "type": "object" }, "AwsvpcConfiguration": { "description": "Represents the VPC configuration for an ECS task.", "properties": { "assignPublicIp": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Assignpublicip" }, "subnets": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Subnets" } }, "title": "AwsvpcConfiguration", "type": "object" }, "NetworkConfiguration": { "description": "Represents the network configuration for an ECS task.", "properties": { "awsvpcConfiguration": { "anyOf": [ { "$ref": "#/$defs/AwsvpcConfiguration" }, { "type": "null" } ], "default": null } }, "title": "NetworkConfiguration", "type": "object" }, "Overrides": { "description": "Represents container overrides for an ECS request.", "properties": { "containerOverrides": { "anyOf": [ { "items": { "$ref": "#/$defs/OverridesItem" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Containeroverrides" } }, "title": "Overrides", "type": "object" }, "Overrides1": { "description": "Represents container and inference accelerator overrides for an ECS response.", "properties": { "containerOverrides": { "items": { "$ref": "#/$defs/Overrides1Item" }, "title": "Containeroverrides", "type": "array" }, "inferenceAcceleratorOverrides": { "items": { "additionalProperties": true, "type": "object" }, "title": "Inferenceacceleratoroverrides", "type": "array" } }, "required": [ "containerOverrides", "inferenceAcceleratorOverrides" ], "title": "Overrides1", "type": "object" }, "Overrides1Item": { "description": "Represents overrides for a container in the ECS response.", "properties": { "resourceRequirements": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Resourcerequirements" }, "environment": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Environment" }, "memory": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Memory" }, "name": { "title": "Name", "type": "string" }, "cpu": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Cpu" }, "command": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Command" } }, "required": [ "name" ], "title": "Overrides1Item", "type": "object" }, "OverridesItem": { "description": "Represents overrides for a container in the ECS request.", "properties": { "resourceRequirements": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Resourcerequirements" }, "environment": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Environment" }, "memory": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Memory" }, "name": { "title": "Name", "type": "string" }, "cpu": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Cpu" }, "command": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Command" } }, "required": [ "name" ], "title": "OverridesItem", "type": "object" }, "RequestParameters": { "description": "Represents the parameters sent in an ECS API request via CloudTrail.", "properties": { "networkConfiguration": { "anyOf": [ { "$ref": "#/$defs/NetworkConfiguration" }, { "type": "null" } ], "default": null }, "overrides": { "anyOf": [ { "$ref": "#/$defs/Overrides" }, { "type": "null" } ], "default": null }, "placementConstraints": { "anyOf": [ { "items": { "$ref": "#/$defs/RequestParametersItem" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Placementconstraints" }, "cluster": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Cluster" }, "reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Reason" }, "executionStoppedAt": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Executionstoppedat" }, "pullStoppedAt": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Pullstoppedat" }, "startedBy": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Startedby" }, "pullStartedAt": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Pullstartedat" }, "count": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Count" }, "task": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Task" }, "containerInstance": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Containerinstance" }, "containers": { "anyOf": [ { "items": { "$ref": "#/$defs/RequestParametersItem1" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Containers" }, "taskDefinition": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Taskdefinition" }, "enableECSManagedTags": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Enableecsmanagedtags" }, "launchType": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Launchtype" }, "status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Status" } }, "title": "RequestParameters", "type": "object" }, "RequestParametersItem": { "description": "Represents a placement constraint or other parameter for an ECS request.", "properties": { "expression": { "title": "Expression", "type": "string" }, "type": { "title": "Type", "type": "string" } }, "required": [ "expression", "type" ], "title": "RequestParametersItem", "type": "object" }, "RequestParametersItem1": { "description": "Represents a container definition in the ECS request parameters.", "properties": { "containerName": { "title": "Containername", "type": "string" }, "exitCode": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Exitcode" }, "networkBindings": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Networkbindings" }, "status": { "title": "Status", "type": "string" } }, "required": [ "containerName", "status" ], "title": "RequestParametersItem1", "type": "object" }, "ResponseElements": { "description": "Represents the response elements returned by the ECS API call.", "properties": { "endpoint": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Endpoint" }, "failures": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Failures" }, "telemetryEndpoint": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Telemetryendpoint" }, "tasks": { "anyOf": [ { "items": { "$ref": "#/$defs/ResponseElementsItem" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Tasks" }, "acknowledgment": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Acknowledgment" } }, "title": "ResponseElements", "type": "object" }, "ResponseElementsItem": { "description": "Represents a single ECS task or resource returned in the ECS API response.", "properties": { "overrides": { "$ref": "#/$defs/Overrides1" }, "memory": { "title": "Memory", "type": "string" }, "attachments": { "items": { "$ref": "#/$defs/ResponseElementsItemItem" }, "title": "Attachments", "type": "array" }, "startedBy": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Startedby" }, "taskArn": { "title": "Taskarn", "type": "string" }, "cpu": { "title": "Cpu", "type": "string" }, "version": { "title": "Version", "type": "number" }, "tags": { "items": { "additionalProperties": true, "type": "object" }, "title": "Tags", "type": "array" }, "createdAt": { "title": "Createdat", "type": "string" }, "clusterArn": { "title": "Clusterarn", "type": "string" }, "taskDefinitionArn": { "title": "Taskdefinitionarn", "type": "string" }, "platformVersion": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Platformversion" }, "containers": { "items": { "$ref": "#/$defs/ResponseElementsItemItem1" }, "title": "Containers", "type": "array" }, "containerInstanceArn": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Containerinstancearn" }, "lastStatus": { "title": "Laststatus", "type": "string" }, "desiredStatus": { "title": "Desiredstatus", "type": "string" }, "group": { "title": "Group", "type": "string" }, "launchType": { "title": "Launchtype", "type": "string" } }, "required": [ "overrides", "memory", "attachments", "taskArn", "cpu", "version", "tags", "createdAt", "clusterArn", "taskDefinitionArn", "containers", "lastStatus", "desiredStatus", "group", "launchType" ], "title": "ResponseElementsItem", "type": "object" }, "ResponseElementsItemItem": { "description": "Represents an attachment for an ECS response element.", "properties": { "details": { "items": { "$ref": "#/$defs/ResponseElementsItemItemItem" }, "title": "Details", "type": "array" }, "id": { "title": "Id", "type": "string" }, "type": { "title": "Type", "type": "string" }, "status": { "title": "Status", "type": "string" } }, "required": [ "details", "id", "type", "status" ], "title": "ResponseElementsItemItem", "type": "object" }, "ResponseElementsItemItem1": { "description": "Represents a container definition in the ECS response elements.", "properties": { "image": { "title": "Image", "type": "string" }, "networkInterfaces": { "items": { "additionalProperties": true, "type": "object" }, "title": "Networkinterfaces", "type": "array" }, "memory": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Memory" }, "taskArn": { "title": "Taskarn", "type": "string" }, "name": { "title": "Name", "type": "string" }, "cpu": { "title": "Cpu", "type": "string" }, "containerArn": { "title": "Containerarn", "type": "string" }, "lastStatus": { "title": "Laststatus", "type": "string" } }, "required": [ "image", "networkInterfaces", "taskArn", "name", "cpu", "containerArn", "lastStatus" ], "title": "ResponseElementsItemItem1", "type": "object" }, "ResponseElementsItemItemItem": { "description": "Represents a detail item for an ECS response element attachment.", "properties": { "name": { "title": "Name", "type": "string" }, "value": { "title": "Value", "type": "string" } }, "required": [ "name", "value" ], "title": "ResponseElementsItemItemItem", "type": "object" }, "SessionContext": { "description": "Represents the session context for a user identity.", "properties": { "webIdFederationData": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "default": null, "title": "Webidfederationdata" }, "sessionIssuer": { "$ref": "#/$defs/SessionIssuer" }, "attributes": { "$ref": "#/$defs/Attributes" } }, "required": [ "sessionIssuer", "attributes" ], "title": "SessionContext", "type": "object" }, "SessionIssuer": { "description": "Represents the issuer of a session in the user identity context.", "properties": { "accountId": { "title": "Accountid", "type": "string" }, "principalId": { "title": "Principalid", "type": "string" }, "type": { "title": "Type", "type": "string" }, "arn": { "title": "Arn", "type": "string" }, "userName": { "title": "Username", "type": "string" } }, "required": [ "accountId", "principalId", "type", "arn", "userName" ], "title": "SessionIssuer", "type": "object" }, "UserIdentity": { "description": "Represents the identity of the user that initiated the ECS API call.", "properties": { "sessionContext": { "anyOf": [ { "$ref": "#/$defs/SessionContext" }, { "type": "null" } ], "default": null }, "accessKeyId": { "title": "Accesskeyid", "type": "string" }, "accountId": { "title": "Accountid", "type": "string" }, "principalId": { "title": "Principalid", "type": "string" }, "type": { "title": "Type", "type": "string" }, "arn": { "title": "Arn", "type": "string" }, "invokedBy": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Invokedby" } }, "required": [ "accessKeyId", "accountId", "principalId", "type", "arn" ], "title": "UserIdentity", "type": "object" } }, "required": [ "userIdentity", "eventID", "awsRegion", "eventVersion", "sourceIPAddress", "eventSource", "userAgent", "eventType", "requestID", "eventTime", "eventName" ] }
- Fields:
- field eventTime: datetime [Required]
The time the event was created
- field requestParameters: RequestParameters | None = None
The API request
- field responseElements: ResponseElements | None = None
The API response
- field userIdentity: UserIdentity [Required]
The identity of the user that initiated the event
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.Attributes[source]
Bases:
BaseModelRepresents session attributes, such as MFA status and creation date.
Show JSON schema
{ "title": "Attributes", "description": "Represents session attributes, such as MFA status and creation date.", "type": "object", "properties": { "mfaAuthenticated": { "title": "Mfaauthenticated", "type": "string" }, "creationDate": { "format": "date-time", "title": "Creationdate", "type": "string" } }, "required": [ "mfaAuthenticated", "creationDate" ] }
- field creationDate: datetime [Required]
When the session was created
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.AwsvpcConfiguration[source]
Bases:
BaseModelRepresents the VPC configuration for an ECS task.
Show JSON schema
{ "title": "AwsvpcConfiguration", "description": "Represents the VPC configuration for an ECS task.", "type": "object", "properties": { "assignPublicIp": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Assignpublicip" }, "subnets": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Subnets" } } }
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.ECSAWSAPICallViaCloudTrailEvent[source]
Bases:
BaseModelRepresents a full ECS API call event as received from EventBridge, wrapping the CloudTrail detail.
Show JSON schema
{ "title": "ECSAWSAPICallViaCloudTrailEvent", "description": "Represents a full ECS API call event as received from EventBridge, wrapping\nthe CloudTrail detail.", "type": "object", "properties": { "detail": { "$ref": "#/$defs/AWSAPICallViaCloudTrail" }, "detail-type": { "title": "Detail-Type", "type": "string" }, "resources": { "items": { "type": "string" }, "title": "Resources", "type": "array" }, "id": { "title": "Id", "type": "string" }, "source": { "title": "Source", "type": "string" }, "time": { "format": "date-time", "title": "Time", "type": "string" }, "region": { "title": "Region", "type": "string" }, "version": { "title": "Version", "type": "string" }, "account": { "title": "Account", "type": "string" } }, "$defs": { "AWSAPICallViaCloudTrail": { "description": "Represents the detail of an AWS API call event as recorded by CloudTrail for ECS.", "properties": { "responseElements": { "anyOf": [ { "$ref": "#/$defs/ResponseElements" }, { "type": "null" } ], "default": null }, "requestParameters": { "anyOf": [ { "$ref": "#/$defs/RequestParameters" }, { "type": "null" } ], "default": null }, "userIdentity": { "$ref": "#/$defs/UserIdentity" }, "eventID": { "title": "Eventid", "type": "string" }, "awsRegion": { "title": "Awsregion", "type": "string" }, "eventVersion": { "title": "Eventversion", "type": "string" }, "sourceIPAddress": { "title": "Sourceipaddress", "type": "string" }, "eventSource": { "title": "Eventsource", "type": "string" }, "userAgent": { "title": "Useragent", "type": "string" }, "eventType": { "title": "Eventtype", "type": "string" }, "requestID": { "title": "Requestid", "type": "string" }, "eventTime": { "format": "date-time", "title": "Eventtime", "type": "string" }, "eventName": { "title": "Eventname", "type": "string" } }, "required": [ "userIdentity", "eventID", "awsRegion", "eventVersion", "sourceIPAddress", "eventSource", "userAgent", "eventType", "requestID", "eventTime", "eventName" ], "title": "AWSAPICallViaCloudTrail", "type": "object" }, "Attributes": { "description": "Represents session attributes, such as MFA status and creation date.", "properties": { "mfaAuthenticated": { "title": "Mfaauthenticated", "type": "string" }, "creationDate": { "format": "date-time", "title": "Creationdate", "type": "string" } }, "required": [ "mfaAuthenticated", "creationDate" ], "title": "Attributes", "type": "object" }, "AwsvpcConfiguration": { "description": "Represents the VPC configuration for an ECS task.", "properties": { "assignPublicIp": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Assignpublicip" }, "subnets": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Subnets" } }, "title": "AwsvpcConfiguration", "type": "object" }, "NetworkConfiguration": { "description": "Represents the network configuration for an ECS task.", "properties": { "awsvpcConfiguration": { "anyOf": [ { "$ref": "#/$defs/AwsvpcConfiguration" }, { "type": "null" } ], "default": null } }, "title": "NetworkConfiguration", "type": "object" }, "Overrides": { "description": "Represents container overrides for an ECS request.", "properties": { "containerOverrides": { "anyOf": [ { "items": { "$ref": "#/$defs/OverridesItem" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Containeroverrides" } }, "title": "Overrides", "type": "object" }, "Overrides1": { "description": "Represents container and inference accelerator overrides for an ECS response.", "properties": { "containerOverrides": { "items": { "$ref": "#/$defs/Overrides1Item" }, "title": "Containeroverrides", "type": "array" }, "inferenceAcceleratorOverrides": { "items": { "additionalProperties": true, "type": "object" }, "title": "Inferenceacceleratoroverrides", "type": "array" } }, "required": [ "containerOverrides", "inferenceAcceleratorOverrides" ], "title": "Overrides1", "type": "object" }, "Overrides1Item": { "description": "Represents overrides for a container in the ECS response.", "properties": { "resourceRequirements": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Resourcerequirements" }, "environment": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Environment" }, "memory": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Memory" }, "name": { "title": "Name", "type": "string" }, "cpu": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Cpu" }, "command": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Command" } }, "required": [ "name" ], "title": "Overrides1Item", "type": "object" }, "OverridesItem": { "description": "Represents overrides for a container in the ECS request.", "properties": { "resourceRequirements": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Resourcerequirements" }, "environment": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Environment" }, "memory": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Memory" }, "name": { "title": "Name", "type": "string" }, "cpu": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Cpu" }, "command": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Command" } }, "required": [ "name" ], "title": "OverridesItem", "type": "object" }, "RequestParameters": { "description": "Represents the parameters sent in an ECS API request via CloudTrail.", "properties": { "networkConfiguration": { "anyOf": [ { "$ref": "#/$defs/NetworkConfiguration" }, { "type": "null" } ], "default": null }, "overrides": { "anyOf": [ { "$ref": "#/$defs/Overrides" }, { "type": "null" } ], "default": null }, "placementConstraints": { "anyOf": [ { "items": { "$ref": "#/$defs/RequestParametersItem" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Placementconstraints" }, "cluster": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Cluster" }, "reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Reason" }, "executionStoppedAt": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Executionstoppedat" }, "pullStoppedAt": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Pullstoppedat" }, "startedBy": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Startedby" }, "pullStartedAt": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Pullstartedat" }, "count": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Count" }, "task": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Task" }, "containerInstance": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Containerinstance" }, "containers": { "anyOf": [ { "items": { "$ref": "#/$defs/RequestParametersItem1" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Containers" }, "taskDefinition": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Taskdefinition" }, "enableECSManagedTags": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Enableecsmanagedtags" }, "launchType": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Launchtype" }, "status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Status" } }, "title": "RequestParameters", "type": "object" }, "RequestParametersItem": { "description": "Represents a placement constraint or other parameter for an ECS request.", "properties": { "expression": { "title": "Expression", "type": "string" }, "type": { "title": "Type", "type": "string" } }, "required": [ "expression", "type" ], "title": "RequestParametersItem", "type": "object" }, "RequestParametersItem1": { "description": "Represents a container definition in the ECS request parameters.", "properties": { "containerName": { "title": "Containername", "type": "string" }, "exitCode": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Exitcode" }, "networkBindings": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Networkbindings" }, "status": { "title": "Status", "type": "string" } }, "required": [ "containerName", "status" ], "title": "RequestParametersItem1", "type": "object" }, "ResponseElements": { "description": "Represents the response elements returned by the ECS API call.", "properties": { "endpoint": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Endpoint" }, "failures": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Failures" }, "telemetryEndpoint": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Telemetryendpoint" }, "tasks": { "anyOf": [ { "items": { "$ref": "#/$defs/ResponseElementsItem" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Tasks" }, "acknowledgment": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Acknowledgment" } }, "title": "ResponseElements", "type": "object" }, "ResponseElementsItem": { "description": "Represents a single ECS task or resource returned in the ECS API response.", "properties": { "overrides": { "$ref": "#/$defs/Overrides1" }, "memory": { "title": "Memory", "type": "string" }, "attachments": { "items": { "$ref": "#/$defs/ResponseElementsItemItem" }, "title": "Attachments", "type": "array" }, "startedBy": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Startedby" }, "taskArn": { "title": "Taskarn", "type": "string" }, "cpu": { "title": "Cpu", "type": "string" }, "version": { "title": "Version", "type": "number" }, "tags": { "items": { "additionalProperties": true, "type": "object" }, "title": "Tags", "type": "array" }, "createdAt": { "title": "Createdat", "type": "string" }, "clusterArn": { "title": "Clusterarn", "type": "string" }, "taskDefinitionArn": { "title": "Taskdefinitionarn", "type": "string" }, "platformVersion": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Platformversion" }, "containers": { "items": { "$ref": "#/$defs/ResponseElementsItemItem1" }, "title": "Containers", "type": "array" }, "containerInstanceArn": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Containerinstancearn" }, "lastStatus": { "title": "Laststatus", "type": "string" }, "desiredStatus": { "title": "Desiredstatus", "type": "string" }, "group": { "title": "Group", "type": "string" }, "launchType": { "title": "Launchtype", "type": "string" } }, "required": [ "overrides", "memory", "attachments", "taskArn", "cpu", "version", "tags", "createdAt", "clusterArn", "taskDefinitionArn", "containers", "lastStatus", "desiredStatus", "group", "launchType" ], "title": "ResponseElementsItem", "type": "object" }, "ResponseElementsItemItem": { "description": "Represents an attachment for an ECS response element.", "properties": { "details": { "items": { "$ref": "#/$defs/ResponseElementsItemItemItem" }, "title": "Details", "type": "array" }, "id": { "title": "Id", "type": "string" }, "type": { "title": "Type", "type": "string" }, "status": { "title": "Status", "type": "string" } }, "required": [ "details", "id", "type", "status" ], "title": "ResponseElementsItemItem", "type": "object" }, "ResponseElementsItemItem1": { "description": "Represents a container definition in the ECS response elements.", "properties": { "image": { "title": "Image", "type": "string" }, "networkInterfaces": { "items": { "additionalProperties": true, "type": "object" }, "title": "Networkinterfaces", "type": "array" }, "memory": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Memory" }, "taskArn": { "title": "Taskarn", "type": "string" }, "name": { "title": "Name", "type": "string" }, "cpu": { "title": "Cpu", "type": "string" }, "containerArn": { "title": "Containerarn", "type": "string" }, "lastStatus": { "title": "Laststatus", "type": "string" } }, "required": [ "image", "networkInterfaces", "taskArn", "name", "cpu", "containerArn", "lastStatus" ], "title": "ResponseElementsItemItem1", "type": "object" }, "ResponseElementsItemItemItem": { "description": "Represents a detail item for an ECS response element attachment.", "properties": { "name": { "title": "Name", "type": "string" }, "value": { "title": "Value", "type": "string" } }, "required": [ "name", "value" ], "title": "ResponseElementsItemItemItem", "type": "object" }, "SessionContext": { "description": "Represents the session context for a user identity.", "properties": { "webIdFederationData": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "default": null, "title": "Webidfederationdata" }, "sessionIssuer": { "$ref": "#/$defs/SessionIssuer" }, "attributes": { "$ref": "#/$defs/Attributes" } }, "required": [ "sessionIssuer", "attributes" ], "title": "SessionContext", "type": "object" }, "SessionIssuer": { "description": "Represents the issuer of a session in the user identity context.", "properties": { "accountId": { "title": "Accountid", "type": "string" }, "principalId": { "title": "Principalid", "type": "string" }, "type": { "title": "Type", "type": "string" }, "arn": { "title": "Arn", "type": "string" }, "userName": { "title": "Username", "type": "string" } }, "required": [ "accountId", "principalId", "type", "arn", "userName" ], "title": "SessionIssuer", "type": "object" }, "UserIdentity": { "description": "Represents the identity of the user that initiated the ECS API call.", "properties": { "sessionContext": { "anyOf": [ { "$ref": "#/$defs/SessionContext" }, { "type": "null" } ], "default": null }, "accessKeyId": { "title": "Accesskeyid", "type": "string" }, "accountId": { "title": "Accountid", "type": "string" }, "principalId": { "title": "Principalid", "type": "string" }, "type": { "title": "Type", "type": "string" }, "arn": { "title": "Arn", "type": "string" }, "invokedBy": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Invokedby" } }, "required": [ "accessKeyId", "accountId", "principalId", "type", "arn" ], "title": "UserIdentity", "type": "object" } }, "required": [ "detail", "detail-type", "resources", "id", "source", "time", "region", "version", "account" ] }
- Fields:
- field detail: AWSAPICallViaCloudTrail [Required]
Where the meat of the event is
- field resources: list[str] [Required]
The resources the event applies to. This will be a list of ARNs
- field time: datetime [Required]
The time the event was generated, in UTC
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.NetworkConfiguration[source]
Bases:
BaseModelRepresents the network configuration for an ECS task.
Show JSON schema
{ "title": "NetworkConfiguration", "description": "Represents the network configuration for an ECS task.", "type": "object", "properties": { "awsvpcConfiguration": { "anyOf": [ { "$ref": "#/$defs/AwsvpcConfiguration" }, { "type": "null" } ], "default": null } }, "$defs": { "AwsvpcConfiguration": { "description": "Represents the VPC configuration for an ECS task.", "properties": { "assignPublicIp": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Assignpublicip" }, "subnets": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Subnets" } }, "title": "AwsvpcConfiguration", "type": "object" } } }
- field awsvpcConfiguration: AwsvpcConfiguration | None = None
The AWS VPC configuration for the task
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.Overrides[source]
Bases:
BaseModelRepresents container overrides for an ECS request.
Show JSON schema
{ "title": "Overrides", "description": "Represents container overrides for an ECS request.", "type": "object", "properties": { "containerOverrides": { "anyOf": [ { "items": { "$ref": "#/$defs/OverridesItem" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Containeroverrides" } }, "$defs": { "OverridesItem": { "description": "Represents overrides for a container in the ECS request.", "properties": { "resourceRequirements": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Resourcerequirements" }, "environment": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Environment" }, "memory": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Memory" }, "name": { "title": "Name", "type": "string" }, "cpu": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Cpu" }, "command": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Command" } }, "required": [ "name" ], "title": "OverridesItem", "type": "object" } } }
- field containerOverrides: list[OverridesItem] | None = None
The overrides for individual containers
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.Overrides1[source]
Bases:
BaseModelRepresents container and inference accelerator overrides for an ECS response.
Show JSON schema
{ "title": "Overrides1", "description": "Represents container and inference accelerator overrides for an ECS response.", "type": "object", "properties": { "containerOverrides": { "items": { "$ref": "#/$defs/Overrides1Item" }, "title": "Containeroverrides", "type": "array" }, "inferenceAcceleratorOverrides": { "items": { "additionalProperties": true, "type": "object" }, "title": "Inferenceacceleratoroverrides", "type": "array" } }, "$defs": { "Overrides1Item": { "description": "Represents overrides for a container in the ECS response.", "properties": { "resourceRequirements": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Resourcerequirements" }, "environment": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Environment" }, "memory": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Memory" }, "name": { "title": "Name", "type": "string" }, "cpu": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Cpu" }, "command": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Command" } }, "required": [ "name" ], "title": "Overrides1Item", "type": "object" } }, "required": [ "containerOverrides", "inferenceAcceleratorOverrides" ] }
- Fields:
- field containerOverrides: list[Overrides1Item] [Required]
The overrides for individual containers
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.Overrides1Item[source]
Bases:
BaseModelRepresents overrides for a container in the ECS response.
Show JSON schema
{ "title": "Overrides1Item", "description": "Represents overrides for a container in the ECS response.", "type": "object", "properties": { "resourceRequirements": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Resourcerequirements" }, "environment": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Environment" }, "memory": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Memory" }, "name": { "title": "Name", "type": "string" }, "cpu": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Cpu" }, "command": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Command" } }, "required": [ "name" ] }
- Fields:
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.OverridesItem[source]
Bases:
BaseModelRepresents overrides for a container in the ECS request.
Show JSON schema
{ "title": "OverridesItem", "description": "Represents overrides for a container in the ECS request.", "type": "object", "properties": { "resourceRequirements": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Resourcerequirements" }, "environment": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Environment" }, "memory": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Memory" }, "name": { "title": "Name", "type": "string" }, "cpu": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Cpu" }, "command": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Command" } }, "required": [ "name" ] }
- Fields:
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.RequestParameters[source]
Bases:
BaseModelRepresents the parameters sent in an ECS API request via CloudTrail.
Show JSON schema
{ "title": "RequestParameters", "description": "Represents the parameters sent in an ECS API request via CloudTrail.", "type": "object", "properties": { "networkConfiguration": { "anyOf": [ { "$ref": "#/$defs/NetworkConfiguration" }, { "type": "null" } ], "default": null }, "overrides": { "anyOf": [ { "$ref": "#/$defs/Overrides" }, { "type": "null" } ], "default": null }, "placementConstraints": { "anyOf": [ { "items": { "$ref": "#/$defs/RequestParametersItem" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Placementconstraints" }, "cluster": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Cluster" }, "reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Reason" }, "executionStoppedAt": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Executionstoppedat" }, "pullStoppedAt": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Pullstoppedat" }, "startedBy": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Startedby" }, "pullStartedAt": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Pullstartedat" }, "count": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Count" }, "task": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Task" }, "containerInstance": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Containerinstance" }, "containers": { "anyOf": [ { "items": { "$ref": "#/$defs/RequestParametersItem1" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Containers" }, "taskDefinition": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Taskdefinition" }, "enableECSManagedTags": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Enableecsmanagedtags" }, "launchType": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Launchtype" }, "status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Status" } }, "$defs": { "AwsvpcConfiguration": { "description": "Represents the VPC configuration for an ECS task.", "properties": { "assignPublicIp": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Assignpublicip" }, "subnets": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Subnets" } }, "title": "AwsvpcConfiguration", "type": "object" }, "NetworkConfiguration": { "description": "Represents the network configuration for an ECS task.", "properties": { "awsvpcConfiguration": { "anyOf": [ { "$ref": "#/$defs/AwsvpcConfiguration" }, { "type": "null" } ], "default": null } }, "title": "NetworkConfiguration", "type": "object" }, "Overrides": { "description": "Represents container overrides for an ECS request.", "properties": { "containerOverrides": { "anyOf": [ { "items": { "$ref": "#/$defs/OverridesItem" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Containeroverrides" } }, "title": "Overrides", "type": "object" }, "OverridesItem": { "description": "Represents overrides for a container in the ECS request.", "properties": { "resourceRequirements": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Resourcerequirements" }, "environment": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Environment" }, "memory": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Memory" }, "name": { "title": "Name", "type": "string" }, "cpu": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Cpu" }, "command": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Command" } }, "required": [ "name" ], "title": "OverridesItem", "type": "object" }, "RequestParametersItem": { "description": "Represents a placement constraint or other parameter for an ECS request.", "properties": { "expression": { "title": "Expression", "type": "string" }, "type": { "title": "Type", "type": "string" } }, "required": [ "expression", "type" ], "title": "RequestParametersItem", "type": "object" }, "RequestParametersItem1": { "description": "Represents a container definition in the ECS request parameters.", "properties": { "containerName": { "title": "Containername", "type": "string" }, "exitCode": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Exitcode" }, "networkBindings": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Networkbindings" }, "status": { "title": "Status", "type": "string" } }, "required": [ "containerName", "status" ], "title": "RequestParametersItem1", "type": "object" } } }
- field containers: list[RequestParametersItem1] | None = None
The containers to include in the task
- field networkConfiguration: NetworkConfiguration | None = None
The network configuration for the task
- field placementConstraints: list[RequestParametersItem] | None = None
Placement constraints for the task
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.RequestParametersItem[source]
Bases:
BaseModelRepresents a placement constraint or other parameter for an ECS request.
Show JSON schema
{ "title": "RequestParametersItem", "description": "Represents a placement constraint or other parameter for an ECS request.", "type": "object", "properties": { "expression": { "title": "Expression", "type": "string" }, "type": { "title": "Type", "type": "string" } }, "required": [ "expression", "type" ] }
- Fields:
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.RequestParametersItem1[source]
Bases:
BaseModelRepresents a container definition in the ECS request parameters.
Show JSON schema
{ "title": "RequestParametersItem1", "description": "Represents a container definition in the ECS request parameters.", "type": "object", "properties": { "containerName": { "title": "Containername", "type": "string" }, "exitCode": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Exitcode" }, "networkBindings": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Networkbindings" }, "status": { "title": "Status", "type": "string" } }, "required": [ "containerName", "status" ] }
- Fields:
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.ResponseElements[source]
Bases:
BaseModelRepresents the response elements returned by the ECS API call.
Show JSON schema
{ "title": "ResponseElements", "description": "Represents the response elements returned by the ECS API call.", "type": "object", "properties": { "endpoint": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Endpoint" }, "failures": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Failures" }, "telemetryEndpoint": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Telemetryendpoint" }, "tasks": { "anyOf": [ { "items": { "$ref": "#/$defs/ResponseElementsItem" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Tasks" }, "acknowledgment": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Acknowledgment" } }, "$defs": { "Overrides1": { "description": "Represents container and inference accelerator overrides for an ECS response.", "properties": { "containerOverrides": { "items": { "$ref": "#/$defs/Overrides1Item" }, "title": "Containeroverrides", "type": "array" }, "inferenceAcceleratorOverrides": { "items": { "additionalProperties": true, "type": "object" }, "title": "Inferenceacceleratoroverrides", "type": "array" } }, "required": [ "containerOverrides", "inferenceAcceleratorOverrides" ], "title": "Overrides1", "type": "object" }, "Overrides1Item": { "description": "Represents overrides for a container in the ECS response.", "properties": { "resourceRequirements": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Resourcerequirements" }, "environment": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Environment" }, "memory": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Memory" }, "name": { "title": "Name", "type": "string" }, "cpu": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Cpu" }, "command": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Command" } }, "required": [ "name" ], "title": "Overrides1Item", "type": "object" }, "ResponseElementsItem": { "description": "Represents a single ECS task or resource returned in the ECS API response.", "properties": { "overrides": { "$ref": "#/$defs/Overrides1" }, "memory": { "title": "Memory", "type": "string" }, "attachments": { "items": { "$ref": "#/$defs/ResponseElementsItemItem" }, "title": "Attachments", "type": "array" }, "startedBy": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Startedby" }, "taskArn": { "title": "Taskarn", "type": "string" }, "cpu": { "title": "Cpu", "type": "string" }, "version": { "title": "Version", "type": "number" }, "tags": { "items": { "additionalProperties": true, "type": "object" }, "title": "Tags", "type": "array" }, "createdAt": { "title": "Createdat", "type": "string" }, "clusterArn": { "title": "Clusterarn", "type": "string" }, "taskDefinitionArn": { "title": "Taskdefinitionarn", "type": "string" }, "platformVersion": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Platformversion" }, "containers": { "items": { "$ref": "#/$defs/ResponseElementsItemItem1" }, "title": "Containers", "type": "array" }, "containerInstanceArn": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Containerinstancearn" }, "lastStatus": { "title": "Laststatus", "type": "string" }, "desiredStatus": { "title": "Desiredstatus", "type": "string" }, "group": { "title": "Group", "type": "string" }, "launchType": { "title": "Launchtype", "type": "string" } }, "required": [ "overrides", "memory", "attachments", "taskArn", "cpu", "version", "tags", "createdAt", "clusterArn", "taskDefinitionArn", "containers", "lastStatus", "desiredStatus", "group", "launchType" ], "title": "ResponseElementsItem", "type": "object" }, "ResponseElementsItemItem": { "description": "Represents an attachment for an ECS response element.", "properties": { "details": { "items": { "$ref": "#/$defs/ResponseElementsItemItemItem" }, "title": "Details", "type": "array" }, "id": { "title": "Id", "type": "string" }, "type": { "title": "Type", "type": "string" }, "status": { "title": "Status", "type": "string" } }, "required": [ "details", "id", "type", "status" ], "title": "ResponseElementsItemItem", "type": "object" }, "ResponseElementsItemItem1": { "description": "Represents a container definition in the ECS response elements.", "properties": { "image": { "title": "Image", "type": "string" }, "networkInterfaces": { "items": { "additionalProperties": true, "type": "object" }, "title": "Networkinterfaces", "type": "array" }, "memory": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Memory" }, "taskArn": { "title": "Taskarn", "type": "string" }, "name": { "title": "Name", "type": "string" }, "cpu": { "title": "Cpu", "type": "string" }, "containerArn": { "title": "Containerarn", "type": "string" }, "lastStatus": { "title": "Laststatus", "type": "string" } }, "required": [ "image", "networkInterfaces", "taskArn", "name", "cpu", "containerArn", "lastStatus" ], "title": "ResponseElementsItemItem1", "type": "object" }, "ResponseElementsItemItemItem": { "description": "Represents a detail item for an ECS response element attachment.", "properties": { "name": { "title": "Name", "type": "string" }, "value": { "title": "Value", "type": "string" } }, "required": [ "name", "value" ], "title": "ResponseElementsItemItemItem", "type": "object" } } }
- Fields:
- field tasks: list[ResponseElementsItem] | None = None
The tasks returned in the response
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.ResponseElementsItem[source]
Bases:
BaseModelRepresents a single ECS task or resource returned in the ECS API response.
Show JSON schema
{ "title": "ResponseElementsItem", "description": "Represents a single ECS task or resource returned in the ECS API response.", "type": "object", "properties": { "overrides": { "$ref": "#/$defs/Overrides1" }, "memory": { "title": "Memory", "type": "string" }, "attachments": { "items": { "$ref": "#/$defs/ResponseElementsItemItem" }, "title": "Attachments", "type": "array" }, "startedBy": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Startedby" }, "taskArn": { "title": "Taskarn", "type": "string" }, "cpu": { "title": "Cpu", "type": "string" }, "version": { "title": "Version", "type": "number" }, "tags": { "items": { "additionalProperties": true, "type": "object" }, "title": "Tags", "type": "array" }, "createdAt": { "title": "Createdat", "type": "string" }, "clusterArn": { "title": "Clusterarn", "type": "string" }, "taskDefinitionArn": { "title": "Taskdefinitionarn", "type": "string" }, "platformVersion": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Platformversion" }, "containers": { "items": { "$ref": "#/$defs/ResponseElementsItemItem1" }, "title": "Containers", "type": "array" }, "containerInstanceArn": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Containerinstancearn" }, "lastStatus": { "title": "Laststatus", "type": "string" }, "desiredStatus": { "title": "Desiredstatus", "type": "string" }, "group": { "title": "Group", "type": "string" }, "launchType": { "title": "Launchtype", "type": "string" } }, "$defs": { "Overrides1": { "description": "Represents container and inference accelerator overrides for an ECS response.", "properties": { "containerOverrides": { "items": { "$ref": "#/$defs/Overrides1Item" }, "title": "Containeroverrides", "type": "array" }, "inferenceAcceleratorOverrides": { "items": { "additionalProperties": true, "type": "object" }, "title": "Inferenceacceleratoroverrides", "type": "array" } }, "required": [ "containerOverrides", "inferenceAcceleratorOverrides" ], "title": "Overrides1", "type": "object" }, "Overrides1Item": { "description": "Represents overrides for a container in the ECS response.", "properties": { "resourceRequirements": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Resourcerequirements" }, "environment": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Environment" }, "memory": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Memory" }, "name": { "title": "Name", "type": "string" }, "cpu": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Cpu" }, "command": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Command" } }, "required": [ "name" ], "title": "Overrides1Item", "type": "object" }, "ResponseElementsItemItem": { "description": "Represents an attachment for an ECS response element.", "properties": { "details": { "items": { "$ref": "#/$defs/ResponseElementsItemItemItem" }, "title": "Details", "type": "array" }, "id": { "title": "Id", "type": "string" }, "type": { "title": "Type", "type": "string" }, "status": { "title": "Status", "type": "string" } }, "required": [ "details", "id", "type", "status" ], "title": "ResponseElementsItemItem", "type": "object" }, "ResponseElementsItemItem1": { "description": "Represents a container definition in the ECS response elements.", "properties": { "image": { "title": "Image", "type": "string" }, "networkInterfaces": { "items": { "additionalProperties": true, "type": "object" }, "title": "Networkinterfaces", "type": "array" }, "memory": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Memory" }, "taskArn": { "title": "Taskarn", "type": "string" }, "name": { "title": "Name", "type": "string" }, "cpu": { "title": "Cpu", "type": "string" }, "containerArn": { "title": "Containerarn", "type": "string" }, "lastStatus": { "title": "Laststatus", "type": "string" } }, "required": [ "image", "networkInterfaces", "taskArn", "name", "cpu", "containerArn", "lastStatus" ], "title": "ResponseElementsItemItem1", "type": "object" }, "ResponseElementsItemItemItem": { "description": "Represents a detail item for an ECS response element attachment.", "properties": { "name": { "title": "Name", "type": "string" }, "value": { "title": "Value", "type": "string" } }, "required": [ "name", "value" ], "title": "ResponseElementsItemItemItem", "type": "object" } }, "required": [ "overrides", "memory", "attachments", "taskArn", "cpu", "version", "tags", "createdAt", "clusterArn", "taskDefinitionArn", "containers", "lastStatus", "desiredStatus", "group", "launchType" ] }
- field attachments: list[ResponseElementsItemItem] [Required]
Attachments to the task
- field containerInstanceArn: str | None = None
The ARN of the container instance on which the task is running (Fargate tasks have no container instance)
- field containers: list[ResponseElementsItemItem1] [Required]
A list of container definitions
- field overrides: Overrides1 [Required]
Task overrides
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.ResponseElementsItemItem[source]
Bases:
BaseModelRepresents an attachment for an ECS response element.
Show JSON schema
{ "title": "ResponseElementsItemItem", "description": "Represents an attachment for an ECS response element.", "type": "object", "properties": { "details": { "items": { "$ref": "#/$defs/ResponseElementsItemItemItem" }, "title": "Details", "type": "array" }, "id": { "title": "Id", "type": "string" }, "type": { "title": "Type", "type": "string" }, "status": { "title": "Status", "type": "string" } }, "$defs": { "ResponseElementsItemItemItem": { "description": "Represents a detail item for an ECS response element attachment.", "properties": { "name": { "title": "Name", "type": "string" }, "value": { "title": "Value", "type": "string" } }, "required": [ "name", "value" ], "title": "ResponseElementsItemItemItem", "type": "object" } }, "required": [ "details", "id", "type", "status" ] }
- Fields:
- field details: list[ResponseElementsItemItemItem] [Required]
The details of the attachment
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.ResponseElementsItemItem1[source]
Bases:
BaseModelRepresents a container definition in the ECS response elements.
Show JSON schema
{ "title": "ResponseElementsItemItem1", "description": "Represents a container definition in the ECS response elements.", "type": "object", "properties": { "image": { "title": "Image", "type": "string" }, "networkInterfaces": { "items": { "additionalProperties": true, "type": "object" }, "title": "Networkinterfaces", "type": "array" }, "memory": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Memory" }, "taskArn": { "title": "Taskarn", "type": "string" }, "name": { "title": "Name", "type": "string" }, "cpu": { "title": "Cpu", "type": "string" }, "containerArn": { "title": "Containerarn", "type": "string" }, "lastStatus": { "title": "Laststatus", "type": "string" } }, "required": [ "image", "networkInterfaces", "taskArn", "name", "cpu", "containerArn", "lastStatus" ] }
- Fields:
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.ResponseElementsItemItemItem[source]
Bases:
BaseModelRepresents a detail item for an ECS response element attachment.
Show JSON schema
{ "title": "ResponseElementsItemItemItem", "description": "Represents a detail item for an ECS response element attachment.", "type": "object", "properties": { "name": { "title": "Name", "type": "string" }, "value": { "title": "Value", "type": "string" } }, "required": [ "name", "value" ] }
- Fields:
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.SessionContext[source]
Bases:
BaseModelRepresents the session context for a user identity.
Show JSON schema
{ "title": "SessionContext", "description": "Represents the session context for a user identity.", "type": "object", "properties": { "webIdFederationData": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "default": null, "title": "Webidfederationdata" }, "sessionIssuer": { "$ref": "#/$defs/SessionIssuer" }, "attributes": { "$ref": "#/$defs/Attributes" } }, "$defs": { "Attributes": { "description": "Represents session attributes, such as MFA status and creation date.", "properties": { "mfaAuthenticated": { "title": "Mfaauthenticated", "type": "string" }, "creationDate": { "format": "date-time", "title": "Creationdate", "type": "string" } }, "required": [ "mfaAuthenticated", "creationDate" ], "title": "Attributes", "type": "object" }, "SessionIssuer": { "description": "Represents the issuer of a session in the user identity context.", "properties": { "accountId": { "title": "Accountid", "type": "string" }, "principalId": { "title": "Principalid", "type": "string" }, "type": { "title": "Type", "type": "string" }, "arn": { "title": "Arn", "type": "string" }, "userName": { "title": "Username", "type": "string" } }, "required": [ "accountId", "principalId", "type", "arn", "userName" ], "title": "SessionIssuer", "type": "object" } }, "required": [ "sessionIssuer", "attributes" ] }
- Fields:
- field attributes: Attributes [Required]
Session attributes like MFA status
- field sessionIssuer: SessionIssuer [Required]
Information about the entity that issued the session
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.SessionIssuer[source]
Bases:
BaseModelRepresents the issuer of a session in the user identity context.
Show JSON schema
{ "title": "SessionIssuer", "description": "Represents the issuer of a session in the user identity context.", "type": "object", "properties": { "accountId": { "title": "Accountid", "type": "string" }, "principalId": { "title": "Principalid", "type": "string" }, "type": { "title": "Type", "type": "string" }, "arn": { "title": "Arn", "type": "string" }, "userName": { "title": "Username", "type": "string" } }, "required": [ "accountId", "principalId", "type", "arn", "userName" ] }
- pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.UserIdentity[source]
Bases:
BaseModelRepresents the identity of the user that initiated the ECS API call.
Show JSON schema
{ "title": "UserIdentity", "description": "Represents the identity of the user that initiated the ECS API call.", "type": "object", "properties": { "sessionContext": { "anyOf": [ { "$ref": "#/$defs/SessionContext" }, { "type": "null" } ], "default": null }, "accessKeyId": { "title": "Accesskeyid", "type": "string" }, "accountId": { "title": "Accountid", "type": "string" }, "principalId": { "title": "Principalid", "type": "string" }, "type": { "title": "Type", "type": "string" }, "arn": { "title": "Arn", "type": "string" }, "invokedBy": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Invokedby" } }, "$defs": { "Attributes": { "description": "Represents session attributes, such as MFA status and creation date.", "properties": { "mfaAuthenticated": { "title": "Mfaauthenticated", "type": "string" }, "creationDate": { "format": "date-time", "title": "Creationdate", "type": "string" } }, "required": [ "mfaAuthenticated", "creationDate" ], "title": "Attributes", "type": "object" }, "SessionContext": { "description": "Represents the session context for a user identity.", "properties": { "webIdFederationData": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "default": null, "title": "Webidfederationdata" }, "sessionIssuer": { "$ref": "#/$defs/SessionIssuer" }, "attributes": { "$ref": "#/$defs/Attributes" } }, "required": [ "sessionIssuer", "attributes" ], "title": "SessionContext", "type": "object" }, "SessionIssuer": { "description": "Represents the issuer of a session in the user identity context.", "properties": { "accountId": { "title": "Accountid", "type": "string" }, "principalId": { "title": "Principalid", "type": "string" }, "type": { "title": "Type", "type": "string" }, "arn": { "title": "Arn", "type": "string" }, "userName": { "title": "Username", "type": "string" } }, "required": [ "accountId", "principalId", "type", "arn", "userName" ], "title": "SessionIssuer", "type": "object" } }, "required": [ "accessKeyId", "accountId", "principalId", "type", "arn" ] }
- Fields:
- field sessionContext: SessionContext | None = None
The context of the session