@aws-sdk/client-ec2 3.287.0 → 3.289.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/dist-types/commands/AllocateAddressCommand.d.ts +33 -0
- package/dist-types/commands/AssignPrivateIpAddressesCommand.d.ts +26 -0
- package/dist-types/commands/AssociateAddressCommand.d.ts +46 -0
- package/dist-types/commands/AssociateDhcpOptionsCommand.d.ts +24 -0
- package/dist-types/commands/AssociateIamInstanceProfileCommand.d.ts +27 -0
- package/dist-types/commands/AssociateRouteTableCommand.d.ts +17 -0
- package/dist-types/commands/AttachInternetGatewayCommand.d.ts +12 -0
- package/dist-types/commands/AttachNetworkInterfaceCommand.d.ts +18 -0
- package/dist-types/commands/AttachVolumeCommand.d.ts +22 -0
- package/dist-types/commands/AuthorizeSecurityGroupEgressCommand.d.ts +46 -0
- package/dist-types/commands/AuthorizeSecurityGroupIngressCommand.d.ts +72 -0
- package/dist-types/commands/CancelSpotFleetRequestsCommand.d.ts +50 -0
- package/dist-types/commands/CancelSpotInstanceRequestsCommand.d.ts +23 -0
- package/dist-types/commands/ConfirmProductInstanceCommand.d.ts +17 -0
- package/dist-types/commands/CopyImageCommand.d.ts +19 -0
- package/dist-types/commands/CopySnapshotCommand.d.ts +19 -0
- package/dist-types/commands/CreateCustomerGatewayCommand.d.ts +24 -0
- package/dist-types/commands/CreateDhcpOptionsCommand.d.ts +39 -0
- package/dist-types/commands/CreateImageCommand.d.ts +31 -0
- package/dist-types/commands/CreateInternetGatewayCommand.d.ts +18 -0
- package/dist-types/commands/CreateKeyPairCommand.d.ts +11 -0
- package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +47 -0
- package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +45 -0
- package/dist-types/commands/CreateNatGatewayCommand.d.ts +28 -0
- package/dist-types/commands/CreateNetworkAclCommand.d.ts +38 -0
- package/dist-types/commands/CreateNetworkAclEntryCommand.d.ts +20 -0
- package/dist-types/commands/CreateNetworkInterfaceCommand.d.ts +46 -0
- package/dist-types/commands/CreatePlacementGroupCommand.d.ts +12 -0
- package/dist-types/commands/CreateRouteCommand.d.ts +13 -0
- package/dist-types/commands/CreateRouteTableCommand.d.ts +29 -0
- package/dist-types/commands/CreateSecurityGroupCommand.d.ts +18 -0
- package/dist-types/commands/CreateSnapshotCommand.d.ts +24 -0
- package/dist-types/commands/CreateSpotDatafeedSubscriptionCommand.d.ts +22 -0
- package/dist-types/commands/CreateSubnetCommand.d.ts +24 -0
- package/dist-types/commands/CreateTagsCommand.d.ts +19 -0
- package/dist-types/commands/CreateVolumeCommand.d.ts +54 -0
- package/dist-types/commands/CreateVpcCommand.d.ts +22 -0
- package/dist-types/commands/DeleteCustomerGatewayCommand.d.ts +11 -0
- package/dist-types/commands/DeleteDhcpOptionsCommand.d.ts +11 -0
- package/dist-types/commands/DeleteInternetGatewayCommand.d.ts +11 -0
- package/dist-types/commands/DeleteKeyPairCommand.d.ts +11 -0
- package/dist-types/commands/DeleteLaunchTemplateCommand.d.ts +23 -0
- package/dist-types/commands/DeleteLaunchTemplateVersionsCommand.d.ts +26 -0
- package/dist-types/commands/DeleteNatGatewayCommand.d.ts +16 -0
- package/dist-types/commands/DeleteNetworkAclCommand.d.ts +11 -0
- package/dist-types/commands/DeleteNetworkAclEntryCommand.d.ts +13 -0
- package/dist-types/commands/DeleteNetworkInterfaceCommand.d.ts +11 -0
- package/dist-types/commands/DeletePlacementGroupCommand.d.ts +12 -0
- package/dist-types/commands/DeleteRouteCommand.d.ts +12 -0
- package/dist-types/commands/DeleteRouteTableCommand.d.ts +11 -0
- package/dist-types/commands/DeleteSecurityGroupCommand.d.ts +11 -0
- package/dist-types/commands/DeleteSnapshotCommand.d.ts +11 -0
- package/dist-types/commands/DeleteSpotDatafeedSubscriptionCommand.d.ts +9 -0
- package/dist-types/commands/DeleteSubnetCommand.d.ts +11 -0
- package/dist-types/commands/DeleteTagsCommand.d.ts +19 -0
- package/dist-types/commands/DeleteVolumeCommand.d.ts +11 -0
- package/dist-types/commands/DeleteVpcCommand.d.ts +11 -0
- package/dist-types/commands/DescribeAccountAttributesCommand.d.ts +96 -0
- package/dist-types/commands/DescribeAddressesCommand.d.ts +93 -0
- package/dist-types/commands/DescribeAvailabilityZonesCommand.d.ts +39 -0
- package/dist-types/commands/DescribeCustomerGatewaysCommand.d.ts +26 -0
- package/dist-types/commands/DescribeDhcpOptionsCommand.d.ts +35 -0
- package/dist-types/commands/DescribeIamInstanceProfileAssociationsCommand.d.ts +28 -0
- package/dist-types/commands/DescribeImageAttributeCommand.d.ts +22 -0
- package/dist-types/commands/DescribeImagesCommand.d.ts +46 -0
- package/dist-types/commands/DescribeInstanceAttributeCommand.d.ts +80 -0
- package/dist-types/commands/DescribeInstanceStatusCommand.d.ts +45 -0
- package/dist-types/commands/DescribeInstancesCommand.d.ts +49 -0
- package/dist-types/commands/DescribeInternetGatewaysCommand.d.ts +34 -0
- package/dist-types/commands/DescribeKeyPairsCommand.d.ts +23 -0
- package/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +64 -0
- package/dist-types/commands/DescribeLaunchTemplatesCommand.d.ts +27 -0
- package/dist-types/commands/DescribeMovingAddressesCommand.d.ts +19 -0
- package/dist-types/commands/DescribeNatGatewaysCommand.d.ts +39 -0
- package/dist-types/commands/DescribeNetworkAclsCommand.d.ts +48 -0
- package/dist-types/commands/DescribeNetworkInterfaceAttributeCommand.d.ts +89 -0
- package/dist-types/commands/DescribeNetworkInterfacesCommand.d.ts +68 -0
- package/dist-types/commands/DescribeRegionsCommand.d.ts +59 -0
- package/dist-types/commands/DescribeRouteTablesCommand.d.ts +39 -0
- package/dist-types/commands/DescribeScheduledInstanceAvailabilityCommand.d.ts +49 -0
- package/dist-types/commands/DescribeScheduledInstancesCommand.d.ts +43 -0
- package/dist-types/commands/DescribeSecurityGroupReferencesCommand.d.ts +24 -0
- package/dist-types/commands/DescribeSecurityGroupsCommand.d.ts +31 -0
- package/dist-types/commands/DescribeSnapshotAttributeCommand.d.ts +18 -0
- package/dist-types/commands/DescribeSnapshotsCommand.d.ts +68 -0
- package/dist-types/commands/DescribeSpotDatafeedSubscriptionCommand.d.ts +19 -0
- package/dist-types/commands/DescribeSpotFleetInstancesCommand.d.ts +23 -0
- package/dist-types/commands/DescribeSpotFleetRequestHistoryCommand.d.ts +51 -0
- package/dist-types/commands/DescribeSpotFleetRequestsCommand.d.ts +58 -0
- package/dist-types/commands/DescribeSpotInstanceRequestsCommand.d.ts +56 -0
- package/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +38 -0
- package/dist-types/commands/DescribeSubnetsCommand.d.ts +34 -0
- package/dist-types/commands/DescribeTagsCommand.d.ts +36 -0
- package/dist-types/commands/DescribeVolumeAttributeCommand.d.ts +20 -0
- package/dist-types/commands/DescribeVolumeStatusCommand.d.ts +61 -0
- package/dist-types/commands/DescribeVolumesCommand.d.ts +84 -0
- package/dist-types/commands/DescribeVpcAttributeCommand.d.ts +40 -0
- package/dist-types/commands/DescribeVpcsCommand.d.ts +33 -0
- package/dist-types/commands/DetachInternetGatewayCommand.d.ts +12 -0
- package/dist-types/commands/DetachNetworkInterfaceCommand.d.ts +11 -0
- package/dist-types/commands/DetachVolumeCommand.d.ts +20 -0
- package/dist-types/commands/DisableVgwRoutePropagationCommand.d.ts +12 -0
- package/dist-types/commands/DisassociateAddressCommand.d.ts +22 -0
- package/dist-types/commands/DisassociateIamInstanceProfileCommand.d.ts +24 -0
- package/dist-types/commands/DisassociateRouteTableCommand.d.ts +11 -0
- package/dist-types/commands/EnableVgwRoutePropagationCommand.d.ts +12 -0
- package/dist-types/commands/EnableVolumeIOCommand.d.ts +11 -0
- package/dist-types/commands/GetConsoleOutputCommand.d.ts +18 -0
- package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +63 -0
- package/dist-types/commands/ModifyImageAttributeCommand.d.ts +36 -0
- package/dist-types/commands/ModifyInstanceAttributeCommand.d.ts +28 -0
- package/dist-types/commands/ModifyLaunchTemplateCommand.d.ts +24 -0
- package/dist-types/commands/ModifyNetworkInterfaceAttributeCommand.d.ts +58 -0
- package/dist-types/commands/ModifySnapshotAttributeCommand.d.ts +32 -0
- package/dist-types/commands/ModifySpotFleetRequestCommand.d.ts +35 -0
- package/dist-types/commands/ModifySubnetAttributeCommand.d.ts +14 -0
- package/dist-types/commands/ModifyVolumeAttributeCommand.d.ts +15 -0
- package/dist-types/commands/ModifyVpcAttributeCommand.d.ts +28 -0
- package/dist-types/commands/MoveAddressToVpcCommand.d.ts +16 -0
- package/dist-types/commands/PurchaseScheduledInstancesCommand.d.ts +46 -0
- package/dist-types/commands/RebootInstancesCommand.d.ts +13 -0
- package/dist-types/commands/ReleaseAddressCommand.d.ts +22 -0
- package/dist-types/commands/ReplaceNetworkAclAssociationCommand.d.ts +17 -0
- package/dist-types/commands/ReplaceNetworkAclEntryCommand.d.ts +20 -0
- package/dist-types/commands/ReplaceRouteCommand.d.ts +13 -0
- package/dist-types/commands/ReplaceRouteTableAssociationCommand.d.ts +17 -0
- package/dist-types/commands/RequestSpotFleetCommand.d.ts +152 -0
- package/dist-types/commands/RequestSpotInstancesCommand.d.ts +51 -0
- package/dist-types/commands/ResetImageAttributeCommand.d.ts +12 -0
- package/dist-types/commands/ResetInstanceAttributeCommand.d.ts +12 -0
- package/dist-types/commands/ResetSnapshotAttributeCommand.d.ts +12 -0
- package/dist-types/commands/RestoreAddressToClassicCommand.d.ts +17 -0
- package/dist-types/commands/RunInstancesCommand.d.ts +38 -0
- package/dist-types/commands/RunScheduledInstancesCommand.d.ts +70 -0
- package/dist-types/commands/StartInstancesCommand.d.ts +30 -0
- package/dist-types/commands/StopInstancesCommand.d.ts +30 -0
- package/dist-types/commands/TerminateInstancesCommand.d.ts +30 -0
- package/dist-types/commands/UnassignPrivateIpAddressesCommand.d.ts +14 -0
- package/dist-types/commands/UpdateSecurityGroupRuleDescriptionsEgressCommand.d.ts +24 -0
- package/dist-types/commands/UpdateSecurityGroupRuleDescriptionsIngressCommand.d.ts +24 -0
- package/package.json +31 -31
|
@@ -31,6 +31,32 @@ export interface DescribeCustomerGatewaysCommandOutput extends DescribeCustomerG
|
|
|
31
31
|
* @see {@link DescribeCustomerGatewaysCommandOutput} for command's `response` shape.
|
|
32
32
|
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
33
33
|
*
|
|
34
|
+
* @example To describe a customer gateway
|
|
35
|
+
* ```javascript
|
|
36
|
+
* // This example describes the specified customer gateway.
|
|
37
|
+
* const input = {
|
|
38
|
+
* "CustomerGatewayIds": [
|
|
39
|
+
* "cgw-0e11f167"
|
|
40
|
+
* ]
|
|
41
|
+
* };
|
|
42
|
+
* const command = new DescribeCustomerGatewaysCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* /* response ==
|
|
45
|
+
* {
|
|
46
|
+
* "CustomerGateways": [
|
|
47
|
+
* {
|
|
48
|
+
* "BgpAsn": "65534",
|
|
49
|
+
* "CustomerGatewayId": "cgw-0e11f167",
|
|
50
|
+
* "IpAddress": "12.1.2.3",
|
|
51
|
+
* "State": "available",
|
|
52
|
+
* "Type": "ipsec.1"
|
|
53
|
+
* }
|
|
54
|
+
* ]
|
|
55
|
+
* }
|
|
56
|
+
* *\/
|
|
57
|
+
* // example id: ec2-describe-customer-gateways-1
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
34
60
|
*/
|
|
35
61
|
export declare class DescribeCustomerGatewaysCommand extends $Command<DescribeCustomerGatewaysCommandInput, DescribeCustomerGatewaysCommandOutput, EC2ClientResolvedConfig> {
|
|
36
62
|
readonly input: DescribeCustomerGatewaysCommandInput;
|
|
@@ -31,6 +31,41 @@ export interface DescribeDhcpOptionsCommandOutput extends DescribeDhcpOptionsRes
|
|
|
31
31
|
* @see {@link DescribeDhcpOptionsCommandOutput} for command's `response` shape.
|
|
32
32
|
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
33
33
|
*
|
|
34
|
+
* @example To describe a DHCP options set
|
|
35
|
+
* ```javascript
|
|
36
|
+
* // This example describes the specified DHCP options set.
|
|
37
|
+
* const input = {
|
|
38
|
+
* "DhcpOptionsIds": [
|
|
39
|
+
* "dopt-d9070ebb"
|
|
40
|
+
* ]
|
|
41
|
+
* };
|
|
42
|
+
* const command = new DescribeDhcpOptionsCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* /* response ==
|
|
45
|
+
* {
|
|
46
|
+
* "DhcpOptions": [
|
|
47
|
+
* {
|
|
48
|
+
* "DhcpConfigurations": [
|
|
49
|
+
* {
|
|
50
|
+
* "Key": "domain-name-servers",
|
|
51
|
+
* "Values": [
|
|
52
|
+
* {
|
|
53
|
+
* "Value": "10.2.5.2"
|
|
54
|
+
* },
|
|
55
|
+
* {
|
|
56
|
+
* "Value": "10.2.5.1"
|
|
57
|
+
* }
|
|
58
|
+
* ]
|
|
59
|
+
* }
|
|
60
|
+
* ],
|
|
61
|
+
* "DhcpOptionsId": "dopt-d9070ebb"
|
|
62
|
+
* }
|
|
63
|
+
* ]
|
|
64
|
+
* }
|
|
65
|
+
* *\/
|
|
66
|
+
* // example id: ec2-describe-dhcp-options-1
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
34
69
|
*/
|
|
35
70
|
export declare class DescribeDhcpOptionsCommand extends $Command<DescribeDhcpOptionsCommandInput, DescribeDhcpOptionsCommandOutput, EC2ClientResolvedConfig> {
|
|
36
71
|
readonly input: DescribeDhcpOptionsCommandInput;
|
|
@@ -29,6 +29,34 @@ export interface DescribeIamInstanceProfileAssociationsCommandOutput extends Des
|
|
|
29
29
|
* @see {@link DescribeIamInstanceProfileAssociationsCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @example To describe an IAM instance profile association
|
|
33
|
+
* ```javascript
|
|
34
|
+
* // This example describes the specified IAM instance profile association.
|
|
35
|
+
* const input = {
|
|
36
|
+
* "AssociationIds": [
|
|
37
|
+
* "iip-assoc-0db249b1f25fa24b8"
|
|
38
|
+
* ]
|
|
39
|
+
* };
|
|
40
|
+
* const command = new DescribeIamInstanceProfileAssociationsCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* /* response ==
|
|
43
|
+
* {
|
|
44
|
+
* "IamInstanceProfileAssociations": [
|
|
45
|
+
* {
|
|
46
|
+
* "AssociationId": "iip-assoc-0db249b1f25fa24b8",
|
|
47
|
+
* "IamInstanceProfile": {
|
|
48
|
+
* "Arn": "arn:aws:iam::123456789012:instance-profile/admin-role",
|
|
49
|
+
* "Id": "AIPAJVQN4F5WVLGCJDRGM"
|
|
50
|
+
* },
|
|
51
|
+
* "InstanceId": "i-09eb09efa73ec1dee",
|
|
52
|
+
* "State": "associated"
|
|
53
|
+
* }
|
|
54
|
+
* ]
|
|
55
|
+
* }
|
|
56
|
+
* *\/
|
|
57
|
+
* // example id: to-describe-an-iam-instance-profile-association-1529025123918
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
32
60
|
*/
|
|
33
61
|
export declare class DescribeIamInstanceProfileAssociationsCommand extends $Command<DescribeIamInstanceProfileAssociationsCommandInput, DescribeIamInstanceProfileAssociationsCommandOutput, EC2ClientResolvedConfig> {
|
|
34
62
|
readonly input: DescribeIamInstanceProfileAssociationsCommandInput;
|
|
@@ -29,6 +29,28 @@ export interface DescribeImageAttributeCommandOutput extends ImageAttribute, __M
|
|
|
29
29
|
* @see {@link DescribeImageAttributeCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @example To describe the launch permissions for an AMI
|
|
33
|
+
* ```javascript
|
|
34
|
+
* // This example describes the launch permissions for the specified AMI.
|
|
35
|
+
* const input = {
|
|
36
|
+
* "Attribute": "launchPermission",
|
|
37
|
+
* "ImageId": "ami-5731123e"
|
|
38
|
+
* };
|
|
39
|
+
* const command = new DescribeImageAttributeCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* /* response ==
|
|
42
|
+
* {
|
|
43
|
+
* "ImageId": "ami-5731123e",
|
|
44
|
+
* "LaunchPermissions": [
|
|
45
|
+
* {
|
|
46
|
+
* "UserId": "123456789012"
|
|
47
|
+
* }
|
|
48
|
+
* ]
|
|
49
|
+
* }
|
|
50
|
+
* *\/
|
|
51
|
+
* // example id: to-describe-the-launch-permissions-for-an-ami-1529025296264
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
32
54
|
*/
|
|
33
55
|
export declare class DescribeImageAttributeCommand extends $Command<DescribeImageAttributeCommandInput, DescribeImageAttributeCommandOutput, EC2ClientResolvedConfig> {
|
|
34
56
|
readonly input: DescribeImageAttributeCommandInput;
|
|
@@ -35,6 +35,52 @@ export interface DescribeImagesCommandOutput extends DescribeImagesResult, __Met
|
|
|
35
35
|
* @see {@link DescribeImagesCommandOutput} for command's `response` shape.
|
|
36
36
|
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
37
37
|
*
|
|
38
|
+
* @example To describe an AMI
|
|
39
|
+
* ```javascript
|
|
40
|
+
* // This example describes the specified AMI.
|
|
41
|
+
* const input = {
|
|
42
|
+
* "ImageIds": [
|
|
43
|
+
* "ami-5731123e"
|
|
44
|
+
* ]
|
|
45
|
+
* };
|
|
46
|
+
* const command = new DescribeImagesCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* /* response ==
|
|
49
|
+
* {
|
|
50
|
+
* "Images": [
|
|
51
|
+
* {
|
|
52
|
+
* "Architecture": "x86_64",
|
|
53
|
+
* "BlockDeviceMappings": [
|
|
54
|
+
* {
|
|
55
|
+
* "DeviceName": "/dev/sda1",
|
|
56
|
+
* "Ebs": {
|
|
57
|
+
* "DeleteOnTermination": true,
|
|
58
|
+
* "SnapshotId": "snap-1234567890abcdef0",
|
|
59
|
+
* "VolumeSize": 8,
|
|
60
|
+
* "VolumeType": "standard"
|
|
61
|
+
* }
|
|
62
|
+
* }
|
|
63
|
+
* ],
|
|
64
|
+
* "Description": "An AMI for my server",
|
|
65
|
+
* "Hypervisor": "xen",
|
|
66
|
+
* "ImageId": "ami-5731123e",
|
|
67
|
+
* "ImageLocation": "123456789012/My server",
|
|
68
|
+
* "ImageType": "machine",
|
|
69
|
+
* "KernelId": "aki-88aa75e1",
|
|
70
|
+
* "Name": "My server",
|
|
71
|
+
* "OwnerId": "123456789012",
|
|
72
|
+
* "Public": false,
|
|
73
|
+
* "RootDeviceName": "/dev/sda1",
|
|
74
|
+
* "RootDeviceType": "ebs",
|
|
75
|
+
* "State": "available",
|
|
76
|
+
* "VirtualizationType": "paravirtual"
|
|
77
|
+
* }
|
|
78
|
+
* ]
|
|
79
|
+
* }
|
|
80
|
+
* *\/
|
|
81
|
+
* // example id: to-describe-an-ami-1529025482866
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
38
84
|
*/
|
|
39
85
|
export declare class DescribeImagesCommand extends $Command<DescribeImagesCommandInput, DescribeImagesCommandOutput, EC2ClientResolvedConfig> {
|
|
40
86
|
readonly input: DescribeImagesCommandInput;
|
|
@@ -36,6 +36,86 @@ export interface DescribeInstanceAttributeCommandOutput extends InstanceAttribut
|
|
|
36
36
|
* @see {@link DescribeInstanceAttributeCommandOutput} for command's `response` shape.
|
|
37
37
|
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
38
38
|
*
|
|
39
|
+
* @example To describe the instance type
|
|
40
|
+
* ```javascript
|
|
41
|
+
* // This example describes the instance type of the specified instance.
|
|
42
|
+
* //
|
|
43
|
+
* const input = {
|
|
44
|
+
* "Attribute": "instanceType",
|
|
45
|
+
* "InstanceId": "i-1234567890abcdef0"
|
|
46
|
+
* };
|
|
47
|
+
* const command = new DescribeInstanceAttributeCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* /* response ==
|
|
50
|
+
* {
|
|
51
|
+
* "InstanceId": "i-1234567890abcdef0",
|
|
52
|
+
* "InstanceType": {
|
|
53
|
+
* "Value": "t1.micro"
|
|
54
|
+
* }
|
|
55
|
+
* }
|
|
56
|
+
* *\/
|
|
57
|
+
* // example id: to-describe-the-instance-type-1472712432132
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @example To describe the disableApiTermination attribute
|
|
61
|
+
* ```javascript
|
|
62
|
+
* // This example describes the ``disableApiTermination`` attribute of the specified instance.
|
|
63
|
+
* //
|
|
64
|
+
* const input = {
|
|
65
|
+
* "Attribute": "disableApiTermination",
|
|
66
|
+
* "InstanceId": "i-1234567890abcdef0"
|
|
67
|
+
* };
|
|
68
|
+
* const command = new DescribeInstanceAttributeCommand(input);
|
|
69
|
+
* const response = await client.send(command);
|
|
70
|
+
* /* response ==
|
|
71
|
+
* {
|
|
72
|
+
* "DisableApiTermination": {
|
|
73
|
+
* "Value": "false"
|
|
74
|
+
* },
|
|
75
|
+
* "InstanceId": "i-1234567890abcdef0"
|
|
76
|
+
* }
|
|
77
|
+
* *\/
|
|
78
|
+
* // example id: to-describe-the-disableapitermination-attribute-1472712533466
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* @example To describe the block device mapping for an instance
|
|
82
|
+
* ```javascript
|
|
83
|
+
* // This example describes the ``blockDeviceMapping`` attribute of the specified instance.
|
|
84
|
+
* //
|
|
85
|
+
* const input = {
|
|
86
|
+
* "Attribute": "blockDeviceMapping",
|
|
87
|
+
* "InstanceId": "i-1234567890abcdef0"
|
|
88
|
+
* };
|
|
89
|
+
* const command = new DescribeInstanceAttributeCommand(input);
|
|
90
|
+
* const response = await client.send(command);
|
|
91
|
+
* /* response ==
|
|
92
|
+
* {
|
|
93
|
+
* "BlockDeviceMappings": [
|
|
94
|
+
* {
|
|
95
|
+
* "DeviceName": "/dev/sda1",
|
|
96
|
+
* "Ebs": {
|
|
97
|
+
* "AttachTime": "2013-05-17T22:42:34.000Z",
|
|
98
|
+
* "DeleteOnTermination": true,
|
|
99
|
+
* "Status": "attached",
|
|
100
|
+
* "VolumeId": "vol-049df61146c4d7901"
|
|
101
|
+
* }
|
|
102
|
+
* },
|
|
103
|
+
* {
|
|
104
|
+
* "DeviceName": "/dev/sdf",
|
|
105
|
+
* "Ebs": {
|
|
106
|
+
* "AttachTime": "2013-09-10T23:07:00.000Z",
|
|
107
|
+
* "DeleteOnTermination": false,
|
|
108
|
+
* "Status": "attached",
|
|
109
|
+
* "VolumeId": "vol-049df61146c4d7901"
|
|
110
|
+
* }
|
|
111
|
+
* }
|
|
112
|
+
* ],
|
|
113
|
+
* "InstanceId": "i-1234567890abcdef0"
|
|
114
|
+
* }
|
|
115
|
+
* *\/
|
|
116
|
+
* // example id: to-describe-the-block-device-mapping-for-an-instance-1472712645423
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
39
119
|
*/
|
|
40
120
|
export declare class DescribeInstanceAttributeCommand extends $Command<DescribeInstanceAttributeCommandInput, DescribeInstanceAttributeCommandOutput, EC2ClientResolvedConfig> {
|
|
41
121
|
readonly input: DescribeInstanceAttributeCommandInput;
|
|
@@ -57,6 +57,51 @@ export interface DescribeInstanceStatusCommandOutput extends DescribeInstanceSta
|
|
|
57
57
|
* @see {@link DescribeInstanceStatusCommandOutput} for command's `response` shape.
|
|
58
58
|
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
59
59
|
*
|
|
60
|
+
* @example To describe the status of an instance
|
|
61
|
+
* ```javascript
|
|
62
|
+
* // This example describes the current status of the specified instance.
|
|
63
|
+
* const input = {
|
|
64
|
+
* "InstanceIds": [
|
|
65
|
+
* "i-1234567890abcdef0"
|
|
66
|
+
* ]
|
|
67
|
+
* };
|
|
68
|
+
* const command = new DescribeInstanceStatusCommand(input);
|
|
69
|
+
* const response = await client.send(command);
|
|
70
|
+
* /* response ==
|
|
71
|
+
* {
|
|
72
|
+
* "InstanceStatuses": [
|
|
73
|
+
* {
|
|
74
|
+
* "AvailabilityZone": "us-east-1d",
|
|
75
|
+
* "InstanceId": "i-1234567890abcdef0",
|
|
76
|
+
* "InstanceState": {
|
|
77
|
+
* "Code": 16,
|
|
78
|
+
* "Name": "running"
|
|
79
|
+
* },
|
|
80
|
+
* "InstanceStatus": {
|
|
81
|
+
* "Details": [
|
|
82
|
+
* {
|
|
83
|
+
* "Name": "reachability",
|
|
84
|
+
* "Status": "passed"
|
|
85
|
+
* }
|
|
86
|
+
* ],
|
|
87
|
+
* "Status": "ok"
|
|
88
|
+
* },
|
|
89
|
+
* "SystemStatus": {
|
|
90
|
+
* "Details": [
|
|
91
|
+
* {
|
|
92
|
+
* "Name": "reachability",
|
|
93
|
+
* "Status": "passed"
|
|
94
|
+
* }
|
|
95
|
+
* ],
|
|
96
|
+
* "Status": "ok"
|
|
97
|
+
* }
|
|
98
|
+
* }
|
|
99
|
+
* ]
|
|
100
|
+
* }
|
|
101
|
+
* *\/
|
|
102
|
+
* // example id: to-describe-the-status-of-an-instance-1529025696830
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
60
105
|
*/
|
|
61
106
|
export declare class DescribeInstanceStatusCommand extends $Command<DescribeInstanceStatusCommandInput, DescribeInstanceStatusCommandOutput, EC2ClientResolvedConfig> {
|
|
62
107
|
readonly input: DescribeInstanceStatusCommandInput;
|
|
@@ -45,6 +45,55 @@ export interface DescribeInstancesCommandOutput extends DescribeInstancesResult,
|
|
|
45
45
|
* @see {@link DescribeInstancesCommandOutput} for command's `response` shape.
|
|
46
46
|
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
47
47
|
*
|
|
48
|
+
* @example To describe an Amazon EC2 instance
|
|
49
|
+
* ```javascript
|
|
50
|
+
* // This example describes the specified instance.
|
|
51
|
+
* const input = {
|
|
52
|
+
* "InstanceIds": [
|
|
53
|
+
* "i-1234567890abcdef0"
|
|
54
|
+
* ]
|
|
55
|
+
* };
|
|
56
|
+
* const command = new DescribeInstancesCommand(input);
|
|
57
|
+
* await client.send(command);
|
|
58
|
+
* // example id: to-describe-an-amazon-ec2-instance-1529025982172
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @example To describe the instances with a specific instance type
|
|
62
|
+
* ```javascript
|
|
63
|
+
* // This example describes the instances with the t2.micro instance type.
|
|
64
|
+
* const input = {
|
|
65
|
+
* "Filters": [
|
|
66
|
+
* {
|
|
67
|
+
* "Name": "instance-type",
|
|
68
|
+
* "Values": [
|
|
69
|
+
* "t2.micro"
|
|
70
|
+
* ]
|
|
71
|
+
* }
|
|
72
|
+
* ]
|
|
73
|
+
* };
|
|
74
|
+
* const command = new DescribeInstancesCommand(input);
|
|
75
|
+
* await client.send(command);
|
|
76
|
+
* // example id: to-describe-the-instances-with-the-instance-type-t2micro-1529026147602
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* @example To describe the instances with a specific tag
|
|
80
|
+
* ```javascript
|
|
81
|
+
* // This example describes the instances with the Purpose=test tag.
|
|
82
|
+
* const input = {
|
|
83
|
+
* "Filters": [
|
|
84
|
+
* {
|
|
85
|
+
* "Name": "tag:Purpose",
|
|
86
|
+
* "Values": [
|
|
87
|
+
* "test"
|
|
88
|
+
* ]
|
|
89
|
+
* }
|
|
90
|
+
* ]
|
|
91
|
+
* };
|
|
92
|
+
* const command = new DescribeInstancesCommand(input);
|
|
93
|
+
* await client.send(command);
|
|
94
|
+
* // example id: to-describe-the-instances-with-a-specific-tag-1529026251928
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
48
97
|
*/
|
|
49
98
|
export declare class DescribeInstancesCommand extends $Command<DescribeInstancesCommandInput, DescribeInstancesCommandOutput, EC2ClientResolvedConfig> {
|
|
50
99
|
readonly input: DescribeInstancesCommandInput;
|
|
@@ -29,6 +29,40 @@ export interface DescribeInternetGatewaysCommandOutput extends DescribeInternetG
|
|
|
29
29
|
* @see {@link DescribeInternetGatewaysCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @example To describe the Internet gateway for a VPC
|
|
33
|
+
* ```javascript
|
|
34
|
+
* // This example describes the Internet gateway for the specified VPC.
|
|
35
|
+
* const input = {
|
|
36
|
+
* "Filters": [
|
|
37
|
+
* {
|
|
38
|
+
* "Name": "attachment.vpc-id",
|
|
39
|
+
* "Values": [
|
|
40
|
+
* "vpc-a01106c2"
|
|
41
|
+
* ]
|
|
42
|
+
* }
|
|
43
|
+
* ]
|
|
44
|
+
* };
|
|
45
|
+
* const command = new DescribeInternetGatewaysCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* /* response ==
|
|
48
|
+
* {
|
|
49
|
+
* "InternetGateways": [
|
|
50
|
+
* {
|
|
51
|
+
* "Attachments": [
|
|
52
|
+
* {
|
|
53
|
+
* "State": "available",
|
|
54
|
+
* "VpcId": "vpc-a01106c2"
|
|
55
|
+
* }
|
|
56
|
+
* ],
|
|
57
|
+
* "InternetGatewayId": "igw-c0a643a9",
|
|
58
|
+
* "Tags": []
|
|
59
|
+
* }
|
|
60
|
+
* ]
|
|
61
|
+
* }
|
|
62
|
+
* *\/
|
|
63
|
+
* // example id: ec2-describe-internet-gateways-1
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
32
66
|
*/
|
|
33
67
|
export declare class DescribeInternetGatewaysCommand extends $Command<DescribeInternetGatewaysCommandInput, DescribeInternetGatewaysCommandOutput, EC2ClientResolvedConfig> {
|
|
34
68
|
readonly input: DescribeInternetGatewaysCommandInput;
|
|
@@ -31,6 +31,29 @@ export interface DescribeKeyPairsCommandOutput extends DescribeKeyPairsResult, _
|
|
|
31
31
|
* @see {@link DescribeKeyPairsCommandOutput} for command's `response` shape.
|
|
32
32
|
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
33
33
|
*
|
|
34
|
+
* @example To display a key pair
|
|
35
|
+
* ```javascript
|
|
36
|
+
* // This example displays the fingerprint for the specified key.
|
|
37
|
+
* const input = {
|
|
38
|
+
* "KeyNames": [
|
|
39
|
+
* "my-key-pair"
|
|
40
|
+
* ]
|
|
41
|
+
* };
|
|
42
|
+
* const command = new DescribeKeyPairsCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* /* response ==
|
|
45
|
+
* {
|
|
46
|
+
* "KeyPairs": [
|
|
47
|
+
* {
|
|
48
|
+
* "KeyFingerprint": "1f:51:ae:28:bf:89:e9:d8:1f:25:5d:37:2d:7d:b8:ca:9f:f5:f1:6f",
|
|
49
|
+
* "KeyName": "my-key-pair"
|
|
50
|
+
* }
|
|
51
|
+
* ]
|
|
52
|
+
* }
|
|
53
|
+
* *\/
|
|
54
|
+
* // example id: ec2-describe-key-pairs-1
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
34
57
|
*/
|
|
35
58
|
export declare class DescribeKeyPairsCommand extends $Command<DescribeKeyPairsCommandInput, DescribeKeyPairsCommandOutput, EC2ClientResolvedConfig> {
|
|
36
59
|
readonly input: DescribeKeyPairsCommandInput;
|
|
@@ -32,6 +32,70 @@ export interface DescribeLaunchTemplateVersionsCommandOutput extends DescribeLau
|
|
|
32
32
|
* @see {@link DescribeLaunchTemplateVersionsCommandOutput} for command's `response` shape.
|
|
33
33
|
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
34
34
|
*
|
|
35
|
+
* @example To describe the versions for a launch template
|
|
36
|
+
* ```javascript
|
|
37
|
+
* // This example describes the versions for the specified launch template.
|
|
38
|
+
* const input = {
|
|
39
|
+
* "LaunchTemplateId": "068f72b72934aff71"
|
|
40
|
+
* };
|
|
41
|
+
* const command = new DescribeLaunchTemplateVersionsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* /* response ==
|
|
44
|
+
* {
|
|
45
|
+
* "LaunchTemplateVersions": [
|
|
46
|
+
* {
|
|
47
|
+
* "CreateTime": "2017-11-20T13:12:32.000Z",
|
|
48
|
+
* "CreatedBy": "arn:aws:iam::123456789102:root",
|
|
49
|
+
* "DefaultVersion": false,
|
|
50
|
+
* "LaunchTemplateData": {
|
|
51
|
+
* "ImageId": "ami-6057e21a",
|
|
52
|
+
* "InstanceType": "t2.medium",
|
|
53
|
+
* "KeyName": "kp-us-east",
|
|
54
|
+
* "NetworkInterfaces": [
|
|
55
|
+
* {
|
|
56
|
+
* "DeviceIndex": 0,
|
|
57
|
+
* "Groups": [
|
|
58
|
+
* "sg-7c227019"
|
|
59
|
+
* ],
|
|
60
|
+
* "SubnetId": "subnet-1a2b3c4d"
|
|
61
|
+
* }
|
|
62
|
+
* ]
|
|
63
|
+
* },
|
|
64
|
+
* "LaunchTemplateId": "lt-068f72b72934aff71",
|
|
65
|
+
* "LaunchTemplateName": "Webservers",
|
|
66
|
+
* "VersionNumber": 2
|
|
67
|
+
* },
|
|
68
|
+
* {
|
|
69
|
+
* "CreateTime": "2017-11-20T12:52:33.000Z",
|
|
70
|
+
* "CreatedBy": "arn:aws:iam::123456789102:root",
|
|
71
|
+
* "DefaultVersion": true,
|
|
72
|
+
* "LaunchTemplateData": {
|
|
73
|
+
* "ImageId": "ami-aabbcc11",
|
|
74
|
+
* "InstanceType": "t2.medium",
|
|
75
|
+
* "KeyName": "kp-us-east",
|
|
76
|
+
* "NetworkInterfaces": [
|
|
77
|
+
* {
|
|
78
|
+
* "AssociatePublicIpAddress": true,
|
|
79
|
+
* "DeleteOnTermination": false,
|
|
80
|
+
* "DeviceIndex": 0,
|
|
81
|
+
* "Groups": [
|
|
82
|
+
* "sg-7c227019"
|
|
83
|
+
* ],
|
|
84
|
+
* "SubnetId": "subnet-7b16de0c"
|
|
85
|
+
* }
|
|
86
|
+
* ],
|
|
87
|
+
* "UserData": ""
|
|
88
|
+
* },
|
|
89
|
+
* "LaunchTemplateId": "lt-068f72b72934aff71",
|
|
90
|
+
* "LaunchTemplateName": "Webservers",
|
|
91
|
+
* "VersionNumber": 1
|
|
92
|
+
* }
|
|
93
|
+
* ]
|
|
94
|
+
* }
|
|
95
|
+
* *\/
|
|
96
|
+
* // example id: to-describe-the-versions-for-a-launch-template-1529344425048
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
35
99
|
*/
|
|
36
100
|
export declare class DescribeLaunchTemplateVersionsCommand extends $Command<DescribeLaunchTemplateVersionsCommandInput, DescribeLaunchTemplateVersionsCommandOutput, EC2ClientResolvedConfig> {
|
|
37
101
|
readonly input: DescribeLaunchTemplateVersionsCommandInput;
|
|
@@ -29,6 +29,33 @@ export interface DescribeLaunchTemplatesCommandOutput extends DescribeLaunchTemp
|
|
|
29
29
|
* @see {@link DescribeLaunchTemplatesCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @example To describe a launch template
|
|
33
|
+
* ```javascript
|
|
34
|
+
* // This example describes the specified launch template.
|
|
35
|
+
* const input = {
|
|
36
|
+
* "LaunchTemplateIds": [
|
|
37
|
+
* "lt-01238c059e3466abc"
|
|
38
|
+
* ]
|
|
39
|
+
* };
|
|
40
|
+
* const command = new DescribeLaunchTemplatesCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* /* response ==
|
|
43
|
+
* {
|
|
44
|
+
* "LaunchTemplates": [
|
|
45
|
+
* {
|
|
46
|
+
* "CreateTime": "2018-01-16T04:32:57.000Z",
|
|
47
|
+
* "CreatedBy": "arn:aws:iam::123456789012:root",
|
|
48
|
+
* "DefaultVersionNumber": 1,
|
|
49
|
+
* "LatestVersionNumber": 1,
|
|
50
|
+
* "LaunchTemplateId": "lt-01238c059e3466abc",
|
|
51
|
+
* "LaunchTemplateName": "my-template"
|
|
52
|
+
* }
|
|
53
|
+
* ]
|
|
54
|
+
* }
|
|
55
|
+
* *\/
|
|
56
|
+
* // example id: to-describe-a-launch-template-1529344182862
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
32
59
|
*/
|
|
33
60
|
export declare class DescribeLaunchTemplatesCommand extends $Command<DescribeLaunchTemplatesCommandInput, DescribeLaunchTemplatesCommandOutput, EC2ClientResolvedConfig> {
|
|
34
61
|
readonly input: DescribeLaunchTemplatesCommandInput;
|
|
@@ -29,6 +29,25 @@ export interface DescribeMovingAddressesCommandOutput extends DescribeMovingAddr
|
|
|
29
29
|
* @see {@link DescribeMovingAddressesCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @example To describe your moving addresses
|
|
33
|
+
* ```javascript
|
|
34
|
+
* // This example describes all of your moving Elastic IP addresses.
|
|
35
|
+
* const input = undefined;
|
|
36
|
+
* const command = new DescribeMovingAddressesCommand(input);
|
|
37
|
+
* const response = await client.send(command);
|
|
38
|
+
* /* response ==
|
|
39
|
+
* {
|
|
40
|
+
* "MovingAddressStatuses": [
|
|
41
|
+
* {
|
|
42
|
+
* "MoveStatus": "MovingToVpc",
|
|
43
|
+
* "PublicIp": "198.51.100.0"
|
|
44
|
+
* }
|
|
45
|
+
* ]
|
|
46
|
+
* }
|
|
47
|
+
* *\/
|
|
48
|
+
* // example id: ec2-describe-moving-addresses-1
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
32
51
|
*/
|
|
33
52
|
export declare class DescribeMovingAddressesCommand extends $Command<DescribeMovingAddressesCommandInput, DescribeMovingAddressesCommandOutput, EC2ClientResolvedConfig> {
|
|
34
53
|
readonly input: DescribeMovingAddressesCommandInput;
|
|
@@ -29,6 +29,45 @@ export interface DescribeNatGatewaysCommandOutput extends DescribeNatGatewaysRes
|
|
|
29
29
|
* @see {@link DescribeNatGatewaysCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @example To describe a NAT gateway
|
|
33
|
+
* ```javascript
|
|
34
|
+
* // This example describes the NAT gateway for the specified VPC.
|
|
35
|
+
* const input = {
|
|
36
|
+
* "Filter": [
|
|
37
|
+
* {
|
|
38
|
+
* "Name": "vpc-id",
|
|
39
|
+
* "Values": [
|
|
40
|
+
* "vpc-1a2b3c4d"
|
|
41
|
+
* ]
|
|
42
|
+
* }
|
|
43
|
+
* ]
|
|
44
|
+
* };
|
|
45
|
+
* const command = new DescribeNatGatewaysCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* /* response ==
|
|
48
|
+
* {
|
|
49
|
+
* "NatGateways": [
|
|
50
|
+
* {
|
|
51
|
+
* "CreateTime": "2015-12-01T12:26:55.983Z",
|
|
52
|
+
* "NatGatewayAddresses": [
|
|
53
|
+
* {
|
|
54
|
+
* "AllocationId": "eipalloc-89c620ec",
|
|
55
|
+
* "NetworkInterfaceId": "eni-9dec76cd",
|
|
56
|
+
* "PrivateIp": "10.0.0.149",
|
|
57
|
+
* "PublicIp": "198.11.222.333"
|
|
58
|
+
* }
|
|
59
|
+
* ],
|
|
60
|
+
* "NatGatewayId": "nat-05dba92075d71c408",
|
|
61
|
+
* "State": "available",
|
|
62
|
+
* "SubnetId": "subnet-847e4dc2",
|
|
63
|
+
* "VpcId": "vpc-1a2b3c4d"
|
|
64
|
+
* }
|
|
65
|
+
* ]
|
|
66
|
+
* }
|
|
67
|
+
* *\/
|
|
68
|
+
* // example id: ec2-describe-nat-gateways-1
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
32
71
|
*/
|
|
33
72
|
export declare class DescribeNatGatewaysCommand extends $Command<DescribeNatGatewaysCommandInput, DescribeNatGatewaysCommandOutput, EC2ClientResolvedConfig> {
|
|
34
73
|
readonly input: DescribeNatGatewaysCommandInput;
|