@aws-sdk/client-ec2 3.445.0 → 3.449.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 +24 -0
- package/dist-cjs/EC2.js +6 -0
- package/dist-cjs/commands/DisableSnapshotBlockPublicAccessCommand.js +51 -0
- package/dist-cjs/commands/EnableSnapshotBlockPublicAccessCommand.js +51 -0
- package/dist-cjs/commands/GetSnapshotBlockPublicAccessStateCommand.js +51 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_1.js +1 -16
- package/dist-cjs/models/models_2.js +17 -2
- package/dist-cjs/models/models_5.js +6 -1
- package/dist-cjs/protocols/Aws_ec2.js +272 -18
- package/dist-es/EC2.js +6 -0
- package/dist-es/commands/DisableSnapshotBlockPublicAccessCommand.js +47 -0
- package/dist-es/commands/EnableSnapshotBlockPublicAccessCommand.js +47 -0
- package/dist-es/commands/GetSnapshotBlockPublicAccessStateCommand.js +47 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_1.js +0 -15
- package/dist-es/models/models_2.js +15 -0
- package/dist-es/models/models_5.js +5 -0
- package/dist-es/protocols/Aws_ec2.js +248 -0
- package/dist-types/EC2.d.ts +21 -0
- package/dist-types/EC2Client.d.ts +5 -2
- package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +6 -0
- package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +12 -0
- package/dist-types/commands/CreatePlacementGroupCommand.d.ts +1 -2
- package/dist-types/commands/DeleteNetworkInterfaceCommand.d.ts +1 -1
- package/dist-types/commands/DeleteNetworkInterfacePermissionCommand.d.ts +1 -1
- package/dist-types/commands/DeletePlacementGroupCommand.d.ts +1 -1
- package/dist-types/commands/DescribeInstanceEventNotificationAttributesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeInstanceEventWindowsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeInstancesCommand.d.ts +6 -0
- package/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +6 -0
- package/dist-types/commands/DescribeSpotFleetRequestsCommand.d.ts +6 -0
- package/dist-types/commands/DescribeSpotInstanceRequestsCommand.d.ts +6 -0
- package/dist-types/commands/DescribeTransitGatewayRouteTablesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTransitGatewayVpcAttachmentsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTransitGatewaysCommand.d.ts +1 -1
- package/dist-types/commands/DisableSnapshotBlockPublicAccessCommand.d.ts +81 -0
- package/dist-types/commands/EnableSnapshotBlockPublicAccessCommand.d.ts +85 -0
- package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +6 -0
- package/dist-types/commands/GetSnapshotBlockPublicAccessStateCommand.d.ts +76 -0
- package/dist-types/commands/GetSubnetCidrReservationsCommand.d.ts +2 -1
- package/dist-types/commands/GetTransitGatewayAttachmentPropagationsCommand.d.ts +1 -1
- package/dist-types/commands/GetTransitGatewayMulticastDomainAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/GetTransitGatewayPolicyTableAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/GetTransitGatewayPolicyTableEntriesCommand.d.ts +1 -2
- package/dist-types/commands/RequestSpotFleetCommand.d.ts +6 -0
- package/dist-types/commands/RequestSpotInstancesCommand.d.ts +12 -0
- package/dist-types/commands/ResetImageAttributeCommand.d.ts +1 -1
- package/dist-types/commands/ResetInstanceAttributeCommand.d.ts +1 -1
- package/dist-types/commands/ResetNetworkInterfaceAttributeCommand.d.ts +1 -1
- package/dist-types/commands/ResetSnapshotAttributeCommand.d.ts +1 -1
- package/dist-types/commands/RestoreAddressToClassicCommand.d.ts +1 -1
- package/dist-types/commands/RestoreImageFromRecycleBinCommand.d.ts +1 -1
- package/dist-types/commands/RestoreManagedPrefixListVersionCommand.d.ts +1 -1
- package/dist-types/commands/RestoreSnapshotFromRecycleBinCommand.d.ts +1 -1
- package/dist-types/commands/RestoreSnapshotTierCommand.d.ts +1 -2
- package/dist-types/commands/RunInstancesCommand.d.ts +12 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +3 -2
- package/dist-types/models/models_1.d.ts +99 -99
- package/dist-types/models/models_2.d.ts +89 -71
- package/dist-types/models/models_3.d.ts +71 -126
- package/dist-types/models/models_4.d.ts +182 -240
- package/dist-types/models/models_5.d.ts +370 -354
- package/dist-types/models/models_6.d.ts +350 -306
- package/dist-types/models/models_7.d.ts +308 -5
- package/dist-types/protocols/Aws_ec2.d.ts +27 -0
- package/dist-types/ts3.4/EC2.d.ts +57 -0
- package/dist-types/ts3.4/EC2Client.d.ts +18 -0
- package/dist-types/ts3.4/commands/CreatePlacementGroupCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DeleteNetworkInterfaceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteNetworkInterfacePermissionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeletePlacementGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeInstanceEventNotificationAttributesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeInstanceEventWindowsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeTransitGatewayRouteTablesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeTransitGatewayVpcAttachmentsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeTransitGatewaysCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisableSnapshotBlockPublicAccessCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/EnableSnapshotBlockPublicAccessCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetSnapshotBlockPublicAccessStateCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetSubnetCidrReservationsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/GetTransitGatewayAttachmentPropagationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetTransitGatewayMulticastDomainAssociationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetTransitGatewayPolicyTableAssociationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetTransitGatewayPolicyTableEntriesCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ResetImageAttributeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ResetInstanceAttributeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ResetNetworkInterfaceAttributeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ResetSnapshotAttributeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RestoreAddressToClassicCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RestoreImageFromRecycleBinCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RestoreManagedPrefixListVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RestoreSnapshotFromRecycleBinCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RestoreSnapshotTierCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_1.d.ts +16 -28
- package/dist-types/ts3.4/models/models_2.d.ts +28 -19
- package/dist-types/ts3.4/models/models_3.d.ts +16 -18
- package/dist-types/ts3.4/models/models_4.d.ts +29 -36
- package/dist-types/ts3.4/models/models_5.d.ts +62 -75
- package/dist-types/ts3.4/models/models_6.d.ts +76 -70
- package/dist-types/ts3.4/models/models_7.d.ts +77 -2
- package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +36 -0
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -3260,6 +3260,14 @@ DisableSerialConsoleAccess
|
|
|
3260
3260
|
|
|
3261
3261
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/classes/disableserialconsoleaccesscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/disableserialconsoleaccesscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/disableserialconsoleaccesscommandoutput.html)
|
|
3262
3262
|
|
|
3263
|
+
</details>
|
|
3264
|
+
<details>
|
|
3265
|
+
<summary>
|
|
3266
|
+
DisableSnapshotBlockPublicAccess
|
|
3267
|
+
</summary>
|
|
3268
|
+
|
|
3269
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/classes/disablesnapshotblockpublicaccesscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/disablesnapshotblockpublicaccesscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/disablesnapshotblockpublicaccesscommandoutput.html)
|
|
3270
|
+
|
|
3263
3271
|
</details>
|
|
3264
3272
|
<details>
|
|
3265
3273
|
<summary>
|
|
@@ -3492,6 +3500,14 @@ EnableSerialConsoleAccess
|
|
|
3492
3500
|
|
|
3493
3501
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/classes/enableserialconsoleaccesscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/enableserialconsoleaccesscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/enableserialconsoleaccesscommandoutput.html)
|
|
3494
3502
|
|
|
3503
|
+
</details>
|
|
3504
|
+
<details>
|
|
3505
|
+
<summary>
|
|
3506
|
+
EnableSnapshotBlockPublicAccess
|
|
3507
|
+
</summary>
|
|
3508
|
+
|
|
3509
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/classes/enablesnapshotblockpublicaccesscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/enablesnapshotblockpublicaccesscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/enablesnapshotblockpublicaccesscommandoutput.html)
|
|
3510
|
+
|
|
3495
3511
|
</details>
|
|
3496
3512
|
<details>
|
|
3497
3513
|
<summary>
|
|
@@ -3812,6 +3828,14 @@ GetSerialConsoleAccessStatus
|
|
|
3812
3828
|
|
|
3813
3829
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/classes/getserialconsoleaccessstatuscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/getserialconsoleaccessstatuscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/getserialconsoleaccessstatuscommandoutput.html)
|
|
3814
3830
|
|
|
3831
|
+
</details>
|
|
3832
|
+
<details>
|
|
3833
|
+
<summary>
|
|
3834
|
+
GetSnapshotBlockPublicAccessState
|
|
3835
|
+
</summary>
|
|
3836
|
+
|
|
3837
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/classes/getsnapshotblockpublicaccessstatecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/getsnapshotblockpublicaccessstatecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/getsnapshotblockpublicaccessstatecommandoutput.html)
|
|
3838
|
+
|
|
3815
3839
|
</details>
|
|
3816
3840
|
<details>
|
|
3817
3841
|
<summary>
|
package/dist-cjs/EC2.js
CHANGED
|
@@ -381,6 +381,7 @@ const DisableImageCommand_1 = require("./commands/DisableImageCommand");
|
|
|
381
381
|
const DisableImageDeprecationCommand_1 = require("./commands/DisableImageDeprecationCommand");
|
|
382
382
|
const DisableIpamOrganizationAdminAccountCommand_1 = require("./commands/DisableIpamOrganizationAdminAccountCommand");
|
|
383
383
|
const DisableSerialConsoleAccessCommand_1 = require("./commands/DisableSerialConsoleAccessCommand");
|
|
384
|
+
const DisableSnapshotBlockPublicAccessCommand_1 = require("./commands/DisableSnapshotBlockPublicAccessCommand");
|
|
384
385
|
const DisableTransitGatewayRouteTablePropagationCommand_1 = require("./commands/DisableTransitGatewayRouteTablePropagationCommand");
|
|
385
386
|
const DisableVgwRoutePropagationCommand_1 = require("./commands/DisableVgwRoutePropagationCommand");
|
|
386
387
|
const DisableVpcClassicLinkCommand_1 = require("./commands/DisableVpcClassicLinkCommand");
|
|
@@ -410,6 +411,7 @@ const EnableImageDeprecationCommand_1 = require("./commands/EnableImageDeprecati
|
|
|
410
411
|
const EnableIpamOrganizationAdminAccountCommand_1 = require("./commands/EnableIpamOrganizationAdminAccountCommand");
|
|
411
412
|
const EnableReachabilityAnalyzerOrganizationSharingCommand_1 = require("./commands/EnableReachabilityAnalyzerOrganizationSharingCommand");
|
|
412
413
|
const EnableSerialConsoleAccessCommand_1 = require("./commands/EnableSerialConsoleAccessCommand");
|
|
414
|
+
const EnableSnapshotBlockPublicAccessCommand_1 = require("./commands/EnableSnapshotBlockPublicAccessCommand");
|
|
413
415
|
const EnableTransitGatewayRouteTablePropagationCommand_1 = require("./commands/EnableTransitGatewayRouteTablePropagationCommand");
|
|
414
416
|
const EnableVgwRoutePropagationCommand_1 = require("./commands/EnableVgwRoutePropagationCommand");
|
|
415
417
|
const EnableVolumeIOCommand_1 = require("./commands/EnableVolumeIOCommand");
|
|
@@ -450,6 +452,7 @@ const GetPasswordDataCommand_1 = require("./commands/GetPasswordDataCommand");
|
|
|
450
452
|
const GetReservedInstancesExchangeQuoteCommand_1 = require("./commands/GetReservedInstancesExchangeQuoteCommand");
|
|
451
453
|
const GetSecurityGroupsForVpcCommand_1 = require("./commands/GetSecurityGroupsForVpcCommand");
|
|
452
454
|
const GetSerialConsoleAccessStatusCommand_1 = require("./commands/GetSerialConsoleAccessStatusCommand");
|
|
455
|
+
const GetSnapshotBlockPublicAccessStateCommand_1 = require("./commands/GetSnapshotBlockPublicAccessStateCommand");
|
|
453
456
|
const GetSpotPlacementScoresCommand_1 = require("./commands/GetSpotPlacementScoresCommand");
|
|
454
457
|
const GetSubnetCidrReservationsCommand_1 = require("./commands/GetSubnetCidrReservationsCommand");
|
|
455
458
|
const GetTransitGatewayAttachmentPropagationsCommand_1 = require("./commands/GetTransitGatewayAttachmentPropagationsCommand");
|
|
@@ -985,6 +988,7 @@ const commands = {
|
|
|
985
988
|
DisableImageDeprecationCommand: DisableImageDeprecationCommand_1.DisableImageDeprecationCommand,
|
|
986
989
|
DisableIpamOrganizationAdminAccountCommand: DisableIpamOrganizationAdminAccountCommand_1.DisableIpamOrganizationAdminAccountCommand,
|
|
987
990
|
DisableSerialConsoleAccessCommand: DisableSerialConsoleAccessCommand_1.DisableSerialConsoleAccessCommand,
|
|
991
|
+
DisableSnapshotBlockPublicAccessCommand: DisableSnapshotBlockPublicAccessCommand_1.DisableSnapshotBlockPublicAccessCommand,
|
|
988
992
|
DisableTransitGatewayRouteTablePropagationCommand: DisableTransitGatewayRouteTablePropagationCommand_1.DisableTransitGatewayRouteTablePropagationCommand,
|
|
989
993
|
DisableVgwRoutePropagationCommand: DisableVgwRoutePropagationCommand_1.DisableVgwRoutePropagationCommand,
|
|
990
994
|
DisableVpcClassicLinkCommand: DisableVpcClassicLinkCommand_1.DisableVpcClassicLinkCommand,
|
|
@@ -1014,6 +1018,7 @@ const commands = {
|
|
|
1014
1018
|
EnableIpamOrganizationAdminAccountCommand: EnableIpamOrganizationAdminAccountCommand_1.EnableIpamOrganizationAdminAccountCommand,
|
|
1015
1019
|
EnableReachabilityAnalyzerOrganizationSharingCommand: EnableReachabilityAnalyzerOrganizationSharingCommand_1.EnableReachabilityAnalyzerOrganizationSharingCommand,
|
|
1016
1020
|
EnableSerialConsoleAccessCommand: EnableSerialConsoleAccessCommand_1.EnableSerialConsoleAccessCommand,
|
|
1021
|
+
EnableSnapshotBlockPublicAccessCommand: EnableSnapshotBlockPublicAccessCommand_1.EnableSnapshotBlockPublicAccessCommand,
|
|
1017
1022
|
EnableTransitGatewayRouteTablePropagationCommand: EnableTransitGatewayRouteTablePropagationCommand_1.EnableTransitGatewayRouteTablePropagationCommand,
|
|
1018
1023
|
EnableVgwRoutePropagationCommand: EnableVgwRoutePropagationCommand_1.EnableVgwRoutePropagationCommand,
|
|
1019
1024
|
EnableVolumeIOCommand: EnableVolumeIOCommand_1.EnableVolumeIOCommand,
|
|
@@ -1054,6 +1059,7 @@ const commands = {
|
|
|
1054
1059
|
GetReservedInstancesExchangeQuoteCommand: GetReservedInstancesExchangeQuoteCommand_1.GetReservedInstancesExchangeQuoteCommand,
|
|
1055
1060
|
GetSecurityGroupsForVpcCommand: GetSecurityGroupsForVpcCommand_1.GetSecurityGroupsForVpcCommand,
|
|
1056
1061
|
GetSerialConsoleAccessStatusCommand: GetSerialConsoleAccessStatusCommand_1.GetSerialConsoleAccessStatusCommand,
|
|
1062
|
+
GetSnapshotBlockPublicAccessStateCommand: GetSnapshotBlockPublicAccessStateCommand_1.GetSnapshotBlockPublicAccessStateCommand,
|
|
1057
1063
|
GetSpotPlacementScoresCommand: GetSpotPlacementScoresCommand_1.GetSpotPlacementScoresCommand,
|
|
1058
1064
|
GetSubnetCidrReservationsCommand: GetSubnetCidrReservationsCommand_1.GetSubnetCidrReservationsCommand,
|
|
1059
1065
|
GetTransitGatewayAttachmentPropagationsCommand: GetTransitGatewayAttachmentPropagationsCommand_1.GetTransitGatewayAttachmentPropagationsCommand,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DisableSnapshotBlockPublicAccessCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_ec2_1 = require("../protocols/Aws_ec2");
|
|
10
|
+
class DisableSnapshotBlockPublicAccessCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DisableSnapshotBlockPublicAccessCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "EC2Client";
|
|
29
|
+
const commandName = "DisableSnapshotBlockPublicAccessCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonEC2",
|
|
38
|
+
operation: "DisableSnapshotBlockPublicAccess",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_ec2_1.se_DisableSnapshotBlockPublicAccessCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_ec2_1.de_DisableSnapshotBlockPublicAccessCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.DisableSnapshotBlockPublicAccessCommand = DisableSnapshotBlockPublicAccessCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnableSnapshotBlockPublicAccessCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_ec2_1 = require("../protocols/Aws_ec2");
|
|
10
|
+
class EnableSnapshotBlockPublicAccessCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, EnableSnapshotBlockPublicAccessCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "EC2Client";
|
|
29
|
+
const commandName = "EnableSnapshotBlockPublicAccessCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonEC2",
|
|
38
|
+
operation: "EnableSnapshotBlockPublicAccess",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_ec2_1.se_EnableSnapshotBlockPublicAccessCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_ec2_1.de_EnableSnapshotBlockPublicAccessCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.EnableSnapshotBlockPublicAccessCommand = EnableSnapshotBlockPublicAccessCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSnapshotBlockPublicAccessStateCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_ec2_1 = require("../protocols/Aws_ec2");
|
|
10
|
+
class GetSnapshotBlockPublicAccessStateCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetSnapshotBlockPublicAccessStateCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "EC2Client";
|
|
29
|
+
const commandName = "GetSnapshotBlockPublicAccessStateCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonEC2",
|
|
38
|
+
operation: "GetSnapshotBlockPublicAccessState",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_ec2_1.se_GetSnapshotBlockPublicAccessStateCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_ec2_1.de_GetSnapshotBlockPublicAccessStateCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.GetSnapshotBlockPublicAccessStateCommand = GetSnapshotBlockPublicAccessStateCommand;
|
|
@@ -380,6 +380,7 @@ tslib_1.__exportStar(require("./DisableImageCommand"), exports);
|
|
|
380
380
|
tslib_1.__exportStar(require("./DisableImageDeprecationCommand"), exports);
|
|
381
381
|
tslib_1.__exportStar(require("./DisableIpamOrganizationAdminAccountCommand"), exports);
|
|
382
382
|
tslib_1.__exportStar(require("./DisableSerialConsoleAccessCommand"), exports);
|
|
383
|
+
tslib_1.__exportStar(require("./DisableSnapshotBlockPublicAccessCommand"), exports);
|
|
383
384
|
tslib_1.__exportStar(require("./DisableTransitGatewayRouteTablePropagationCommand"), exports);
|
|
384
385
|
tslib_1.__exportStar(require("./DisableVgwRoutePropagationCommand"), exports);
|
|
385
386
|
tslib_1.__exportStar(require("./DisableVpcClassicLinkCommand"), exports);
|
|
@@ -409,6 +410,7 @@ tslib_1.__exportStar(require("./EnableImageDeprecationCommand"), exports);
|
|
|
409
410
|
tslib_1.__exportStar(require("./EnableIpamOrganizationAdminAccountCommand"), exports);
|
|
410
411
|
tslib_1.__exportStar(require("./EnableReachabilityAnalyzerOrganizationSharingCommand"), exports);
|
|
411
412
|
tslib_1.__exportStar(require("./EnableSerialConsoleAccessCommand"), exports);
|
|
413
|
+
tslib_1.__exportStar(require("./EnableSnapshotBlockPublicAccessCommand"), exports);
|
|
412
414
|
tslib_1.__exportStar(require("./EnableTransitGatewayRouteTablePropagationCommand"), exports);
|
|
413
415
|
tslib_1.__exportStar(require("./EnableVgwRoutePropagationCommand"), exports);
|
|
414
416
|
tslib_1.__exportStar(require("./EnableVolumeIOCommand"), exports);
|
|
@@ -449,6 +451,7 @@ tslib_1.__exportStar(require("./GetPasswordDataCommand"), exports);
|
|
|
449
451
|
tslib_1.__exportStar(require("./GetReservedInstancesExchangeQuoteCommand"), exports);
|
|
450
452
|
tslib_1.__exportStar(require("./GetSecurityGroupsForVpcCommand"), exports);
|
|
451
453
|
tslib_1.__exportStar(require("./GetSerialConsoleAccessStatusCommand"), exports);
|
|
454
|
+
tslib_1.__exportStar(require("./GetSnapshotBlockPublicAccessStateCommand"), exports);
|
|
452
455
|
tslib_1.__exportStar(require("./GetSpotPlacementScoresCommand"), exports);
|
|
453
456
|
tslib_1.__exportStar(require("./GetSubnetCidrReservationsCommand"), exports);
|
|
454
457
|
tslib_1.__exportStar(require("./GetTransitGatewayAttachmentPropagationsCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MarketType = exports.ShutdownBehavior = exports.AmdSevSnpSpecification = exports.CapacityReservationPreference = exports.KeyType = exports.KeyFormat = exports.IpamScopeState = exports.IpamResourceDiscoveryState = exports.IpamPoolState = exports.IpamScopeType = exports.IpamPoolPublicIpSource = exports.IpamPoolAwsService = exports.IpamState = exports.ExportTaskState = exports.ExportEnvironment = exports.DiskImageFormat = exports.ContainerFormat = exports.Ec2InstanceConnectEndpointState = exports.VolumeType = exports.TrafficType = exports.FlowLogsResourceType = exports.LogDestinationType = exports.DestinationFileFormat = exports.PlatformValues = exports.InstanceLifecycle = exports.FleetType = exports.TargetCapacityUnitType = exports.DefaultTargetCapacityType = exports.FleetReplacementStrategy = exports.SpotInstanceInterruptionBehavior = exports.SpotAllocationStrategy = exports.FleetCapacityReservationUsageStrategy = exports.FleetOnDemandAllocationStrategy = exports.LocalStorageType = exports.LocalStorage = exports.InstanceGeneration = exports.CpuManufacturer = exports.BurstablePerformance = exports.BareMetal = exports.FleetExcessCapacityTerminationPolicy = exports.VpcState = exports.Tenancy = exports.SubnetState = exports.HostnameType = exports.GatewayType = exports.ClientVpnRouteStatusCode = exports.ClientVpnEndpointStatusCode = exports.TransportProtocol = exports.SelfServicePortal = exports.ClientVpnAuthenticationType = void 0;
|
|
4
|
-
exports.CreateLaunchTemplateVersionResultFilterSensitiveLog = exports.LaunchTemplateVersionFilterSensitiveLog = exports.ResponseLaunchTemplateDataFilterSensitiveLog = exports.CreateLaunchTemplateVersionRequestFilterSensitiveLog = exports.CreateLaunchTemplateRequestFilterSensitiveLog = exports.RequestLaunchTemplateDataFilterSensitiveLog = exports.KeyPairFilterSensitiveLog = exports.
|
|
4
|
+
exports.CreateLaunchTemplateVersionResultFilterSensitiveLog = exports.LaunchTemplateVersionFilterSensitiveLog = exports.ResponseLaunchTemplateDataFilterSensitiveLog = exports.CreateLaunchTemplateVersionRequestFilterSensitiveLog = exports.CreateLaunchTemplateRequestFilterSensitiveLog = exports.RequestLaunchTemplateDataFilterSensitiveLog = exports.KeyPairFilterSensitiveLog = exports.NetworkInterfacePermissionStateCode = exports.InterfacePermissionType = exports.NetworkInterfaceStatus = exports.NetworkInterfaceType = exports.NetworkInterfaceCreationType = exports.RuleAction = exports.NatGatewayState = exports.ConnectivityType = exports.PrefixListState = exports.LocalGatewayRouteTableMode = exports.LocalGatewayRouteType = exports.LocalGatewayRouteState = exports.LaunchTemplateInstanceMetadataOptionsState = exports.LaunchTemplateInstanceMetadataTagsState = exports.LaunchTemplateHttpTokensState = exports.LaunchTemplateInstanceMetadataProtocolIpv6 = exports.LaunchTemplateInstanceMetadataEndpointState = exports.LaunchTemplateAutoRecoveryState = exports.SpotInstanceType = exports.InstanceInterruptionBehavior = void 0;
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
exports.ClientVpnAuthenticationType = {
|
|
7
7
|
certificate_authentication: "certificate-authentication",
|
|
@@ -391,21 +391,6 @@ exports.NetworkInterfacePermissionStateCode = {
|
|
|
391
391
|
revoked: "revoked",
|
|
392
392
|
revoking: "revoking",
|
|
393
393
|
};
|
|
394
|
-
exports.SpreadLevel = {
|
|
395
|
-
host: "host",
|
|
396
|
-
rack: "rack",
|
|
397
|
-
};
|
|
398
|
-
exports.PlacementStrategy = {
|
|
399
|
-
cluster: "cluster",
|
|
400
|
-
partition: "partition",
|
|
401
|
-
spread: "spread",
|
|
402
|
-
};
|
|
403
|
-
exports.PlacementGroupState = {
|
|
404
|
-
available: "available",
|
|
405
|
-
deleted: "deleted",
|
|
406
|
-
deleting: "deleting",
|
|
407
|
-
pending: "pending",
|
|
408
|
-
};
|
|
409
394
|
const KeyPairFilterSensitiveLog = (obj) => ({
|
|
410
395
|
...obj,
|
|
411
396
|
...(obj.KeyMaterial && { KeyMaterial: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.CreateVpnConnectionResultFilterSensitiveLog = exports.VpnConnectionFilterSensitiveLog = exports.VpnConnectionOptionsFilterSensitiveLog = exports.TunnelOptionFilterSensitiveLog = exports.CreateVpnConnectionRequestFilterSensitiveLog = exports.VpnConnectionOptionsSpecificationFilterSensitiveLog = exports.VpnTunnelOptionsSpecificationFilterSensitiveLog = exports.CreateVerifiedAccessTrustProviderResultFilterSensitiveLog = exports.CreateVerifiedAccessTrustProviderRequestFilterSensitiveLog = exports.CreateVerifiedAccessTrustProviderOidcOptionsFilterSensitiveLog = exports.LaunchTemplateErrorCode = exports.DeleteFleetErrorCode = exports.FleetStateCode = exports.TelemetryStatus = exports.VpnState = exports.VpnStaticRouteSource = exports.GatewayAssociationState = void 0;
|
|
3
|
+
exports.ServiceState = exports.DnsNameState = exports.PayerResponsibility = exports.ConnectionNotificationType = exports.ConnectionNotificationState = exports.State = exports.VpcEndpointType = exports.IpAddressType = exports.DnsRecordIpType = exports.VolumeState = exports.VerifiedAccessEndpointStatusCode = exports.VerifiedAccessEndpointProtocol = exports.VerifiedAccessEndpointType = exports.VerifiedAccessEndpointAttachmentType = exports.TransitGatewayRouteTableAnnouncementState = exports.TransitGatewayRouteTableAnnouncementDirection = exports.TransitGatewayRouteTableState = exports.TransitGatewayRouteType = exports.TransitGatewayRouteState = exports.TransitGatewayPrefixListReferenceState = exports.TransitGatewayPolicyTableState = exports.TransitGatewayMulticastDomainState = exports.StaticSourcesSupportValue = exports.Igmpv2SupportValue = exports.AutoAcceptSharedAssociationsValue = exports.TransitGatewayConnectPeerState = exports.BgpStatus = exports.ProtocolValue = exports.TransitGatewayState = exports.VpnEcmpSupportValue = exports.MulticastSupportValue = exports.DefaultRouteTablePropagationValue = exports.DefaultRouteTableAssociationValue = exports.AutoAcceptSharedAttachmentsValue = exports.TrafficMirrorTargetType = exports.TrafficMirrorNetworkService = exports.TrafficDirection = exports.TrafficMirrorRuleAction = exports.SubnetCidrReservationType = exports.DatafeedSubscriptionState = exports.CopyTagsFromSource = exports.StorageTier = exports.SnapshotState = exports.SSEType = exports.RouteState = exports.RouteOrigin = exports.ReplaceRootVolumeTaskState = exports.PlacementGroupState = exports.PlacementStrategy = exports.SpreadLevel = void 0;
|
|
4
|
+
exports.CreateVpnConnectionResultFilterSensitiveLog = exports.VpnConnectionFilterSensitiveLog = exports.VpnConnectionOptionsFilterSensitiveLog = exports.TunnelOptionFilterSensitiveLog = exports.CreateVpnConnectionRequestFilterSensitiveLog = exports.VpnConnectionOptionsSpecificationFilterSensitiveLog = exports.VpnTunnelOptionsSpecificationFilterSensitiveLog = exports.CreateVerifiedAccessTrustProviderResultFilterSensitiveLog = exports.CreateVerifiedAccessTrustProviderRequestFilterSensitiveLog = exports.CreateVerifiedAccessTrustProviderOidcOptionsFilterSensitiveLog = exports.LaunchTemplateErrorCode = exports.DeleteFleetErrorCode = exports.FleetStateCode = exports.TelemetryStatus = exports.VpnState = exports.VpnStaticRouteSource = exports.GatewayAssociationState = exports.TunnelInsideIpVersion = exports.ServiceConnectivityType = exports.ServiceType = void 0;
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const models_0_1 = require("./models_0");
|
|
7
|
+
exports.SpreadLevel = {
|
|
8
|
+
host: "host",
|
|
9
|
+
rack: "rack",
|
|
10
|
+
};
|
|
11
|
+
exports.PlacementStrategy = {
|
|
12
|
+
cluster: "cluster",
|
|
13
|
+
partition: "partition",
|
|
14
|
+
spread: "spread",
|
|
15
|
+
};
|
|
16
|
+
exports.PlacementGroupState = {
|
|
17
|
+
available: "available",
|
|
18
|
+
deleted: "deleted",
|
|
19
|
+
deleting: "deleting",
|
|
20
|
+
pending: "pending",
|
|
21
|
+
};
|
|
7
22
|
exports.ReplaceRootVolumeTaskState = {
|
|
8
23
|
failed: "failed",
|
|
9
24
|
failed_detached: "failed-detached",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetPasswordDataResultFilterSensitiveLog = exports.GetLaunchTemplateDataResultFilterSensitiveLog = exports.DetachVerifiedAccessTrustProviderResultFilterSensitiveLog = exports.DescribeVpnConnectionsResultFilterSensitiveLog = exports.DescribeVerifiedAccessTrustProvidersResultFilterSensitiveLog = exports.IpamManagementState = exports.IpamResourceType = exports.IpamDiscoveryFailureCode = exports.IpamAddressHistoryResourceType = exports.IpamOverlapStatus = exports.IpamComplianceStatus = exports.PartitionLoadFrequency = exports.UnlimitedSupportedInstanceFamily = exports.ClientCertificateRevocationListStatusCode = exports.ImageBlockPublicAccessEnabledState = exports.TransitGatewayPropagationState = exports.ImageBlockPublicAccessDisabledState = exports.VpcAttributeName = exports.VolumeStatusInfoStatus = exports.VolumeStatusName = exports.VolumeModificationState = exports.VolumeAttributeName = exports.VerifiedAccessLogDeliveryStatusCode = void 0;
|
|
3
|
+
exports.GetPasswordDataResultFilterSensitiveLog = exports.GetLaunchTemplateDataResultFilterSensitiveLog = exports.DetachVerifiedAccessTrustProviderResultFilterSensitiveLog = exports.DescribeVpnConnectionsResultFilterSensitiveLog = exports.DescribeVerifiedAccessTrustProvidersResultFilterSensitiveLog = exports.IpamManagementState = exports.IpamResourceType = exports.IpamDiscoveryFailureCode = exports.IpamAddressHistoryResourceType = exports.IpamOverlapStatus = exports.IpamComplianceStatus = exports.PartitionLoadFrequency = exports.UnlimitedSupportedInstanceFamily = exports.ClientCertificateRevocationListStatusCode = exports.ImageBlockPublicAccessEnabledState = exports.TransitGatewayPropagationState = exports.SnapshotBlockPublicAccessState = exports.ImageBlockPublicAccessDisabledState = exports.VpcAttributeName = exports.VolumeStatusInfoStatus = exports.VolumeStatusName = exports.VolumeModificationState = exports.VolumeAttributeName = exports.VerifiedAccessLogDeliveryStatusCode = void 0;
|
|
4
4
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
5
|
const models_0_1 = require("./models_0");
|
|
6
6
|
const models_1_1 = require("./models_1");
|
|
@@ -36,6 +36,11 @@ exports.VpcAttributeName = {
|
|
|
36
36
|
exports.ImageBlockPublicAccessDisabledState = {
|
|
37
37
|
unblocked: "unblocked",
|
|
38
38
|
};
|
|
39
|
+
exports.SnapshotBlockPublicAccessState = {
|
|
40
|
+
block_all_sharing: "block-all-sharing",
|
|
41
|
+
block_new_sharing: "block-new-sharing",
|
|
42
|
+
unblocked: "unblocked",
|
|
43
|
+
};
|
|
39
44
|
exports.TransitGatewayPropagationState = {
|
|
40
45
|
disabled: "disabled",
|
|
41
46
|
disabling: "disabling",
|