Skip to content

Commit

Permalink
Update API model
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS SDK for Go v2 automation user committed Jul 2, 2024
1 parent 59bb031 commit 2307971
Show file tree
Hide file tree
Showing 3 changed files with 143 additions and 95 deletions.
22 changes: 14 additions & 8 deletions codegen/sdk-codegen/aws-models/ec2.json
Original file line number Diff line number Diff line change
Expand Up @@ -9558,7 +9558,7 @@
"target": "com.amazonaws.ec2#ByoipCidrState",
"traits": {
"aws.protocols#ec2QueryName": "State",
"smithy.api#documentation": "<p>The state of the address pool.</p>",
"smithy.api#documentation": "<p>The state of the address range.</p>\n <ul>\n <li>\n <p>\n <code>advertised</code>: The address range is being advertised to the internet by Amazon Web Services.</p>\n </li>\n <li>\n <p>\n <code>deprovisioned</code>: The address range is deprovisioned.</p>\n </li>\n <li>\n <p>\n <code>failed-deprovision</code>: The request to deprovision the address range was unsuccessful. Ensure that all EIPs from the range have been deallocated and try again.</p>\n </li>\n <li>\n <p>\n <code>failed-provision</code>: The request to provision the address range was unsuccessful.</p>\n </li>\n <li>\n <p>\n <code>pending-deprovision</code>: You’ve submitted a request to deprovision an address range and it's pending.</p>\n </li>\n <li>\n <p>\n <code>pending-provision</code>: You’ve submitted a request to provision an address range and it's pending.</p>\n </li>\n <li>\n <p>\n <code>provisioned</code>: The address range is provisioned and can be advertised. The range is not currently advertised.</p>\n </li>\n <li>\n <p>\n <code>provisioned-not-publicly-advertisable</code>: The address range is provisioned and cannot be advertised.</p>\n </li>\n </ul>",
"smithy.api#xmlName": "state"
}
},
Expand Down Expand Up @@ -15626,7 +15626,7 @@
"PreserveClientIp": {
"target": "com.amazonaws.ec2#Boolean",
"traits": {
"smithy.api#documentation": "<p>Indicates whether your client's IP address is preserved as the source. The value is <code>true</code> or <code>false</code>.</p>\n <ul>\n <li>\n <p>If <code>true</code>, your client's IP address is used when you connect to a resource.</p>\n </li>\n <li>\n <p>If <code>false</code>, the elastic network interface IP address is used when you connect to a resource.</p>\n </li>\n </ul>\n <p>Default: <code>true</code>\n </p>"
"smithy.api#documentation": "<p>Indicates whether the client IP address is preserved as the source. The following are the possible values.</p>\n <ul>\n <li>\n <p>\n <code>true</code> - Use the client IP address as the source.</p>\n </li>\n <li>\n <p>\n <code>false</code> - Use the network interface IP address as the source.</p>\n </li>\n </ul>\n <p>Default: <code>false</code>\n </p>"
}
},
"ClientToken": {
Expand Down Expand Up @@ -20975,7 +20975,7 @@
"OutpostArn": {
"target": "com.amazonaws.ec2#String",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the Outpost.</p>"
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the Outpost on which to create the volume.</p>\n <p>If you intend to use a volume with an instance running on an outpost, then you must \n create the volume on the same outpost as the instance. You can't use a volume created \n in an Amazon Web Services Region with an instance on an Amazon Web Services outpost, or the other way around.</p>"
}
},
"Size": {
Expand Down Expand Up @@ -40956,7 +40956,7 @@
"VolumeIds": {
"target": "com.amazonaws.ec2#VolumeIdStringList",
"traits": {
"smithy.api#documentation": "<p>The volume IDs.</p>",
"smithy.api#documentation": "<p>The volume IDs. If not specified, then all volumes are included in the response.</p>",
"smithy.api#xmlName": "VolumeId"
}
},
Expand Down Expand Up @@ -55619,6 +55619,12 @@
"com.amazonaws.ec2#HostTenancy": {
"type": "enum",
"members": {
"default": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "default"
}
},
"dedicated": {
"target": "smithy.api#Unit",
"traits": {
Expand Down Expand Up @@ -60658,7 +60664,7 @@
"target": "com.amazonaws.ec2#Integer",
"traits": {
"aws.protocols#ec2QueryName": "MaxSpotPriceAsPercentageOfOptimalOnDemandPrice",
"smithy.api#documentation": "<p>[Price protection] The price protection threshold for Spot Instances, as a percentage of an\n identified On-Demand price. The identified On-Demand price is the price of the lowest\n priced current generation C, M, or R instance type with your specified attributes. If no\n current generation C, M, or R instance type matches your attributes, then the identified\n price is from the lowest priced current generation instance types, and failing that, from\n the lowest priced previous generation instance types that match your attributes. When Amazon EC2\n selects instance types with your attributes, it will exclude instance types whose price\n exceeds your specified threshold.</p>\n <p>The parameter accepts an integer, which Amazon EC2 interprets as a percentage.</p>\n <p>If you set <code>DesiredCapacityType</code> to <code>vcpu</code> or\n <code>memory-mib</code>, the price protection threshold is based on the per vCPU or per\n memory price instead of the per instance price.</p>\n <note>\n <p>Only one of <code>SpotMaxPricePercentageOverLowestPrice</code> or\n <code>MaxSpotPriceAsPercentageOfOptimalOnDemandPrice</code> can be specified. If you\n don't specify either, Amazon EC2 will automatically apply optimal price protection to\n consistently select from a wide range of instance types. To indicate no price protection\n threshold for Spot Instances, meaning you want to consider all instance types that match your\n attributes, include one of these parameters and specify a high value, such as\n <code>999999</code>.</p>\n </note>",
"smithy.api#documentation": "<p>[Price protection] The price protection threshold for Spot Instances, as a percentage of an\n identified On-Demand price. The identified On-Demand price is the price of the lowest\n priced current generation C, M, or R instance type with your specified attributes. If no\n current generation C, M, or R instance type matches your attributes, then the identified\n price is from the lowest priced current generation instance types, and failing that, from\n the lowest priced previous generation instance types that match your attributes. When Amazon EC2\n selects instance types with your attributes, it will exclude instance types whose price\n exceeds your specified threshold.</p>\n <p>The parameter accepts an integer, which Amazon EC2 interprets as a percentage.</p>\n <p>If you set <code>TargetCapacityUnitType</code> to <code>vcpu</code> or\n <code>memory-mib</code>, the price protection threshold is based on the per vCPU or per\n memory price instead of the per instance price.</p>\n <note>\n <p>Only one of <code>SpotMaxPricePercentageOverLowestPrice</code> or\n <code>MaxSpotPriceAsPercentageOfOptimalOnDemandPrice</code> can be specified. If you\n don't specify either, Amazon EC2 will automatically apply optimal price protection to\n consistently select from a wide range of instance types. To indicate no price protection\n threshold for Spot Instances, meaning you want to consider all instance types that match your\n attributes, include one of these parameters and specify a high value, such as\n <code>999999</code>.</p>\n </note>",
"smithy.api#xmlName": "maxSpotPriceAsPercentageOfOptimalOnDemandPrice"
}
}
Expand Down Expand Up @@ -60823,7 +60829,7 @@
"MaxSpotPriceAsPercentageOfOptimalOnDemandPrice": {
"target": "com.amazonaws.ec2#Integer",
"traits": {
"smithy.api#documentation": "<p>[Price protection] The price protection threshold for Spot Instances, as a percentage of an\n identified On-Demand price. The identified On-Demand price is the price of the lowest\n priced current generation C, M, or R instance type with your specified attributes. If no\n current generation C, M, or R instance type matches your attributes, then the identified\n price is from the lowest priced current generation instance types, and failing that, from\n the lowest priced previous generation instance types that match your attributes. When Amazon EC2\n selects instance types with your attributes, it will exclude instance types whose price\n exceeds your specified threshold.</p>\n <p>The parameter accepts an integer, which Amazon EC2 interprets as a percentage.</p>\n <p>If you set <code>DesiredCapacityType</code> to <code>vcpu</code> or\n <code>memory-mib</code>, the price protection threshold is based on the per vCPU or per\n memory price instead of the per instance price.</p>\n <note>\n <p>Only one of <code>SpotMaxPricePercentageOverLowestPrice</code> or\n <code>MaxSpotPriceAsPercentageOfOptimalOnDemandPrice</code> can be specified. If you\n don't specify either, Amazon EC2 will automatically apply optimal price protection to\n consistently select from a wide range of instance types. To indicate no price protection\n threshold for Spot Instances, meaning you want to consider all instance types that match your\n attributes, include one of these parameters and specify a high value, such as\n <code>999999</code>.</p>\n </note>"
"smithy.api#documentation": "<p>[Price protection] The price protection threshold for Spot Instances, as a percentage of an\n identified On-Demand price. The identified On-Demand price is the price of the lowest\n priced current generation C, M, or R instance type with your specified attributes. If no\n current generation C, M, or R instance type matches your attributes, then the identified\n price is from the lowest priced current generation instance types, and failing that, from\n the lowest priced previous generation instance types that match your attributes. When Amazon EC2\n selects instance types with your attributes, it will exclude instance types whose price\n exceeds your specified threshold.</p>\n <p>The parameter accepts an integer, which Amazon EC2 interprets as a percentage.</p>\n <p>If you set <code>TargetCapacityUnitType</code> to <code>vcpu</code> or\n <code>memory-mib</code>, the price protection threshold is based on the per vCPU or per\n memory price instead of the per instance price.</p>\n <note>\n <p>Only one of <code>SpotMaxPricePercentageOverLowestPrice</code> or\n <code>MaxSpotPriceAsPercentageOfOptimalOnDemandPrice</code> can be specified. If you\n don't specify either, Amazon EC2 will automatically apply optimal price protection to\n consistently select from a wide range of instance types. To indicate no price protection\n threshold for Spot Instances, meaning you want to consider all instance types that match your\n attributes, include one of these parameters and specify a high value, such as\n <code>999999</code>.</p>\n </note>"
}
}
},
Expand Down Expand Up @@ -75426,7 +75432,7 @@
"target": "com.amazonaws.ec2#BlobAttributeValue",
"traits": {
"aws.protocols#ec2QueryName": "UserData",
"smithy.api#documentation": "<p>Changes the instance's user data to the specified value. If you are using an Amazon Web Services SDK or command line tool, base64-encoding is performed for you, and you\n can load the text from a file. Otherwise, you must provide base64-encoded text.</p>",
"smithy.api#documentation": "<p>Changes the instance's user data to the specified value. User data must be base64-encoded.\n Depending on the tool or SDK that you're using, the base64-encoding might be performed for you.\n For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html\">Work with instance user data</a>.</p>",
"smithy.api#xmlName": "userData"
}
},
Expand Down Expand Up @@ -92438,7 +92444,7 @@
"UserData": {
"target": "com.amazonaws.ec2#RunInstancesUserData",
"traits": {
"smithy.api#documentation": "<p>The user data script to make available to the instance. For more information, see\n <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html\">Run\n commands on your Amazon EC2 instance at launch</a> in the <i>Amazon EC2 User\n Guide</i>. If you are using a command line tool, base64-encoding is performed\n for you, and you can load the text from a file. Otherwise, you must provide\n base64-encoded text. User data is limited to 16 KB.</p>"
"smithy.api#documentation": "<p>The user data to make available to the instance. User data must be base64-encoded.\n Depending on the tool or SDK that you're using, the base64-encoding might be performed for you.\n For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html\">Work with instance user data</a>.</p>"
}
},
"AdditionalInfo": {
Expand Down
2 changes: 1 addition & 1 deletion codegen/sdk-codegen/aws-models/fms.json
Original file line number Diff line number Diff line change
Expand Up @@ -5145,7 +5145,7 @@
"traits": {
"smithy.api#length": {
"min": 1,
"max": 10000
"max": 30000
},
"smithy.api#pattern": "^((?!\\\\[nr]).)+$"
}
Expand Down
Loading

0 comments on commit 2307971

Please sign in to comment.