DescribeServiceRevisions
Source:
src/AWS/ECS/DescribeServiceRevisions.ts
Runtime binding for ecs:DescribeServiceRevisions.
Bind this operation to a Service inside a function runtime to get a
callable that describes the bound service’s revisions — the immutable
task-definition + configuration snapshots that deployments roll between.
The host is granted ecs:DescribeServiceRevisions on the service’s
revisions (revision ARNs come from deployment describe/list responses).
Service Deployments
Section titled “Service Deployments”const describeServiceRevisions = yield* AWS.ECS.DescribeServiceRevisions(service);
const response = yield* describeServiceRevisions({ serviceRevisionArns: [revisionArn],});const taskDefinition = response.serviceRevisions?.[0]?.taskDefinition;