Skip to content

Commit 4a753d9

Browse files
author
awstools
committed
feat(client-elastic-load-balancing-v2): This release adds support for sharing trust stores across accounts and organizations through integration with AWS Resource Access Manager.
1 parent daacfd6 commit 4a753d9

15 files changed

+861
-11
lines changed

clients/client-elastic-load-balancing-v2/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,14 @@ DeleteRule
319319

320320
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/elastic-load-balancing-v2/command/DeleteRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-elastic-load-balancing-v2/Interface/DeleteRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-elastic-load-balancing-v2/Interface/DeleteRuleCommandOutput/)
321321

322+
</details>
323+
<details>
324+
<summary>
325+
DeleteSharedTrustStoreAssociation
326+
</summary>
327+
328+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/elastic-load-balancing-v2/command/DeleteSharedTrustStoreAssociationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-elastic-load-balancing-v2/Interface/DeleteSharedTrustStoreAssociationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-elastic-load-balancing-v2/Interface/DeleteSharedTrustStoreAssociationCommandOutput/)
329+
322330
</details>
323331
<details>
324332
<summary>
@@ -455,6 +463,14 @@ DescribeTrustStores
455463

456464
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/elastic-load-balancing-v2/command/DescribeTrustStoresCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-elastic-load-balancing-v2/Interface/DescribeTrustStoresCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-elastic-load-balancing-v2/Interface/DescribeTrustStoresCommandOutput/)
457465

466+
</details>
467+
<details>
468+
<summary>
469+
GetResourcePolicy
470+
</summary>
471+
472+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/elastic-load-balancing-v2/command/GetResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-elastic-load-balancing-v2/Interface/GetResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-elastic-load-balancing-v2/Interface/GetResourcePolicyCommandOutput/)
473+
458474
</details>
459475
<details>
460476
<summary>

clients/client-elastic-load-balancing-v2/src/ElasticLoadBalancingV2.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ import {
4545
DeleteLoadBalancerCommandOutput,
4646
} from "./commands/DeleteLoadBalancerCommand";
4747
import { DeleteRuleCommand, DeleteRuleCommandInput, DeleteRuleCommandOutput } from "./commands/DeleteRuleCommand";
48+
import {
49+
DeleteSharedTrustStoreAssociationCommand,
50+
DeleteSharedTrustStoreAssociationCommandInput,
51+
DeleteSharedTrustStoreAssociationCommandOutput,
52+
} from "./commands/DeleteSharedTrustStoreAssociationCommand";
4853
import {
4954
DeleteTargetGroupCommand,
5055
DeleteTargetGroupCommandInput,
@@ -130,6 +135,11 @@ import {
130135
DescribeTrustStoresCommandInput,
131136
DescribeTrustStoresCommandOutput,
132137
} from "./commands/DescribeTrustStoresCommand";
138+
import {
139+
GetResourcePolicyCommand,
140+
GetResourcePolicyCommandInput,
141+
GetResourcePolicyCommandOutput,
142+
} from "./commands/GetResourcePolicyCommand";
133143
import {
134144
GetTrustStoreCaCertificatesBundleCommand,
135145
GetTrustStoreCaCertificatesBundleCommandInput,
@@ -212,6 +222,7 @@ const commands = {
212222
DeleteListenerCommand,
213223
DeleteLoadBalancerCommand,
214224
DeleteRuleCommand,
225+
DeleteSharedTrustStoreAssociationCommand,
215226
DeleteTargetGroupCommand,
216227
DeleteTrustStoreCommand,
217228
DeregisterTargetsCommand,
@@ -229,6 +240,7 @@ const commands = {
229240
DescribeTrustStoreAssociationsCommand,
230241
DescribeTrustStoreRevocationsCommand,
231242
DescribeTrustStoresCommand,
243+
GetResourcePolicyCommand,
232244
GetTrustStoreCaCertificatesBundleCommand,
233245
GetTrustStoreRevocationContentCommand,
234246
ModifyListenerCommand,
@@ -411,6 +423,23 @@ export interface ElasticLoadBalancingV2 {
411423
cb: (err: any, data?: DeleteRuleCommandOutput) => void
412424
): void;
413425

426+
/**
427+
* @see {@link DeleteSharedTrustStoreAssociationCommand}
428+
*/
429+
deleteSharedTrustStoreAssociation(
430+
args: DeleteSharedTrustStoreAssociationCommandInput,
431+
options?: __HttpHandlerOptions
432+
): Promise<DeleteSharedTrustStoreAssociationCommandOutput>;
433+
deleteSharedTrustStoreAssociation(
434+
args: DeleteSharedTrustStoreAssociationCommandInput,
435+
cb: (err: any, data?: DeleteSharedTrustStoreAssociationCommandOutput) => void
436+
): void;
437+
deleteSharedTrustStoreAssociation(
438+
args: DeleteSharedTrustStoreAssociationCommandInput,
439+
options: __HttpHandlerOptions,
440+
cb: (err: any, data?: DeleteSharedTrustStoreAssociationCommandOutput) => void
441+
): void;
442+
414443
/**
415444
* @see {@link DeleteTargetGroupCommand}
416445
*/
@@ -695,6 +724,23 @@ export interface ElasticLoadBalancingV2 {
695724
cb: (err: any, data?: DescribeTrustStoresCommandOutput) => void
696725
): void;
697726

727+
/**
728+
* @see {@link GetResourcePolicyCommand}
729+
*/
730+
getResourcePolicy(
731+
args: GetResourcePolicyCommandInput,
732+
options?: __HttpHandlerOptions
733+
): Promise<GetResourcePolicyCommandOutput>;
734+
getResourcePolicy(
735+
args: GetResourcePolicyCommandInput,
736+
cb: (err: any, data?: GetResourcePolicyCommandOutput) => void
737+
): void;
738+
getResourcePolicy(
739+
args: GetResourcePolicyCommandInput,
740+
options: __HttpHandlerOptions,
741+
cb: (err: any, data?: GetResourcePolicyCommandOutput) => void
742+
): void;
743+
698744
/**
699745
* @see {@link GetTrustStoreCaCertificatesBundleCommand}
700746
*/

clients/client-elastic-load-balancing-v2/src/ElasticLoadBalancingV2Client.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ import { CreateTrustStoreCommandInput, CreateTrustStoreCommandOutput } from "./c
7070
import { DeleteListenerCommandInput, DeleteListenerCommandOutput } from "./commands/DeleteListenerCommand";
7171
import { DeleteLoadBalancerCommandInput, DeleteLoadBalancerCommandOutput } from "./commands/DeleteLoadBalancerCommand";
7272
import { DeleteRuleCommandInput, DeleteRuleCommandOutput } from "./commands/DeleteRuleCommand";
73+
import {
74+
DeleteSharedTrustStoreAssociationCommandInput,
75+
DeleteSharedTrustStoreAssociationCommandOutput,
76+
} from "./commands/DeleteSharedTrustStoreAssociationCommand";
7377
import { DeleteTargetGroupCommandInput, DeleteTargetGroupCommandOutput } from "./commands/DeleteTargetGroupCommand";
7478
import { DeleteTrustStoreCommandInput, DeleteTrustStoreCommandOutput } from "./commands/DeleteTrustStoreCommand";
7579
import { DeregisterTargetsCommandInput, DeregisterTargetsCommandOutput } from "./commands/DeregisterTargetsCommand";
@@ -120,6 +124,7 @@ import {
120124
DescribeTrustStoresCommandInput,
121125
DescribeTrustStoresCommandOutput,
122126
} from "./commands/DescribeTrustStoresCommand";
127+
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
123128
import {
124129
GetTrustStoreCaCertificatesBundleCommandInput,
125130
GetTrustStoreCaCertificatesBundleCommandOutput,
@@ -180,6 +185,7 @@ export type ServiceInputTypes =
180185
| DeleteListenerCommandInput
181186
| DeleteLoadBalancerCommandInput
182187
| DeleteRuleCommandInput
188+
| DeleteSharedTrustStoreAssociationCommandInput
183189
| DeleteTargetGroupCommandInput
184190
| DeleteTrustStoreCommandInput
185191
| DeregisterTargetsCommandInput
@@ -197,6 +203,7 @@ export type ServiceInputTypes =
197203
| DescribeTrustStoreAssociationsCommandInput
198204
| DescribeTrustStoreRevocationsCommandInput
199205
| DescribeTrustStoresCommandInput
206+
| GetResourcePolicyCommandInput
200207
| GetTrustStoreCaCertificatesBundleCommandInput
201208
| GetTrustStoreRevocationContentCommandInput
202209
| ModifyListenerCommandInput
@@ -229,6 +236,7 @@ export type ServiceOutputTypes =
229236
| DeleteListenerCommandOutput
230237
| DeleteLoadBalancerCommandOutput
231238
| DeleteRuleCommandOutput
239+
| DeleteSharedTrustStoreAssociationCommandOutput
232240
| DeleteTargetGroupCommandOutput
233241
| DeleteTrustStoreCommandOutput
234242
| DeregisterTargetsCommandOutput
@@ -246,6 +254,7 @@ export type ServiceOutputTypes =
246254
| DescribeTrustStoreAssociationsCommandOutput
247255
| DescribeTrustStoreRevocationsCommandOutput
248256
| DescribeTrustStoresCommandOutput
257+
| GetResourcePolicyCommandOutput
249258
| GetTrustStoreCaCertificatesBundleCommandOutput
250259
| GetTrustStoreRevocationContentCommandOutput
251260
| ModifyListenerCommandOutput

clients/client-elastic-load-balancing-v2/src/commands/CreateListenerCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export interface CreateListenerCommandOutput extends CreateListenerOutput, __Met
147147
* Mode: "STRING_VALUE",
148148
* TrustStoreArn: "STRING_VALUE",
149149
* IgnoreClientCertificateExpiry: true || false,
150+
* TrustStoreAssociationStatus: "active" || "removed",
150151
* },
151152
* };
152153
* const command = new CreateListenerCommand(input);
@@ -232,6 +233,7 @@ export interface CreateListenerCommandOutput extends CreateListenerOutput, __Met
232233
* // Mode: "STRING_VALUE",
233234
* // TrustStoreArn: "STRING_VALUE",
234235
* // IgnoreClientCertificateExpiry: true || false,
236+
* // TrustStoreAssociationStatus: "active" || "removed",
235237
* // },
236238
* // },
237239
* // ],
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
// smithy-typescript generated code
2+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { Command as $Command } from "@smithy/smithy-client";
5+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
6+
7+
import {
8+
ElasticLoadBalancingV2ClientResolvedConfig,
9+
ServiceInputTypes,
10+
ServiceOutputTypes,
11+
} from "../ElasticLoadBalancingV2Client";
12+
import { commonParams } from "../endpoint/EndpointParameters";
13+
import { DeleteSharedTrustStoreAssociationInput, DeleteSharedTrustStoreAssociationOutput } from "../models/models_0";
14+
import {
15+
de_DeleteSharedTrustStoreAssociationCommand,
16+
se_DeleteSharedTrustStoreAssociationCommand,
17+
} from "../protocols/Aws_query";
18+
19+
/**
20+
* @public
21+
*/
22+
export type { __MetadataBearer };
23+
export { $Command };
24+
/**
25+
* @public
26+
*
27+
* The input for {@link DeleteSharedTrustStoreAssociationCommand}.
28+
*/
29+
export interface DeleteSharedTrustStoreAssociationCommandInput extends DeleteSharedTrustStoreAssociationInput {}
30+
/**
31+
* @public
32+
*
33+
* The output of {@link DeleteSharedTrustStoreAssociationCommand}.
34+
*/
35+
export interface DeleteSharedTrustStoreAssociationCommandOutput
36+
extends DeleteSharedTrustStoreAssociationOutput,
37+
__MetadataBearer {}
38+
39+
/**
40+
* <p>Deletes a shared trust store association.</p>
41+
* @example
42+
* Use a bare-bones client and the command you need to make an API call.
43+
* ```javascript
44+
* import { ElasticLoadBalancingV2Client, DeleteSharedTrustStoreAssociationCommand } from "@aws-sdk/client-elastic-load-balancing-v2"; // ES Modules import
45+
* // const { ElasticLoadBalancingV2Client, DeleteSharedTrustStoreAssociationCommand } = require("@aws-sdk/client-elastic-load-balancing-v2"); // CommonJS import
46+
* const client = new ElasticLoadBalancingV2Client(config);
47+
* const input = { // DeleteSharedTrustStoreAssociationInput
48+
* TrustStoreArn: "STRING_VALUE", // required
49+
* ResourceArn: "STRING_VALUE", // required
50+
* };
51+
* const command = new DeleteSharedTrustStoreAssociationCommand(input);
52+
* const response = await client.send(command);
53+
* // {};
54+
*
55+
* ```
56+
*
57+
* @param DeleteSharedTrustStoreAssociationCommandInput - {@link DeleteSharedTrustStoreAssociationCommandInput}
58+
* @returns {@link DeleteSharedTrustStoreAssociationCommandOutput}
59+
* @see {@link DeleteSharedTrustStoreAssociationCommandInput} for command's `input` shape.
60+
* @see {@link DeleteSharedTrustStoreAssociationCommandOutput} for command's `response` shape.
61+
* @see {@link ElasticLoadBalancingV2ClientResolvedConfig | config} for ElasticLoadBalancingV2Client's `config` shape.
62+
*
63+
* @throws {@link DeleteAssociationSameAccountException} (client fault)
64+
* <p>The specified association cannot be within the same account.</p>
65+
*
66+
* @throws {@link TrustStoreAssociationNotFoundException} (client fault)
67+
* <p>The specified association does not exist.</p>
68+
*
69+
* @throws {@link TrustStoreNotFoundException} (client fault)
70+
* <p>The specified trust store does not exist.</p>
71+
*
72+
* @throws {@link ElasticLoadBalancingV2ServiceException}
73+
* <p>Base exception class for all service exceptions from ElasticLoadBalancingV2 service.</p>
74+
*
75+
* @public
76+
*/
77+
export class DeleteSharedTrustStoreAssociationCommand extends $Command
78+
.classBuilder<
79+
DeleteSharedTrustStoreAssociationCommandInput,
80+
DeleteSharedTrustStoreAssociationCommandOutput,
81+
ElasticLoadBalancingV2ClientResolvedConfig,
82+
ServiceInputTypes,
83+
ServiceOutputTypes
84+
>()
85+
.ep({
86+
...commonParams,
87+
})
88+
.m(function (this: any, Command: any, cs: any, config: ElasticLoadBalancingV2ClientResolvedConfig, o: any) {
89+
return [
90+
getSerdePlugin(config, this.serialize, this.deserialize),
91+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
92+
];
93+
})
94+
.s("ElasticLoadBalancing_v10", "DeleteSharedTrustStoreAssociation", {})
95+
.n("ElasticLoadBalancingV2Client", "DeleteSharedTrustStoreAssociationCommand")
96+
.f(void 0, void 0)
97+
.ser(se_DeleteSharedTrustStoreAssociationCommand)
98+
.de(de_DeleteSharedTrustStoreAssociationCommand)
99+
.build() {}

clients/client-elastic-load-balancing-v2/src/commands/DescribeListenersCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export interface DescribeListenersCommandOutput extends DescribeListenersOutput,
132132
* // Mode: "STRING_VALUE",
133133
* // TrustStoreArn: "STRING_VALUE",
134134
* // IgnoreClientCertificateExpiry: true || false,
135+
* // TrustStoreAssociationStatus: "active" || "removed",
135136
* // },
136137
* // },
137138
* // ],

clients/client-elastic-load-balancing-v2/src/commands/DescribeTrustStoreRevocationsCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export interface DescribeTrustStoreRevocationsCommandOutput
3737
__MetadataBearer {}
3838

3939
/**
40-
* <p>Describes the revocation files in use by the specified
41-
* trust store arn, or revocation ID.</p>
40+
* <p>Describes the revocation files in use by the specified trust store or revocation
41+
* files.</p>
4242
* @example
4343
* Use a bare-bones client and the command you need to make an API call.
4444
* ```javascript

clients/client-elastic-load-balancing-v2/src/commands/DescribeTrustStoresCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ export interface DescribeTrustStoresCommandInput extends DescribeTrustStoresInpu
3232
export interface DescribeTrustStoresCommandOutput extends DescribeTrustStoresOutput, __MetadataBearer {}
3333

3434
/**
35-
* <p>Describes all trust stores for a given account
36-
* by trust store arn’s or name.</p>
35+
* <p>Describes all trust stores for the specified account.</p>
3736
* @example
3837
* Use a bare-bones client and the command you need to make an API call.
3938
* ```javascript

0 commit comments

Comments
 (0)