Skip to content

Commit

Permalink
Add missing autoscaling metric names (#3040)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailshilkov authored Nov 26, 2023
1 parent c630864 commit 97ce1a3
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 14 deletions.
21 changes: 21 additions & 0 deletions provider/cmd/pulumi-resource-aws/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -16120,6 +16120,27 @@
},
{
"value": "GroupTotalCapacity"
},
{
"value": "WarmPoolDesiredCapacity"
},
{
"value": "WarmPoolWarmedCapacity"
},
{
"value": "WarmPoolPendingCapacity"
},
{
"value": "WarmPoolTerminatingCapacity"
},
{
"value": "WarmPoolTotalCapacity"
},
{
"value": "GroupAndWarmPoolDesiredCapacity"
},
{
"value": "GroupAndWarmPoolTotalCapacity"
}
]
},
Expand Down
7 changes: 7 additions & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -4137,6 +4137,13 @@ $ pulumi import aws:networkfirewall/resourcePolicy:ResourcePolicy example arn:aw
{Value: "GroupTerminatingCapacity"},
{Value: "GroupTotalInstances"},
{Value: "GroupTotalCapacity"},
{Value: "WarmPoolDesiredCapacity"},
{Value: "WarmPoolWarmedCapacity"},
{Value: "WarmPoolPendingCapacity"},
{Value: "WarmPoolTerminatingCapacity"},
{Value: "WarmPoolTotalCapacity"},
{Value: "GroupAndWarmPoolDesiredCapacity"},
{Value: "GroupAndWarmPoolTotalCapacity"},
},
},
"aws:autoscaling/NotificationType:NotificationType": {
Expand Down
7 changes: 7 additions & 0 deletions sdk/dotnet/AutoScaling/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ private Metric(string value)
public static Metric GroupTerminatingCapacity { get; } = new Metric("GroupTerminatingCapacity");
public static Metric GroupTotalInstances { get; } = new Metric("GroupTotalInstances");
public static Metric GroupTotalCapacity { get; } = new Metric("GroupTotalCapacity");
public static Metric WarmPoolDesiredCapacity { get; } = new Metric("WarmPoolDesiredCapacity");
public static Metric WarmPoolWarmedCapacity { get; } = new Metric("WarmPoolWarmedCapacity");
public static Metric WarmPoolPendingCapacity { get; } = new Metric("WarmPoolPendingCapacity");
public static Metric WarmPoolTerminatingCapacity { get; } = new Metric("WarmPoolTerminatingCapacity");
public static Metric WarmPoolTotalCapacity { get; } = new Metric("WarmPoolTotalCapacity");
public static Metric GroupAndWarmPoolDesiredCapacity { get; } = new Metric("GroupAndWarmPoolDesiredCapacity");
public static Metric GroupAndWarmPoolTotalCapacity { get; } = new Metric("GroupAndWarmPoolTotalCapacity");

public static bool operator ==(Metric left, Metric right) => left.Equals(right);
public static bool operator !=(Metric left, Metric right) => !left.Equals(right);
Expand Down
33 changes: 20 additions & 13 deletions sdk/go/aws/autoscaling/pulumiEnums.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ public enum Metric {
GroupTerminatingInstances("GroupTerminatingInstances"),
GroupTerminatingCapacity("GroupTerminatingCapacity"),
GroupTotalInstances("GroupTotalInstances"),
GroupTotalCapacity("GroupTotalCapacity");
GroupTotalCapacity("GroupTotalCapacity"),
WarmPoolDesiredCapacity("WarmPoolDesiredCapacity"),
WarmPoolWarmedCapacity("WarmPoolWarmedCapacity"),
WarmPoolPendingCapacity("WarmPoolPendingCapacity"),
WarmPoolTerminatingCapacity("WarmPoolTerminatingCapacity"),
WarmPoolTotalCapacity("WarmPoolTotalCapacity"),
GroupAndWarmPoolDesiredCapacity("GroupAndWarmPoolDesiredCapacity"),
GroupAndWarmPoolTotalCapacity("GroupAndWarmPoolTotalCapacity");

private final String value;

Expand Down
7 changes: 7 additions & 0 deletions sdk/nodejs/types/enums/autoscaling/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ export const Metric = {
GroupTerminatingCapacity: "GroupTerminatingCapacity",
GroupTotalInstances: "GroupTotalInstances",
GroupTotalCapacity: "GroupTotalCapacity",
WarmPoolDesiredCapacity: "WarmPoolDesiredCapacity",
WarmPoolWarmedCapacity: "WarmPoolWarmedCapacity",
WarmPoolPendingCapacity: "WarmPoolPendingCapacity",
WarmPoolTerminatingCapacity: "WarmPoolTerminatingCapacity",
WarmPoolTotalCapacity: "WarmPoolTotalCapacity",
GroupAndWarmPoolDesiredCapacity: "GroupAndWarmPoolDesiredCapacity",
GroupAndWarmPoolTotalCapacity: "GroupAndWarmPoolTotalCapacity",
} as const;

/**
Expand Down
7 changes: 7 additions & 0 deletions sdk/python/pulumi_aws/autoscaling/_enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ class Metric(str, Enum):
GROUP_TERMINATING_CAPACITY = "GroupTerminatingCapacity"
GROUP_TOTAL_INSTANCES = "GroupTotalInstances"
GROUP_TOTAL_CAPACITY = "GroupTotalCapacity"
WARM_POOL_DESIRED_CAPACITY = "WarmPoolDesiredCapacity"
WARM_POOL_WARMED_CAPACITY = "WarmPoolWarmedCapacity"
WARM_POOL_PENDING_CAPACITY = "WarmPoolPendingCapacity"
WARM_POOL_TERMINATING_CAPACITY = "WarmPoolTerminatingCapacity"
WARM_POOL_TOTAL_CAPACITY = "WarmPoolTotalCapacity"
GROUP_AND_WARM_POOL_DESIRED_CAPACITY = "GroupAndWarmPoolDesiredCapacity"
GROUP_AND_WARM_POOL_TOTAL_CAPACITY = "GroupAndWarmPoolTotalCapacity"


class MetricsGranularity(str, Enum):
Expand Down

0 comments on commit 97ce1a3

Please sign in to comment.