Skip to content

Commit

Permalink
feat(client-elastic-load-balancing-v2): This release adds support for…
Browse files Browse the repository at this point in the history
… sharing trust stores across accounts and organizations through integration with AWS Resource Access Manager.
  • Loading branch information
awstools committed Jul 25, 2024
1 parent daacfd6 commit 4a753d9
Show file tree
Hide file tree
Showing 15 changed files with 861 additions and 11 deletions.
16 changes: 16 additions & 0 deletions clients/client-elastic-load-balancing-v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,14 @@ DeleteRule

[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/)

</details>
<details>
<summary>
DeleteSharedTrustStoreAssociation
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -455,6 +463,14 @@ DescribeTrustStores

[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/)

</details>
<details>
<summary>
GetResourcePolicy
</summary>

[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/)

</details>
<details>
<summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ import {
DeleteLoadBalancerCommandOutput,
} from "./commands/DeleteLoadBalancerCommand";
import { DeleteRuleCommand, DeleteRuleCommandInput, DeleteRuleCommandOutput } from "./commands/DeleteRuleCommand";
import {
DeleteSharedTrustStoreAssociationCommand,
DeleteSharedTrustStoreAssociationCommandInput,
DeleteSharedTrustStoreAssociationCommandOutput,
} from "./commands/DeleteSharedTrustStoreAssociationCommand";
import {
DeleteTargetGroupCommand,
DeleteTargetGroupCommandInput,
Expand Down Expand Up @@ -130,6 +135,11 @@ import {
DescribeTrustStoresCommandInput,
DescribeTrustStoresCommandOutput,
} from "./commands/DescribeTrustStoresCommand";
import {
GetResourcePolicyCommand,
GetResourcePolicyCommandInput,
GetResourcePolicyCommandOutput,
} from "./commands/GetResourcePolicyCommand";
import {
GetTrustStoreCaCertificatesBundleCommand,
GetTrustStoreCaCertificatesBundleCommandInput,
Expand Down Expand Up @@ -212,6 +222,7 @@ const commands = {
DeleteListenerCommand,
DeleteLoadBalancerCommand,
DeleteRuleCommand,
DeleteSharedTrustStoreAssociationCommand,
DeleteTargetGroupCommand,
DeleteTrustStoreCommand,
DeregisterTargetsCommand,
Expand All @@ -229,6 +240,7 @@ const commands = {
DescribeTrustStoreAssociationsCommand,
DescribeTrustStoreRevocationsCommand,
DescribeTrustStoresCommand,
GetResourcePolicyCommand,
GetTrustStoreCaCertificatesBundleCommand,
GetTrustStoreRevocationContentCommand,
ModifyListenerCommand,
Expand Down Expand Up @@ -411,6 +423,23 @@ export interface ElasticLoadBalancingV2 {
cb: (err: any, data?: DeleteRuleCommandOutput) => void
): void;

/**
* @see {@link DeleteSharedTrustStoreAssociationCommand}
*/
deleteSharedTrustStoreAssociation(
args: DeleteSharedTrustStoreAssociationCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteSharedTrustStoreAssociationCommandOutput>;
deleteSharedTrustStoreAssociation(
args: DeleteSharedTrustStoreAssociationCommandInput,
cb: (err: any, data?: DeleteSharedTrustStoreAssociationCommandOutput) => void
): void;
deleteSharedTrustStoreAssociation(
args: DeleteSharedTrustStoreAssociationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteSharedTrustStoreAssociationCommandOutput) => void
): void;

/**
* @see {@link DeleteTargetGroupCommand}
*/
Expand Down Expand Up @@ -695,6 +724,23 @@ export interface ElasticLoadBalancingV2 {
cb: (err: any, data?: DescribeTrustStoresCommandOutput) => void
): void;

/**
* @see {@link GetResourcePolicyCommand}
*/
getResourcePolicy(
args: GetResourcePolicyCommandInput,
options?: __HttpHandlerOptions
): Promise<GetResourcePolicyCommandOutput>;
getResourcePolicy(
args: GetResourcePolicyCommandInput,
cb: (err: any, data?: GetResourcePolicyCommandOutput) => void
): void;
getResourcePolicy(
args: GetResourcePolicyCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetResourcePolicyCommandOutput) => void
): void;

/**
* @see {@link GetTrustStoreCaCertificatesBundleCommand}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ import { CreateTrustStoreCommandInput, CreateTrustStoreCommandOutput } from "./c
import { DeleteListenerCommandInput, DeleteListenerCommandOutput } from "./commands/DeleteListenerCommand";
import { DeleteLoadBalancerCommandInput, DeleteLoadBalancerCommandOutput } from "./commands/DeleteLoadBalancerCommand";
import { DeleteRuleCommandInput, DeleteRuleCommandOutput } from "./commands/DeleteRuleCommand";
import {
DeleteSharedTrustStoreAssociationCommandInput,
DeleteSharedTrustStoreAssociationCommandOutput,
} from "./commands/DeleteSharedTrustStoreAssociationCommand";
import { DeleteTargetGroupCommandInput, DeleteTargetGroupCommandOutput } from "./commands/DeleteTargetGroupCommand";
import { DeleteTrustStoreCommandInput, DeleteTrustStoreCommandOutput } from "./commands/DeleteTrustStoreCommand";
import { DeregisterTargetsCommandInput, DeregisterTargetsCommandOutput } from "./commands/DeregisterTargetsCommand";
Expand Down Expand Up @@ -120,6 +124,7 @@ import {
DescribeTrustStoresCommandInput,
DescribeTrustStoresCommandOutput,
} from "./commands/DescribeTrustStoresCommand";
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
import {
GetTrustStoreCaCertificatesBundleCommandInput,
GetTrustStoreCaCertificatesBundleCommandOutput,
Expand Down Expand Up @@ -180,6 +185,7 @@ export type ServiceInputTypes =
| DeleteListenerCommandInput
| DeleteLoadBalancerCommandInput
| DeleteRuleCommandInput
| DeleteSharedTrustStoreAssociationCommandInput
| DeleteTargetGroupCommandInput
| DeleteTrustStoreCommandInput
| DeregisterTargetsCommandInput
Expand All @@ -197,6 +203,7 @@ export type ServiceInputTypes =
| DescribeTrustStoreAssociationsCommandInput
| DescribeTrustStoreRevocationsCommandInput
| DescribeTrustStoresCommandInput
| GetResourcePolicyCommandInput
| GetTrustStoreCaCertificatesBundleCommandInput
| GetTrustStoreRevocationContentCommandInput
| ModifyListenerCommandInput
Expand Down Expand Up @@ -229,6 +236,7 @@ export type ServiceOutputTypes =
| DeleteListenerCommandOutput
| DeleteLoadBalancerCommandOutput
| DeleteRuleCommandOutput
| DeleteSharedTrustStoreAssociationCommandOutput
| DeleteTargetGroupCommandOutput
| DeleteTrustStoreCommandOutput
| DeregisterTargetsCommandOutput
Expand All @@ -246,6 +254,7 @@ export type ServiceOutputTypes =
| DescribeTrustStoreAssociationsCommandOutput
| DescribeTrustStoreRevocationsCommandOutput
| DescribeTrustStoresCommandOutput
| GetResourcePolicyCommandOutput
| GetTrustStoreCaCertificatesBundleCommandOutput
| GetTrustStoreRevocationContentCommandOutput
| ModifyListenerCommandOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export interface CreateListenerCommandOutput extends CreateListenerOutput, __Met
* Mode: "STRING_VALUE",
* TrustStoreArn: "STRING_VALUE",
* IgnoreClientCertificateExpiry: true || false,
* TrustStoreAssociationStatus: "active" || "removed",
* },
* };
* const command = new CreateListenerCommand(input);
Expand Down Expand Up @@ -232,6 +233,7 @@ export interface CreateListenerCommandOutput extends CreateListenerOutput, __Met
* // Mode: "STRING_VALUE",
* // TrustStoreArn: "STRING_VALUE",
* // IgnoreClientCertificateExpiry: true || false,
* // TrustStoreAssociationStatus: "active" || "removed",
* // },
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import {
ElasticLoadBalancingV2ClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
} from "../ElasticLoadBalancingV2Client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteSharedTrustStoreAssociationInput, DeleteSharedTrustStoreAssociationOutput } from "../models/models_0";
import {
de_DeleteSharedTrustStoreAssociationCommand,
se_DeleteSharedTrustStoreAssociationCommand,
} from "../protocols/Aws_query";

/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link DeleteSharedTrustStoreAssociationCommand}.
*/
export interface DeleteSharedTrustStoreAssociationCommandInput extends DeleteSharedTrustStoreAssociationInput {}
/**
* @public
*
* The output of {@link DeleteSharedTrustStoreAssociationCommand}.
*/
export interface DeleteSharedTrustStoreAssociationCommandOutput
extends DeleteSharedTrustStoreAssociationOutput,
__MetadataBearer {}

/**
* <p>Deletes a shared trust store association.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { ElasticLoadBalancingV2Client, DeleteSharedTrustStoreAssociationCommand } from "@aws-sdk/client-elastic-load-balancing-v2"; // ES Modules import
* // const { ElasticLoadBalancingV2Client, DeleteSharedTrustStoreAssociationCommand } = require("@aws-sdk/client-elastic-load-balancing-v2"); // CommonJS import
* const client = new ElasticLoadBalancingV2Client(config);
* const input = { // DeleteSharedTrustStoreAssociationInput
* TrustStoreArn: "STRING_VALUE", // required
* ResourceArn: "STRING_VALUE", // required
* };
* const command = new DeleteSharedTrustStoreAssociationCommand(input);
* const response = await client.send(command);
* // {};
*
* ```
*
* @param DeleteSharedTrustStoreAssociationCommandInput - {@link DeleteSharedTrustStoreAssociationCommandInput}
* @returns {@link DeleteSharedTrustStoreAssociationCommandOutput}
* @see {@link DeleteSharedTrustStoreAssociationCommandInput} for command's `input` shape.
* @see {@link DeleteSharedTrustStoreAssociationCommandOutput} for command's `response` shape.
* @see {@link ElasticLoadBalancingV2ClientResolvedConfig | config} for ElasticLoadBalancingV2Client's `config` shape.
*
* @throws {@link DeleteAssociationSameAccountException} (client fault)
* <p>The specified association cannot be within the same account.</p>
*
* @throws {@link TrustStoreAssociationNotFoundException} (client fault)
* <p>The specified association does not exist.</p>
*
* @throws {@link TrustStoreNotFoundException} (client fault)
* <p>The specified trust store does not exist.</p>
*
* @throws {@link ElasticLoadBalancingV2ServiceException}
* <p>Base exception class for all service exceptions from ElasticLoadBalancingV2 service.</p>
*
* @public
*/
export class DeleteSharedTrustStoreAssociationCommand extends $Command
.classBuilder<
DeleteSharedTrustStoreAssociationCommandInput,
DeleteSharedTrustStoreAssociationCommandOutput,
ElasticLoadBalancingV2ClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.m(function (this: any, Command: any, cs: any, config: ElasticLoadBalancingV2ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
})
.s("ElasticLoadBalancing_v10", "DeleteSharedTrustStoreAssociation", {})
.n("ElasticLoadBalancingV2Client", "DeleteSharedTrustStoreAssociationCommand")
.f(void 0, void 0)
.ser(se_DeleteSharedTrustStoreAssociationCommand)
.de(de_DeleteSharedTrustStoreAssociationCommand)
.build() {}
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export interface DescribeListenersCommandOutput extends DescribeListenersOutput,
* // Mode: "STRING_VALUE",
* // TrustStoreArn: "STRING_VALUE",
* // IgnoreClientCertificateExpiry: true || false,
* // TrustStoreAssociationStatus: "active" || "removed",
* // },
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export interface DescribeTrustStoreRevocationsCommandOutput
__MetadataBearer {}

/**
* <p>Describes the revocation files in use by the specified
* trust store arn, or revocation ID.</p>
* <p>Describes the revocation files in use by the specified trust store or revocation
* files.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ export interface DescribeTrustStoresCommandInput extends DescribeTrustStoresInpu
export interface DescribeTrustStoresCommandOutput extends DescribeTrustStoresOutput, __MetadataBearer {}

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

0 comments on commit 4a753d9

Please sign in to comment.