@aws-sdk/client-auto-scaling 3.303.0 → 3.304.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,6 +76,22 @@ export interface AttachTrafficSourcesCommandOutput extends AttachTrafficSourcesR
76
76
  * <p>The service-linked role is not yet ready for use.</p>
77
77
  *
78
78
  *
79
+ * @example To attach a target group to an Auto Scaling group
80
+ * ```javascript
81
+ * // This example attaches the specified target group to the specified Auto Scaling group.
82
+ * const input = {
83
+ * "AutoScalingGroupName": "my-auto-scaling-group",
84
+ * "TrafficSources": [
85
+ * {
86
+ * "Identifier": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"
87
+ * }
88
+ * ]
89
+ * };
90
+ * const command = new AttachTrafficSourcesCommand(input);
91
+ * await client.send(command);
92
+ * // example id: to-attach-a-target-group-to-an-auto-scaling-group-1680036570089
93
+ * ```
94
+ *
79
95
  */
80
96
  export declare class AttachTrafficSourcesCommand extends $Command<AttachTrafficSourcesCommandInput, AttachTrafficSourcesCommandOutput, AutoScalingClientResolvedConfig> {
81
97
  readonly input: AttachTrafficSourcesCommandInput;
@@ -54,6 +54,29 @@ export interface DescribeTrafficSourcesCommandOutput extends DescribeTrafficSour
54
54
  * instance, or load balancer).</p>
55
55
  *
56
56
  *
57
+ * @example To describe the target groups for an Auto Scaling group
58
+ * ```javascript
59
+ * // This example describes the target groups attached to the specified Auto Scaling group.
60
+ * const input = {
61
+ * "AutoScalingGroupName": "my-auto-scaling-group"
62
+ * };
63
+ * const command = new DescribeTrafficSourcesCommand(input);
64
+ * const response = await client.send(command);
65
+ * /* response ==
66
+ * {
67
+ * "NextToken": "",
68
+ * "TrafficSources": [
69
+ * {
70
+ * "Identifier": "arn:aws:vpc-lattice:us-west-2:123456789012:targetgroup/tg-0e2f2665eEXAMPLE",
71
+ * "State": "InService",
72
+ * "Type": "vpc-lattice"
73
+ * }
74
+ * ]
75
+ * }
76
+ * *\/
77
+ * // example id: to-describe-the-target-groups-for-an-auto-scaling-group-1680040714521
78
+ * ```
79
+ *
57
80
  */
58
81
  export declare class DescribeTrafficSourcesCommand extends $Command<DescribeTrafficSourcesCommandInput, DescribeTrafficSourcesCommandOutput, AutoScalingClientResolvedConfig> {
59
82
  readonly input: DescribeTrafficSourcesCommandInput;
@@ -53,6 +53,22 @@ export interface DetachTrafficSourcesCommandOutput extends DetachTrafficSourcesR
53
53
  * instance, or load balancer).</p>
54
54
  *
55
55
  *
56
+ * @example To detach a target group from an Auto Scaling group
57
+ * ```javascript
58
+ * // This example detaches the specified target group from the specified Auto Scaling group.
59
+ * const input = {
60
+ * "AutoScalingGroupName": "my-auto-scaling-group",
61
+ * "TrafficSources": [
62
+ * {
63
+ * "Identifier": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"
64
+ * }
65
+ * ]
66
+ * };
67
+ * const command = new DetachTrafficSourcesCommand(input);
68
+ * await client.send(command);
69
+ * // example id: to-detach-a-target-group-from-an-auto-scaling-group-1680040404169
70
+ * ```
71
+ *
56
72
  */
57
73
  export declare class DetachTrafficSourcesCommand extends $Command<DetachTrafficSourcesCommandInput, DetachTrafficSourcesCommandOutput, AutoScalingClientResolvedConfig> {
58
74
  readonly input: DetachTrafficSourcesCommandInput;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-auto-scaling",
3
3
  "description": "AWS SDK for JavaScript Auto Scaling Client for Node.js, Browser and React Native",
4
- "version": "3.303.0",
4
+ "version": "3.304.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",