Skip to content

Commit

Permalink
feat(client-ec2): This release adds VPC Block Public Access (VPC BPA)…
Browse files Browse the repository at this point in the history
…, a new declarative control which blocks resources in VPCs and subnets that you own in a Region from reaching or being reached from the internet through internet gateways and egress-only internet gateways.
  • Loading branch information
awstools committed Nov 19, 2024
1 parent 1f77893 commit 7905a8e
Show file tree
Hide file tree
Showing 66 changed files with 17,560 additions and 14,674 deletions.
48 changes: 48 additions & 0 deletions clients/client-ec2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,14 @@ CreateVpc

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/CreateVpcCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/CreateVpcCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/CreateVpcCommandOutput/)

</details>
<details>
<summary>
CreateVpcBlockPublicAccessExclusion
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/CreateVpcBlockPublicAccessExclusionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/CreateVpcBlockPublicAccessExclusionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/CreateVpcBlockPublicAccessExclusionCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -1885,6 +1893,14 @@ DeleteVpc

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/DeleteVpcCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DeleteVpcCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DeleteVpcCommandOutput/)

</details>
<details>
<summary>
DeleteVpcBlockPublicAccessExclusion
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/DeleteVpcBlockPublicAccessExclusionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DeleteVpcBlockPublicAccessExclusionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DeleteVpcBlockPublicAccessExclusionCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -3149,6 +3165,22 @@ DescribeVpcAttribute

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/DescribeVpcAttributeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeVpcAttributeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeVpcAttributeCommandOutput/)

</details>
<details>
<summary>
DescribeVpcBlockPublicAccessExclusions
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/DescribeVpcBlockPublicAccessExclusionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeVpcBlockPublicAccessExclusionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeVpcBlockPublicAccessExclusionsCommandOutput/)

</details>
<details>
<summary>
DescribeVpcBlockPublicAccessOptions
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/DescribeVpcBlockPublicAccessOptionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeVpcBlockPublicAccessOptionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeVpcBlockPublicAccessOptionsCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -4637,6 +4669,22 @@ ModifyVpcAttribute

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/ModifyVpcAttributeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/ModifyVpcAttributeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/ModifyVpcAttributeCommandOutput/)

</details>
<details>
<summary>
ModifyVpcBlockPublicAccessExclusion
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/ModifyVpcBlockPublicAccessExclusionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/ModifyVpcBlockPublicAccessExclusionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/ModifyVpcBlockPublicAccessExclusionCommandOutput/)

</details>
<details>
<summary>
ModifyVpcBlockPublicAccessOptions
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/ModifyVpcBlockPublicAccessOptionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/ModifyVpcBlockPublicAccessOptionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/ModifyVpcBlockPublicAccessOptionsCommandOutput/)

</details>
<details>
<summary>
Expand Down
140 changes: 140 additions & 0 deletions clients/client-ec2/src/EC2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,11 @@ import {
CreateVolumeCommandInput,
CreateVolumeCommandOutput,
} from "./commands/CreateVolumeCommand";
import {
CreateVpcBlockPublicAccessExclusionCommand,
CreateVpcBlockPublicAccessExclusionCommandInput,
CreateVpcBlockPublicAccessExclusionCommandOutput,
} from "./commands/CreateVpcBlockPublicAccessExclusionCommand";
import { CreateVpcCommand, CreateVpcCommandInput, CreateVpcCommandOutput } from "./commands/CreateVpcCommand";
import {
CreateVpcEndpointCommand,
Expand Down Expand Up @@ -1007,6 +1012,11 @@ import {
DeleteVolumeCommandInput,
DeleteVolumeCommandOutput,
} from "./commands/DeleteVolumeCommand";
import {
DeleteVpcBlockPublicAccessExclusionCommand,
DeleteVpcBlockPublicAccessExclusionCommandInput,
DeleteVpcBlockPublicAccessExclusionCommandOutput,
} from "./commands/DeleteVpcBlockPublicAccessExclusionCommand";
import { DeleteVpcCommand, DeleteVpcCommandInput, DeleteVpcCommandOutput } from "./commands/DeleteVpcCommand";
import {
DeleteVpcEndpointConnectionNotificationsCommand,
Expand Down Expand Up @@ -1798,6 +1808,16 @@ import {
DescribeVpcAttributeCommandInput,
DescribeVpcAttributeCommandOutput,
} from "./commands/DescribeVpcAttributeCommand";
import {
DescribeVpcBlockPublicAccessExclusionsCommand,
DescribeVpcBlockPublicAccessExclusionsCommandInput,
DescribeVpcBlockPublicAccessExclusionsCommandOutput,
} from "./commands/DescribeVpcBlockPublicAccessExclusionsCommand";
import {
DescribeVpcBlockPublicAccessOptionsCommand,
DescribeVpcBlockPublicAccessOptionsCommandInput,
DescribeVpcBlockPublicAccessOptionsCommandOutput,
} from "./commands/DescribeVpcBlockPublicAccessOptionsCommand";
import {
DescribeVpcClassicLinkCommand,
DescribeVpcClassicLinkCommandInput,
Expand Down Expand Up @@ -2704,6 +2724,16 @@ import {
ModifyVpcAttributeCommandInput,
ModifyVpcAttributeCommandOutput,
} from "./commands/ModifyVpcAttributeCommand";
import {
ModifyVpcBlockPublicAccessExclusionCommand,
ModifyVpcBlockPublicAccessExclusionCommandInput,
ModifyVpcBlockPublicAccessExclusionCommandOutput,
} from "./commands/ModifyVpcBlockPublicAccessExclusionCommand";
import {
ModifyVpcBlockPublicAccessOptionsCommand,
ModifyVpcBlockPublicAccessOptionsCommandInput,
ModifyVpcBlockPublicAccessOptionsCommandOutput,
} from "./commands/ModifyVpcBlockPublicAccessOptionsCommand";
import {
ModifyVpcEndpointCommand,
ModifyVpcEndpointCommandInput,
Expand Down Expand Up @@ -3257,6 +3287,7 @@ const commands = {
CreateVerifiedAccessTrustProviderCommand,
CreateVolumeCommand,
CreateVpcCommand,
CreateVpcBlockPublicAccessExclusionCommand,
CreateVpcEndpointCommand,
CreateVpcEndpointConnectionNotificationCommand,
CreateVpcEndpointServiceConfigurationCommand,
Expand Down Expand Up @@ -3332,6 +3363,7 @@ const commands = {
DeleteVerifiedAccessTrustProviderCommand,
DeleteVolumeCommand,
DeleteVpcCommand,
DeleteVpcBlockPublicAccessExclusionCommand,
DeleteVpcEndpointConnectionNotificationsCommand,
DeleteVpcEndpointsCommand,
DeleteVpcEndpointServiceConfigurationsCommand,
Expand Down Expand Up @@ -3490,6 +3522,8 @@ const commands = {
DescribeVolumesModificationsCommand,
DescribeVolumeStatusCommand,
DescribeVpcAttributeCommand,
DescribeVpcBlockPublicAccessExclusionsCommand,
DescribeVpcBlockPublicAccessOptionsCommand,
DescribeVpcClassicLinkCommand,
DescribeVpcClassicLinkDnsSupportCommand,
DescribeVpcEndpointConnectionNotificationsCommand,
Expand Down Expand Up @@ -3676,6 +3710,8 @@ const commands = {
ModifyVolumeCommand,
ModifyVolumeAttributeCommand,
ModifyVpcAttributeCommand,
ModifyVpcBlockPublicAccessExclusionCommand,
ModifyVpcBlockPublicAccessOptionsCommand,
ModifyVpcEndpointCommand,
ModifyVpcEndpointConnectionNotificationCommand,
ModifyVpcEndpointServiceConfigurationCommand,
Expand Down Expand Up @@ -5960,6 +5996,23 @@ export interface EC2 {
cb: (err: any, data?: CreateVpcCommandOutput) => void
): void;

/**
* @see {@link CreateVpcBlockPublicAccessExclusionCommand}
*/
createVpcBlockPublicAccessExclusion(
args: CreateVpcBlockPublicAccessExclusionCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateVpcBlockPublicAccessExclusionCommandOutput>;
createVpcBlockPublicAccessExclusion(
args: CreateVpcBlockPublicAccessExclusionCommandInput,
cb: (err: any, data?: CreateVpcBlockPublicAccessExclusionCommandOutput) => void
): void;
createVpcBlockPublicAccessExclusion(
args: CreateVpcBlockPublicAccessExclusionCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateVpcBlockPublicAccessExclusionCommandOutput) => void
): void;

/**
* @see {@link CreateVpcEndpointCommand}
*/
Expand Down Expand Up @@ -7171,6 +7224,23 @@ export interface EC2 {
cb: (err: any, data?: DeleteVpcCommandOutput) => void
): void;

/**
* @see {@link DeleteVpcBlockPublicAccessExclusionCommand}
*/
deleteVpcBlockPublicAccessExclusion(
args: DeleteVpcBlockPublicAccessExclusionCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteVpcBlockPublicAccessExclusionCommandOutput>;
deleteVpcBlockPublicAccessExclusion(
args: DeleteVpcBlockPublicAccessExclusionCommandInput,
cb: (err: any, data?: DeleteVpcBlockPublicAccessExclusionCommandOutput) => void
): void;
deleteVpcBlockPublicAccessExclusion(
args: DeleteVpcBlockPublicAccessExclusionCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteVpcBlockPublicAccessExclusionCommandOutput) => void
): void;

/**
* @see {@link DeleteVpcEndpointConnectionNotificationsCommand}
*/
Expand Down Expand Up @@ -9944,6 +10014,42 @@ export interface EC2 {
cb: (err: any, data?: DescribeVpcAttributeCommandOutput) => void
): void;

/**
* @see {@link DescribeVpcBlockPublicAccessExclusionsCommand}
*/
describeVpcBlockPublicAccessExclusions(): Promise<DescribeVpcBlockPublicAccessExclusionsCommandOutput>;
describeVpcBlockPublicAccessExclusions(
args: DescribeVpcBlockPublicAccessExclusionsCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeVpcBlockPublicAccessExclusionsCommandOutput>;
describeVpcBlockPublicAccessExclusions(
args: DescribeVpcBlockPublicAccessExclusionsCommandInput,
cb: (err: any, data?: DescribeVpcBlockPublicAccessExclusionsCommandOutput) => void
): void;
describeVpcBlockPublicAccessExclusions(
args: DescribeVpcBlockPublicAccessExclusionsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeVpcBlockPublicAccessExclusionsCommandOutput) => void
): void;

/**
* @see {@link DescribeVpcBlockPublicAccessOptionsCommand}
*/
describeVpcBlockPublicAccessOptions(): Promise<DescribeVpcBlockPublicAccessOptionsCommandOutput>;
describeVpcBlockPublicAccessOptions(
args: DescribeVpcBlockPublicAccessOptionsCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeVpcBlockPublicAccessOptionsCommandOutput>;
describeVpcBlockPublicAccessOptions(
args: DescribeVpcBlockPublicAccessOptionsCommandInput,
cb: (err: any, data?: DescribeVpcBlockPublicAccessOptionsCommandOutput) => void
): void;
describeVpcBlockPublicAccessOptions(
args: DescribeVpcBlockPublicAccessOptionsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeVpcBlockPublicAccessOptionsCommandOutput) => void
): void;

/**
* @see {@link DescribeVpcClassicLinkCommand}
*/
Expand Down Expand Up @@ -13044,6 +13150,40 @@ export interface EC2 {
cb: (err: any, data?: ModifyVpcAttributeCommandOutput) => void
): void;

/**
* @see {@link ModifyVpcBlockPublicAccessExclusionCommand}
*/
modifyVpcBlockPublicAccessExclusion(
args: ModifyVpcBlockPublicAccessExclusionCommandInput,
options?: __HttpHandlerOptions
): Promise<ModifyVpcBlockPublicAccessExclusionCommandOutput>;
modifyVpcBlockPublicAccessExclusion(
args: ModifyVpcBlockPublicAccessExclusionCommandInput,
cb: (err: any, data?: ModifyVpcBlockPublicAccessExclusionCommandOutput) => void
): void;
modifyVpcBlockPublicAccessExclusion(
args: ModifyVpcBlockPublicAccessExclusionCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ModifyVpcBlockPublicAccessExclusionCommandOutput) => void
): void;

/**
* @see {@link ModifyVpcBlockPublicAccessOptionsCommand}
*/
modifyVpcBlockPublicAccessOptions(
args: ModifyVpcBlockPublicAccessOptionsCommandInput,
options?: __HttpHandlerOptions
): Promise<ModifyVpcBlockPublicAccessOptionsCommandOutput>;
modifyVpcBlockPublicAccessOptions(
args: ModifyVpcBlockPublicAccessOptionsCommandInput,
cb: (err: any, data?: ModifyVpcBlockPublicAccessOptionsCommandOutput) => void
): void;
modifyVpcBlockPublicAccessOptions(
args: ModifyVpcBlockPublicAccessOptionsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ModifyVpcBlockPublicAccessOptionsCommandOutput) => void
): void;

/**
* @see {@link ModifyVpcEndpointCommand}
*/
Expand Down
Loading

0 comments on commit 7905a8e

Please sign in to comment.