@aws-sdk/client-ec2 3.694.0 → 3.696.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.
- package/README.md +48 -0
- package/dist-cjs/index.js +672 -54
- package/dist-es/EC2.js +12 -0
- package/dist-es/commands/CreateVpcBlockPublicAccessExclusionCommand.js +22 -0
- package/dist-es/commands/DeleteVpcBlockPublicAccessExclusionCommand.js +22 -0
- package/dist-es/commands/DescribeVpcBlockPublicAccessExclusionsCommand.js +22 -0
- package/dist-es/commands/DescribeVpcBlockPublicAccessOptionsCommand.js +22 -0
- package/dist-es/commands/ModifyVpcBlockPublicAccessExclusionCommand.js +22 -0
- package/dist-es/commands/ModifyVpcBlockPublicAccessOptionsCommand.js +22 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_1.js +5 -0
- package/dist-es/models/models_2.js +16 -0
- package/dist-es/models/models_4.js +0 -15
- package/dist-es/models/models_5.js +25 -0
- package/dist-es/models/models_6.js +0 -4
- package/dist-es/models/models_7.js +4 -1
- package/dist-es/protocols/Aws_ec2.js +511 -32
- package/dist-types/EC2.d.ts +44 -0
- package/dist-types/EC2Client.d.ts +8 -2
- package/dist-types/commands/BundleInstanceCommand.d.ts +4 -2
- package/dist-types/commands/CancelImageLaunchPermissionCommand.d.ts +3 -4
- package/dist-types/commands/CopyImageCommand.d.ts +8 -7
- package/dist-types/commands/CreateDefaultSubnetCommand.d.ts +3 -0
- package/dist-types/commands/CreateDefaultVpcCommand.d.ts +3 -0
- package/dist-types/commands/CreateImageCommand.d.ts +6 -5
- package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +10 -0
- package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +11 -0
- package/dist-types/commands/CreateNetworkInsightsAccessScopeCommand.d.ts +1 -1
- package/dist-types/commands/CreateNetworkInterfaceCommand.d.ts +7 -0
- package/dist-types/commands/CreateRestoreImageTaskCommand.d.ts +3 -3
- package/dist-types/commands/CreateStoreImageTaskCommand.d.ts +1 -1
- package/dist-types/commands/CreateSubnetCommand.d.ts +3 -0
- package/dist-types/commands/CreateVolumeCommand.d.ts +7 -0
- package/dist-types/commands/CreateVpcBlockPublicAccessExclusionCommand.d.ts +100 -0
- package/dist-types/commands/CreateVpcCommand.d.ts +3 -0
- package/dist-types/commands/DeleteIpamExternalResourceVerificationTokenCommand.d.ts +2 -1
- package/dist-types/commands/DeleteIpamPoolCommand.d.ts +1 -1
- package/dist-types/commands/DeleteIpamResourceDiscoveryCommand.d.ts +1 -1
- package/dist-types/commands/DeleteIpamScopeCommand.d.ts +1 -1
- package/dist-types/commands/DeleteKeyPairCommand.d.ts +1 -1
- package/dist-types/commands/DeleteLaunchTemplateCommand.d.ts +4 -0
- package/dist-types/commands/DeleteVpcBlockPublicAccessExclusionCommand.d.ts +87 -0
- package/dist-types/commands/DeregisterImageCommand.d.ts +11 -11
- package/dist-types/commands/DescribeBundleTasksCommand.d.ts +6 -4
- package/dist-types/commands/DescribeHostsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeIamInstanceProfileAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeIdentityIdFormatCommand.d.ts +1 -1
- package/dist-types/commands/DescribeImageAttributeCommand.d.ts +4 -4
- package/dist-types/commands/DescribeImagesCommand.d.ts +8 -7
- package/dist-types/commands/DescribeInstanceAttributeCommand.d.ts +4 -0
- package/dist-types/commands/DescribeInstanceImageMetadataCommand.d.ts +4 -0
- package/dist-types/commands/DescribeInstanceStatusCommand.d.ts +4 -0
- package/dist-types/commands/DescribeInstancesCommand.d.ts +9 -0
- package/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +8 -0
- package/dist-types/commands/DescribeLaunchTemplatesCommand.d.ts +4 -0
- package/dist-types/commands/DescribeNetworkInterfacesCommand.d.ts +4 -0
- package/dist-types/commands/DescribeSnapshotAttributeCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSnapshotTierStatusCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSnapshotsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSpotDatafeedSubscriptionCommand.d.ts +1 -2
- package/dist-types/commands/DescribeStoreImageTasksCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSubnetsCommand.d.ts +3 -0
- package/dist-types/commands/DescribeVolumesCommand.d.ts +4 -0
- package/dist-types/commands/DescribeVpcBlockPublicAccessExclusionsCommand.d.ts +102 -0
- package/dist-types/commands/DescribeVpcBlockPublicAccessOptionsCommand.d.ts +78 -0
- package/dist-types/commands/DescribeVpcsCommand.d.ts +3 -0
- package/dist-types/commands/DisableFastLaunchCommand.d.ts +6 -4
- package/dist-types/commands/DisableImageBlockPublicAccessCommand.d.ts +2 -2
- package/dist-types/commands/EnableFastLaunchCommand.d.ts +8 -7
- package/dist-types/commands/EnableImageDeprecationCommand.d.ts +2 -1
- package/dist-types/commands/GetAssociatedEnclaveCertificateIamRolesCommand.d.ts +1 -1
- package/dist-types/commands/GetAssociatedIpv6PoolCidrsCommand.d.ts +1 -1
- package/dist-types/commands/GetAwsNetworkPerformanceDataCommand.d.ts +1 -1
- package/dist-types/commands/GetCapacityReservationUsageCommand.d.ts +1 -1
- package/dist-types/commands/GetCoipPoolUsageCommand.d.ts +1 -1
- package/dist-types/commands/GetConsoleOutputCommand.d.ts +1 -2
- package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +4 -0
- package/dist-types/commands/ListImagesInRecycleBinCommand.d.ts +2 -2
- package/dist-types/commands/ModifyImageAttributeCommand.d.ts +7 -5
- package/dist-types/commands/ModifyLaunchTemplateCommand.d.ts +4 -0
- package/dist-types/commands/ModifyVerifiedAccessEndpointCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVerifiedAccessEndpointPolicyCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVerifiedAccessGroupCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVerifiedAccessGroupPolicyCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVerifiedAccessInstanceCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVerifiedAccessInstanceLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVpcBlockPublicAccessExclusionCommand.d.ts +88 -0
- package/dist-types/commands/ModifyVpcBlockPublicAccessOptionsCommand.d.ts +79 -0
- package/dist-types/commands/RegisterImageCommand.d.ts +6 -7
- package/dist-types/commands/RestoreImageFromRecycleBinCommand.d.ts +2 -1
- package/dist-types/commands/RunInstancesCommand.d.ts +12 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +27 -23
- package/dist-types/models/models_1.d.ts +120 -116
- package/dist-types/models/models_2.d.ts +276 -143
- package/dist-types/models/models_3.d.ts +192 -409
- package/dist-types/models/models_4.d.ts +1119 -1064
- package/dist-types/models/models_5.d.ts +2975 -2932
- package/dist-types/models/models_6.d.ts +4328 -4255
- package/dist-types/models/models_7.d.ts +564 -29
- package/dist-types/protocols/Aws_ec2.d.ts +54 -0
- package/dist-types/ts3.4/EC2.d.ts +140 -0
- package/dist-types/ts3.4/EC2Client.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateNetworkInsightsAccessScopeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateVpcBlockPublicAccessExclusionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteIpamExternalResourceVerificationTokenCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DeleteIpamPoolCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteIpamResourceDiscoveryCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteIpamScopeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteKeyPairCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteVpcBlockPublicAccessExclusionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeHostsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeIamInstanceProfileAssociationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeIdentityIdFormatCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeSnapshotAttributeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeSnapshotTierStatusCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeSnapshotsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeSpotDatafeedSubscriptionCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DescribeVpcBlockPublicAccessExclusionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeVpcBlockPublicAccessOptionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAssociatedEnclaveCertificateIamRolesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetAssociatedIpv6PoolCidrsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetAwsNetworkPerformanceDataCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetCapacityReservationUsageCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetCoipPoolUsageCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetConsoleOutputCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ModifyVerifiedAccessEndpointCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyVerifiedAccessEndpointPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyVerifiedAccessGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyVerifiedAccessGroupPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyVerifiedAccessInstanceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyVerifiedAccessInstanceLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyVpcBlockPublicAccessExclusionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ModifyVpcBlockPublicAccessOptionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_1.d.ts +24 -27
- package/dist-types/ts3.4/models/models_2.d.ts +74 -40
- package/dist-types/ts3.4/models/models_3.d.ts +48 -76
- package/dist-types/ts3.4/models/models_4.d.ts +83 -77
- package/dist-types/ts3.4/models/models_5.d.ts +117 -107
- package/dist-types/ts3.4/models/models_6.d.ts +112 -117
- package/dist-types/ts3.4/models/models_7.d.ts +137 -3
- package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +72 -0
- package/package.json +37 -37
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
+
import { DescribeVpcBlockPublicAccessExclusionsRequest, DescribeVpcBlockPublicAccessExclusionsResult } from "../models/models_5";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DescribeVpcBlockPublicAccessExclusionsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DescribeVpcBlockPublicAccessExclusionsCommandInput extends DescribeVpcBlockPublicAccessExclusionsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DescribeVpcBlockPublicAccessExclusionsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DescribeVpcBlockPublicAccessExclusionsCommandOutput extends DescribeVpcBlockPublicAccessExclusionsResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DescribeVpcBlockPublicAccessExclusionsCommand_base: {
|
|
25
|
+
new (input: DescribeVpcBlockPublicAccessExclusionsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeVpcBlockPublicAccessExclusionsCommandInput, DescribeVpcBlockPublicAccessExclusionsCommandOutput, EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [DescribeVpcBlockPublicAccessExclusionsCommandInput]): import("@smithy/smithy-client").CommandImpl<DescribeVpcBlockPublicAccessExclusionsCommandInput, DescribeVpcBlockPublicAccessExclusionsCommandOutput, EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Describe VPC Block Public Access (BPA) exclusions. A VPC BPA exclusion is a mode that can be applied to a single VPC or subnet that exempts it from the account’s BPA mode and will allow bidirectional or egress-only access. You can create BPA exclusions for VPCs and subnets even when BPA is not enabled on the account to ensure that there is no traffic disruption to the exclusions when VPC BPA is turned on. To learn more about VPC BPA, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html">Block public access to VPCs and subnets</a> in the <i>Amazon VPC User Guide</i>.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { EC2Client, DescribeVpcBlockPublicAccessExclusionsCommand } from "@aws-sdk/client-ec2"; // ES Modules import
|
|
35
|
+
* // const { EC2Client, DescribeVpcBlockPublicAccessExclusionsCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
|
|
36
|
+
* const client = new EC2Client(config);
|
|
37
|
+
* const input = { // DescribeVpcBlockPublicAccessExclusionsRequest
|
|
38
|
+
* DryRun: true || false,
|
|
39
|
+
* Filters: [ // FilterList
|
|
40
|
+
* { // Filter
|
|
41
|
+
* Name: "STRING_VALUE",
|
|
42
|
+
* Values: [ // ValueStringList
|
|
43
|
+
* "STRING_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* },
|
|
46
|
+
* ],
|
|
47
|
+
* ExclusionIds: [ // VpcBlockPublicAccessExclusionIdList
|
|
48
|
+
* "STRING_VALUE",
|
|
49
|
+
* ],
|
|
50
|
+
* NextToken: "STRING_VALUE",
|
|
51
|
+
* MaxResults: Number("int"),
|
|
52
|
+
* };
|
|
53
|
+
* const command = new DescribeVpcBlockPublicAccessExclusionsCommand(input);
|
|
54
|
+
* const response = await client.send(command);
|
|
55
|
+
* // { // DescribeVpcBlockPublicAccessExclusionsResult
|
|
56
|
+
* // VpcBlockPublicAccessExclusions: [ // VpcBlockPublicAccessExclusionList
|
|
57
|
+
* // { // VpcBlockPublicAccessExclusion
|
|
58
|
+
* // ExclusionId: "STRING_VALUE",
|
|
59
|
+
* // InternetGatewayExclusionMode: "allow-bidirectional" || "allow-egress",
|
|
60
|
+
* // ResourceArn: "STRING_VALUE",
|
|
61
|
+
* // State: "create-in-progress" || "create-complete" || "create-failed" || "update-in-progress" || "update-complete" || "update-failed" || "delete-in-progress" || "delete-complete" || "disable-in-progress" || "disable-complete",
|
|
62
|
+
* // Reason: "STRING_VALUE",
|
|
63
|
+
* // CreationTimestamp: new Date("TIMESTAMP"),
|
|
64
|
+
* // LastUpdateTimestamp: new Date("TIMESTAMP"),
|
|
65
|
+
* // DeletionTimestamp: new Date("TIMESTAMP"),
|
|
66
|
+
* // Tags: [ // TagList
|
|
67
|
+
* // { // Tag
|
|
68
|
+
* // Key: "STRING_VALUE",
|
|
69
|
+
* // Value: "STRING_VALUE",
|
|
70
|
+
* // },
|
|
71
|
+
* // ],
|
|
72
|
+
* // },
|
|
73
|
+
* // ],
|
|
74
|
+
* // NextToken: "STRING_VALUE",
|
|
75
|
+
* // };
|
|
76
|
+
*
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* @param DescribeVpcBlockPublicAccessExclusionsCommandInput - {@link DescribeVpcBlockPublicAccessExclusionsCommandInput}
|
|
80
|
+
* @returns {@link DescribeVpcBlockPublicAccessExclusionsCommandOutput}
|
|
81
|
+
* @see {@link DescribeVpcBlockPublicAccessExclusionsCommandInput} for command's `input` shape.
|
|
82
|
+
* @see {@link DescribeVpcBlockPublicAccessExclusionsCommandOutput} for command's `response` shape.
|
|
83
|
+
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link EC2ServiceException}
|
|
86
|
+
* <p>Base exception class for all service exceptions from EC2 service.</p>
|
|
87
|
+
*
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
export declare class DescribeVpcBlockPublicAccessExclusionsCommand extends DescribeVpcBlockPublicAccessExclusionsCommand_base {
|
|
91
|
+
/** @internal type navigation helper, not in runtime. */
|
|
92
|
+
protected static __types: {
|
|
93
|
+
api: {
|
|
94
|
+
input: DescribeVpcBlockPublicAccessExclusionsRequest;
|
|
95
|
+
output: DescribeVpcBlockPublicAccessExclusionsResult;
|
|
96
|
+
};
|
|
97
|
+
sdk: {
|
|
98
|
+
input: DescribeVpcBlockPublicAccessExclusionsCommandInput;
|
|
99
|
+
output: DescribeVpcBlockPublicAccessExclusionsCommandOutput;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
+
import { DescribeVpcBlockPublicAccessOptionsRequest, DescribeVpcBlockPublicAccessOptionsResult } from "../models/models_5";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DescribeVpcBlockPublicAccessOptionsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DescribeVpcBlockPublicAccessOptionsCommandInput extends DescribeVpcBlockPublicAccessOptionsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DescribeVpcBlockPublicAccessOptionsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DescribeVpcBlockPublicAccessOptionsCommandOutput extends DescribeVpcBlockPublicAccessOptionsResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DescribeVpcBlockPublicAccessOptionsCommand_base: {
|
|
25
|
+
new (input: DescribeVpcBlockPublicAccessOptionsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeVpcBlockPublicAccessOptionsCommandInput, DescribeVpcBlockPublicAccessOptionsCommandOutput, EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [DescribeVpcBlockPublicAccessOptionsCommandInput]): import("@smithy/smithy-client").CommandImpl<DescribeVpcBlockPublicAccessOptionsCommandInput, DescribeVpcBlockPublicAccessOptionsCommandOutput, EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Describe VPC Block Public Access (BPA) options. VPC Block public Access (BPA) enables you to block 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. To learn more about VPC BPA, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html">Block public access to VPCs and subnets</a> in the <i>Amazon VPC User Guide</i>.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { EC2Client, DescribeVpcBlockPublicAccessOptionsCommand } from "@aws-sdk/client-ec2"; // ES Modules import
|
|
35
|
+
* // const { EC2Client, DescribeVpcBlockPublicAccessOptionsCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
|
|
36
|
+
* const client = new EC2Client(config);
|
|
37
|
+
* const input = { // DescribeVpcBlockPublicAccessOptionsRequest
|
|
38
|
+
* DryRun: true || false,
|
|
39
|
+
* };
|
|
40
|
+
* const command = new DescribeVpcBlockPublicAccessOptionsCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // DescribeVpcBlockPublicAccessOptionsResult
|
|
43
|
+
* // VpcBlockPublicAccessOptions: { // VpcBlockPublicAccessOptions
|
|
44
|
+
* // AwsAccountId: "STRING_VALUE",
|
|
45
|
+
* // AwsRegion: "STRING_VALUE",
|
|
46
|
+
* // State: "default-state" || "update-in-progress" || "update-complete",
|
|
47
|
+
* // InternetGatewayBlockMode: "off" || "block-bidirectional" || "block-ingress",
|
|
48
|
+
* // Reason: "STRING_VALUE",
|
|
49
|
+
* // LastUpdateTimestamp: new Date("TIMESTAMP"),
|
|
50
|
+
* // },
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param DescribeVpcBlockPublicAccessOptionsCommandInput - {@link DescribeVpcBlockPublicAccessOptionsCommandInput}
|
|
56
|
+
* @returns {@link DescribeVpcBlockPublicAccessOptionsCommandOutput}
|
|
57
|
+
* @see {@link DescribeVpcBlockPublicAccessOptionsCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link DescribeVpcBlockPublicAccessOptionsCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link EC2ServiceException}
|
|
62
|
+
* <p>Base exception class for all service exceptions from EC2 service.</p>
|
|
63
|
+
*
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
export declare class DescribeVpcBlockPublicAccessOptionsCommand extends DescribeVpcBlockPublicAccessOptionsCommand_base {
|
|
67
|
+
/** @internal type navigation helper, not in runtime. */
|
|
68
|
+
protected static __types: {
|
|
69
|
+
api: {
|
|
70
|
+
input: DescribeVpcBlockPublicAccessOptionsRequest;
|
|
71
|
+
output: DescribeVpcBlockPublicAccessOptionsResult;
|
|
72
|
+
};
|
|
73
|
+
sdk: {
|
|
74
|
+
input: DescribeVpcBlockPublicAccessOptionsCommandInput;
|
|
75
|
+
output: DescribeVpcBlockPublicAccessOptionsCommandOutput;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -91,6 +91,9 @@ declare const DescribeVpcsCommand_base: {
|
|
|
91
91
|
* // Value: "STRING_VALUE",
|
|
92
92
|
* // },
|
|
93
93
|
* // ],
|
|
94
|
+
* // BlockPublicAccessStates: { // BlockPublicAccessStates
|
|
95
|
+
* // InternetGatewayBlockMode: "off" || "block-bidirectional" || "block-ingress",
|
|
96
|
+
* // },
|
|
94
97
|
* // VpcId: "STRING_VALUE",
|
|
95
98
|
* // State: "pending" || "available",
|
|
96
99
|
* // CidrBlock: "STRING_VALUE",
|
|
@@ -27,11 +27,13 @@ declare const DisableFastLaunchCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Discontinue Windows fast launch for a Windows AMI, and clean up existing pre-provisioned
|
|
31
|
-
*
|
|
32
|
-
*
|
|
30
|
+
* <p>Discontinue Windows fast launch for a Windows AMI, and clean up existing pre-provisioned
|
|
31
|
+
* snapshots. After you disable Windows fast launch, the AMI uses the standard launch process for
|
|
32
|
+
* each new instance. Amazon EC2 must remove all pre-provisioned snapshots before you can enable
|
|
33
|
+
* Windows fast launch again.</p>
|
|
33
34
|
* <note>
|
|
34
|
-
* <p>You can only change these settings for Windows AMIs that you own or that have been
|
|
35
|
+
* <p>You can only change these settings for Windows AMIs that you own or that have been
|
|
36
|
+
* shared with you.</p>
|
|
35
37
|
* </note>
|
|
36
38
|
* @example
|
|
37
39
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -35,8 +35,8 @@ declare const DisableImageBlockPublicAccessCommand_base: {
|
|
|
35
35
|
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetImageBlockPublicAccessState.html">GetImageBlockPublicAccessState</a>, the response will be
|
|
36
36
|
* <code>block-new-sharing</code>. When the API has completed the configuration, the response
|
|
37
37
|
* will be <code>unblocked</code>.</p>
|
|
38
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-intro.html#block-public-access-to-amis">Block
|
|
39
|
-
*
|
|
38
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-intro.html#block-public-access-to-amis">Block
|
|
39
|
+
* public access to your AMIs</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
40
40
|
* @example
|
|
41
41
|
* Use a bare-bones client and the command you need to make an API call.
|
|
42
42
|
* ```javascript
|
|
@@ -27,14 +27,15 @@ declare const EnableFastLaunchCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>When you enable Windows fast launch for a Windows AMI, images are pre-provisioned,
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
30
|
+
* <p>When you enable Windows fast launch for a Windows AMI, images are pre-provisioned, using
|
|
31
|
+
* snapshots to launch instances up to 65% faster. To create the optimized Windows image, Amazon EC2
|
|
32
|
+
* launches an instance and runs through Sysprep steps, rebooting as required. Then it creates a
|
|
33
|
+
* set of reserved snapshots that are used for subsequent launches. The reserved snapshots are
|
|
34
|
+
* automatically replenished as they are used, depending on your settings for launch
|
|
35
|
+
* frequency.</p>
|
|
36
36
|
* <note>
|
|
37
|
-
* <p>You can only change these settings for Windows AMIs that you own or that have been
|
|
37
|
+
* <p>You can only change these settings for Windows AMIs that you own or that have been
|
|
38
|
+
* shared with you.</p>
|
|
38
39
|
* </note>
|
|
39
40
|
* @example
|
|
40
41
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -28,7 +28,8 @@ declare const EnableImageDeprecationCommand_base: {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* <p>Enables deprecation of the specified AMI at the specified date and time.</p>
|
|
31
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html">Deprecate an AMI</a> in the
|
|
31
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html">Deprecate an AMI</a> in the
|
|
32
|
+
* <i>Amazon EC2 User Guide</i>.</p>
|
|
32
33
|
* @example
|
|
33
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
35
|
* ```javascript
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { GetAssociatedEnclaveCertificateIamRolesRequest, GetAssociatedEnclaveCertificateIamRolesResult } from "../models/
|
|
4
|
+
import { GetAssociatedEnclaveCertificateIamRolesRequest, GetAssociatedEnclaveCertificateIamRolesResult } from "../models/models_6";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { GetAssociatedIpv6PoolCidrsRequest, GetAssociatedIpv6PoolCidrsResult } from "../models/
|
|
4
|
+
import { GetAssociatedIpv6PoolCidrsRequest, GetAssociatedIpv6PoolCidrsResult } from "../models/models_6";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { GetAwsNetworkPerformanceDataRequest, GetAwsNetworkPerformanceDataResult } from "../models/
|
|
4
|
+
import { GetAwsNetworkPerformanceDataRequest, GetAwsNetworkPerformanceDataResult } from "../models/models_6";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { GetCapacityReservationUsageRequest, GetCapacityReservationUsageResult } from "../models/
|
|
4
|
+
import { GetCapacityReservationUsageRequest, GetCapacityReservationUsageResult } from "../models/models_6";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { GetCoipPoolUsageRequest, GetCoipPoolUsageResult } from "../models/
|
|
4
|
+
import { GetCoipPoolUsageRequest, GetCoipPoolUsageResult } from "../models/models_6";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { GetConsoleOutputRequest } from "../models/
|
|
5
|
-
import { GetConsoleOutputResult } from "../models/models_6";
|
|
4
|
+
import { GetConsoleOutputRequest, GetConsoleOutputResult } from "../models/models_6";
|
|
6
5
|
/**
|
|
7
6
|
* @public
|
|
8
7
|
*/
|
|
@@ -297,6 +297,10 @@ declare const GetLaunchTemplateDataCommand_base: {
|
|
|
297
297
|
* // AutoRecovery: "default" || "disabled",
|
|
298
298
|
* // },
|
|
299
299
|
* // DisableApiStop: true || false,
|
|
300
|
+
* // Operator: { // OperatorResponse
|
|
301
|
+
* // Managed: true || false,
|
|
302
|
+
* // Principal: "STRING_VALUE",
|
|
303
|
+
* // },
|
|
300
304
|
* // },
|
|
301
305
|
* // };
|
|
302
306
|
*
|
|
@@ -27,8 +27,8 @@ declare const ListImagesInRecycleBinCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Lists one or more AMIs that are currently in the Recycle Bin. For more information,
|
|
31
|
-
*
|
|
30
|
+
* <p>Lists one or more AMIs that are currently in the Recycle Bin. For more information, see
|
|
31
|
+
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html">Recycle
|
|
32
32
|
* Bin</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
33
33
|
* @example
|
|
34
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -27,12 +27,14 @@ declare const ModifyImageAttributeCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Modifies the specified attribute of the specified AMI. You can specify only one attribute
|
|
31
|
-
*
|
|
32
|
-
*
|
|
30
|
+
* <p>Modifies the specified attribute of the specified AMI. You can specify only one attribute
|
|
31
|
+
* at a time.</p>
|
|
32
|
+
* <p>To specify the attribute, you can use the <code>Attribute</code> parameter, or one of the
|
|
33
|
+
* following parameters: <code>Description</code>, <code>ImdsSupport</code>, or
|
|
34
|
+
* <code>LaunchPermission</code>.</p>
|
|
33
35
|
* <p>Images with an Amazon Web Services Marketplace product code cannot be made public.</p>
|
|
34
|
-
* <p>To enable the SriovNetSupport enhanced networking attribute of an image, enable
|
|
35
|
-
*
|
|
36
|
+
* <p>To enable the SriovNetSupport enhanced networking attribute of an image, enable
|
|
37
|
+
* SriovNetSupport on an instance and create an AMI from the instance.</p>
|
|
36
38
|
* @example
|
|
37
39
|
* Use a bare-bones client and the command you need to make an API call.
|
|
38
40
|
* ```javascript
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { ModifyVerifiedAccessEndpointRequest, ModifyVerifiedAccessEndpointResult } from "../models/
|
|
4
|
+
import { ModifyVerifiedAccessEndpointRequest, ModifyVerifiedAccessEndpointResult } from "../models/models_7";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { ModifyVerifiedAccessEndpointPolicyRequest, ModifyVerifiedAccessEndpointPolicyResult } from "../models/
|
|
4
|
+
import { ModifyVerifiedAccessEndpointPolicyRequest, ModifyVerifiedAccessEndpointPolicyResult } from "../models/models_7";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { ModifyVerifiedAccessGroupRequest, ModifyVerifiedAccessGroupResult } from "../models/
|
|
4
|
+
import { ModifyVerifiedAccessGroupRequest, ModifyVerifiedAccessGroupResult } from "../models/models_7";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { ModifyVerifiedAccessGroupPolicyRequest, ModifyVerifiedAccessGroupPolicyResult } from "../models/
|
|
4
|
+
import { ModifyVerifiedAccessGroupPolicyRequest, ModifyVerifiedAccessGroupPolicyResult } from "../models/models_7";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { ModifyVerifiedAccessInstanceRequest, ModifyVerifiedAccessInstanceResult } from "../models/
|
|
4
|
+
import { ModifyVerifiedAccessInstanceRequest, ModifyVerifiedAccessInstanceResult } from "../models/models_7";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
-
import { ModifyVerifiedAccessInstanceLoggingConfigurationRequest, ModifyVerifiedAccessInstanceLoggingConfigurationResult } from "../models/
|
|
4
|
+
import { ModifyVerifiedAccessInstanceLoggingConfigurationRequest, ModifyVerifiedAccessInstanceLoggingConfigurationResult } from "../models/models_7";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
+
import { ModifyVpcBlockPublicAccessExclusionRequest, ModifyVpcBlockPublicAccessExclusionResult } from "../models/models_7";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ModifyVpcBlockPublicAccessExclusionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ModifyVpcBlockPublicAccessExclusionCommandInput extends ModifyVpcBlockPublicAccessExclusionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ModifyVpcBlockPublicAccessExclusionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ModifyVpcBlockPublicAccessExclusionCommandOutput extends ModifyVpcBlockPublicAccessExclusionResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ModifyVpcBlockPublicAccessExclusionCommand_base: {
|
|
25
|
+
new (input: ModifyVpcBlockPublicAccessExclusionCommandInput): import("@smithy/smithy-client").CommandImpl<ModifyVpcBlockPublicAccessExclusionCommandInput, ModifyVpcBlockPublicAccessExclusionCommandOutput, EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ModifyVpcBlockPublicAccessExclusionCommandInput): import("@smithy/smithy-client").CommandImpl<ModifyVpcBlockPublicAccessExclusionCommandInput, ModifyVpcBlockPublicAccessExclusionCommandOutput, EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Modify VPC Block Public Access (BPA) exclusions. A VPC BPA exclusion is a mode that can be applied to a single VPC or subnet that exempts it from the account’s BPA mode and will allow bidirectional or egress-only access. You can create BPA exclusions for VPCs and subnets even when BPA is not enabled on the account to ensure that there is no traffic disruption to the exclusions when VPC BPA is turned on.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { EC2Client, ModifyVpcBlockPublicAccessExclusionCommand } from "@aws-sdk/client-ec2"; // ES Modules import
|
|
35
|
+
* // const { EC2Client, ModifyVpcBlockPublicAccessExclusionCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
|
|
36
|
+
* const client = new EC2Client(config);
|
|
37
|
+
* const input = { // ModifyVpcBlockPublicAccessExclusionRequest
|
|
38
|
+
* DryRun: true || false,
|
|
39
|
+
* ExclusionId: "STRING_VALUE", // required
|
|
40
|
+
* InternetGatewayExclusionMode: "allow-bidirectional" || "allow-egress", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new ModifyVpcBlockPublicAccessExclusionCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // ModifyVpcBlockPublicAccessExclusionResult
|
|
45
|
+
* // VpcBlockPublicAccessExclusion: { // VpcBlockPublicAccessExclusion
|
|
46
|
+
* // ExclusionId: "STRING_VALUE",
|
|
47
|
+
* // InternetGatewayExclusionMode: "allow-bidirectional" || "allow-egress",
|
|
48
|
+
* // ResourceArn: "STRING_VALUE",
|
|
49
|
+
* // State: "create-in-progress" || "create-complete" || "create-failed" || "update-in-progress" || "update-complete" || "update-failed" || "delete-in-progress" || "delete-complete" || "disable-in-progress" || "disable-complete",
|
|
50
|
+
* // Reason: "STRING_VALUE",
|
|
51
|
+
* // CreationTimestamp: new Date("TIMESTAMP"),
|
|
52
|
+
* // LastUpdateTimestamp: new Date("TIMESTAMP"),
|
|
53
|
+
* // DeletionTimestamp: new Date("TIMESTAMP"),
|
|
54
|
+
* // Tags: [ // TagList
|
|
55
|
+
* // { // Tag
|
|
56
|
+
* // Key: "STRING_VALUE",
|
|
57
|
+
* // Value: "STRING_VALUE",
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // },
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param ModifyVpcBlockPublicAccessExclusionCommandInput - {@link ModifyVpcBlockPublicAccessExclusionCommandInput}
|
|
66
|
+
* @returns {@link ModifyVpcBlockPublicAccessExclusionCommandOutput}
|
|
67
|
+
* @see {@link ModifyVpcBlockPublicAccessExclusionCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link ModifyVpcBlockPublicAccessExclusionCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link EC2ServiceException}
|
|
72
|
+
* <p>Base exception class for all service exceptions from EC2 service.</p>
|
|
73
|
+
*
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
export declare class ModifyVpcBlockPublicAccessExclusionCommand extends ModifyVpcBlockPublicAccessExclusionCommand_base {
|
|
77
|
+
/** @internal type navigation helper, not in runtime. */
|
|
78
|
+
protected static __types: {
|
|
79
|
+
api: {
|
|
80
|
+
input: ModifyVpcBlockPublicAccessExclusionRequest;
|
|
81
|
+
output: ModifyVpcBlockPublicAccessExclusionResult;
|
|
82
|
+
};
|
|
83
|
+
sdk: {
|
|
84
|
+
input: ModifyVpcBlockPublicAccessExclusionCommandInput;
|
|
85
|
+
output: ModifyVpcBlockPublicAccessExclusionCommandOutput;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
4
|
+
import { ModifyVpcBlockPublicAccessOptionsRequest, ModifyVpcBlockPublicAccessOptionsResult } from "../models/models_7";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ModifyVpcBlockPublicAccessOptionsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ModifyVpcBlockPublicAccessOptionsCommandInput extends ModifyVpcBlockPublicAccessOptionsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ModifyVpcBlockPublicAccessOptionsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ModifyVpcBlockPublicAccessOptionsCommandOutput extends ModifyVpcBlockPublicAccessOptionsResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ModifyVpcBlockPublicAccessOptionsCommand_base: {
|
|
25
|
+
new (input: ModifyVpcBlockPublicAccessOptionsCommandInput): import("@smithy/smithy-client").CommandImpl<ModifyVpcBlockPublicAccessOptionsCommandInput, ModifyVpcBlockPublicAccessOptionsCommandOutput, EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ModifyVpcBlockPublicAccessOptionsCommandInput): import("@smithy/smithy-client").CommandImpl<ModifyVpcBlockPublicAccessOptionsCommandInput, ModifyVpcBlockPublicAccessOptionsCommandOutput, EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Modify VPC Block Public Access (BPA) options. VPC Block public Access (BPA) enables you to block 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. To learn more about VPC BPA, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html">Block public access to VPCs and subnets</a> in the <i>Amazon VPC User Guide</i>.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { EC2Client, ModifyVpcBlockPublicAccessOptionsCommand } from "@aws-sdk/client-ec2"; // ES Modules import
|
|
35
|
+
* // const { EC2Client, ModifyVpcBlockPublicAccessOptionsCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
|
|
36
|
+
* const client = new EC2Client(config);
|
|
37
|
+
* const input = { // ModifyVpcBlockPublicAccessOptionsRequest
|
|
38
|
+
* DryRun: true || false,
|
|
39
|
+
* InternetGatewayBlockMode: "off" || "block-bidirectional" || "block-ingress", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ModifyVpcBlockPublicAccessOptionsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ModifyVpcBlockPublicAccessOptionsResult
|
|
44
|
+
* // VpcBlockPublicAccessOptions: { // VpcBlockPublicAccessOptions
|
|
45
|
+
* // AwsAccountId: "STRING_VALUE",
|
|
46
|
+
* // AwsRegion: "STRING_VALUE",
|
|
47
|
+
* // State: "default-state" || "update-in-progress" || "update-complete",
|
|
48
|
+
* // InternetGatewayBlockMode: "off" || "block-bidirectional" || "block-ingress",
|
|
49
|
+
* // Reason: "STRING_VALUE",
|
|
50
|
+
* // LastUpdateTimestamp: new Date("TIMESTAMP"),
|
|
51
|
+
* // },
|
|
52
|
+
* // };
|
|
53
|
+
*
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @param ModifyVpcBlockPublicAccessOptionsCommandInput - {@link ModifyVpcBlockPublicAccessOptionsCommandInput}
|
|
57
|
+
* @returns {@link ModifyVpcBlockPublicAccessOptionsCommandOutput}
|
|
58
|
+
* @see {@link ModifyVpcBlockPublicAccessOptionsCommandInput} for command's `input` shape.
|
|
59
|
+
* @see {@link ModifyVpcBlockPublicAccessOptionsCommandOutput} for command's `response` shape.
|
|
60
|
+
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link EC2ServiceException}
|
|
63
|
+
* <p>Base exception class for all service exceptions from EC2 service.</p>
|
|
64
|
+
*
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
export declare class ModifyVpcBlockPublicAccessOptionsCommand extends ModifyVpcBlockPublicAccessOptionsCommand_base {
|
|
68
|
+
/** @internal type navigation helper, not in runtime. */
|
|
69
|
+
protected static __types: {
|
|
70
|
+
api: {
|
|
71
|
+
input: ModifyVpcBlockPublicAccessOptionsRequest;
|
|
72
|
+
output: ModifyVpcBlockPublicAccessOptionsResult;
|
|
73
|
+
};
|
|
74
|
+
sdk: {
|
|
75
|
+
input: ModifyVpcBlockPublicAccessOptionsCommandInput;
|
|
76
|
+
output: ModifyVpcBlockPublicAccessOptionsCommandOutput;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
}
|