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 May 10, 2022
1 parent ab8d7ed commit cd44f14
Show file tree
Hide file tree
Showing 5 changed files with 454 additions and 227 deletions.
6 changes: 3 additions & 3 deletions codegen/sdk-codegen/aws-models/compute-optimizer.json
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@
"resourceType": {
"target": "com.amazonaws.computeoptimizer#ResourceType",
"traits": {
"smithy.api#documentation": "<p>The target resource type of the recommendation preference to delete.</p>\n <p>The <code>Ec2Instance</code> option encompasses standalone instances and instances\n that are part of Auto Scaling groups. The <code>AutoScalingGroup</code> option\n encompasses only instances that are part of an Auto Scaling group.</p>",
"smithy.api#documentation": "<p>The target resource type of the recommendation preference to delete.</p>\n <p>The <code>Ec2Instance</code> option encompasses standalone instances and instances\n that are part of Auto Scaling groups. The <code>AutoScalingGroup</code> option\n encompasses only instances that are part of an Auto Scaling group.</p>\n <note>\n <p>The valid values for this parameter are <code>Ec2Instance</code> and\n <code>AutoScalingGroup</code>.</p>\n </note>",
"smithy.api#required": {}
}
},
Expand Down Expand Up @@ -2796,7 +2796,7 @@
"resourceType": {
"target": "com.amazonaws.computeoptimizer#ResourceType",
"traits": {
"smithy.api#documentation": "<p>The target resource type of the recommendation preference for which to return\n preferences.</p>\n <p>The <code>Ec2Instance</code> option encompasses standalone instances and instances\n that are part of Auto Scaling groups. The <code>AutoScalingGroup</code> option\n encompasses only instances that are part of an Auto Scaling group.</p>",
"smithy.api#documentation": "<p>The target resource type of the recommendation preference for which to return\n preferences.</p>\n <p>The <code>Ec2Instance</code> option encompasses standalone instances and instances\n that are part of Auto Scaling groups. The <code>AutoScalingGroup</code> option\n encompasses only instances that are part of an Auto Scaling group.</p>\n <note>\n <p>The valid values for this parameter are <code>Ec2Instance</code> and\n <code>AutoScalingGroup</code>.</p>\n </note>",
"smithy.api#required": {}
}
},
Expand Down Expand Up @@ -3984,7 +3984,7 @@
"resourceType": {
"target": "com.amazonaws.computeoptimizer#ResourceType",
"traits": {
"smithy.api#documentation": "<p>The target resource type of the recommendation preference to create.</p>\n <p>The <code>Ec2Instance</code> option encompasses standalone instances and instances\n that are part of Auto Scaling groups. The <code>AutoScalingGroup</code> option\n encompasses only instances that are part of an Auto Scaling group.</p>",
"smithy.api#documentation": "<p>The target resource type of the recommendation preference to create.</p>\n <p>The <code>Ec2Instance</code> option encompasses standalone instances and instances\n that are part of Auto Scaling groups. The <code>AutoScalingGroup</code> option\n encompasses only instances that are part of an Auto Scaling group.</p>\n <note>\n <p>The valid values for this parameter are <code>Ec2Instance</code> and\n <code>AutoScalingGroup</code>.</p>\n </note>",
"smithy.api#required": {}
}
},
Expand Down
127 changes: 127 additions & 0 deletions codegen/sdk-codegen/aws-models/ec2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2766,6 +2766,9 @@
{
"target": "com.amazonaws.ec2#GetInstanceTypesFromInstanceRequirements"
},
{
"target": "com.amazonaws.ec2#GetInstanceUefiData"
},
{
"target": "com.amazonaws.ec2#GetIpamAddressHistory"
},
Expand Down Expand Up @@ -37947,6 +37950,58 @@
}
}
},
"com.amazonaws.ec2#GetInstanceUefiData": {
"type": "operation",
"input": {
"target": "com.amazonaws.ec2#GetInstanceUefiDataRequest"
},
"output": {
"target": "com.amazonaws.ec2#GetInstanceUefiDataResult"
},
"traits": {
"smithy.api#documentation": "<p>A binary representation of the UEFI variable store. Only non-volatile variables are\n stored. This is a base64 encoded and zlib compressed binary value that must be properly\n encoded.</p>\n <p>When you use <a href=\"https://docs.aws.amazon.com/cli/latest/reference/ec2/register-image.html\">register-image</a>\n to create an AMI, you can create an exact copy of your variable store by passing the UEFI data in the <code>UefiData</code>\n parameter. You can modify the UEFI data by using the <a href=\"https://github.com/awslabs/python-uefivars\">python-uefivars tool</a>\n on GitHub. You can use the tool to convert the UEFI data into a human-readable format (JSON), which you can \n inspect and modify, and then convert back into the binary format to use with register-image.</p>\n <p>For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html\">UEFI Secure Boot</a> in the\n <i>Amazon EC2 User Guide</i>.</p>"
}
},
"com.amazonaws.ec2#GetInstanceUefiDataRequest": {
"type": "structure",
"members": {
"InstanceId": {
"target": "com.amazonaws.ec2#InstanceId",
"traits": {
"smithy.api#documentation": "<p>The ID of the instance from which to retrieve the UEFI data.</p>",
"smithy.api#required": {},
"smithy.api#xmlName": "InstanceId"
}
},
"DryRun": {
"target": "com.amazonaws.ec2#Boolean",
"traits": {
"smithy.api#documentation": "<p>Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. \n Otherwise, it is <code>UnauthorizedOperation</code>.</p>"
}
}
}
},
"com.amazonaws.ec2#GetInstanceUefiDataResult": {
"type": "structure",
"members": {
"InstanceId": {
"target": "com.amazonaws.ec2#InstanceId",
"traits": {
"aws.protocols#ec2QueryName": "InstanceId",
"smithy.api#documentation": "<p>The ID of the instance from which to retrieve the UEFI data.</p>",
"smithy.api#xmlName": "instanceId"
}
},
"UefiData": {
"target": "com.amazonaws.ec2#String",
"traits": {
"aws.protocols#ec2QueryName": "UefiData",
"smithy.api#documentation": "<p>Base64 representation of the non-volatile UEFI variable store.</p>",
"smithy.api#xmlName": "uefiData"
}
}
}
},
"com.amazonaws.ec2#GetIpamAddressHistory": {
"type": "operation",
"input": {
Expand Down Expand Up @@ -40869,6 +40924,14 @@
"smithy.api#xmlName": "bootMode"
}
},
"TpmSupport": {
"target": "com.amazonaws.ec2#TpmSupportValues",
"traits": {
"aws.protocols#ec2QueryName": "TpmSupport",
"smithy.api#documentation": "<p>If the image is configured for NitroTPM support, the value is <code>v2.0</code>. \n For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitrotpm.html\">NitroTPM</a> in the\n <i>Amazon Elastic Compute Cloud User Guide</i>.</p>",
"smithy.api#xmlName": "tpmSupport"
}
},
"DeprecationTime": {
"target": "com.amazonaws.ec2#String",
"traits": {
Expand Down Expand Up @@ -40957,6 +41020,22 @@
"smithy.api#xmlName": "bootMode"
}
},
"TpmSupport": {
"target": "com.amazonaws.ec2#AttributeValue",
"traits": {
"aws.protocols#ec2QueryName": "TpmSupport",
"smithy.api#documentation": "<p>If the image is configured for NitroTPM support, the value is <code>v2.0</code>.</p>",
"smithy.api#xmlName": "tpmSupport"
}
},
"UefiData": {
"target": "com.amazonaws.ec2#AttributeValue",
"traits": {
"aws.protocols#ec2QueryName": "UefiData",
"smithy.api#documentation": "<p>Base64 representation of the non-volatile UEFI variable store. To retrieve the UEFI data,\n use the <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceUefiData\">GetInstanceUefiData</a> command. You can inspect and modify the UEFI data by using the\n <a href=\"https://github.com/awslabs/python-uefivars\">python-uefivars tool</a> on\n GitHub. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html\">UEFI Secure Boot</a> in the\n <i>Amazon Elastic Compute Cloud User Guide</i>.</p>",
"smithy.api#xmlName": "uefiData"
}
},
"LastLaunchedTime": {
"target": "com.amazonaws.ec2#AttributeValue",
"traits": {
Expand Down Expand Up @@ -41006,6 +41085,14 @@
"value": "bootMode",
"name": "bootMode"
},
{
"value": "tpmSupport",
"name": "tpmSupport"
},
{
"value": "uefiData",
"name": "uefiData"
},
{
"value": "lastLaunchedTime",
"name": "lastLaunchedTime"
Expand Down Expand Up @@ -42887,6 +42974,14 @@
"smithy.api#xmlName": "ipv6Address"
}
},
"TpmSupport": {
"target": "com.amazonaws.ec2#String",
"traits": {
"aws.protocols#ec2QueryName": "TpmSupport",
"smithy.api#documentation": "<p>If the instance is configured for NitroTPM support, the value is <code>v2.0</code>.\n For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitrotpm.html\">NitroTPM</a> in the\n <i>Amazon EC2 User Guide</i>.</p>",
"smithy.api#xmlName": "tpmSupport"
}
},
"MaintenanceOptions": {
"target": "com.amazonaws.ec2#InstanceMaintenanceOptions",
"traits": {
Expand Down Expand Up @@ -62622,6 +62717,18 @@
"traits": {
"smithy.api#documentation": "<p>The boot mode of the AMI. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html\">Boot modes</a> in the\n <i>Amazon Elastic Compute Cloud User Guide</i>.</p>"
}
},
"TpmSupport": {
"target": "com.amazonaws.ec2#TpmSupportValues",
"traits": {
"smithy.api#documentation": "<p>Set to <code>v2.0</code> to enable Trusted Platform Module (TPM) support. For more\n information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitrotpm.html\">NitroTPM</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>"
}
},
"UefiData": {
"target": "com.amazonaws.ec2#StringType",
"traits": {
"smithy.api#documentation": "<p>Base64 representation of the non-volatile UEFI variable store. To retrieve the UEFI data,\n use the <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceUefiData\">GetInstanceUefiData</a> command. You can inspect and modify the UEFI data by using the\n <a href=\"https://github.com/awslabs/python-uefivars\">python-uefivars tool</a> on\n GitHub. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html\">UEFI Secure Boot</a> in the\n <i>Amazon Elastic Compute Cloud User Guide</i>.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -72369,6 +72476,15 @@
}
}
},
"com.amazonaws.ec2#StringType": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 0,
"max": 64000
}
}
},
"com.amazonaws.ec2#Subnet": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -73656,6 +73772,17 @@
"smithy.api#documentation": "<p>The minimum and maximum amount of total local storage, in GB.</p>"
}
},
"com.amazonaws.ec2#TpmSupportValues": {
"type": "string",
"traits": {
"smithy.api#enum": [
{
"value": "v2.0",
"name": "v2_0"
}
]
}
},
"com.amazonaws.ec2#TrafficDirection": {
"type": "string",
"traits": {
Expand Down
Loading

0 comments on commit cd44f14

Please sign in to comment.