@aws-sdk/client-ec2 3.445.0 → 3.448.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_5.js +6 -1
- package/dist-cjs/protocols/Aws_ec2.js +177 -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_5.js +5 -0
- package/dist-es/protocols/Aws_ec2.js +153 -0
- package/dist-types/EC2.d.ts +21 -0
- package/dist-types/EC2Client.d.ts +5 -2
- package/dist-types/commands/DisableSnapshotBlockPublicAccessCommand.d.ts +81 -0
- package/dist-types/commands/EnableSnapshotBlockPublicAccessCommand.d.ts +85 -0
- package/dist-types/commands/GetSnapshotBlockPublicAccessStateCommand.d.ts +76 -0
- package/dist-types/commands/GetTransitGatewayMulticastDomainAssociationsCommand.d.ts +2 -1
- package/dist-types/commands/GetTransitGatewayPolicyTableAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/GetTransitGatewayPolicyTableEntriesCommand.d.ts +1 -2
- 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/index.d.ts +3 -0
- package/dist-types/models/models_5.d.ts +129 -169
- package/dist-types/models/models_6.d.ts +172 -179
- package/dist-types/models/models_7.d.ts +178 -2
- 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/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/GetTransitGatewayMulticastDomainAssociationsCommand.d.ts +2 -4
- 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/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_5.d.ts +26 -39
- package/dist-types/ts3.4/models/models_6.d.ts +41 -42
- package/dist-types/ts3.4/models/models_7.d.ts +41 -1
- package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +36 -0
- package/package.json +1 -1
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,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",
|