Skip to content

Commit

Permalink
feat(client-ec2): Fix EC2 multi-protocol info in models.
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Jun 24, 2024
1 parent b4bc88d commit 3b5fb45
Showing 1 changed file with 80 additions and 80 deletions.
160 changes: 80 additions & 80 deletions codegen/sdk-codegen/aws-models/ec2.json
Original file line number Diff line number Diff line change
Expand Up @@ -8474,19 +8474,19 @@
"smithy.api#documentation": "<p>Adds the specified inbound (ingress) rules to a security group.</p>\n <p>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 <a href=\"https://docs.aws.amazon.com/vpc/latest/userguide/security-group-rules.html\">Security group rules</a>.</p>\n <p>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.</p>\n <p>Rule changes are propagated to instances associated with the security group as quickly \n as possible. However, a small delay might occur.</p>\n <p>For examples of rules that you can add to security groups for specific access scenarios, \n see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-rules-reference.html\">Security group rules for different use cases</a> in the <i>Amazon EC2 User Guide</i>.</p>\n <p>For more information about security group quotas, see <a href=\"https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html\">Amazon VPC quotas</a> in the <i>Amazon VPC User Guide</i>.</p>",
"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"
}
]
}
Expand All @@ -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"
}
]
}
Expand Down Expand Up @@ -20830,26 +20830,6 @@
"traits": {
"smithy.api#documentation": "<p>Creates an EBS volume that can be attached to an instance in the same Availability Zone.</p>\n <p>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.</p>\n <p>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 <a href=\"https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html\">Amazon EBS encryption</a>\n in the <i>Amazon EBS User Guide</i>.</p>\n <p>You can tag your volumes during creation. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html\">Tag your Amazon EC2\n resources</a> in the <i>Amazon EC2 User Guide</i>.</p>\n <p>For more information, see <a href=\"https://docs.aws.amazon.com/ebs/latest/userguide/ebs-creating-volume.html\">Create an Amazon EBS volume</a> in the\n <i>Amazon EBS User Guide</i>.</p>",
"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``.",
Expand All @@ -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
}
}
]
}
Expand Down Expand Up @@ -31262,20 +31262,6 @@
"traits": {
"smithy.api#documentation": "<p>Describes the specified attribute of the specified instance. You can specify only one\n attribute at a time. Valid attribute values are: <code>instanceType</code> |\n <code>kernel</code> | <code>ramdisk</code> | <code>userData</code> |\n <code>disableApiTermination</code> | <code>instanceInitiatedShutdownBehavior</code>\n | <code>rootDeviceName</code> | <code>blockDeviceMapping</code> |\n <code>productCodes</code> | <code>sourceDestCheck</code> | <code>groupSet</code> |\n <code>ebsOptimized</code> | <code>sriovNetSupport</code>\n </p>",
"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",
Expand Down Expand Up @@ -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"
}
}
}
]
}
Expand Down Expand Up @@ -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"]
}
]
},
Expand Down Expand Up @@ -74939,29 +74939,29 @@
"smithy.api#documentation": "<p>Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time.</p>\n <p>To specify the attribute, you can use the <code>Attribute</code> parameter, or one of the following parameters: \n <code>Description</code>, <code>ImdsSupport</code>, or <code>LaunchPermission</code>.</p>\n <p>Images with an Amazon Web Services Marketplace product code cannot be made public.</p>\n <p>To enable the SriovNetSupport enhanced networking attribute of an image, enable SriovNetSupport on an instance \n and create an AMI from the instance.</p>",
"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"
}
]
}
},
"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"
}
]
}
Expand Down Expand Up @@ -75079,23 +75079,23 @@
"smithy.api#documentation": "<p>Modifies the specified attribute of the specified instance. You can specify only one\n attribute at a time.</p>\n <p>\n <b>Note: </b>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 <a>ModifyNetworkInterfaceAttribute</a> action.</p>\n <p>To modify some attributes, the instance must be stopped. For more information, see\n <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_ChangingAttributesWhileInstanceStopped.html\">Modify a stopped instance</a> in the\n <i>Amazon EC2 User Guide</i>.</p>",
"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": {}
Expand Down Expand Up @@ -76785,24 +76785,24 @@
"smithy.api#documentation": "<p>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.</p>\n <p>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.</p>\n <p>For more information about modifying snapshot permissions, see <a href=\"https://docs.aws.amazon.com/ebs/latest/userguide/ebs-modifying-snapshot-permissions.html\">Share a snapshot</a> in the\n <i>Amazon EBS User Guide</i>.</p>",
"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": {}
}
Expand Down

0 comments on commit 3b5fb45

Please sign in to comment.