Skip to content

Commit d107720

Browse files
author
AWS
committed
Amazon Elastic Compute Cloud Update: Stop Protection feature enables customers to protect their instances from accidental stop actions.
1 parent 177c96f commit d107720

File tree

2 files changed

+44
-15
lines changed

2 files changed

+44
-15
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Elastic Compute Cloud",
4+
"contributor": "",
5+
"description": "Stop Protection feature enables customers to protect their instances from accidental stop actions."
6+
}

services/ec2/src/main/resources/codegen-resources/service-2.json

Lines changed: 38 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@
696696
},
697697
"input":{"shape":"CreateLaunchTemplateRequest"},
698698
"output":{"shape":"CreateLaunchTemplateResult"},
699-
"documentation":"<p>Creates a launch template.</p> <p>A launch template contains the parameters to launch an instance. When you launch an instance using <a>RunInstances</a>, you can specify a launch template instead of providing the launch parameters in the request. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html\">Launching an instance from a launch template</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p> <p>If you want to clone an existing launch template as the basis for creating a new launch template, you can use the Amazon EC2 console. The API, SDKs, and CLI do not support cloning a template. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template-from-existing-launch-template\">Create a launch template from an existing launch template</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>"
699+
"documentation":"<p>Creates a launch template.</p> <p>A launch template contains the parameters to launch an instance. When you launch an instance using <a>RunInstances</a>, you can specify a launch template instead of providing the launch parameters in the request. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html\">Launch an instance from a launch template</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p> <p>If you want to clone an existing launch template as the basis for creating a new launch template, you can use the Amazon EC2 console. The API, SDKs, and CLI do not support cloning a template. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template-from-existing-launch-template\">Create a launch template from an existing launch template</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>"
700700
},
701701
"CreateLaunchTemplateVersion":{
702702
"name":"CreateLaunchTemplateVersion",
@@ -706,7 +706,7 @@
706706
},
707707
"input":{"shape":"CreateLaunchTemplateVersionRequest"},
708708
"output":{"shape":"CreateLaunchTemplateVersionResult"},
709-
"documentation":"<p>Creates a new version for a launch template. You can specify an existing version of launch template from which to base the new version.</p> <p>Launch template versions are numbered in the order in which they are created. You cannot specify, change, or replace the numbering of launch template versions.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#manage-launch-template-versions\">Managing launch template versions</a>in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>"
709+
"documentation":"<p>Creates a new version for a launch template. You can specify an existing version of launch template from which to base the new version.</p> <p>Launch template versions are numbered in the order in which they are created. You cannot specify, change, or replace the numbering of launch template versions.</p> <p>Launch templates are immutable; after you create a launch template, you can't modify it. Instead, you can create a new version of the launch template that includes any changes you require.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#manage-launch-template-versions\">Modify a launch template (manage launch template versions)</a>in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>"
710710
},
711711
"CreateLocalGatewayRoute":{
712712
"name":"CreateLocalGatewayRoute",
@@ -11359,7 +11359,7 @@
1135911359
},
1136011360
"ClientToken":{
1136111361
"shape":"String",
11362-
"documentation":"<p>Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html\">Ensuring Idempotency</a>.</p> <p>Constraint: Maximum 128 ASCII characters.</p>"
11362+
"documentation":"<p>Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html\">Ensuring idempotency</a>.</p> <p>Constraint: Maximum 128 ASCII characters.</p>"
1136311363
},
1136411364
"LaunchTemplateName":{
1136511365
"shape":"LaunchTemplateName",
@@ -11405,7 +11405,7 @@
1140511405
},
1140611406
"ClientToken":{
1140711407
"shape":"String",
11408-
"documentation":"<p>Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html\">Ensuring Idempotency</a>.</p> <p>Constraint: Maximum 128 ASCII characters.</p>"
11408+
"documentation":"<p>Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html\">Ensuring idempotency</a>.</p> <p>Constraint: Maximum 128 ASCII characters.</p>"
1140911409
},
1141011410
"LaunchTemplateId":{
1141111411
"shape":"LaunchTemplateId",
@@ -29145,6 +29145,11 @@
2914529145
"shape":"AttributeValue",
2914629146
"documentation":"<p>The user data.</p>",
2914729147
"locationName":"userData"
29148+
},
29149+
"DisableApiStop":{
29150+
"shape":"AttributeBooleanValue",
29151+
"documentation":"<p>To enable the instance for Amazon Web Services Stop Protection, set this parameter to <code>true</code>; otherwise, set it to <code>false</code>.</p>",
29152+
"locationName":"disableApiStop"
2914829153
}
2914929154
},
2915029155
"documentation":"<p>Describes an instance attribute.</p>"
@@ -29166,7 +29171,8 @@
2916629171
"ebsOptimized",
2916729172
"sriovNetSupport",
2916829173
"enaSupport",
29169-
"enclaveOptions"
29174+
"enclaveOptions",
29175+
"disableApiStop"
2917029176
]
2917129177
},
2917229178
"InstanceAutoRecoveryState":{
@@ -33178,7 +33184,7 @@
3317833184
"documentation":"<p>To enable the instance for Amazon Web Services Nitro Enclaves, set this parameter to <code>true</code>.</p>"
3317933185
}
3318033186
},
33181-
"documentation":"<p>Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For more information, see <a href=\"https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html\"> What is Amazon Web Services Nitro Enclaves?</a> in the <i>Amazon Web Services Nitro Enclaves User Guide</i>.</p>"
33187+
"documentation":"<p>Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For more information, see <a href=\"https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html\">What is Amazon Web Services Nitro Enclaves?</a> in the <i>Amazon Web Services Nitro Enclaves User Guide</i>.</p>"
3318233188
},
3318333189
"LaunchTemplateErrorCode":{
3318433190
"type":"string",
@@ -33210,7 +33216,7 @@
3321033216
"documentation":"<p>If you set this parameter to <code>true</code>, the instance is enabled for hibernation.</p> <p>Default: <code>false</code> </p>"
3321133217
}
3321233218
},
33213-
"documentation":"<p>Indicates whether the instance is configured for hibernation. This parameter is valid only if the instance meets the <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites\">hibernation prerequisites</a>.</p>"
33219+
"documentation":"<p>Indicates whether the instance is configured for hibernation. This parameter is valid only if the instance meets the <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html\">hibernation prerequisites</a>.</p>"
3321433220
},
3321533221
"LaunchTemplateHttpTokensState":{
3321633222
"type":"string",
@@ -35433,6 +35439,10 @@
3543335439
"shape":"String",
3543435440
"documentation":"<p>A new value for the attribute. Use only with the <code>kernel</code>, <code>ramdisk</code>, <code>userData</code>, <code>disableApiTermination</code>, or <code>instanceInitiatedShutdownBehavior</code> attribute.</p>",
3543535441
"locationName":"value"
35442+
},
35443+
"DisableApiStop":{
35444+
"shape":"AttributeBooleanValue",
35445+
"documentation":"<p>Indicates whether an instance is enabled for stop protection. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection\">Stop Protection</a>.</p> <p/>"
3543635446
}
3543735447
}
3543835448
},
@@ -35885,7 +35895,7 @@
3588535895
},
3588635896
"ClientToken":{
3588735897
"shape":"String",
35888-
"documentation":"<p>Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html\">Ensuring Idempotency</a>.</p> <p>Constraint: Maximum 128 ASCII characters.</p>"
35898+
"documentation":"<p>Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html\">Ensuring idempotency</a>.</p> <p>Constraint: Maximum 128 ASCII characters.</p>"
3588935899
},
3589035900
"LaunchTemplateId":{
3589135901
"shape":"LaunchTemplateId",
@@ -41404,7 +41414,7 @@
4140441414
"members":{
4140541415
"KernelId":{
4140641416
"shape":"KernelId",
41407-
"documentation":"<p>The ID of the kernel.</p> <important> <p>We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html\">User Provided Kernels</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p> </important>"
41417+
"documentation":"<p>The ID of the kernel.</p> <important> <p>We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html\">User provided kernels</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p> </important>"
4140841418
},
4140941419
"EbsOptimized":{
4141041420
"shape":"Boolean",
@@ -41430,7 +41440,7 @@
4143041440
},
4143141441
"InstanceType":{
4143241442
"shape":"InstanceType",
41433-
"documentation":"<p>The instance type. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html\">Instance Types</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p> <p>If you specify <code>InstanceTypes</code>, you can't specify <code>InstanceRequirements</code>.</p>"
41443+
"documentation":"<p>The instance type. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html\">Instance types</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p> <p>If you specify <code>InstanceTypes</code>, you can't specify <code>InstanceRequirements</code>.</p>"
4143441444
},
4143541445
"KeyName":{
4143641446
"shape":"KeyPairName",
@@ -41446,7 +41456,7 @@
4144641456
},
4144741457
"RamDiskId":{
4144841458
"shape":"RamdiskId",
41449-
"documentation":"<p>The ID of the RAM disk.</p> <important> <p>We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html\">User Provided Kernels</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p> </important>"
41459+
"documentation":"<p>The ID of the RAM disk.</p> <important> <p>We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html\">User provided kernels</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p> </important>"
4145041460
},
4145141461
"DisableApiTermination":{
4145241462
"shape":"Boolean",
@@ -41458,7 +41468,7 @@
4145841468
},
4145941469
"UserData":{
4146041470
"shape":"String",
41461-
"documentation":"<p>The user data to make available to the instance. You must provide base64-encoded text. User data is limited to 16 KB. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html\">Running Commands on Your Linux Instance at Launch</a> (Linux) or <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data\">Adding User Data</a> (Windows).</p> <p>If you are creating the launch template for use with Batch, the user data must be provided in the <a href=\"https://cloudinit.readthedocs.io/en/latest/topics/format.html#mime-multi-part-archive\"> MIME multi-part archive format</a>. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/launch-templates.html\">Amazon EC2 user data in launch templates</a> in the <i>Batch User Guide</i>.</p>"
41471+
"documentation":"<p>The user data to make available to the instance. You must provide base64-encoded text. User data is limited to 16 KB. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html\">Run commands on your Linux instance at launch</a> (Linux) or <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/instancedata-add-user-data.html\">Work with instance user data</a> (Windows) in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p> <p>If you are creating the launch template for use with Batch, the user data must be provided in the <a href=\"https://cloudinit.readthedocs.io/en/latest/topics/format.html#mime-multi-part-archive\"> MIME multi-part archive format</a>. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/launch-templates.html\">Amazon EC2 user data in launch templates</a> in the <i>Batch User Guide</i>.</p>"
4146241472
},
4146341473
"TagSpecifications":{
4146441474
"shape":"LaunchTemplateTagSpecificationRequestList",
@@ -41508,7 +41518,7 @@
4150841518
},
4150941519
"HibernationOptions":{
4151041520
"shape":"LaunchTemplateHibernationOptionsRequest",
41511-
"documentation":"<p>Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites\">hibernation prerequisites</a>. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html\">Hibernate your instance</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>"
41521+
"documentation":"<p>Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html\">hibernation prerequisites</a>. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html\">Hibernate your instance</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>"
4151241522
},
4151341523
"MetadataOptions":{
4151441524
"shape":"LaunchTemplateInstanceMetadataOptionsRequest",
@@ -41529,6 +41539,10 @@
4152941539
"MaintenanceOptions":{
4153041540
"shape":"LaunchTemplateInstanceMaintenanceOptionsRequest",
4153141541
"documentation":"<p>The maintenance options for the instance.</p>"
41542+
},
41543+
"DisableApiStop":{
41544+
"shape":"Boolean",
41545+
"documentation":"<p>Indicates whether to enable the instance for stop protection. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection\">Stop Protection</a>.</p>"
4153241546
}
4153341547
},
4153441548
"documentation":"<p>The information to include in the launch template.</p> <note> <p>You must specify at least one parameter for the launch template data.</p> </note>"
@@ -42797,6 +42811,11 @@
4279742811
"shape":"LaunchTemplateInstanceMaintenanceOptions",
4279842812
"documentation":"<p>The maintenance options for your instance.</p>",
4279942813
"locationName":"maintenanceOptions"
42814+
},
42815+
"DisableApiStop":{
42816+
"shape":"Boolean",
42817+
"documentation":"<p>Indicates whether the instance is enabled for stop protection. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection\">Stop Protection</a>.</p>",
42818+
"locationName":"disableApiStop"
4280042819
}
4280142820
},
4280242821
"documentation":"<p>The information for a launch template. </p>"
@@ -43641,6 +43660,10 @@
4364143660
"MaintenanceOptions":{
4364243661
"shape":"InstanceMaintenanceOptionsRequest",
4364343662
"documentation":"<p>The maintenance and recovery options for the instance.</p>"
43663+
},
43664+
"DisableApiStop":{
43665+
"shape":"Boolean",
43666+
"documentation":"<p>Indicates whether an instance is enabled for stop protection. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection\">Stop Protection</a>. </p>"
4364443667
}
4364543668
}
4364643669
},
@@ -49735,12 +49758,12 @@
4973549758
"members":{
4973649759
"Code":{
4973749760
"shape":"String",
49738-
"documentation":"<p>The error code that indicates why the parameter or parameter combination is not valid. For more information about error codes, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html\">Error Codes</a>.</p>",
49761+
"documentation":"<p>The error code that indicates why the parameter or parameter combination is not valid. For more information about error codes, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html\">Error codes</a>.</p>",
4973949762
"locationName":"code"
4974049763
},
4974149764
"Message":{
4974249765
"shape":"String",
49743-
"documentation":"<p>The error message that describes why the parameter or parameter combination is not valid. For more information about error messages, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html\">Error Codes</a>.</p>",
49766+
"documentation":"<p>The error message that describes why the parameter or parameter combination is not valid. For more information about error messages, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html\">Error codes</a>.</p>",
4974449767
"locationName":"message"
4974549768
}
4974649769
},

0 commit comments

Comments
 (0)