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, ECSAWSAPICallViaCloudTrailEvent

EventBridge 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 account: str [Required]

The account the event was generated in

field detail: AWSAPICallViaCloudTrail [Required]

Where the meat of the event is

field detail_type: str [Required] (alias 'detail-type')

The human readable name of the event

field id: str [Required]

The ID of the event

field region: str [Required]

The region the event was generated in

field resources: list[str] [Required]

The resources the event applies to. This will be a list of ARNs

field source: str [Required]

The source of the event, e.g. “aws.ecs”

field time: datetime [Required]

The time the event was generated, in UTC

field version: str [Required]

The version of the schema for the event

classmethod construct(_fields_set: set[str] | None = None, **values: Any) Self
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_obj(obj: Any) 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 clusters: list['Cluster']

Get the cluster name from the event.

property container_instances: list['ContainerInstance']

Get the container instance ARN from the event.

session: Any | None = FieldInfo(annotation=Union[Any, NoneType], required=False, default=None, exclude=True)
property task_definitions: list['TaskDefinition']

Get the task definition name from the event.

property tasks: list['Task']

Get the task ARN from the event.

Raw Event Models from AWS Schema

pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.AWSAPICallViaCloudTrail[source]

Bases: BaseModel

Represents 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 awsRegion: str [Required]

The name of the region in which the event occurred

field eventID: str [Required]

The ID of the event

field eventName: str [Required]

The name of the event

field eventSource: str [Required]

The source of the event

field eventTime: datetime [Required]

The time the event was created

field eventType: str [Required]

The event type

field eventVersion: str [Required]

The version of the event

field requestID: str [Required]

The request ID of the event in CloudTrail

field requestParameters: RequestParameters | None = None

The API request

field responseElements: ResponseElements | None = None

The API response

field sourceIPAddress: str [Required]

The source IP of the user that initiated the event

field userAgent: str [Required]

The UserAgent of the request

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: BaseModel

Represents 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"
   ]
}

Fields:
field creationDate: datetime [Required]

When the session was created

field mfaAuthenticated: str [Required]

Whether MFA was used for authentication

pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.AwsvpcConfiguration[source]

Bases: BaseModel

Represents 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"
      }
   }
}

Fields:
field assignPublicIp: str | None = None

Whether to assign a public IP address to the task

field subnets: list[str] | None = None

The subnets in which to launch the task

pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.ECSAWSAPICallViaCloudTrailEvent[source]

Bases: BaseModel

Represents 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 account: str [Required]

The account the event was generated in

field detail: AWSAPICallViaCloudTrail [Required]

Where the meat of the event is

field detail_type: str [Required] (alias 'detail-type')

The human readable name of the event

field id: str [Required]

The ID of the event

field region: str [Required]

The region the event was generated in

field resources: list[str] [Required]

The resources the event applies to. This will be a list of ARNs

field source: str [Required]

The source of the event, e.g. “aws.ecs”

field time: datetime [Required]

The time the event was generated, in UTC

field version: str [Required]

The version of the schema for the event

pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.NetworkConfiguration[source]

Bases: BaseModel

Represents 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"
      }
   }
}

Fields:
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: BaseModel

Represents 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"
      }
   }
}

Fields:
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: BaseModel

Represents 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

field inferenceAcceleratorOverrides: list[dict[str, Any]] [Required]

The overrides for inference accelerators

pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.Overrides1Item[source]

Bases: BaseModel

Represents 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:
field command: list[str] | None = None

The command override for the container

field cpu: float | None = None

The CPU override for the container

field environment: list[dict[str, Any]] | None = None

The environment variables for the container

field memory: float | None = None

The memory override for the container

field name: str [Required]

The name of the container to override

field resourceRequirements: list[dict[str, Any]] | None = None

The resource requirements for the container

pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.OverridesItem[source]

Bases: BaseModel

Represents 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:
field command: list[str] | None = None

The command override for the container

field cpu: float | None = None

The CPU override for the container

field environment: list[dict[str, Any]] | None = None

The environment variables for the container

field memory: float | None = None

The memory override for the container

field name: str [Required]

The name of the container to override

field resourceRequirements: list[dict[str, Any]] | None = None

The resource requirements for the container

pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.RequestParameters[source]

Bases: BaseModel

Represents 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"
      }
   }
}

Fields:
field cluster: str | None = None

The cluster on which to run the task

field containerInstance: str | None = None

The container instance on which to run the task

field containers: list[RequestParametersItem1] | None = None

The containers to include in the task

field count: float | None = None

The number of tasks to start

field enableECSManagedTags: bool | None = None

Whether to enable ECS managed tags

field executionStoppedAt: str | None = None

When task execution stopped, if applicable

field launchType: str | None = None

The launch type for the task (EC2 or FARGATE)

field networkConfiguration: NetworkConfiguration | None = None

The network configuration for the task

field overrides: Overrides | None = None

Overrides for the task

field placementConstraints: list[RequestParametersItem] | None = None

Placement constraints for the task

field pullStartedAt: str | None = None

When image pulling started, if applicable

field pullStoppedAt: str | None = None

When image pulling stopped, if applicable

field reason: str | None = None

The reason for the request

field startedBy: str | None = None

The entity that started the task

field status: str | None = None

The desired status of the task

field task: str | None = None

The task ID or ARN

field taskDefinition: str | None = None

The task definition to use

pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.RequestParametersItem[source]

Bases: BaseModel

Represents 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:
field expression: str [Required]

The expression for the placement constraint

field type: str [Required]

The type of the placement constraint

pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.RequestParametersItem1[source]

Bases: BaseModel

Represents 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:
field containerName: str [Required]

The name of the container

field exitCode: float | None = None

The exit code of the container, if it has exited

field networkBindings: list[dict[str, Any]] | None = None

The network bindings for the container

field status: str [Required]

The status of the container

pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.ResponseElements[source]

Bases: BaseModel

Represents 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 acknowledgment: str | None = None

The acknowledgment message, if any

field endpoint: str | None = None

The endpoint URL

field failures: list[dict[str, Any]] | None = None

Any failures that occurred during the API call

field tasks: list[ResponseElementsItem] | None = None

The tasks returned in the response

field telemetryEndpoint: str | None = None

The telemetry endpoint URL

pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.ResponseElementsItem[source]

Bases: BaseModel

Represents 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"
   ]
}

Fields:
field attachments: list[ResponseElementsItemItem] [Required]

Attachments to the task

field clusterArn: str [Required]

The ARN of the cluster in which the task is running

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 cpu: str [Required]

The CPU of the task

field createdAt: str [Required]

When the task was created

field desiredStatus: str [Required]

The desired status of the task

field group: str [Required]

The ECS group for the task

field lastStatus: str [Required]

The last status of the task

field launchType: str [Required]

The launch type of the task (e.g., EC2, FARGATE)

field memory: str [Required]

The task memory

field overrides: Overrides1 [Required]

Task overrides

field platformVersion: str | None = None

The platform version (FARGATE only)

field startedBy: str | None = None

The ARN of the role or user that submitted the request

field tags: list[dict[str, Any]] [Required]

The tags associated with the task

field taskArn: str [Required]

The ARN of the task

field taskDefinitionArn: str [Required]

The ARN of the task definition for the task

field version: float [Required]

The version number of the task

pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.ResponseElementsItemItem[source]

Bases: BaseModel

Represents 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

field id: str [Required]

The ID of the attachment

field status: str [Required]

The status of the attachment

field type: str [Required]

The type of the attachment

pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.ResponseElementsItemItem1[source]

Bases: BaseModel

Represents 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:
field containerArn: str [Required]

The ARN of the container

field cpu: str [Required]

The CPU units allocated to the container

field image: str [Required]

The Docker image used by the container

field lastStatus: str [Required]

The current status of the container

field memory: str | None = None

The memory allocated to the container

field name: str [Required]

The name of the container

field networkInterfaces: list[dict[str, Any]] [Required]

The network interfaces attached to the container

field taskArn: str [Required]

The ARN of the task this container belongs to

pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.ResponseElementsItemItemItem[source]

Bases: BaseModel

Represents 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:
field name: str [Required]

The name of the detail

field value: str [Required]

The value of the detail

pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.SessionContext[source]

Bases: BaseModel

Represents 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

field webIdFederationData: dict[str, Any] | None = None

Web identity federation data, if applicable

pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.SessionIssuer[source]

Bases: BaseModel

Represents 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"
   ]
}

Fields:
field accountId: str [Required]

The account ID of the session issuer

field arn: str [Required]

The ARN of the session issuer

field principalId: str [Required]

The principal ID of the session issuer

field type: str [Required]

The type of the session issuer

field userName: str [Required]

The username of the session issuer

pydantic model botocraft.eventbridge.raw.ecs.aws_api_call_via_cloudtrail.UserIdentity[source]

Bases: BaseModel

Represents 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 accessKeyId: str [Required]

The access key ID used for the request

field accountId: str [Required]

The AWS account ID of the user

field arn: str [Required]

The ARN of the identity

field invokedBy: str | None = None

The AWS service that invoked the API call, if applicable

field principalId: str [Required]

The principal ID of the user

field sessionContext: SessionContext | None = None

The context of the session

field type: str [Required]

The type of the identity