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 Dec 13, 2024
1 parent f4602b1 commit bc23383
Show file tree
Hide file tree
Showing 7 changed files with 479 additions and 19 deletions.
86 changes: 85 additions & 1 deletion codegen/sdk-codegen/aws-models/cloudhsm-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1350,6 +1350,18 @@
"smithy.api#error": "client"
}
},
"com.amazonaws.cloudhsmv2#CloudHsmResourceLimitExceededException": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.cloudhsmv2#errorMessage"
}
},
"traits": {
"smithy.api#documentation": "<p>The request was rejected because it exceeds an CloudHSM limit.</p>",
"smithy.api#error": "client"
}
},
"com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -1467,6 +1479,12 @@
"smithy.api#documentation": "<p>The identifier (ID) of the virtual private cloud (VPC) that contains the\n cluster.</p>"
}
},
"NetworkType": {
"target": "com.amazonaws.cloudhsmv2#NetworkType",
"traits": {
"smithy.api#documentation": "<p>The cluster's NetworkType can be set to either IPV4 (which is the default) or DUALSTACK.\n When set to IPV4, communication between your application and the Hardware Security Modules (HSMs) is restricted to the IPv4 protocol only.\n In contrast, the DUALSTACK network type enables communication over both the IPv4 and IPv6 protocols.\n To use the DUALSTACK option, you'll need to configure your Virtual Private Cloud (VPC) and subnets to support both IPv4 and IPv6. This involves adding IPv6 Classless Inter-Domain Routing (CIDR) blocks to the existing IPv4 CIDR blocks in your subnets.\n The choice between IPV4 and DUALSTACK network types determines the flexibility of the network addressing setup for your cluster. The DUALSTACK option provides more flexibility by allowing both IPv4 and IPv6 communication.</p>"
}
},
"Certificates": {
"target": "com.amazonaws.cloudhsmv2#Certificates",
"traits": {
Expand Down Expand Up @@ -1552,6 +1570,18 @@
"smithy.api#enumValue": "UPDATE_IN_PROGRESS"
}
},
"MODIFY_IN_PROGRESS": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "MODIFY_IN_PROGRESS"
}
},
"ROLLBACK_IN_PROGRESS": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "ROLLBACK_IN_PROGRESS"
}
},
"DELETE_IN_PROGRESS": {
"target": "smithy.api#Unit",
"traits": {
Expand Down Expand Up @@ -1722,6 +1752,12 @@
"smithy.api#required": {}
}
},
"NetworkType": {
"target": "com.amazonaws.cloudhsmv2#NetworkType",
"traits": {
"smithy.api#documentation": "<p>The NetworkType to create a cluster with. The allowed values are\n <code>IPV4</code> and <code>DUALSTACK</code>.\n </p>"
}
},
"TagList": {
"target": "com.amazonaws.cloudhsmv2#TagList",
"traits": {
Expand Down Expand Up @@ -2208,7 +2244,20 @@
"inputToken": "NextToken",
"outputToken": "NextToken",
"pageSize": "MaxResults"
}
},
"smithy.test#smokeTests": [
{
"id": "DescribeClustersSuccess",
"params": {},
"vendorParams": {
"region": "us-west-2"
},
"vendorParamsShape": "aws.test#AwsVendorParams",
"expect": {
"success": {}
}
}
]
}
},
"com.amazonaws.cloudhsmv2#DescribeClustersRequest": {
Expand Down Expand Up @@ -2421,6 +2470,12 @@
"smithy.api#documentation": "<p>The IP address of the HSM's elastic network interface (ENI).</p>"
}
},
"EniIpV6": {
"target": "com.amazonaws.cloudhsmv2#IpV6Address",
"traits": {
"smithy.api#documentation": "<p>The IPv6 address (if any) of the HSM's elastic network interface (ENI).</p>"
}
},
"HsmId": {
"target": "com.amazonaws.cloudhsmv2#HsmId",
"traits": {
Expand Down Expand Up @@ -2586,6 +2641,15 @@
"smithy.api#pattern": "^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$"
}
},
"com.amazonaws.cloudhsmv2#IpV6Address": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 0,
"max": 100
}
}
},
"com.amazonaws.cloudhsmv2#ListTags": {
"type": "operation",
"input": {
Expand Down Expand Up @@ -2804,6 +2868,23 @@
"smithy.api#output": {}
}
},
"com.amazonaws.cloudhsmv2#NetworkType": {
"type": "enum",
"members": {
"IPV4": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "IPV4"
}
},
"DUALSTACK": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "DUALSTACK"
}
}
}
},
"com.amazonaws.cloudhsmv2#NextToken": {
"type": "string",
"traits": {
Expand Down Expand Up @@ -3088,6 +3169,9 @@
{
"target": "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException"
},
{
"target": "com.amazonaws.cloudhsmv2#CloudHsmResourceLimitExceededException"
},
{
"target": "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException"
},
Expand Down
4 changes: 2 additions & 2 deletions codegen/sdk-codegen/aws-models/cloudwatch-logs.json
Original file line number Diff line number Diff line change
Expand Up @@ -5741,7 +5741,7 @@
"traits": {
"smithy.api#length": {
"min": 1,
"max": 256
"max": 50
},
"smithy.api#pattern": "^[\\.\\-_/#A-Za-z0-9]+$"
}
Expand All @@ -5751,7 +5751,7 @@
"traits": {
"smithy.api#length": {
"min": 1,
"max": 256
"max": 50
},
"smithy.api#pattern": "^[\\.\\-_/#A-Za-z0-9]+$"
}
Expand Down
32 changes: 28 additions & 4 deletions codegen/sdk-codegen/aws-models/ec2.json
Original file line number Diff line number Diff line change
Expand Up @@ -26471,7 +26471,7 @@
"target": "com.amazonaws.ec2#DeleteSecurityGroupRequest"
},
"output": {
"target": "smithy.api#Unit"
"target": "com.amazonaws.ec2#DeleteSecurityGroupResult"
},
"traits": {
"smithy.api#documentation": "<p>Deletes a security group.</p>\n <p>If you attempt to delete a security group that is associated with an instance or network interface, is\n\t\t\t referenced by another security group in the same VPC, or has a VPC association, the operation fails with\n\t\t\t\t<code>DependencyViolation</code>.</p>",
Expand Down Expand Up @@ -26515,6 +26515,30 @@
"smithy.api#input": {}
}
},
"com.amazonaws.ec2#DeleteSecurityGroupResult": {
"type": "structure",
"members": {
"Return": {
"target": "com.amazonaws.ec2#Boolean",
"traits": {
"aws.protocols#ec2QueryName": "Return",
"smithy.api#documentation": "<p>Returns <code>true</code> if the request succeeds; otherwise, returns an error.</p>",
"smithy.api#xmlName": "return"
}
},
"GroupId": {
"target": "com.amazonaws.ec2#SecurityGroupId",
"traits": {
"aws.protocols#ec2QueryName": "GroupId",
"smithy.api#documentation": "<p>The ID of the deleted security group.</p>",
"smithy.api#xmlName": "groupId"
}
}
},
"traits": {
"smithy.api#output": {}
}
},
"com.amazonaws.ec2#DeleteSnapshot": {
"type": "operation",
"input": {
Expand Down Expand Up @@ -52254,7 +52278,7 @@
}
},
"traits": {
"smithy.api#documentation": "<p>A filter name and value pair that is used to return a more specific list of results from a describe operation. \n Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.</p>\n <p>If you specify multiple filters, the filters are joined with an <code>AND</code>, and the request returns only \n results that match all of the specified filters.</p>"
"smithy.api#documentation": "<p>A filter name and value pair that is used to return a more specific list of results from a describe operation. \n Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.</p>\n <p>If you specify multiple filters, the filters are joined with an <code>AND</code>, and the request returns only \n results that match all of the specified filters.</p>\n <p>For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Filtering.html#Filtering_Resources_CLI\">List and filter using the CLI and API</a> in the <i>Amazon EC2 User Guide</i>.</p>"
}
},
"com.amazonaws.ec2#FilterList": {
Expand Down Expand Up @@ -102869,7 +102893,7 @@
"target": "com.amazonaws.ec2#StartDeclarativePoliciesReportResult"
},
"traits": {
"smithy.api#documentation": "<p>Generates an account status report. The report is generated asynchronously, and can\n take several hours to complete.</p>\n <p>The report provides the current status of all attributes supported by declarative\n policies for the accounts within the specified scope. The scope is determined by the\n specified <code>TargetId</code>, which can represent an individual account, or all the\n accounts that fall under the specified organizational unit (OU) or root (the entire\n Amazon Web Services Organization).</p>\n <p>The report is saved to your specified S3 bucket, using the following path structure\n (with the <i>italicized placeholders</i> representing your specific\n values):</p>\n <p>\n <code>s3://<i>amzn-s3-demo-bucket</i>/<i>your-optional-s3-prefix</i>/ec2_<i>targetId</i>_<i>reportId</i>_<i>yyyyMMdd</i>T<i>hhmm</i>Z.csv</code>\n </p>\n <p class=\"title\">\n <b>Prerequisites for generating a report</b>\n </p>\n <ul>\n <li>\n <p>The <code>StartDeclarativePoliciesReport</code> API can only be called by the\n management account or delegated administrators for the organization.</p>\n </li>\n <li>\n <p>An S3 bucket must be available before generating the report (you can create a\n new one or use an existing one), and it must have an appropriate bucket policy.\n For a sample S3 policy, see <i>Sample Amazon S3 policy</i> under\n .</p>\n </li>\n <li>\n <p>Trusted access must be enabled for the service for which the declarative\n policy will enforce a baseline configuration. If you use the Amazon Web Services Organizations\n console, this is done automatically when you enable declarative policies. The\n API uses the following service principal to identify the EC2 service:\n <code>ec2.amazonaws.com</code>. For more information on how to enable\n trusted access with the Amazon Web Services CLI and Amazon Web Services SDKs, see <a href=\"https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html\">Using\n Organizations with other Amazon Web Services services</a> in the\n <i>Amazon Web Services Organizations User Guide</i>.</p>\n </li>\n <li>\n <p>Only one report per organization can be generated at a time. Attempting to\n generate a report while another is in progress will result in an error.</p>\n </li>\n </ul>\n <p>For more information, including the required IAM permissions to run this API, see\n <a href=\"https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative_status-report.html\">Generating the account status report for declarative policies</a> in the\n <i>Amazon Web Services Organizations User Guide</i>.</p>"
"smithy.api#documentation": "<p>Generates an account status report. The report is generated asynchronously, and can\n take several hours to complete.</p>\n <p>The report provides the current status of all attributes supported by declarative\n policies for the accounts within the specified scope. The scope is determined by the\n specified <code>TargetId</code>, which can represent an individual account, or all the\n accounts that fall under the specified organizational unit (OU) or root (the entire\n Amazon Web Services Organization).</p>\n <p>The report is saved to your specified S3 bucket, using the following path structure\n (with the <i>italicized placeholders</i> representing your specific\n values):</p>\n <p>\n <code>s3://<i>amzn-s3-demo-bucket</i>/<i>your-optional-s3-prefix</i>/ec2_<i>targetId</i>_<i>reportId</i>_<i>yyyyMMdd</i>T<i>hhmm</i>Z.csv</code>\n </p>\n <p class=\"title\">\n <b>Prerequisites for generating a report</b>\n </p>\n <ul>\n <li>\n <p>The <code>StartDeclarativePoliciesReport</code> API can only be called by the\n management account or delegated administrators for the organization.</p>\n </li>\n <li>\n <p>An S3 bucket must be available before generating the report (you can create a\n new one or use an existing one), it must be in the same Region where the report\n generation request is made, and it must have an appropriate bucket policy. For a\n sample S3 policy, see <i>Sample Amazon S3 policy</i> under .</p>\n </li>\n <li>\n <p>Trusted access must be enabled for the service for which the declarative\n policy will enforce a baseline configuration. If you use the Amazon Web Services Organizations\n console, this is done automatically when you enable declarative policies. The\n API uses the following service principal to identify the EC2 service:\n <code>ec2.amazonaws.com</code>. For more information on how to enable\n trusted access with the Amazon Web Services CLI and Amazon Web Services SDKs, see <a href=\"https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html\">Using\n Organizations with other Amazon Web Services services</a> in the\n <i>Amazon Web Services Organizations User Guide</i>.</p>\n </li>\n <li>\n <p>Only one report per organization can be generated at a time. Attempting to\n generate a report while another is in progress will result in an error.</p>\n </li>\n </ul>\n <p>For more information, including the required IAM permissions to run this API, see\n <a href=\"https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative_status-report.html\">Generating the account status report for declarative policies</a> in the\n <i>Amazon Web Services Organizations User Guide</i>.</p>"
}
},
"com.amazonaws.ec2#StartDeclarativePoliciesReportRequest": {
Expand All @@ -102885,7 +102909,7 @@
"target": "com.amazonaws.ec2#String",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The name of the S3 bucket where the report will be saved.</p>",
"smithy.api#documentation": "<p>The name of the S3 bucket where the report will be saved. The bucket must be in the\n same Region where the report generation request is made.</p>",
"smithy.api#required": {}
}
},
Expand Down
Loading

0 comments on commit bc23383

Please sign in to comment.