@aws-sdk/client-ecs 3.1152.0 → 3.1154.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.
Files changed (93) hide show
  1. package/README.md +77 -0
  2. package/dist-cjs/index.js +737 -38
  3. package/dist-es/ECS.js +28 -0
  4. package/dist-es/commands/AssociateGatewayWithClusterCommand.js +4 -0
  5. package/dist-es/commands/CreateGatewayCommand.js +4 -0
  6. package/dist-es/commands/DeleteGatewayCommand.js +4 -0
  7. package/dist-es/commands/DescribeGatewayCommand.js +4 -0
  8. package/dist-es/commands/DescribeGatewayResourcesCommand.js +4 -0
  9. package/dist-es/commands/DescribeGatewayRouteCommand.js +4 -0
  10. package/dist-es/commands/DisassociateGatewayFromClusterCommand.js +4 -0
  11. package/dist-es/commands/ListGatewayClusterAssociationsCommand.js +4 -0
  12. package/dist-es/commands/ListGatewayRoutesCommand.js +4 -0
  13. package/dist-es/commands/ListGatewaysCommand.js +4 -0
  14. package/dist-es/commands/UpdateGatewayCommand.js +4 -0
  15. package/dist-es/commands/index.js +11 -0
  16. package/dist-es/models/enums.js +51 -0
  17. package/dist-es/models/errors.js +26 -13
  18. package/dist-es/pagination/ListGatewayClusterAssociationsPaginator.js +4 -0
  19. package/dist-es/pagination/ListGatewayRoutesPaginator.js +4 -0
  20. package/dist-es/pagination/ListGatewaysPaginator.js +4 -0
  21. package/dist-es/pagination/index.js +3 -0
  22. package/dist-es/schemas/schemas_0.js +518 -25
  23. package/dist-types/ECS.d.ts +101 -0
  24. package/dist-types/ECSClient.d.ts +13 -2
  25. package/dist-types/commands/AssociateGatewayWithClusterCommand.d.ts +113 -0
  26. package/dist-types/commands/CreateGatewayCommand.d.ts +172 -0
  27. package/dist-types/commands/CreateServiceCommand.d.ts +34 -1
  28. package/dist-types/commands/DeleteExpressGatewayServiceCommand.d.ts +1 -1
  29. package/dist-types/commands/DeleteGatewayCommand.d.ts +108 -0
  30. package/dist-types/commands/DeleteServiceCommand.d.ts +6 -1
  31. package/dist-types/commands/DescribeExpressGatewayServiceCommand.d.ts +1 -1
  32. package/dist-types/commands/DescribeGatewayCommand.d.ts +200 -0
  33. package/dist-types/commands/DescribeGatewayResourcesCommand.d.ts +135 -0
  34. package/dist-types/commands/DescribeGatewayRouteCommand.d.ts +160 -0
  35. package/dist-types/commands/DescribeServiceRevisionsCommand.d.ts +53 -2
  36. package/dist-types/commands/DescribeServicesCommand.d.ts +6 -1
  37. package/dist-types/commands/DisassociateGatewayFromClusterCommand.d.ts +116 -0
  38. package/dist-types/commands/ListGatewayClusterAssociationsCommand.d.ts +125 -0
  39. package/dist-types/commands/ListGatewayRoutesCommand.d.ts +132 -0
  40. package/dist-types/commands/ListGatewaysCommand.d.ts +131 -0
  41. package/dist-types/commands/ListServiceDeploymentsCommand.d.ts +1 -1
  42. package/dist-types/commands/ListServicesCommand.d.ts +1 -1
  43. package/dist-types/commands/StopServiceDeploymentCommand.d.ts +1 -1
  44. package/dist-types/commands/UpdateExpressGatewayServiceCommand.d.ts +1 -1
  45. package/dist-types/commands/UpdateGatewayCommand.d.ts +143 -0
  46. package/dist-types/commands/UpdateServiceCommand.d.ts +34 -1
  47. package/dist-types/commands/UpdateServicePrimaryTaskSetCommand.d.ts +1 -1
  48. package/dist-types/commands/index.d.ts +11 -0
  49. package/dist-types/models/enums.d.ts +221 -0
  50. package/dist-types/models/errors.d.ts +25 -12
  51. package/dist-types/models/models_0.d.ts +1245 -1800
  52. package/dist-types/models/models_1.d.ts +2007 -2
  53. package/dist-types/pagination/ListGatewayClusterAssociationsPaginator.d.ts +7 -0
  54. package/dist-types/pagination/ListGatewayRoutesPaginator.d.ts +7 -0
  55. package/dist-types/pagination/ListGatewaysPaginator.d.ts +7 -0
  56. package/dist-types/pagination/index.d.ts +3 -0
  57. package/dist-types/schemas/schemas_0.d.ts +69 -1
  58. package/dist-types/ts3.4/ECS.d.ts +211 -0
  59. package/dist-types/ts3.4/ECSClient.d.ts +66 -0
  60. package/dist-types/ts3.4/commands/AssociateGatewayWithClusterCommand.d.ts +42 -0
  61. package/dist-types/ts3.4/commands/CreateGatewayCommand.d.ts +38 -0
  62. package/dist-types/ts3.4/commands/CreateServiceCommand.d.ts +1 -1
  63. package/dist-types/ts3.4/commands/DeleteExpressGatewayServiceCommand.d.ts +1 -1
  64. package/dist-types/ts3.4/commands/DeleteGatewayCommand.d.ts +38 -0
  65. package/dist-types/ts3.4/commands/DeleteServiceCommand.d.ts +1 -1
  66. package/dist-types/ts3.4/commands/DescribeExpressGatewayServiceCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/DescribeGatewayCommand.d.ts +38 -0
  68. package/dist-types/ts3.4/commands/DescribeGatewayResourcesCommand.d.ts +42 -0
  69. package/dist-types/ts3.4/commands/DescribeGatewayRouteCommand.d.ts +39 -0
  70. package/dist-types/ts3.4/commands/DescribeServiceRevisionsCommand.d.ts +4 -2
  71. package/dist-types/ts3.4/commands/DescribeServicesCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/DisassociateGatewayFromClusterCommand.d.ts +42 -0
  73. package/dist-types/ts3.4/commands/ListGatewayClusterAssociationsCommand.d.ts +42 -0
  74. package/dist-types/ts3.4/commands/ListGatewayRoutesCommand.d.ts +39 -0
  75. package/dist-types/ts3.4/commands/ListGatewaysCommand.d.ts +38 -0
  76. package/dist-types/ts3.4/commands/ListServiceDeploymentsCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/ListServicesCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/StopServiceDeploymentCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/UpdateExpressGatewayServiceCommand.d.ts +1 -1
  80. package/dist-types/ts3.4/commands/UpdateGatewayCommand.d.ts +38 -0
  81. package/dist-types/ts3.4/commands/UpdateServiceCommand.d.ts +1 -1
  82. package/dist-types/ts3.4/commands/UpdateServicePrimaryTaskSetCommand.d.ts +1 -1
  83. package/dist-types/ts3.4/commands/index.d.ts +11 -0
  84. package/dist-types/ts3.4/models/enums.d.ts +66 -0
  85. package/dist-types/ts3.4/models/errors.d.ts +12 -6
  86. package/dist-types/ts3.4/models/models_0.d.ts +385 -430
  87. package/dist-types/ts3.4/models/models_1.d.ts +488 -13
  88. package/dist-types/ts3.4/pagination/ListGatewayClusterAssociationsPaginator.d.ts +11 -0
  89. package/dist-types/ts3.4/pagination/ListGatewayRoutesPaginator.d.ts +11 -0
  90. package/dist-types/ts3.4/pagination/ListGatewaysPaginator.d.ts +11 -0
  91. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  92. package/dist-types/ts3.4/schemas/schemas_0.d.ts +74 -1
  93. package/package.json +4 -4
@@ -0,0 +1,160 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { DescribeGatewayRouteRequest, DescribeGatewayRouteResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link DescribeGatewayRouteCommand}.
11
+ */
12
+ export interface DescribeGatewayRouteCommandInput extends DescribeGatewayRouteRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link DescribeGatewayRouteCommand}.
18
+ */
19
+ export interface DescribeGatewayRouteCommandOutput extends DescribeGatewayRouteResponse, __MetadataBearer {
20
+ }
21
+ declare const DescribeGatewayRouteCommand_base: {
22
+ new (input: DescribeGatewayRouteCommandInput): import("@smithy/core/client").CommandImpl<DescribeGatewayRouteCommandInput, DescribeGatewayRouteCommandOutput, import("..").ECSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DescribeGatewayRouteCommandInput): import("@smithy/core/client").CommandImpl<DescribeGatewayRouteCommandInput, DescribeGatewayRouteCommandOutput, import("..").ECSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Describes a gateway route, including its status, the service it routes traffic to, and the service-specific infrastructure, such as target groups and listener rules, that the gateway manages for it.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { ECSClient, DescribeGatewayRouteCommand } from "@aws-sdk/client-ecs"; // ES Modules import
32
+ * // const { ECSClient, DescribeGatewayRouteCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
33
+ * // import type { ECSClientConfig } from "@aws-sdk/client-ecs";
34
+ * const config = {}; // type is ECSClientConfig
35
+ * const client = new ECSClient(config);
36
+ * const input = { // DescribeGatewayRouteRequest
37
+ * gatewayRouteArn: "STRING_VALUE", // required
38
+ * };
39
+ * const command = new DescribeGatewayRouteCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // DescribeGatewayRouteResponse
42
+ * // gatewayRoute: { // GatewayRoute
43
+ * // gatewayRouteArn: "STRING_VALUE",
44
+ * // serviceArn: "STRING_VALUE",
45
+ * // serviceContainerPortName: "STRING_VALUE",
46
+ * // status: "ACTIVE" || "CREATE_IN_PROGRESS" || "CREATE_FAILED" || "UPDATE_IN_PROGRESS" || "UPDATE_FAILED" || "DELETE_IN_PROGRESS" || "DELETE_FAILED",
47
+ * // serviceUrl: "STRING_VALUE",
48
+ * // resources: { // GatewayRouteResources Union: only one key present
49
+ * // hostSharedAlb: [ // GatewayRouteAlbResourcesList
50
+ * // { // GatewayRouteAlbResources
51
+ * // acmCertificateArn: "STRING_VALUE",
52
+ * // loadBalancerArn: "STRING_VALUE",
53
+ * // listenerArn: "STRING_VALUE",
54
+ * // listenerRuleArn: "STRING_VALUE",
55
+ * // testListenerRuleArns: [ // StringList
56
+ * // "STRING_VALUE",
57
+ * // ],
58
+ * // loadBalancerSecurityGroups: [ // GatewayRouteLoadBalancerSecurityGroupList
59
+ * // { // GatewayRouteLoadBalancerSecurityGroup
60
+ * // arn: "STRING_VALUE",
61
+ * // ruleArns: [
62
+ * // "STRING_VALUE",
63
+ * // ],
64
+ * // },
65
+ * // ],
66
+ * // serviceSecurityGroupArn: "STRING_VALUE",
67
+ * // },
68
+ * // ],
69
+ * // },
70
+ * // },
71
+ * // };
72
+ *
73
+ * ```
74
+ *
75
+ * @param DescribeGatewayRouteCommandInput - {@link DescribeGatewayRouteCommandInput}
76
+ * @returns {@link DescribeGatewayRouteCommandOutput}
77
+ * @see {@link DescribeGatewayRouteCommandInput} for command's `input` shape.
78
+ * @see {@link DescribeGatewayRouteCommandOutput} for command's `response` shape.
79
+ * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
80
+ *
81
+ * @throws {@link AccessDeniedException} (client fault)
82
+ * <p>You don't have authorization to perform the requested action.</p>
83
+ *
84
+ * @throws {@link ClientException} (client fault)
85
+ * <p>These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.</p>
86
+ *
87
+ * @throws {@link InvalidParameterException} (client fault)
88
+ * <p>The specified parameter isn't valid. Review the available parameters for the API request.</p> <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>. </p>
89
+ *
90
+ * @throws {@link ResourceNotFoundException} (client fault)
91
+ * <p>The specified resource wasn't found.</p>
92
+ *
93
+ * @throws {@link ServerException} (server fault)
94
+ * <p>These errors are usually caused by a server issue.</p>
95
+ *
96
+ * @throws {@link UnsupportedFeatureException} (client fault)
97
+ * <p>The specified task isn't supported in this Region.</p>
98
+ *
99
+ * @throws {@link ECSServiceException}
100
+ * <p>Base exception class for all service exceptions from ECS service.</p>
101
+ *
102
+ *
103
+ * @example To describe a gateway route
104
+ * ```javascript
105
+ * // This example describes the specified gateway route, including the service URL and the load balancer resources that the gateway manages for the route.
106
+ * const input = {
107
+ * gatewayRouteArn: "arn:aws:ecs:us-east-1:123456789012:gateway-route/my-gateway/a1b2c3d4e5f6478890abcdef12345678/f0e1d2c3b4a5968778695a4b3c2d1e0f"
108
+ * };
109
+ * const command = new DescribeGatewayRouteCommand(input);
110
+ * const response = await client.send(command);
111
+ * /* response is
112
+ * {
113
+ * gatewayRoute: {
114
+ * gatewayRouteArn: "arn:aws:ecs:us-east-1:123456789012:gateway-route/my-gateway/a1b2c3d4e5f6478890abcdef12345678/f0e1d2c3b4a5968778695a4b3c2d1e0f",
115
+ * resources: {
116
+ * hostSharedAlb: [
117
+ * {
118
+ * acmCertificateArn: "arn:aws:acm:us-east-1:123456789012:certificate/12345678-90ab-cdef-1234-567890abcdef",
119
+ * listenerArn: "arn:aws:elasticloadbalancing:us-east-1:123456789012:listener/app/ecs-gateway-alb-1/50dc6c495c0c9188/f2f7dc8efc522ab2",
120
+ * listenerRuleArn: "arn:aws:elasticloadbalancing:us-east-1:123456789012:listener-rule/app/ecs-gateway-alb-1/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee",
121
+ * loadBalancerArn: "arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/app/ecs-gateway-alb-1/50dc6c495c0c9188",
122
+ * loadBalancerSecurityGroups: [
123
+ * {
124
+ * arn: "arn:aws:ec2:us-east-1:123456789012:security-group/sg-0123456789abcdef0",
125
+ * ruleArns: [
126
+ * "arn:aws:ec2:us-east-1:123456789012:security-group-rule/sgr-0123456789abcdef0"
127
+ * ]
128
+ * }
129
+ * ],
130
+ * serviceSecurityGroupArn: "arn:aws:ec2:us-east-1:123456789012:security-group/sg-0fedcba9876543210",
131
+ * testListenerRuleArns: [
132
+ * "arn:aws:elasticloadbalancing:us-east-1:123456789012:listener-rule/app/ecs-gateway-alb-1/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cc1d2"
133
+ * ]
134
+ * }
135
+ * ]
136
+ * },
137
+ * serviceArn: "arn:aws:ecs:us-east-1:123456789012:service/my-cluster/my-web-service",
138
+ * serviceContainerPortName: "web",
139
+ * serviceUrl: "https://my-web-service.example.com",
140
+ * status: "ACTIVE"
141
+ * }
142
+ * }
143
+ * *\/
144
+ * ```
145
+ *
146
+ * @public
147
+ */
148
+ export declare class DescribeGatewayRouteCommand extends DescribeGatewayRouteCommand_base {
149
+ /** @internal type navigation helper, not in runtime. */
150
+ protected static __types: {
151
+ api: {
152
+ input: DescribeGatewayRouteRequest;
153
+ output: DescribeGatewayRouteResponse;
154
+ };
155
+ sdk: {
156
+ input: DescribeGatewayRouteCommandInput;
157
+ output: DescribeGatewayRouteCommandOutput;
158
+ };
159
+ };
160
+ }
@@ -1,6 +1,5 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { DescribeServiceRevisionsRequest } from "../models/models_0";
3
- import type { DescribeServiceRevisionsResponse } from "../models/models_1";
2
+ import type { DescribeServiceRevisionsRequest, DescribeServiceRevisionsResponse } from "../models/models_1";
4
3
  /**
5
4
  * @public
6
5
  */
@@ -150,6 +149,11 @@ declare const DescribeServiceRevisionsCommand_base: {
150
149
  * // format: "TEXT" || "JSON", // required
151
150
  * // includeQueryParameters: "DISABLED" || "ENABLED",
152
151
  * // },
152
+ * // containerConfigurations: [ // ServiceConnectContainerConfigurations
153
+ * // { // ServiceConnectContainerConfiguration Union: only one key present
154
+ * // logLevel: "debug" || "info",
155
+ * // },
156
+ * // ],
153
157
  * // },
154
158
  * // volumeConfigurations: [ // ServiceVolumeConfigurations
155
159
  * // { // ServiceVolumeConfiguration
@@ -314,12 +318,59 @@ declare const DescribeServiceRevisionsCommand_base: {
314
318
  * // logGroupName: "STRING_VALUE", // required
315
319
  * // },
316
320
  * // ],
321
+ * // gatewayConnections: [ // GatewayConnectionList
322
+ * // { // GatewayConnection
323
+ * // gatewayArn: "STRING_VALUE",
324
+ * // gatewayRouteArn: "STRING_VALUE",
325
+ * // portName: "STRING_VALUE",
326
+ * // serviceUrl: "STRING_VALUE",
327
+ * // accessType: "PUBLIC" || "PRIVATE",
328
+ * // status: "ACTIVE" || "CREATE_IN_PROGRESS" || "CREATE_FAILED" || "UPDATE_IN_PROGRESS" || "UPDATE_FAILED" || "DELETE_IN_PROGRESS" || "DELETE_FAILED",
329
+ * // resources: { // GatewayConnectionResources Union: only one key present
330
+ * // hostSharedAlb: [ // GatewayConnectionAlbResourcesList
331
+ * // { // GatewayConnectionAlbResources
332
+ * // acmCertificateArn: "STRING_VALUE",
333
+ * // loadBalancerArn: "STRING_VALUE",
334
+ * // loadBalancerSecurityGroupArns: "<StringList>",
335
+ * // listenerArn: "STRING_VALUE",
336
+ * // listenerRuleArn: "STRING_VALUE",
337
+ * // testListenerRuleArn: "STRING_VALUE",
338
+ * // targetGroupArn: "STRING_VALUE",
339
+ * // alternateTargetGroupArn: "STRING_VALUE",
340
+ * // },
341
+ * // ],
342
+ * // },
343
+ * // },
344
+ * // ],
317
345
  * // },
318
346
  * // overrides: { // ServiceRevisionOverrides
319
347
  * // runtimePlatform: { // RuntimePlatformOverride
320
348
  * // cpuArchitecture: "STRING_VALUE",
321
349
  * // },
322
350
  * // },
351
+ * // gatewayConnectors: [ // GatewayConnectorList
352
+ * // { // GatewayConnector
353
+ * // portName: "STRING_VALUE", // required
354
+ * // healthCheck: { // GatewayConnectorHealthCheck
355
+ * // healthCheckProtocol: "HTTP" || "HTTPS",
356
+ * // healthCheckPort: Number("int"),
357
+ * // healthCheckPath: "STRING_VALUE",
358
+ * // healthCheckTimeoutSeconds: Number("int"),
359
+ * // healthCheckIntervalSeconds: Number("int"),
360
+ * // healthyThresholdCount: Number("int"),
361
+ * // unhealthyThresholdCount: Number("int"),
362
+ * // matcher: { // GatewayConnectorHealthCheckMatcher
363
+ * // httpCode: "STRING_VALUE",
364
+ * // grpcCode: "STRING_VALUE",
365
+ * // },
366
+ * // },
367
+ * // filters: { // GatewayConnectorFilters
368
+ * // accessTypes: [ // AccessTypeList
369
+ * // "PUBLIC" || "PRIVATE",
370
+ * // ],
371
+ * // },
372
+ * // },
373
+ * // ],
323
374
  * // monitoring: { // MonitoringConfiguration
324
375
  * // metricConfigurations: [ // MetricConfigurationList
325
376
  * // { // MetricConfiguration
@@ -1,5 +1,5 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { DescribeServicesRequest, DescribeServicesResponse } from "../models/models_0";
2
+ import type { DescribeServicesRequest, DescribeServicesResponse } from "../models/models_1";
3
3
  /**
4
4
  * @public
5
5
  */
@@ -297,6 +297,11 @@ declare const DescribeServicesCommand_base: {
297
297
  * // format: "TEXT" || "JSON", // required
298
298
  * // includeQueryParameters: "DISABLED" || "ENABLED",
299
299
  * // },
300
+ * // containerConfigurations: [ // ServiceConnectContainerConfigurations
301
+ * // { // ServiceConnectContainerConfiguration Union: only one key present
302
+ * // logLevel: "debug" || "info",
303
+ * // },
304
+ * // ],
300
305
  * // },
301
306
  * // serviceConnectResources: [ // ServiceConnectServiceResourceList
302
307
  * // { // ServiceConnectServiceResource
@@ -0,0 +1,116 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { DisassociateGatewayFromClusterRequest, DisassociateGatewayFromClusterResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link DisassociateGatewayFromClusterCommand}.
11
+ */
12
+ export interface DisassociateGatewayFromClusterCommandInput extends DisassociateGatewayFromClusterRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link DisassociateGatewayFromClusterCommand}.
18
+ */
19
+ export interface DisassociateGatewayFromClusterCommandOutput extends DisassociateGatewayFromClusterResponse, __MetadataBearer {
20
+ }
21
+ declare const DisassociateGatewayFromClusterCommand_base: {
22
+ new (input: DisassociateGatewayFromClusterCommandInput): import("@smithy/core/client").CommandImpl<DisassociateGatewayFromClusterCommandInput, DisassociateGatewayFromClusterCommandOutput, import("..").ECSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DisassociateGatewayFromClusterCommandInput): import("@smithy/core/client").CommandImpl<DisassociateGatewayFromClusterCommandInput, DisassociateGatewayFromClusterCommandOutput, import("..").ECSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Removes the association between a gateway and an Amazon ECS cluster. The association remains in the <code>DISASSOCIATING</code> state until you remove all of the gateway routes for the cluster by updating the associated services. You can use <code>ListGatewayRoutes</code> with a cluster filter to determine which routes are preventing disassociation. No infrastructure changes are made until the affected services are updated.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { ECSClient, DisassociateGatewayFromClusterCommand } from "@aws-sdk/client-ecs"; // ES Modules import
32
+ * // const { ECSClient, DisassociateGatewayFromClusterCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
33
+ * // import type { ECSClientConfig } from "@aws-sdk/client-ecs";
34
+ * const config = {}; // type is ECSClientConfig
35
+ * const client = new ECSClient(config);
36
+ * const input = { // DisassociateGatewayFromClusterRequest
37
+ * gateway: "STRING_VALUE", // required
38
+ * cluster: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new DisassociateGatewayFromClusterCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // DisassociateGatewayFromClusterResponse
43
+ * // gatewayArn: "STRING_VALUE",
44
+ * // clusterArn: "STRING_VALUE",
45
+ * // status: "ACTIVE" || "DISASSOCIATING" || "INACTIVE",
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param DisassociateGatewayFromClusterCommandInput - {@link DisassociateGatewayFromClusterCommandInput}
51
+ * @returns {@link DisassociateGatewayFromClusterCommandOutput}
52
+ * @see {@link DisassociateGatewayFromClusterCommandInput} for command's `input` shape.
53
+ * @see {@link DisassociateGatewayFromClusterCommandOutput} for command's `response` shape.
54
+ * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>You don't have authorization to perform the requested action.</p>
58
+ *
59
+ * @throws {@link ClientException} (client fault)
60
+ * <p>These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.</p>
61
+ *
62
+ * @throws {@link ClusterNotFoundException} (client fault)
63
+ * <p>The specified cluster wasn't found. You can view your available clusters with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListClusters.html">ListClusters</a>. Amazon ECS clusters are Region specific.</p>
64
+ *
65
+ * @throws {@link GatewayNotFoundException} (client fault)
66
+ * <p>The specified gateway wasn't found. Check that the gateway name or ARN is correct and that the gateway exists in your account and Region.</p>
67
+ *
68
+ * @throws {@link InvalidParameterException} (client fault)
69
+ * <p>The specified parameter isn't valid. Review the available parameters for the API request.</p> <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>. </p>
70
+ *
71
+ * @throws {@link ResourceNotFoundException} (client fault)
72
+ * <p>The specified resource wasn't found.</p>
73
+ *
74
+ * @throws {@link ServerException} (server fault)
75
+ * <p>These errors are usually caused by a server issue.</p>
76
+ *
77
+ * @throws {@link UnsupportedFeatureException} (client fault)
78
+ * <p>The specified task isn't supported in this Region.</p>
79
+ *
80
+ * @throws {@link ECSServiceException}
81
+ * <p>Base exception class for all service exceptions from ECS service.</p>
82
+ *
83
+ *
84
+ * @example To disassociate a gateway from a cluster
85
+ * ```javascript
86
+ * // This example removes the association between the gateway named my-gateway and the cluster named my-cluster. The association remains in the DISASSOCIATING state until all gateway routes for the cluster are removed.
87
+ * const input = {
88
+ * cluster: "my-cluster",
89
+ * gateway: "my-gateway"
90
+ * };
91
+ * const command = new DisassociateGatewayFromClusterCommand(input);
92
+ * const response = await client.send(command);
93
+ * /* response is
94
+ * {
95
+ * clusterArn: "arn:aws:ecs:us-east-1:123456789012:cluster/my-cluster",
96
+ * gatewayArn: "arn:aws:ecs:us-east-1:123456789012:gateway/my-gateway/a1b2c3d4e5f6478890abcdef12345678",
97
+ * status: "DISASSOCIATING"
98
+ * }
99
+ * *\/
100
+ * ```
101
+ *
102
+ * @public
103
+ */
104
+ export declare class DisassociateGatewayFromClusterCommand extends DisassociateGatewayFromClusterCommand_base {
105
+ /** @internal type navigation helper, not in runtime. */
106
+ protected static __types: {
107
+ api: {
108
+ input: DisassociateGatewayFromClusterRequest;
109
+ output: DisassociateGatewayFromClusterResponse;
110
+ };
111
+ sdk: {
112
+ input: DisassociateGatewayFromClusterCommandInput;
113
+ output: DisassociateGatewayFromClusterCommandOutput;
114
+ };
115
+ };
116
+ }
@@ -0,0 +1,125 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListGatewayClusterAssociationsRequest, ListGatewayClusterAssociationsResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListGatewayClusterAssociationsCommand}.
11
+ */
12
+ export interface ListGatewayClusterAssociationsCommandInput extends ListGatewayClusterAssociationsRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListGatewayClusterAssociationsCommand}.
18
+ */
19
+ export interface ListGatewayClusterAssociationsCommandOutput extends ListGatewayClusterAssociationsResponse, __MetadataBearer {
20
+ }
21
+ declare const ListGatewayClusterAssociationsCommand_base: {
22
+ new (input: ListGatewayClusterAssociationsCommandInput): import("@smithy/core/client").CommandImpl<ListGatewayClusterAssociationsCommandInput, ListGatewayClusterAssociationsCommandOutput, import("..").ECSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [ListGatewayClusterAssociationsCommandInput]): import("@smithy/core/client").CommandImpl<ListGatewayClusterAssociationsCommandInput, ListGatewayClusterAssociationsCommandOutput, import("..").ECSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Returns a list of the associations between gateways and clusters. You can filter the results by gateway, cluster, and status. The results are paginated. We recommend that you use pagination to ensure that the operation returns quickly and successfully.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { ECSClient, ListGatewayClusterAssociationsCommand } from "@aws-sdk/client-ecs"; // ES Modules import
32
+ * // const { ECSClient, ListGatewayClusterAssociationsCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
33
+ * // import type { ECSClientConfig } from "@aws-sdk/client-ecs";
34
+ * const config = {}; // type is ECSClientConfig
35
+ * const client = new ECSClient(config);
36
+ * const input = { // ListGatewayClusterAssociationsRequest
37
+ * gateway: "STRING_VALUE",
38
+ * cluster: "STRING_VALUE",
39
+ * status: [ // GatewayClusterAssociationStatusList
40
+ * "ACTIVE" || "DISASSOCIATING" || "INACTIVE",
41
+ * ],
42
+ * maxResults: Number("int"),
43
+ * nextToken: "STRING_VALUE",
44
+ * };
45
+ * const command = new ListGatewayClusterAssociationsCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // ListGatewayClusterAssociationsResponse
48
+ * // gatewayClusterAssociations: [ // GatewayClusterAssociationSummaryList
49
+ * // { // GatewayClusterAssociationSummary
50
+ * // gatewayArn: "STRING_VALUE",
51
+ * // clusterArn: "STRING_VALUE",
52
+ * // status: "ACTIVE" || "DISASSOCIATING" || "INACTIVE",
53
+ * // },
54
+ * // ],
55
+ * // nextToken: "STRING_VALUE",
56
+ * // };
57
+ *
58
+ * ```
59
+ *
60
+ * @param ListGatewayClusterAssociationsCommandInput - {@link ListGatewayClusterAssociationsCommandInput}
61
+ * @returns {@link ListGatewayClusterAssociationsCommandOutput}
62
+ * @see {@link ListGatewayClusterAssociationsCommandInput} for command's `input` shape.
63
+ * @see {@link ListGatewayClusterAssociationsCommandOutput} for command's `response` shape.
64
+ * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
65
+ *
66
+ * @throws {@link AccessDeniedException} (client fault)
67
+ * <p>You don't have authorization to perform the requested action.</p>
68
+ *
69
+ * @throws {@link ClientException} (client fault)
70
+ * <p>These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.</p>
71
+ *
72
+ * @throws {@link InvalidParameterException} (client fault)
73
+ * <p>The specified parameter isn't valid. Review the available parameters for the API request.</p> <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>. </p>
74
+ *
75
+ * @throws {@link ServerException} (server fault)
76
+ * <p>These errors are usually caused by a server issue.</p>
77
+ *
78
+ * @throws {@link UnsupportedFeatureException} (client fault)
79
+ * <p>The specified task isn't supported in this Region.</p>
80
+ *
81
+ * @throws {@link ECSServiceException}
82
+ * <p>Base exception class for all service exceptions from ECS service.</p>
83
+ *
84
+ *
85
+ * @example To list the clusters associated with a gateway
86
+ * ```javascript
87
+ * // This example lists the clusters that are associated with the gateway named my-gateway.
88
+ * const input = {
89
+ * gateway: "my-gateway"
90
+ * };
91
+ * const command = new ListGatewayClusterAssociationsCommand(input);
92
+ * const response = await client.send(command);
93
+ * /* response is
94
+ * {
95
+ * gatewayClusterAssociations: [
96
+ * {
97
+ * clusterArn: "arn:aws:ecs:us-east-1:123456789012:cluster/my-cluster",
98
+ * gatewayArn: "arn:aws:ecs:us-east-1:123456789012:gateway/my-gateway/a1b2c3d4e5f6478890abcdef12345678",
99
+ * status: "ACTIVE"
100
+ * },
101
+ * {
102
+ * clusterArn: "arn:aws:ecs:us-east-1:123456789012:cluster/my-staging-cluster",
103
+ * gatewayArn: "arn:aws:ecs:us-east-1:123456789012:gateway/my-gateway/a1b2c3d4e5f6478890abcdef12345678",
104
+ * status: "ACTIVE"
105
+ * }
106
+ * ]
107
+ * }
108
+ * *\/
109
+ * ```
110
+ *
111
+ * @public
112
+ */
113
+ export declare class ListGatewayClusterAssociationsCommand extends ListGatewayClusterAssociationsCommand_base {
114
+ /** @internal type navigation helper, not in runtime. */
115
+ protected static __types: {
116
+ api: {
117
+ input: ListGatewayClusterAssociationsRequest;
118
+ output: ListGatewayClusterAssociationsResponse;
119
+ };
120
+ sdk: {
121
+ input: ListGatewayClusterAssociationsCommandInput;
122
+ output: ListGatewayClusterAssociationsCommandOutput;
123
+ };
124
+ };
125
+ }
@@ -0,0 +1,132 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListGatewayRoutesRequest, ListGatewayRoutesResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListGatewayRoutesCommand}.
11
+ */
12
+ export interface ListGatewayRoutesCommandInput extends ListGatewayRoutesRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListGatewayRoutesCommand}.
18
+ */
19
+ export interface ListGatewayRoutesCommandOutput extends ListGatewayRoutesResponse, __MetadataBearer {
20
+ }
21
+ declare const ListGatewayRoutesCommand_base: {
22
+ new (input: ListGatewayRoutesCommandInput): import("@smithy/core/client").CommandImpl<ListGatewayRoutesCommandInput, ListGatewayRoutesCommandOutput, import("..").ECSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [ListGatewayRoutesCommandInput]): import("@smithy/core/client").CommandImpl<ListGatewayRoutesCommandInput, ListGatewayRoutesCommandOutput, import("..").ECSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Returns a list of gateway routes. A gateway route represents the association between a service and a gateway and the service-specific infrastructure the gateway manages for it. You can filter the results by gateway, cluster, service, container port name, and status. The results are paginated. We recommend that you use pagination to ensure that the operation returns quickly and successfully.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { ECSClient, ListGatewayRoutesCommand } from "@aws-sdk/client-ecs"; // ES Modules import
32
+ * // const { ECSClient, ListGatewayRoutesCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
33
+ * // import type { ECSClientConfig } from "@aws-sdk/client-ecs";
34
+ * const config = {}; // type is ECSClientConfig
35
+ * const client = new ECSClient(config);
36
+ * const input = { // ListGatewayRoutesRequest
37
+ * gateway: "STRING_VALUE",
38
+ * cluster: "STRING_VALUE",
39
+ * service: "STRING_VALUE",
40
+ * serviceContainerPortName: "STRING_VALUE",
41
+ * status: [ // GatewayRouteStatusList
42
+ * "ACTIVE" || "CREATE_IN_PROGRESS" || "CREATE_FAILED" || "UPDATE_IN_PROGRESS" || "UPDATE_FAILED" || "DELETE_IN_PROGRESS" || "DELETE_FAILED",
43
+ * ],
44
+ * maxResults: Number("int"),
45
+ * nextToken: "STRING_VALUE",
46
+ * };
47
+ * const command = new ListGatewayRoutesCommand(input);
48
+ * const response = await client.send(command);
49
+ * // { // ListGatewayRoutesResponse
50
+ * // gatewayRoutes: [ // GatewayRouteSummaryList
51
+ * // { // GatewayRouteSummary
52
+ * // gatewayRouteArn: "STRING_VALUE",
53
+ * // gatewayArn: "STRING_VALUE",
54
+ * // clusterArn: "STRING_VALUE",
55
+ * // serviceArn: "STRING_VALUE",
56
+ * // serviceContainerPortName: "STRING_VALUE",
57
+ * // status: "ACTIVE" || "CREATE_IN_PROGRESS" || "CREATE_FAILED" || "UPDATE_IN_PROGRESS" || "UPDATE_FAILED" || "DELETE_IN_PROGRESS" || "DELETE_FAILED",
58
+ * // },
59
+ * // ],
60
+ * // nextToken: "STRING_VALUE",
61
+ * // };
62
+ *
63
+ * ```
64
+ *
65
+ * @param ListGatewayRoutesCommandInput - {@link ListGatewayRoutesCommandInput}
66
+ * @returns {@link ListGatewayRoutesCommandOutput}
67
+ * @see {@link ListGatewayRoutesCommandInput} for command's `input` shape.
68
+ * @see {@link ListGatewayRoutesCommandOutput} for command's `response` shape.
69
+ * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
70
+ *
71
+ * @throws {@link AccessDeniedException} (client fault)
72
+ * <p>You don't have authorization to perform the requested action.</p>
73
+ *
74
+ * @throws {@link ClientException} (client fault)
75
+ * <p>These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.</p>
76
+ *
77
+ * @throws {@link GatewayNotFoundException} (client fault)
78
+ * <p>The specified gateway wasn't found. Check that the gateway name or ARN is correct and that the gateway exists in your account and Region.</p>
79
+ *
80
+ * @throws {@link InvalidParameterException} (client fault)
81
+ * <p>The specified parameter isn't valid. Review the available parameters for the API request.</p> <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>. </p>
82
+ *
83
+ * @throws {@link ServerException} (server fault)
84
+ * <p>These errors are usually caused by a server issue.</p>
85
+ *
86
+ * @throws {@link UnsupportedFeatureException} (client fault)
87
+ * <p>The specified task isn't supported in this Region.</p>
88
+ *
89
+ * @throws {@link ECSServiceException}
90
+ * <p>Base exception class for all service exceptions from ECS service.</p>
91
+ *
92
+ *
93
+ * @example To list the gateway routes for a gateway
94
+ * ```javascript
95
+ * // This example lists the gateway routes for the gateway named my-gateway in the cluster named my-cluster.
96
+ * const input = {
97
+ * cluster: "my-cluster",
98
+ * gateway: "my-gateway"
99
+ * };
100
+ * const command = new ListGatewayRoutesCommand(input);
101
+ * const response = await client.send(command);
102
+ * /* response is
103
+ * {
104
+ * gatewayRoutes: [
105
+ * {
106
+ * clusterArn: "arn:aws:ecs:us-east-1:123456789012:cluster/my-cluster",
107
+ * gatewayArn: "arn:aws:ecs:us-east-1:123456789012:gateway/my-gateway/a1b2c3d4e5f6478890abcdef12345678",
108
+ * gatewayRouteArn: "arn:aws:ecs:us-east-1:123456789012:gateway-route/my-gateway/a1b2c3d4e5f6478890abcdef12345678/f0e1d2c3b4a5968778695a4b3c2d1e0f",
109
+ * serviceArn: "arn:aws:ecs:us-east-1:123456789012:service/my-cluster/my-web-service",
110
+ * serviceContainerPortName: "web",
111
+ * status: "ACTIVE"
112
+ * }
113
+ * ]
114
+ * }
115
+ * *\/
116
+ * ```
117
+ *
118
+ * @public
119
+ */
120
+ export declare class ListGatewayRoutesCommand extends ListGatewayRoutesCommand_base {
121
+ /** @internal type navigation helper, not in runtime. */
122
+ protected static __types: {
123
+ api: {
124
+ input: ListGatewayRoutesRequest;
125
+ output: ListGatewayRoutesResponse;
126
+ };
127
+ sdk: {
128
+ input: ListGatewayRoutesCommandInput;
129
+ output: ListGatewayRoutesCommandOutput;
130
+ };
131
+ };
132
+ }