diff --git a/codegen/sdk-codegen/aws-models/ec2.json b/codegen/sdk-codegen/aws-models/ec2.json index 079ae5cbbcae..53caa78444d4 100644 --- a/codegen/sdk-codegen/aws-models/ec2.json +++ b/codegen/sdk-codegen/aws-models/ec2.json @@ -8474,19 +8474,19 @@ "smithy.api#documentation": "

Adds the specified inbound (ingress) rules to a security group.

\n

An inbound rule permits instances to receive traffic from the specified IPv4 or IPv6 \n address range, the IP address ranges that are specified by a prefix list, or the instances \n that are associated with a destination security group. For more information, see Security group rules.

\n

You must specify exactly one of the following sources: an IPv4 or IPv6 address range,\n a prefix list, or a security group. You must specify a protocol for each rule (for example, TCP). \n If the protocol is TCP or UDP, you must also specify a port or port range. If the protocol is \n ICMP or ICMPv6, you must also specify the ICMP/ICMPv6 type and code.

\n

Rule changes are propagated to instances associated with the security group as quickly \n as possible. However, a small delay might occur.

\n

For examples of rules that you can add to security groups for specific access scenarios, \n see Security group rules for different use cases in the Amazon EC2 User Guide.

\n

For more information about security group quotas, see Amazon VPC quotas in the Amazon VPC User Guide.

", "smithy.api#examples": [ { - "title": "To add a rule that allows inbound SSH traffic from an IPv4 address range", - "documentation": "This example enables inbound traffic on TCP port 22 (SSH). The rule includes a description to help you identify it later.", + "title": "To add a rule that allows inbound HTTP traffic from another security group", + "documentation": "This example enables inbound traffic on TCP port 80 from the specified security group. The group must be in the same VPC or a peer VPC. Incoming traffic is allowed based on the private IP addresses of instances that are associated with the specified security group.", "input": { - "GroupId": "sg-903004f8", + "GroupId": "sg-111aaa22", "IpPermissions": [ { "IpProtocol": "tcp", - "FromPort": 22, - "ToPort": 22, - "IpRanges": [ + "FromPort": 80, + "ToPort": 80, + "UserIdGroupPairs": [ { - "CidrIp": "203.0.113.0/24", - "Description": "SSH access from the LA office" + "GroupId": "sg-1a2b3c4d", + "Description": "HTTP access from other instances" } ] } @@ -8495,19 +8495,19 @@ "output": {} }, { - "title": "To add a rule that allows inbound HTTP traffic from another security group", - "documentation": "This example enables inbound traffic on TCP port 80 from the specified security group. The group must be in the same VPC or a peer VPC. Incoming traffic is allowed based on the private IP addresses of instances that are associated with the specified security group.", + "title": "To add a rule that allows inbound SSH traffic from an IPv4 address range", + "documentation": "This example enables inbound traffic on TCP port 22 (SSH). The rule includes a description to help you identify it later.", "input": { - "GroupId": "sg-111aaa22", + "GroupId": "sg-903004f8", "IpPermissions": [ { "IpProtocol": "tcp", - "FromPort": 80, - "ToPort": 80, - "UserIdGroupPairs": [ + "FromPort": 22, + "ToPort": 22, + "IpRanges": [ { - "GroupId": "sg-1a2b3c4d", - "Description": "HTTP access from other instances" + "CidrIp": "203.0.113.0/24", + "Description": "SSH access from the LA office" } ] } @@ -20830,26 +20830,6 @@ "traits": { "smithy.api#documentation": "

Creates an EBS volume that can be attached to an instance in the same Availability Zone.

\n

You can create a new empty volume or restore a volume from an EBS snapshot.\n Any Amazon Web Services Marketplace product codes from the snapshot are propagated to the volume.

\n

You can create encrypted volumes. Encrypted volumes must be attached to instances that \n support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically \n encrypted. For more information, see Amazon EBS encryption\n in the Amazon EBS User Guide.

\n

You can tag your volumes during creation. For more information, see Tag your Amazon EC2\n resources in the Amazon EC2 User Guide.

\n

For more information, see Create an Amazon EBS volume in the\n Amazon EBS User Guide.

", "smithy.api#examples": [ - { - "title": "To create a new volume", - "documentation": "This example creates an 80 GiB General Purpose (SSD) volume in the Availability Zone ``us-east-1a``.", - "input": { - "AvailabilityZone": "us-east-1a", - "Size": 80, - "VolumeType": "gp2" - }, - "output": { - "AvailabilityZone": "us-east-1a", - "Encrypted": false, - "VolumeType": "gp2", - "VolumeId": "vol-6b60b7c7", - "State": "creating", - "Iops": 240, - "SnapshotId": "", - "CreateTime": "2016-08-29T18:52:32.724Z", - "Size": 80 - } - }, { "title": "To create a new Provisioned IOPS (SSD) volume from a snapshot", "documentation": "This example creates a new Provisioned IOPS (SSD) volume with 1000 provisioned IOPS from a snapshot in the Availability Zone ``us-east-1a``.", @@ -20871,6 +20851,26 @@ "CreateTime": "2016-08-29T18:52:32.724Z", "Size": 500 } + }, + { + "title": "To create a new volume", + "documentation": "This example creates an 80 GiB General Purpose (SSD) volume in the Availability Zone ``us-east-1a``.", + "input": { + "AvailabilityZone": "us-east-1a", + "Size": 80, + "VolumeType": "gp2" + }, + "output": { + "AvailabilityZone": "us-east-1a", + "Encrypted": false, + "VolumeType": "gp2", + "VolumeId": "vol-6b60b7c7", + "State": "creating", + "Iops": 240, + "SnapshotId": "", + "CreateTime": "2016-08-29T18:52:32.724Z", + "Size": 80 + } } ] } @@ -31262,20 +31262,6 @@ "traits": { "smithy.api#documentation": "

Describes the specified attribute of the specified instance. You can specify only one\n attribute at a time. Valid attribute values are: instanceType |\n kernel | ramdisk | userData |\n disableApiTermination | instanceInitiatedShutdownBehavior\n | rootDeviceName | blockDeviceMapping |\n productCodes | sourceDestCheck | groupSet |\n ebsOptimized | sriovNetSupport\n

", "smithy.api#examples": [ - { - "title": "To describe the instance type", - "documentation": "This example describes the instance type of the specified instance.\n", - "input": { - "InstanceId": "i-1234567890abcdef0", - "Attribute": "instanceType" - }, - "output": { - "InstanceId": "i-1234567890abcdef0", - "InstanceType": { - "Value": "t1.micro" - } - } - }, { "title": "To describe the block device mapping for an instance", "documentation": "This example describes the ``blockDeviceMapping`` attribute of the specified instance.\n", @@ -31306,6 +31292,20 @@ } ] } + }, + { + "title": "To describe the instance type", + "documentation": "This example describes the instance type of the specified instance.\n", + "input": { + "InstanceId": "i-1234567890abcdef0", + "Attribute": "instanceType" + }, + "output": { + "InstanceId": "i-1234567890abcdef0", + "InstanceType": { + "Value": "t1.micro" + } + } } ] } @@ -32107,26 +32107,26 @@ "output": {} }, { - "title": "To describe the instances with a specific instance type", - "documentation": "This example describes the instances with the t2.micro instance type.", + "title": "To describe the instances with a specific tag", + "documentation": "This example describes the instances with the Purpose=test tag.", "input": { "Filters": [ { - "Name": "instance-type", - "Values": ["t2.micro"] + "Name": "tag:Purpose", + "Values": ["test"] } ] }, "output": {} }, { - "title": "To describe the instances with a specific tag", - "documentation": "This example describes the instances with the Purpose=test tag.", + "title": "To describe the instances with a specific instance type", + "documentation": "This example describes the instances with the t2.micro instance type.", "input": { "Filters": [ { - "Name": "tag:Purpose", - "Values": ["test"] + "Name": "instance-type", + "Values": ["t2.micro"] } ] }, @@ -74939,14 +74939,14 @@ "smithy.api#documentation": "

Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time.

\n

To specify the attribute, you can use the Attribute parameter, or one of the following parameters: \n Description, ImdsSupport, or LaunchPermission.

\n

Images with an Amazon Web Services Marketplace product code cannot be made public.

\n

To enable the SriovNetSupport enhanced networking attribute of an image, enable SriovNetSupport on an instance \n and create an AMI from the instance.

", "smithy.api#examples": [ { - "title": "To make an AMI public", - "documentation": "This example makes the specified AMI public.", + "title": "To grant launch permissions", + "documentation": "This example grants launch permissions for the specified AMI to the specified AWS account.", "input": { "ImageId": "ami-5731123e", "LaunchPermission": { "Add": [ { - "Group": "all" + "UserId": "123456789012" } ] } @@ -74954,14 +74954,14 @@ "output": {} }, { - "title": "To grant launch permissions", - "documentation": "This example grants launch permissions for the specified AMI to the specified AWS account.", + "title": "To make an AMI public", + "documentation": "This example makes the specified AMI public.", "input": { "ImageId": "ami-5731123e", "LaunchPermission": { "Add": [ { - "UserId": "123456789012" + "Group": "all" } ] } @@ -75079,23 +75079,23 @@ "smithy.api#documentation": "

Modifies the specified attribute of the specified instance. You can specify only one\n attribute at a time.

\n

\n Note: Using this action to change the security groups\n associated with an elastic network interface (ENI) attached to an instance can\n result in an error if the instance has more than one ENI. To change the security groups\n associated with an ENI attached to an instance that has multiple ENIs, we recommend that\n you use the ModifyNetworkInterfaceAttribute action.

\n

To modify some attributes, the instance must be stopped. For more information, see\n Modify a stopped instance in the\n Amazon EC2 User Guide.

", "smithy.api#examples": [ { - "title": "To modify the instance type", - "documentation": "This example modifies the instance type of the specified stopped instance.", + "title": "To enable enhanced networking", + "documentation": "This example enables enhanced networking for the specified stopped instance.", "input": { "InstanceId": "i-1234567890abcdef0", - "InstanceType": { - "Value": "m5.large" + "EnaSupport": { + "Value": true } }, "output": {} }, { - "title": "To enable enhanced networking", - "documentation": "This example enables enhanced networking for the specified stopped instance.", + "title": "To modify the instance type", + "documentation": "This example modifies the instance type of the specified stopped instance.", "input": { "InstanceId": "i-1234567890abcdef0", - "EnaSupport": { - "Value": true + "InstanceType": { + "Value": "m5.large" } }, "output": {} @@ -76785,24 +76785,24 @@ "smithy.api#documentation": "

Adds or removes permission settings for the specified snapshot. You may add or remove\n specified Amazon Web Services account IDs from a snapshot's list of create volume permissions, but you cannot\n do both in a single operation. If you need to both add and remove account IDs for a snapshot,\n you must use multiple operations. You can make up to 500 modifications to a snapshot in a single operation.

\n

Encrypted snapshots and snapshots with Amazon Web Services Marketplace product codes cannot be made\n public. Snapshots encrypted with your default KMS key cannot be shared with other accounts.

\n

For more information about modifying snapshot permissions, see Share a snapshot in the\n Amazon EBS User Guide.

", "smithy.api#examples": [ { - "title": "To modify a snapshot attribute", - "documentation": "This example modifies snapshot ``snap-1234567890abcdef0`` to remove the create volume permission for a user with the account ID ``123456789012``. If the command succeeds, no output is returned.", + "title": "To make a snapshot public", + "documentation": "This example makes the snapshot ``snap-1234567890abcdef0`` public.", "input": { "SnapshotId": "snap-1234567890abcdef0", "Attribute": "createVolumePermission", - "OperationType": "remove", - "UserIds": ["123456789012"] + "OperationType": "add", + "GroupNames": ["all"] }, "output": {} }, { - "title": "To make a snapshot public", - "documentation": "This example makes the snapshot ``snap-1234567890abcdef0`` public.", + "title": "To modify a snapshot attribute", + "documentation": "This example modifies snapshot ``snap-1234567890abcdef0`` to remove the create volume permission for a user with the account ID ``123456789012``. If the command succeeds, no output is returned.", "input": { "SnapshotId": "snap-1234567890abcdef0", "Attribute": "createVolumePermission", - "OperationType": "add", - "GroupNames": ["all"] + "OperationType": "remove", + "UserIds": ["123456789012"] }, "output": {} }