Skip to main content

Target

Manages a Application Auto Scaling Target.

Sample code

exports.createResources = () => [
{
type: "Target",
group: "ApplicationAutoScaling",
properties: ({}) => ({
MaxCapacity: 10,
MinCapacity: 1,
ResourceId: "table/my-table",
ScalableDimension: "dynamodb:table:ReadCapacityUnits",
ServiceNamespace: "dynamodb",
}),
dependencies: ({}) => ({
dynamoDbTable: "my-table",
}),
},
];

Properties

Dependencies

Used By

Full Examples

List

gc l -t ApplicationAutoScaling::Target
Listing resources on 1 provider: aws
✓ aws us-east-1
✓ Initialising
✓ Listing 1/1
┌───────────────────────────────────────────────────────────────────────────────┐
│ 2 ApplicationAutoScaling::Target from aws │
├───────────────────────────────────────────────────────────────────────────────┤
│ name: table/my-table::dynamodb:table:ReadCapacityUnits │
│ managedByUs: Yes │
│ live: │
│ CreationTime: 2022-11-06T01:31:32.146Z │
│ MaxCapacity: 10 │
│ MinCapacity: 1 │
│ ResourceId: table/my-table │
│ RoleARN: arn:aws:iam::840541460064:role/aws-service-role/dynamodb.applicat… │
│ ScalableDimension: dynamodb:table:ReadCapacityUnits │
│ ServiceNamespace: dynamodb │
│ SuspendedState: │
│ DynamicScalingInSuspended: false │
│ DynamicScalingOutSuspended: false │
│ ScheduledScalingSuspended: false │
│ │
├───────────────────────────────────────────────────────────────────────────────┤
│ name: table/my-table::dynamodb:table:WriteCapacityUnits │
│ managedByUs: Yes │
│ live: │
│ CreationTime: 2022-11-06T01:31:32.121Z │
│ MaxCapacity: 10 │
│ MinCapacity: 1 │
│ ResourceId: table/my-table │
│ RoleARN: arn:aws:iam::840541460064:role/aws-service-role/dynamodb.applicat… │
│ ScalableDimension: dynamodb:table:WriteCapacityUnits │
│ ServiceNamespace: dynamodb │
│ SuspendedState: │
│ DynamicScalingInSuspended: false │
│ DynamicScalingOutSuspended: false │
│ ScheduledScalingSuspended: false │
│ │
└───────────────────────────────────────────────────────────────────────────────┘


List Summary:
Provider: aws
┌──────────────────────────────────────────────────────────────────────────────┐
│ aws │
├────────────────────────────────┬─────────────────────────────────────────────┤
│ ApplicationAutoScaling::Target │ table/my-table::dynamodb:table:ReadCapacit… │
│ │ table/my-table::dynamodb:table:WriteCapaci… │
└────────────────────────────────┴─────────────────────────────────────────────┘
2 resources, 1 type, 1 provider
Command "gc l -t ApplicationAutoScaling::Target" executed in 2s, 167 MB