From 0f8d80ad965ca2342a74a32cf5302fd992e11ab5 Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Mon, 3 Oct 2022 11:24:35 -0700 Subject: [PATCH] Release v1.44.110 (2022-10-03) (#4575) Release v1.44.110 (2022-10-03) === ### Service Client Updates * `service/accessanalyzer`: Updates service API and documentation * `service/ec2`: Updates service API and documentation * Adding an imdsSupport attribute to EC2 AMIs * `service/snowball`: Updates service API, documentation, and paginators * Adds support for V3_5C. This is a refreshed AWS Snowball Edge Compute Optimized device type with 28TB SSD, 104 vCPU and 416GB memory (customer usable). --- CHANGELOG.md | 10 + aws/endpoints/defaults.go | 10 + aws/version.go | 2 +- .../apis/accessanalyzer/2019-11-01/api-2.json | 417 +++++++++--------- .../accessanalyzer/2019-11-01/docs-2.json | 40 +- models/apis/ec2/2016-11-15/api-2.json | 20 +- models/apis/ec2/2016-11-15/docs-2.json | 8 + models/apis/snowball/2016-06-30/api-2.json | 6 +- models/apis/snowball/2016-06-30/docs-2.json | 16 +- .../snowball/2016-06-30/paginators-1.json | 24 + models/endpoints/endpoints.json | 8 +- service/accessanalyzer/api.go | 6 +- service/ec2/api.go | 78 +++- service/snowball/api.go | 264 ++++++++++- service/snowball/snowballiface/interface.go | 12 + 15 files changed, 658 insertions(+), 263 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 593622a0bb9..a8457890f4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +Release v1.44.110 (2022-10-03) +=== + +### Service Client Updates +* `service/accessanalyzer`: Updates service API and documentation +* `service/ec2`: Updates service API and documentation + * Adding an imdsSupport attribute to EC2 AMIs +* `service/snowball`: Updates service API, documentation, and paginators + * Adds support for V3_5C. This is a refreshed AWS Snowball Edge Compute Optimized device type with 28TB SSD, 104 vCPU and 416GB memory (customer usable). + Release v1.44.109 (2022-09-30) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 1ec4a1ee867..08e459be355 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -33262,6 +33262,9 @@ var awsisoPartition = partition{ endpointKey{ Region: "us-iso-east-1", }: endpoint{}, + endpointKey{ + Region: "us-iso-west-1", + }: endpoint{}, }, }, "rds": service{ @@ -33934,6 +33937,13 @@ var awsisobPartition = partition{ }, }, }, + "route53resolver": service{ + Endpoints: serviceEndpoints{ + endpointKey{ + Region: "us-isob-east-1", + }: endpoint{}, + }, + }, "s3": service{ Defaults: endpointDefaults{ defaultKey{}: endpoint{ diff --git a/aws/version.go b/aws/version.go index c09688d1c04..dd8c7dfc96f 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.44.109" +const SDKVersion = "1.44.110" diff --git a/models/apis/accessanalyzer/2019-11-01/api-2.json b/models/apis/accessanalyzer/2019-11-01/api-2.json index e6cea9aaadc..bd301f84129 100644 --- a/models/apis/accessanalyzer/2019-11-01/api-2.json +++ b/models/apis/accessanalyzer/2019-11-01/api-2.json @@ -516,17 +516,17 @@ "AccessPreview":{ "type":"structure", "required":[ + "id", "analyzerArn", "configurations", "createdAt", - "id", "status" ], "members":{ + "id":{"shape":"AccessPreviewId"}, "analyzerArn":{"shape":"AnalyzerArn"}, "configurations":{"shape":"ConfigurationsMap"}, "createdAt":{"shape":"Timestamp"}, - "id":{"shape":"AccessPreviewId"}, "status":{"shape":"AccessPreviewStatus"}, "statusReason":{"shape":"AccessPreviewStatusReason"} } @@ -534,29 +534,29 @@ "AccessPreviewFinding":{ "type":"structure", "required":[ - "changeType", - "createdAt", "id", - "resourceOwnerAccount", "resourceType", - "status" + "createdAt", + "changeType", + "status", + "resourceOwnerAccount" ], "members":{ - "action":{"shape":"ActionList"}, - "changeType":{"shape":"FindingChangeType"}, - "condition":{"shape":"ConditionKeyMap"}, - "createdAt":{"shape":"Timestamp"}, - "error":{"shape":"String"}, + "id":{"shape":"AccessPreviewFindingId"}, "existingFindingId":{"shape":"FindingId"}, "existingFindingStatus":{"shape":"FindingStatus"}, - "id":{"shape":"AccessPreviewFindingId"}, - "isPublic":{"shape":"Boolean"}, "principal":{"shape":"PrincipalMap"}, + "action":{"shape":"ActionList"}, + "condition":{"shape":"ConditionKeyMap"}, "resource":{"shape":"String"}, - "resourceOwnerAccount":{"shape":"String"}, + "isPublic":{"shape":"Boolean"}, "resourceType":{"shape":"ResourceType"}, - "sources":{"shape":"FindingSourceList"}, - "status":{"shape":"FindingStatus"} + "createdAt":{"shape":"Timestamp"}, + "changeType":{"shape":"FindingChangeType"}, + "status":{"shape":"FindingStatus"}, + "resourceOwnerAccount":{"shape":"String"}, + "error":{"shape":"String"}, + "sources":{"shape":"FindingSourceList"} } }, "AccessPreviewFindingId":{"type":"string"}, @@ -593,15 +593,15 @@ "AccessPreviewSummary":{ "type":"structure", "required":[ + "id", "analyzerArn", "createdAt", - "id", "status" ], "members":{ + "id":{"shape":"AccessPreviewId"}, "analyzerArn":{"shape":"AnalyzerArn"}, "createdAt":{"shape":"Timestamp"}, - "id":{"shape":"AccessPreviewId"}, "status":{"shape":"AccessPreviewStatus"}, "statusReason":{"shape":"AccessPreviewStatusReason"} } @@ -637,26 +637,26 @@ "AnalyzedResource":{ "type":"structure", "required":[ - "analyzedAt", - "createdAt", - "isPublic", "resourceArn", - "resourceOwnerAccount", "resourceType", - "updatedAt" + "createdAt", + "analyzedAt", + "updatedAt", + "isPublic", + "resourceOwnerAccount" ], "members":{ - "actions":{"shape":"ActionList"}, - "analyzedAt":{"shape":"Timestamp"}, - "createdAt":{"shape":"Timestamp"}, - "error":{"shape":"String"}, - "isPublic":{"shape":"Boolean"}, "resourceArn":{"shape":"ResourceArn"}, - "resourceOwnerAccount":{"shape":"String"}, "resourceType":{"shape":"ResourceType"}, + "createdAt":{"shape":"Timestamp"}, + "analyzedAt":{"shape":"Timestamp"}, + "updatedAt":{"shape":"Timestamp"}, + "isPublic":{"shape":"Boolean"}, + "actions":{"shape":"ActionList"}, "sharedVia":{"shape":"SharedViaList"}, "status":{"shape":"FindingStatus"}, - "updatedAt":{"shape":"Timestamp"} + "resourceOwnerAccount":{"shape":"String"}, + "error":{"shape":"String"} } }, "AnalyzedResourceSummary":{ @@ -693,21 +693,21 @@ "type":"structure", "required":[ "arn", - "createdAt", "name", - "status", - "type" + "type", + "createdAt", + "status" ], "members":{ "arn":{"shape":"AnalyzerArn"}, + "name":{"shape":"Name"}, + "type":{"shape":"Type"}, "createdAt":{"shape":"Timestamp"}, "lastResourceAnalyzed":{"shape":"String"}, "lastResourceAnalyzedAt":{"shape":"Timestamp"}, - "name":{"shape":"Name"}, - "status":{"shape":"AnalyzerStatus"}, - "statusReason":{"shape":"StatusReason"}, "tags":{"shape":"TagsMap"}, - "type":{"shape":"Type"} + "status":{"shape":"AnalyzerStatus"}, + "statusReason":{"shape":"StatusReason"} } }, "AnalyzersList":{ @@ -722,25 +722,25 @@ ], "members":{ "analyzerArn":{"shape":"AnalyzerArn"}, + "ruleName":{"shape":"Name"}, "clientToken":{ "shape":"String", "idempotencyToken":true - }, - "ruleName":{"shape":"Name"} + } } }, "ArchiveRuleSummary":{ "type":"structure", "required":[ - "createdAt", - "filter", "ruleName", + "filter", + "createdAt", "updatedAt" ], "members":{ - "createdAt":{"shape":"Timestamp"}, - "filter":{"shape":"FilterCriteriaMap"}, "ruleName":{"shape":"Name"}, + "filter":{"shape":"FilterCriteriaMap"}, + "createdAt":{"shape":"Timestamp"}, "updatedAt":{"shape":"Timestamp"} } }, @@ -775,28 +775,28 @@ "CloudTrailDetails":{ "type":"structure", "required":[ + "trails", "accessRole", - "startTime", - "trails" + "startTime" ], "members":{ + "trails":{"shape":"TrailList"}, "accessRole":{"shape":"RoleArn"}, - "endTime":{"shape":"Timestamp"}, "startTime":{"shape":"Timestamp"}, - "trails":{"shape":"TrailList"} + "endTime":{"shape":"Timestamp"} } }, "CloudTrailProperties":{ "type":"structure", "required":[ - "endTime", + "trailProperties", "startTime", - "trailProperties" + "endTime" ], "members":{ - "endTime":{"shape":"Timestamp"}, + "trailProperties":{"shape":"TrailPropertiesList"}, "startTime":{"shape":"Timestamp"}, - "trailProperties":{"shape":"TrailPropertiesList"} + "endTime":{"shape":"Timestamp"} } }, "ConditionKeyMap":{ @@ -809,8 +809,8 @@ "members":{ "iamRole":{"shape":"IamRoleConfiguration"}, "kmsKey":{"shape":"KmsKeyConfiguration"}, - "s3Bucket":{"shape":"S3BucketConfiguration"}, "secretsManagerSecret":{"shape":"SecretsManagerSecretConfiguration"}, + "s3Bucket":{"shape":"S3BucketConfiguration"}, "sqsQueue":{"shape":"SqsQueueConfiguration"} }, "union":true @@ -847,11 +847,11 @@ ], "members":{ "analyzerArn":{"shape":"AnalyzerArn"}, + "configurations":{"shape":"ConfigurationsMap"}, "clientToken":{ "shape":"String", "idempotencyToken":true - }, - "configurations":{"shape":"ConfigurationsMap"} + } } }, "CreateAccessPreviewResponse":{ @@ -869,13 +869,13 @@ ], "members":{ "analyzerName":{"shape":"Name"}, + "type":{"shape":"Type"}, "archiveRules":{"shape":"InlineArchiveRulesList"}, + "tags":{"shape":"TagsMap"}, "clientToken":{ "shape":"String", "idempotencyToken":true - }, - "tags":{"shape":"TagsMap"}, - "type":{"shape":"Type"} + } } }, "CreateAnalyzerResponse":{ @@ -888,8 +888,8 @@ "type":"structure", "required":[ "analyzerName", - "filter", - "ruleName" + "ruleName", + "filter" ], "members":{ "analyzerName":{ @@ -897,21 +897,21 @@ "location":"uri", "locationName":"analyzerName" }, + "ruleName":{"shape":"Name"}, + "filter":{"shape":"FilterCriteriaMap"}, "clientToken":{ "shape":"String", "idempotencyToken":true - }, - "filter":{"shape":"FilterCriteriaMap"}, - "ruleName":{"shape":"Name"} + } } }, "Criterion":{ "type":"structure", "members":{ - "contains":{"shape":"ValueList"}, "eq":{"shape":"ValueList"}, - "exists":{"shape":"Boolean"}, - "neq":{"shape":"ValueList"} + "neq":{"shape":"ValueList"}, + "contains":{"shape":"ValueList"}, + "exists":{"shape":"Boolean"} } }, "DeleteAnalyzerRequest":{ @@ -943,16 +943,16 @@ "location":"uri", "locationName":"analyzerName" }, + "ruleName":{ + "shape":"Name", + "location":"uri", + "locationName":"ruleName" + }, "clientToken":{ "shape":"String", "idempotencyToken":true, "location":"querystring", "locationName":"clientToken" - }, - "ruleName":{ - "shape":"Name", - "location":"uri", - "locationName":"ruleName" } } }, @@ -964,30 +964,30 @@ "Finding":{ "type":"structure", "required":[ - "analyzedAt", - "condition", - "createdAt", "id", - "resourceOwnerAccount", "resourceType", + "condition", + "createdAt", + "analyzedAt", + "updatedAt", "status", - "updatedAt" + "resourceOwnerAccount" ], "members":{ - "action":{"shape":"ActionList"}, - "analyzedAt":{"shape":"Timestamp"}, - "condition":{"shape":"ConditionKeyMap"}, - "createdAt":{"shape":"Timestamp"}, - "error":{"shape":"String"}, "id":{"shape":"FindingId"}, - "isPublic":{"shape":"Boolean"}, "principal":{"shape":"PrincipalMap"}, + "action":{"shape":"ActionList"}, "resource":{"shape":"String"}, - "resourceOwnerAccount":{"shape":"String"}, + "isPublic":{"shape":"Boolean"}, "resourceType":{"shape":"ResourceType"}, - "sources":{"shape":"FindingSourceList"}, + "condition":{"shape":"ConditionKeyMap"}, + "createdAt":{"shape":"Timestamp"}, + "analyzedAt":{"shape":"Timestamp"}, + "updatedAt":{"shape":"Timestamp"}, "status":{"shape":"FindingStatus"}, - "updatedAt":{"shape":"Timestamp"} + "resourceOwnerAccount":{"shape":"String"}, + "error":{"shape":"String"}, + "sources":{"shape":"FindingSourceList"} } }, "FindingChangeType":{ @@ -1007,8 +1007,8 @@ "type":"structure", "required":["type"], "members":{ - "detail":{"shape":"FindingSourceDetail"}, - "type":{"shape":"FindingSourceType"} + "type":{"shape":"FindingSourceType"}, + "detail":{"shape":"FindingSourceDetail"} } }, "FindingSourceDetail":{ @@ -1047,30 +1047,30 @@ "FindingSummary":{ "type":"structure", "required":[ - "analyzedAt", - "condition", - "createdAt", "id", - "resourceOwnerAccount", "resourceType", + "condition", + "createdAt", + "analyzedAt", + "updatedAt", "status", - "updatedAt" + "resourceOwnerAccount" ], "members":{ - "action":{"shape":"ActionList"}, - "analyzedAt":{"shape":"Timestamp"}, - "condition":{"shape":"ConditionKeyMap"}, - "createdAt":{"shape":"Timestamp"}, - "error":{"shape":"String"}, "id":{"shape":"FindingId"}, - "isPublic":{"shape":"Boolean"}, "principal":{"shape":"PrincipalMap"}, + "action":{"shape":"ActionList"}, "resource":{"shape":"String"}, - "resourceOwnerAccount":{"shape":"String"}, + "isPublic":{"shape":"Boolean"}, "resourceType":{"shape":"ResourceType"}, - "sources":{"shape":"FindingSourceList"}, + "condition":{"shape":"ConditionKeyMap"}, + "createdAt":{"shape":"Timestamp"}, + "analyzedAt":{"shape":"Timestamp"}, + "updatedAt":{"shape":"Timestamp"}, "status":{"shape":"FindingStatus"}, - "updatedAt":{"shape":"Timestamp"} + "resourceOwnerAccount":{"shape":"String"}, + "error":{"shape":"String"}, + "sources":{"shape":"FindingSourceList"} } }, "FindingsList":{ @@ -1092,17 +1092,17 @@ "type":"structure", "required":["principalArn"], "members":{ - "cloudTrailProperties":{"shape":"CloudTrailProperties"}, "isComplete":{"shape":"Boolean"}, - "principalArn":{"shape":"PrincipalArn"} + "principalArn":{"shape":"PrincipalArn"}, + "cloudTrailProperties":{"shape":"CloudTrailProperties"} } }, "GeneratedPolicyResult":{ "type":"structure", "required":["properties"], "members":{ - "generatedPolicies":{"shape":"GeneratedPolicyList"}, - "properties":{"shape":"GeneratedPolicyProperties"} + "properties":{"shape":"GeneratedPolicyProperties"}, + "generatedPolicies":{"shape":"GeneratedPolicyList"} } }, "GetAccessPreviewRequest":{ @@ -1229,6 +1229,11 @@ "type":"structure", "required":["jobId"], "members":{ + "jobId":{ + "shape":"JobId", + "location":"uri", + "locationName":"jobId" + }, "includeResourcePlaceholders":{ "shape":"Boolean", "location":"querystring", @@ -1238,23 +1243,18 @@ "shape":"Boolean", "location":"querystring", "locationName":"includeServiceLevelTemplate" - }, - "jobId":{ - "shape":"JobId", - "location":"uri", - "locationName":"jobId" } } }, "GetGeneratedPolicyResponse":{ "type":"structure", "required":[ - "generatedPolicyResult", - "jobDetails" + "jobDetails", + "generatedPolicyResult" ], "members":{ - "generatedPolicyResult":{"shape":"GeneratedPolicyResult"}, - "jobDetails":{"shape":"JobDetails"} + "jobDetails":{"shape":"JobDetails"}, + "generatedPolicyResult":{"shape":"GeneratedPolicyResult"} } }, "GranteePrincipal":{"type":"string"}, @@ -1268,12 +1268,12 @@ "InlineArchiveRule":{ "type":"structure", "required":[ - "filter", - "ruleName" + "ruleName", + "filter" ], "members":{ - "filter":{"shape":"FilterCriteriaMap"}, - "ruleName":{"shape":"Name"} + "ruleName":{"shape":"Name"}, + "filter":{"shape":"FilterCriteriaMap"} } }, "InlineArchiveRulesList":{ @@ -1311,15 +1311,15 @@ "type":"structure", "required":[ "jobId", - "startedOn", - "status" + "status", + "startedOn" ], "members":{ - "completedOn":{"shape":"Timestamp"}, - "jobError":{"shape":"JobError"}, "jobId":{"shape":"JobId"}, + "status":{"shape":"JobStatus"}, "startedOn":{"shape":"Timestamp"}, - "status":{"shape":"JobStatus"} + "completedOn":{"shape":"Timestamp"}, + "jobError":{"shape":"JobError"} } }, "JobError":{ @@ -1362,16 +1362,16 @@ "KmsGrantConfiguration":{ "type":"structure", "required":[ + "operations", "granteePrincipal", - "issuingAccount", - "operations" + "issuingAccount" ], "members":{ - "constraints":{"shape":"KmsGrantConstraints"}, - "granteePrincipal":{"shape":"GranteePrincipal"}, - "issuingAccount":{"shape":"IssuingAccount"}, "operations":{"shape":"KmsGrantOperationsList"}, - "retiringPrincipal":{"shape":"RetiringPrincipal"} + "granteePrincipal":{"shape":"GranteePrincipal"}, + "retiringPrincipal":{"shape":"RetiringPrincipal"}, + "constraints":{"shape":"KmsGrantConstraints"}, + "issuingAccount":{"shape":"IssuingAccount"} } }, "KmsGrantConfigurationsList":{ @@ -1411,8 +1411,8 @@ "KmsKeyConfiguration":{ "type":"structure", "members":{ - "grants":{"shape":"KmsGrantConfigurationsList"}, - "keyPolicies":{"shape":"KmsKeyPoliciesMap"} + "keyPolicies":{"shape":"KmsKeyPoliciesMap"}, + "grants":{"shape":"KmsGrantConfigurationsList"} } }, "KmsKeyPoliciesMap":{ @@ -1436,8 +1436,8 @@ }, "analyzerArn":{"shape":"AnalyzerArn"}, "filter":{"shape":"FilterCriteriaMap"}, - "maxResults":{"shape":"Integer"}, - "nextToken":{"shape":"Token"} + "nextToken":{"shape":"Token"}, + "maxResults":{"shape":"Integer"} } }, "ListAccessPreviewFindingsResponse":{ @@ -1457,15 +1457,15 @@ "location":"querystring", "locationName":"analyzerArn" }, - "maxResults":{ - "shape":"Integer", - "location":"querystring", - "locationName":"maxResults" - }, "nextToken":{ "shape":"Token", "location":"querystring", "locationName":"nextToken" + }, + "maxResults":{ + "shape":"Integer", + "location":"querystring", + "locationName":"maxResults" } } }, @@ -1482,9 +1482,9 @@ "required":["analyzerArn"], "members":{ "analyzerArn":{"shape":"AnalyzerArn"}, - "maxResults":{"shape":"Integer"}, + "resourceType":{"shape":"ResourceType"}, "nextToken":{"shape":"Token"}, - "resourceType":{"shape":"ResourceType"} + "maxResults":{"shape":"Integer"} } }, "ListAnalyzedResourcesResponse":{ @@ -1498,16 +1498,16 @@ "ListAnalyzersRequest":{ "type":"structure", "members":{ - "maxResults":{ - "shape":"Integer", - "location":"querystring", - "locationName":"maxResults" - }, "nextToken":{ "shape":"Token", "location":"querystring", "locationName":"nextToken" }, + "maxResults":{ + "shape":"Integer", + "location":"querystring", + "locationName":"maxResults" + }, "type":{ "shape":"Type", "location":"querystring", @@ -1532,15 +1532,15 @@ "location":"uri", "locationName":"analyzerName" }, - "maxResults":{ - "shape":"Integer", - "location":"querystring", - "locationName":"maxResults" - }, "nextToken":{ "shape":"Token", "location":"querystring", "locationName":"nextToken" + }, + "maxResults":{ + "shape":"Integer", + "location":"querystring", + "locationName":"maxResults" } } }, @@ -1558,9 +1558,9 @@ "members":{ "analyzerArn":{"shape":"AnalyzerArn"}, "filter":{"shape":"FilterCriteriaMap"}, - "maxResults":{"shape":"Integer"}, + "sort":{"shape":"SortCriteria"}, "nextToken":{"shape":"Token"}, - "sort":{"shape":"SortCriteria"} + "maxResults":{"shape":"Integer"} } }, "ListFindingsResponse":{ @@ -1574,6 +1574,11 @@ "ListPolicyGenerationsRequest":{ "type":"structure", "members":{ + "principalArn":{ + "shape":"PrincipalArn", + "location":"querystring", + "locationName":"principalArn" + }, "maxResults":{ "shape":"ListPolicyGenerationsRequestMaxResultsInteger", "location":"querystring", @@ -1583,11 +1588,6 @@ "shape":"Token", "location":"querystring", "locationName":"nextToken" - }, - "principalArn":{ - "shape":"PrincipalArn", - "location":"querystring", - "locationName":"principalArn" } } }, @@ -1600,8 +1600,8 @@ "type":"structure", "required":["policyGenerations"], "members":{ - "nextToken":{"shape":"Token"}, - "policyGenerations":{"shape":"PolicyGenerationList"} + "policyGenerations":{"shape":"PolicyGenerationList"}, + "nextToken":{"shape":"Token"} } }, "ListTagsForResourceRequest":{ @@ -1660,8 +1660,8 @@ "NetworkOriginConfiguration":{ "type":"structure", "members":{ - "internetConfiguration":{"shape":"InternetConfiguration"}, - "vpcConfiguration":{"shape":"VpcConfiguration"} + "vpcConfiguration":{"shape":"VpcConfiguration"}, + "internetConfiguration":{"shape":"InternetConfiguration"} }, "union":true }, @@ -1692,15 +1692,15 @@ "required":[ "jobId", "principalArn", - "startedOn", - "status" + "status", + "startedOn" ], "members":{ - "completedOn":{"shape":"Timestamp"}, "jobId":{"shape":"JobId"}, "principalArn":{"shape":"PrincipalArn"}, + "status":{"shape":"JobStatus"}, "startedOn":{"shape":"Timestamp"}, - "status":{"shape":"JobStatus"} + "completedOn":{"shape":"Timestamp"} } }, "PolicyGenerationDetails":{ @@ -1726,13 +1726,13 @@ "Position":{ "type":"structure", "required":[ - "column", "line", + "column", "offset" ], "members":{ - "column":{"shape":"Integer"}, "line":{"shape":"Integer"}, + "column":{"shape":"Integer"}, "offset":{"shape":"Integer"} } }, @@ -1801,8 +1801,8 @@ "type":"structure", "members":{ "accessPointPolicy":{"shape":"AccessPointPolicy"}, - "networkOrigin":{"shape":"NetworkOriginConfiguration"}, - "publicAccessBlock":{"shape":"S3PublicAccessBlockConfiguration"} + "publicAccessBlock":{"shape":"S3PublicAccessBlockConfiguration"}, + "networkOrigin":{"shape":"NetworkOriginConfiguration"} } }, "S3AccessPointConfigurationsMap":{ @@ -1813,12 +1813,12 @@ "S3BucketAclGrantConfiguration":{ "type":"structure", "required":[ - "grantee", - "permission" + "permission", + "grantee" ], "members":{ - "grantee":{"shape":"AclGrantee"}, - "permission":{"shape":"AclPermission"} + "permission":{"shape":"AclPermission"}, + "grantee":{"shape":"AclGrantee"} } }, "S3BucketAclGrantConfigurationsList":{ @@ -1828,10 +1828,10 @@ "S3BucketConfiguration":{ "type":"structure", "members":{ - "accessPoints":{"shape":"S3AccessPointConfigurationsMap"}, - "bucketAclGrants":{"shape":"S3BucketAclGrantConfigurationsList"}, "bucketPolicy":{"shape":"S3BucketPolicy"}, - "bucketPublicAccessBlock":{"shape":"S3PublicAccessBlockConfiguration"} + "bucketAclGrants":{"shape":"S3BucketAclGrantConfigurationsList"}, + "bucketPublicAccessBlock":{"shape":"S3PublicAccessBlockConfiguration"}, + "accessPoints":{"shape":"S3AccessPointConfigurationsMap"} } }, "S3BucketPolicy":{"type":"string"}, @@ -1887,12 +1887,12 @@ "Span":{ "type":"structure", "required":[ - "end", - "start" + "start", + "end" ], "members":{ - "end":{"shape":"Position"}, - "start":{"shape":"Position"} + "start":{"shape":"Position"}, + "end":{"shape":"Position"} } }, "SqsQueueConfiguration":{ @@ -1906,12 +1906,12 @@ "type":"structure", "required":["policyGenerationDetails"], "members":{ + "policyGenerationDetails":{"shape":"PolicyGenerationDetails"}, + "cloudTrailDetails":{"shape":"CloudTrailDetails"}, "clientToken":{ "shape":"String", "idempotencyToken":true - }, - "cloudTrailDetails":{"shape":"CloudTrailDetails"}, - "policyGenerationDetails":{"shape":"PolicyGenerationDetails"} + } } }, "StartPolicyGenerationResponse":{ @@ -1943,12 +1943,12 @@ "Substring":{ "type":"structure", "required":[ - "length", - "start" + "start", + "length" ], "members":{ - "length":{"shape":"Integer"}, - "start":{"shape":"Integer"} + "start":{"shape":"Integer"}, + "length":{"shape":"Integer"} } }, "TagKeys":{ @@ -2007,9 +2007,9 @@ "type":"structure", "required":["cloudTrailArn"], "members":{ - "allRegions":{"shape":"Boolean"}, "cloudTrailArn":{"shape":"CloudTrailArn"}, - "regions":{"shape":"RegionList"} + "regions":{"shape":"RegionList"}, + "allRegions":{"shape":"Boolean"} } }, "TrailList":{ @@ -2020,9 +2020,9 @@ "type":"structure", "required":["cloudTrailArn"], "members":{ - "allRegions":{"shape":"Boolean"}, "cloudTrailArn":{"shape":"CloudTrailArn"}, - "regions":{"shape":"RegionList"} + "regions":{"shape":"RegionList"}, + "allRegions":{"shape":"Boolean"} } }, "TrailPropertiesList":{ @@ -2064,8 +2064,8 @@ "type":"structure", "required":[ "analyzerName", - "filter", - "ruleName" + "ruleName", + "filter" ], "members":{ "analyzerName":{ @@ -2073,15 +2073,15 @@ "location":"uri", "locationName":"analyzerName" }, - "clientToken":{ - "shape":"String", - "idempotencyToken":true - }, - "filter":{"shape":"FilterCriteriaMap"}, "ruleName":{ "shape":"Name", "location":"uri", "locationName":"ruleName" + }, + "filter":{"shape":"FilterCriteriaMap"}, + "clientToken":{ + "shape":"String", + "idempotencyToken":true } } }, @@ -2093,13 +2093,13 @@ ], "members":{ "analyzerArn":{"shape":"AnalyzerArn"}, + "status":{"shape":"FindingStatusUpdate"}, + "ids":{"shape":"FindingIdList"}, + "resourceArn":{"shape":"ResourceArn"}, "clientToken":{ "shape":"String", "idempotencyToken":true - }, - "ids":{"shape":"FindingIdList"}, - "resourceArn":{"shape":"ResourceArn"}, - "status":{"shape":"FindingStatusUpdate"} + } } }, "ValidatePolicyFinding":{ @@ -2161,7 +2161,8 @@ "AWS::S3::Bucket", "AWS::S3::AccessPoint", "AWS::S3::MultiRegionAccessPoint", - "AWS::S3ObjectLambda::AccessPoint" + "AWS::S3ObjectLambda::AccessPoint", + "AWS::IAM::AssumeRolePolicyDocument" ] }, "ValidatePolicyResponse":{ @@ -2179,9 +2180,9 @@ "reason" ], "members":{ - "fieldList":{"shape":"ValidationExceptionFieldList"}, "message":{"shape":"String"}, - "reason":{"shape":"ValidationExceptionReason"} + "reason":{"shape":"ValidationExceptionReason"}, + "fieldList":{"shape":"ValidationExceptionFieldList"} }, "error":{ "httpStatusCode":400, @@ -2192,12 +2193,12 @@ "ValidationExceptionField":{ "type":"structure", "required":[ - "message", - "name" + "name", + "message" ], "members":{ - "message":{"shape":"String"}, - "name":{"shape":"String"} + "name":{"shape":"String"}, + "message":{"shape":"String"} } }, "ValidationExceptionFieldList":{ diff --git a/models/apis/accessanalyzer/2019-11-01/docs-2.json b/models/apis/accessanalyzer/2019-11-01/docs-2.json index d222ebc6f1b..4976c1ac2a5 100644 --- a/models/apis/accessanalyzer/2019-11-01/docs-2.json +++ b/models/apis/accessanalyzer/2019-11-01/docs-2.json @@ -560,11 +560,11 @@ "ListArchiveRulesRequest$maxResults": "

The maximum number of results to return in the request.

", "ListFindingsRequest$maxResults": "

The maximum number of results to return in the response.

", "PathElement$index": "

Refers to an index in a JSON array.

", - "Position$column": "

The column of the position, starting from 0.

", "Position$line": "

The line of the position, starting from 1.

", + "Position$column": "

The column of the position, starting from 0.

", "Position$offset": "

The offset within the policy that corresponds to the position, starting from 0.

", - "Substring$length": "

The length of the substring.

", "Substring$start": "

The start index of the substring, starting from 0.

", + "Substring$length": "

The length of the substring.

", "ThrottlingException$retryAfterSeconds": "

The seconds to wait to retry.

", "ValidatePolicyRequest$maxResults": "

The maximum number of results to return in the response.

" } @@ -888,8 +888,8 @@ "Position": { "base": "

A position in a policy.

", "refs": { - "Span$end": "

The end position of the span (exclusive).

", - "Span$start": "

The start position of the span (inclusive).

" + "Span$start": "

The start position of the span (inclusive).

", + "Span$end": "

The end position of the span (exclusive).

" } }, "PrincipalArn": { @@ -961,7 +961,7 @@ } }, "S3AccessPointConfiguration": { - "base": "

The configuration for an Amazon S3 access point or multi-region access point for the bucket. You can propose up to 10 access points or multi-region access points per bucket. If the proposed Amazon S3 access point configuration is for an existing bucket, the access preview uses the proposed access point configuration in place of the existing access points. To propose an access point without a policy, you can provide an empty string as the access point policy. For more information, see Creating access points. For more information about access point policy limits, see Access points restrictions and limitations.

", + "base": "

The configuration for an Amazon S3 access point or multi-region access point for the bucket. You can propose up to 10 access points or multi-region access points per bucket. If the proposed Amazon S3 access point configuration is for an existing bucket, the access preview uses the proposed access point configuration in place of the existing access points. To propose an access point without a policy, you can provide an empty string as the access point policy. For more information, see Creating access points. For more information about access point policy limits, see Access points restrictions and limitations.

", "refs": { "S3AccessPointConfigurationsMap$value": null } @@ -1081,12 +1081,12 @@ "base": null, "refs": { "AccessDeniedException$message": null, - "AccessPreviewFinding$error": "

An error.

", "AccessPreviewFinding$resource": "

The resource that an external principal has access to. This is the resource associated with the access preview.

", "AccessPreviewFinding$resourceOwnerAccount": "

The Amazon Web Services account ID that owns the resource. For most Amazon Web Services resources, the owning account is the account in which the resource was created.

", + "AccessPreviewFinding$error": "

An error.

", "ActionList$member": null, - "AnalyzedResource$error": "

An error message.

", "AnalyzedResource$resourceOwnerAccount": "

The Amazon Web Services account ID that owns the resource.

", + "AnalyzedResource$error": "

An error message.

", "AnalyzedResourceSummary$resourceOwnerAccount": "

The Amazon Web Services account ID that owns the resource.

", "AnalyzerSummary$lastResourceAnalyzed": "

The resource that was most recently analyzed by the analyzer.

", "ApplyArchiveRuleRequest$clientToken": "

A client token.

", @@ -1101,13 +1101,13 @@ "DeleteAnalyzerRequest$clientToken": "

A client token.

", "DeleteArchiveRuleRequest$clientToken": "

A client token.

", "FilterCriteriaMap$key": null, - "Finding$error": "

An error.

", "Finding$resource": "

The resource that an external principal has access to.

", "Finding$resourceOwnerAccount": "

The Amazon Web Services account ID that owns the resource.

", + "Finding$error": "

An error.

", "FindingSourceDetail$accessPointArn": "

The ARN of the access point that generated the finding. The ARN format depends on whether the ARN represents an access point or a multi-region access point.

", - "FindingSummary$error": "

The error that resulted in an Error finding.

", "FindingSummary$resource": "

The resource that the external principal has access to.

", "FindingSummary$resourceOwnerAccount": "

The Amazon Web Services account ID that owns the resource.

", + "FindingSummary$error": "

The error that resulted in an Error finding.

", "GeneratedPolicy$policy": "

The text to use as the content for the new policy. The policy is created using the CreatePolicy action.

", "InternalServerException$message": null, "JobError$message": "

Specific information about the error. For example, which service quota was exceeded or which resource was not found.

", @@ -1136,8 +1136,8 @@ "UpdateFindingsRequest$clientToken": "

A client token.

", "ValidatePolicyFinding$findingDetails": "

A localized message that explains the finding and provides guidance on how to address it.

", "ValidationException$message": null, - "ValidationExceptionField$message": "

A message about the validation exception.

", "ValidationExceptionField$name": "

The name of the validation exception.

", + "ValidationExceptionField$message": "

A message about the validation exception.

", "ValueList$member": null } }, @@ -1183,27 +1183,27 @@ "AccessPreview$createdAt": "

The time at which the access preview was created.

", "AccessPreviewFinding$createdAt": "

The time at which the access preview finding was created.

", "AccessPreviewSummary$createdAt": "

The time at which the access preview was created.

", - "AnalyzedResource$analyzedAt": "

The time at which the resource was analyzed.

", "AnalyzedResource$createdAt": "

The time at which the finding was created.

", + "AnalyzedResource$analyzedAt": "

The time at which the resource was analyzed.

", "AnalyzedResource$updatedAt": "

The time at which the finding was updated.

", "AnalyzerSummary$createdAt": "

A timestamp for the time at which the analyzer was created.

", "AnalyzerSummary$lastResourceAnalyzedAt": "

The time at which the most recently analyzed resource was analyzed.

", "ArchiveRuleSummary$createdAt": "

The time at which the archive rule was created.

", "ArchiveRuleSummary$updatedAt": "

The time at which the archive rule was last updated.

", - "CloudTrailDetails$endTime": "

The end of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp after this time are not considered to generate a policy. If this is not included in the request, the default value is the current time.

", "CloudTrailDetails$startTime": "

The start of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp before this time are not considered to generate a policy.

", - "CloudTrailProperties$endTime": "

The end of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp after this time are not considered to generate a policy. If this is not included in the request, the default value is the current time.

", + "CloudTrailDetails$endTime": "

The end of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp after this time are not considered to generate a policy. If this is not included in the request, the default value is the current time.

", "CloudTrailProperties$startTime": "

The start of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp before this time are not considered to generate a policy.

", - "Finding$analyzedAt": "

The time at which the resource was analyzed.

", + "CloudTrailProperties$endTime": "

The end of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with a timestamp after this time are not considered to generate a policy. If this is not included in the request, the default value is the current time.

", "Finding$createdAt": "

The time at which the finding was generated.

", + "Finding$analyzedAt": "

The time at which the resource was analyzed.

", "Finding$updatedAt": "

The time at which the finding was updated.

", - "FindingSummary$analyzedAt": "

The time at which the resource-based policy that generated the finding was analyzed.

", "FindingSummary$createdAt": "

The time at which the finding was created.

", + "FindingSummary$analyzedAt": "

The time at which the resource-based policy that generated the finding was analyzed.

", "FindingSummary$updatedAt": "

The time at which the finding was most recently updated.

", - "JobDetails$completedOn": "

A timestamp of when the job was completed.

", "JobDetails$startedOn": "

A timestamp of when the job was started.

", - "PolicyGeneration$completedOn": "

A timestamp of when the policy generation was completed.

", - "PolicyGeneration$startedOn": "

A timestamp of when the policy generation started.

" + "JobDetails$completedOn": "

A timestamp of when the job was completed.

", + "PolicyGeneration$startedOn": "

A timestamp of when the policy generation started.

", + "PolicyGeneration$completedOn": "

A timestamp of when the policy generation was completed.

" } }, "Token": { @@ -1339,9 +1339,9 @@ "ValueList": { "base": null, "refs": { - "Criterion$contains": "

A \"contains\" operator to match for the filter used to create the rule.

", "Criterion$eq": "

An \"equals\" operator to match for the filter used to create the rule.

", - "Criterion$neq": "

A \"not equals\" operator to match for the filter used to create the rule.

" + "Criterion$neq": "

A \"not equals\" operator to match for the filter used to create the rule.

", + "Criterion$contains": "

A \"contains\" operator to match for the filter used to create the rule.

" } }, "VpcConfiguration": { diff --git a/models/apis/ec2/2016-11-15/api-2.json b/models/apis/ec2/2016-11-15/api-2.json index 0c6ee226608..30aae4f763f 100755 --- a/models/apis/ec2/2016-11-15/api-2.json +++ b/models/apis/ec2/2016-11-15/api-2.json @@ -22168,6 +22168,10 @@ "DeprecationTime":{ "shape":"String", "locationName":"deprecationTime" + }, + "ImdsSupport":{ + "shape":"ImdsSupportValues", + "locationName":"imdsSupport" } } }, @@ -22221,6 +22225,10 @@ "LastLaunchedTime":{ "shape":"AttributeValue", "locationName":"lastLaunchedTime" + }, + "ImdsSupport":{ + "shape":"AttributeValue", + "locationName":"imdsSupport" } } }, @@ -22237,7 +22245,8 @@ "bootMode", "tpmSupport", "uefiData", - "lastLaunchedTime" + "lastLaunchedTime", + "imdsSupport" ] }, "ImageDiskContainer":{ @@ -22332,6 +22341,10 @@ "ramdisk" ] }, + "ImdsSupportValues":{ + "type":"string", + "enum":["v2.0"] + }, "ImportClientVpnClientCertificateRevocationListRequest":{ "type":"structure", "required":[ @@ -31274,7 +31287,7 @@ "Port":{ "type":"integer", "max":65535, - "min":1 + "min":0 }, "PortRange":{ "type":"structure", @@ -32253,7 +32266,8 @@ }, "BootMode":{"shape":"BootModeValues"}, "TpmSupport":{"shape":"TpmSupportValues"}, - "UefiData":{"shape":"StringType"} + "UefiData":{"shape":"StringType"}, + "ImdsSupport":{"shape":"ImdsSupportValues"} } }, "RegisterImageResult":{ diff --git a/models/apis/ec2/2016-11-15/docs-2.json b/models/apis/ec2/2016-11-15/docs-2.json index 90a687dc4a2..066cf0e09e2 100755 --- a/models/apis/ec2/2016-11-15/docs-2.json +++ b/models/apis/ec2/2016-11-15/docs-2.json @@ -1440,6 +1440,7 @@ "ImageAttribute$TpmSupport": "

If the image is configured for NitroTPM support, the value is v2.0.

", "ImageAttribute$UefiData": "

Base64 representation of the non-volatile UEFI variable store. To retrieve the UEFI data, use the GetInstanceUefiData command. You can inspect and modify the UEFI data by using the python-uefivars tool on GitHub. For more information, see UEFI Secure Boot in the Amazon Elastic Compute Cloud User Guide.

", "ImageAttribute$LastLaunchedTime": "

The date and time, in ISO 8601 date-time format, when the AMI was last used to launch an EC2 instance. When the AMI is used to launch an instance, there is a 24-hour delay before that usage is reported.

lastLaunchedTime data is available starting April 2017.

", + "ImageAttribute$ImdsSupport": "

If v2.0, it indicates that IMDSv2 is specified in the AMI. Instances launched from this AMI will have HttpTokens automatically set to required so that, by default, the instance requires that IMDSv2 is used when requesting instance metadata. In addition, HttpPutResponseHopLimit is set to 2. For more information, see Configure the AMI in the Amazon Elastic Compute Cloud User Guide.

", "InstanceAttribute$InstanceInitiatedShutdownBehavior": "

Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

", "InstanceAttribute$InstanceType": "

The instance type.

", "InstanceAttribute$KernelId": "

The kernel ID.

", @@ -9600,6 +9601,13 @@ "Image$ImageType": "

The type of image.

" } }, + "ImdsSupportValues": { + "base": null, + "refs": { + "Image$ImdsSupport": "

If v2.0, it indicates that IMDSv2 is specified in the AMI. Instances launched from this AMI will have HttpTokens automatically set to required so that, by default, the instance requires that IMDSv2 is used when requesting instance metadata. In addition, HttpPutResponseHopLimit is set to 2. For more information, see Configure the AMI in the Amazon Elastic Compute Cloud User Guide.

", + "RegisterImageRequest$ImdsSupport": "

Set to v2.0 to indicate that IMDSv2 is specified in the AMI. Instances launched from this AMI will have HttpTokens automatically set to required so that, by default, the instance requires that IMDSv2 is used when requesting instance metadata. In addition, HttpPutResponseHopLimit is set to 2. For more information, see Configure the AMI in the Amazon Elastic Compute Cloud User Guide.

If you set the value to v2.0, make sure that your AMI software can support IMDSv2.

" + } + }, "ImportClientVpnClientCertificateRevocationListRequest": { "base": null, "refs": { diff --git a/models/apis/snowball/2016-06-30/api-2.json b/models/apis/snowball/2016-06-30/api-2.json index 45a126638e9..cef969906c6 100755 --- a/models/apis/snowball/2016-06-30/api-2.json +++ b/models/apis/snowball/2016-06-30/api-2.json @@ -1156,7 +1156,8 @@ "T98", "T8", "T14", - "NoPreference" + "NoPreference", + "T32" ] }, "SnowballType":{ @@ -1168,7 +1169,8 @@ "EDGE_CG", "EDGE_S", "SNC1_HDD", - "SNC1_SSD" + "SNC1_SSD", + "V3_5C" ] }, "SnowconeDeviceConfiguration":{ diff --git a/models/apis/snowball/2016-06-30/docs-2.json b/models/apis/snowball/2016-06-30/docs-2.json index 5846de8b564..bf77e292e31 100755 --- a/models/apis/snowball/2016-06-30/docs-2.json +++ b/models/apis/snowball/2016-06-30/docs-2.json @@ -6,7 +6,7 @@ "CancelJob": "

Cancels the specified job. You can only cancel a job before its JobState value changes to PreparingAppliance. Requesting the ListJobs or DescribeJob action returns a job's JobState as part of the response element data returned.

", "CreateAddress": "

Creates an address for a Snow device to be shipped to. In most regions, addresses are validated at the time of creation. The address you provide must be located within the serviceable area of your region. If the address is invalid or unsupported, then an exception is thrown.

", "CreateCluster": "

Creates an empty cluster. Each cluster supports five nodes. You use the CreateJob action separately to create the jobs for each of these nodes. The cluster does not ship until these five node jobs have been created.

", - "CreateJob": "

Creates a job to import or export data between Amazon S3 and your on-premises data center. Your Amazon Web Services account must have the right trust policies and permissions in place to create a job for a Snow device. If you're creating a job for a node in a cluster, you only need to provide the clusterId value; the other job attributes are inherited from the cluster.

Only the Snowball; Edge device type is supported when ordering clustered jobs.

The device capacity is optional.

Availability of device types differ by Amazon Web Services Region. For more information about Region availability, see Amazon Web Services Regional Services.

Snow Family Devices and their capacities.

", + "CreateJob": "

Creates a job to import or export data between Amazon S3 and your on-premises data center. Your Amazon Web Services account must have the right trust policies and permissions in place to create a job for a Snow device. If you're creating a job for a node in a cluster, you only need to provide the clusterId value; the other job attributes are inherited from the cluster.

Only the Snowball; Edge device type is supported when ordering clustered jobs.

The device capacity is optional.

Availability of device types differ by Amazon Web Services Region. For more information about Region availability, see Amazon Web Services Regional Services.

Snow Family devices and their capacities.

", "CreateLongTermPricing": "

Creates a job with the long-term usage option for a device. The long-term usage is a 1-year or 3-year long-term pricing type for the device. You are billed upfront, and Amazon Web Services provides discounts for long-term pricing.

", "CreateReturnShippingLabel": "

Creates a shipping label that will be used to return the Snow device to Amazon Web Services.

", "DescribeAddress": "

Takes an AddressId and returns specific details about that address in the form of an Address object.

", @@ -14,8 +14,8 @@ "DescribeCluster": "

Returns information about a specific cluster including shipping information, cluster status, and other important metadata.

", "DescribeJob": "

Returns information about a specific job including shipping information, job status, and other important metadata.

", "DescribeReturnShippingLabel": "

Information on the shipping label of a Snow device that is being returned to Amazon Web Services.

", - "GetJobManifest": "

Returns a link to an Amazon S3 presigned URL for the manifest file associated with the specified JobId value. You can access the manifest file for up to 60 minutes after this request has been made. To access the manifest file after 60 minutes have passed, you'll have to make another call to the GetJobManifest action.

The manifest is an encrypted file that you can download after your job enters the WithCustomer status. The manifest is decrypted by using the UnlockCode code value, when you pass both values to the Snow device through the Snowball client when the client is started for the first time.

As a best practice, we recommend that you don't save a copy of an UnlockCode value in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snow device associated with that job.

The credentials of a given job, including its manifest file and unlock code, expire 360 days after the job is created.

", - "GetJobUnlockCode": "

Returns the UnlockCode code value for the specified job. A particular UnlockCode value can be accessed for up to 360 days after the associated job has been created.

The UnlockCode value is a 29-character code with 25 alphanumeric characters and 4 hyphens. This code is used to decrypt the manifest file when it is passed along with the manifest to the Snow device through the Snowball client when the client is started for the first time.

As a best practice, we recommend that you don't save a copy of the UnlockCode in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snow device associated with that job.

", + "GetJobManifest": "

Returns a link to an Amazon S3 presigned URL for the manifest file associated with the specified JobId value. You can access the manifest file for up to 60 minutes after this request has been made. To access the manifest file after 60 minutes have passed, you'll have to make another call to the GetJobManifest action.

The manifest is an encrypted file that you can download after your job enters the WithCustomer status. This is the only valid status for calling this API as the manifest and UnlockCode code value are used for securing your device and should only be used when you have the device. The manifest is decrypted by using the UnlockCode code value, when you pass both values to the Snow device through the Snowball client when the client is started for the first time.

As a best practice, we recommend that you don't save a copy of an UnlockCode value in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snow device associated with that job.

The credentials of a given job, including its manifest file and unlock code, expire 360 days after the job is created.

", + "GetJobUnlockCode": "

Returns the UnlockCode code value for the specified job. A particular UnlockCode value can be accessed for up to 360 days after the associated job has been created.

The UnlockCode value is a 29-character code with 25 alphanumeric characters and 4 hyphens. This code is used to decrypt the manifest file when it is passed along with the manifest to the Snow device through the Snowball client when the client is started for the first time. The only valid status for calling this API is WithCustomer as the manifest and Unlock code values are used for securing your device and should only be used when you have the device.

As a best practice, we recommend that you don't save a copy of the UnlockCode in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snow device associated with that job.

", "GetSnowballUsage": "

Returns information about the Snow Family service limit for your account, and also the number of Snow devices your account has in use.

The default service limit for the number of Snow devices that you can have at one time is 1. If you want to increase your service limit, contact Amazon Web Services Support.

", "GetSoftwareUpdates": "

Returns an Amazon S3 presigned URL for an update file associated with a specified JobId.

", "ListClusterJobs": "

Returns an array of JobListEntry objects of the specified length. Each JobListEntry object is for a job in the specified cluster and contains a job's state, a job's ID, and other information.

", @@ -390,7 +390,7 @@ "JavaBoolean": { "base": null, "refs": { - "CreateLongTermPricingRequest$IsLongTermPricingAutoRenew": "

Specifies whether the current long-term pricing type for the device should be renewed.

", + "CreateLongTermPricingRequest$IsLongTermPricingAutoRenew": "

snowballty

Specifies whether the current long-term pricing type for the device should be renewed.

", "LongTermPricingListEntry$IsLongTermPricingAutoRenew": "

If set to true, specifies that the current long-term pricing type for the device should be automatically renewed before the long-term pricing contract expires.

", "UpdateLongTermPricingRequest$IsLongTermPricingAutoRenew": "

If set to true, specifies that the current long-term pricing type for the device should be automatically renewed before the long-term pricing contract expires.

" } @@ -740,12 +740,12 @@ "base": null, "refs": { "ClusterMetadata$SnowballType": "

The type of Snowcone device to use for this cluster.

For cluster jobs, Amazon Web Services Snow Family currently supports only the EDGE device type.

", - "CreateClusterRequest$SnowballType": "

The type of Snow Family Devices to use for this cluster.

For cluster jobs, Amazon Web Services Snow Family currently supports only the EDGE device type.

For more information, see \"https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html\" (Snow Family Devices and Capacity) in the Snowcone User Guide or \"https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html\" (Snow Family Devices and Capacity) in the Snowcone User Guide.

", - "CreateJobRequest$SnowballType": "

The type of Snow Family Devices to use for this job.

For cluster jobs, Amazon Web Services Snow Family currently supports only the EDGE device type.

The type of Amazon Web Services Snow device to use for this job. Currently, the only supported device type for cluster jobs is EDGE.

For more information, see Snowball Edge Device Options in the Snowball Edge Developer Guide.

For more information, see \"https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html\" (Snow Family Devices and Capacity) in the Snowcone User Guide or \"https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html\" (Snow Family Devices and Capacity) in the Snowcone User Guide.

", - "CreateLongTermPricingRequest$SnowballType": "

The type of Snow Family Devices to use for the long-term pricing job.

", + "CreateClusterRequest$SnowballType": "

The type of Snow Family devices to use for this cluster.

For cluster jobs, Amazon Web Services Snow Family currently supports only the EDGE device type.

For more information, see \"https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html\" (Snow Family Devices and Capacity) in the Snowcone User Guide or \"https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html\" (Snow Family Devices and Capacity) in the Snowcone User Guide.

", + "CreateJobRequest$SnowballType": "

The type of Snow Family devices to use for this job.

For cluster jobs, Amazon Web Services Snow Family currently supports only the EDGE device type.

The type of Amazon Web Services Snow device to use for this job. Currently, the only supported device type for cluster jobs is EDGE.

For more information, see Snowball Edge Device Options in the Snowball Edge Developer Guide.

For more information, see \"https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html\" (Snow Family Devices and Capacity) in the Snowcone User Guide or \"https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html\" (Snow Family Devices and Capacity) in the Snowcone User Guide.

", + "CreateLongTermPricingRequest$SnowballType": "

The type of Snow Family devices to use for the long-term pricing job.

", "JobListEntry$SnowballType": "

The type of device used with this job.

", "JobMetadata$SnowballType": "

The type of device used with this job.

", - "LongTermPricingListEntry$SnowballType": "

The type of Snow Family Devices associated with this long-term pricing job.

" + "LongTermPricingListEntry$SnowballType": "

The type of Snow Family devices associated with this long-term pricing job.

" } }, "SnowconeDeviceConfiguration": { diff --git a/models/apis/snowball/2016-06-30/paginators-1.json b/models/apis/snowball/2016-06-30/paginators-1.json index c5d937be883..41fe5dfb462 100755 --- a/models/apis/snowball/2016-06-30/paginators-1.json +++ b/models/apis/snowball/2016-06-30/paginators-1.json @@ -6,11 +6,35 @@ "output_token": "NextToken", "result_key": "Addresses" }, + "ListClusterJobs": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "JobListEntries" + }, + "ListClusters": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "ClusterListEntries" + }, + "ListCompatibleImages": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "CompatibleImages" + }, "ListJobs": { "input_token": "NextToken", "limit_key": "MaxResults", "output_token": "NextToken", "result_key": "JobListEntries" + }, + "ListLongTermPricing": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "LongTermPricingEntries" } } } \ No newline at end of file diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 6c052bed152..0846f66745b 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -20390,7 +20390,8 @@ }, "ram" : { "endpoints" : { - "us-iso-east-1" : { } + "us-iso-east-1" : { }, + "us-iso-west-1" : { } } }, "rds" : { @@ -20865,6 +20866,11 @@ "isRegionalized" : false, "partitionEndpoint" : "aws-iso-b-global" }, + "route53resolver" : { + "endpoints" : { + "us-isob-east-1" : { } + } + }, "s3" : { "defaults" : { "protocols" : [ "http", "https" ], diff --git a/service/accessanalyzer/api.go b/service/accessanalyzer/api.go index 3a58d30ac61..1ad12ff560b 100644 --- a/service/accessanalyzer/api.go +++ b/service/accessanalyzer/api.go @@ -8122,7 +8122,7 @@ func (s *ResourceNotFoundException) RequestID() string { // for an existing bucket, the access preview uses the proposed access point // configuration in place of the existing access points. To propose an access // point without a policy, you can provide an empty string as the access point -// policy. For more information, see Creating access points (https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonS3/latest/dev/creating-access-points.html). +// policy. For more information, see Creating access points (https://docs.aws.amazon.com/AmazonS3/latest/dev/creating-access-points.html). // For more information about access point policy limits, see Access points // restrictions and limitations (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-points-restrictions-limitations.html). type S3AccessPointConfiguration struct { @@ -10469,6 +10469,9 @@ const ( // ValidatePolicyResourceTypeAwsS3objectLambdaAccessPoint is a ValidatePolicyResourceType enum value ValidatePolicyResourceTypeAwsS3objectLambdaAccessPoint = "AWS::S3ObjectLambda::AccessPoint" + + // ValidatePolicyResourceTypeAwsIamAssumeRolePolicyDocument is a ValidatePolicyResourceType enum value + ValidatePolicyResourceTypeAwsIamAssumeRolePolicyDocument = "AWS::IAM::AssumeRolePolicyDocument" ) // ValidatePolicyResourceType_Values returns all elements of the ValidatePolicyResourceType enum @@ -10478,6 +10481,7 @@ func ValidatePolicyResourceType_Values() []string { ValidatePolicyResourceTypeAwsS3AccessPoint, ValidatePolicyResourceTypeAwsS3MultiRegionAccessPoint, ValidatePolicyResourceTypeAwsS3objectLambdaAccessPoint, + ValidatePolicyResourceTypeAwsIamAssumeRolePolicyDocument, } } diff --git a/service/ec2/api.go b/service/ec2/api.go index 0cd8a5948b0..2bf30147e04 100644 --- a/service/ec2/api.go +++ b/service/ec2/api.go @@ -52152,10 +52152,10 @@ type AnalysisLoadBalancerListener struct { _ struct{} `type:"structure"` // [Classic Load Balancers] The back-end port for the listener. - InstancePort *int64 `locationName:"instancePort" min:"1" type:"integer"` + InstancePort *int64 `locationName:"instancePort" type:"integer"` // The port on which the load balancer is listening. - LoadBalancerPort *int64 `locationName:"loadBalancerPort" min:"1" type:"integer"` + LoadBalancerPort *int64 `locationName:"loadBalancerPort" type:"integer"` } // String returns the string representation. @@ -52202,7 +52202,7 @@ type AnalysisLoadBalancerTarget struct { Instance *AnalysisComponent `locationName:"instance" type:"structure"` // The port on which the target is listening. - Port *int64 `locationName:"port" min:"1" type:"integer"` + Port *int64 `locationName:"port" type:"integer"` } // String returns the string representation. @@ -66764,7 +66764,7 @@ type CreateNetworkInsightsPathInput struct { DestinationIp *string `type:"string"` // The destination port. - DestinationPort *int64 `min:"1" type:"integer"` + DestinationPort *int64 `type:"integer"` // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have @@ -66814,9 +66814,6 @@ func (s *CreateNetworkInsightsPathInput) Validate() error { if s.Destination == nil { invalidParams.Add(request.NewErrParamRequired("Destination")) } - if s.DestinationPort != nil && *s.DestinationPort < 1 { - invalidParams.Add(request.NewErrParamMinValue("DestinationPort", 1)) - } if s.Protocol == nil { invalidParams.Add(request.NewErrParamRequired("Protocol")) } @@ -85380,6 +85377,14 @@ type DescribeImageAttributeOutput struct { // The ID of the AMI. ImageId *string `locationName:"imageId" type:"string"` + // If v2.0, it indicates that IMDSv2 is specified in the AMI. Instances launched + // from this AMI will have HttpTokens automatically set to required so that, + // by default, the instance requires that IMDSv2 is used when requesting instance + // metadata. In addition, HttpPutResponseHopLimit is set to 2. For more information, + // see Configure the AMI (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration) + // in the Amazon Elastic Compute Cloud User Guide. + ImdsSupport *AttributeValue `locationName:"imdsSupport" type:"structure"` + // The kernel ID. KernelId *AttributeValue `locationName:"kernel" type:"structure"` @@ -85457,6 +85462,12 @@ func (s *DescribeImageAttributeOutput) SetImageId(v string) *DescribeImageAttrib return s } +// SetImdsSupport sets the ImdsSupport field's value. +func (s *DescribeImageAttributeOutput) SetImdsSupport(v *AttributeValue) *DescribeImageAttributeOutput { + s.ImdsSupport = v + return s +} + // SetKernelId sets the KernelId field's value. func (s *DescribeImageAttributeOutput) SetKernelId(v *AttributeValue) *DescribeImageAttributeOutput { s.KernelId = v @@ -105569,7 +105580,7 @@ type Explanation struct { LoadBalancerArn *string `locationName:"loadBalancerArn" min:"1" type:"string"` // The listener port of the load balancer. - LoadBalancerListenerPort *int64 `locationName:"loadBalancerListenerPort" min:"1" type:"integer"` + LoadBalancerListenerPort *int64 `locationName:"loadBalancerListenerPort" type:"integer"` // The target. LoadBalancerTarget *AnalysisLoadBalancerTarget `locationName:"loadBalancerTarget" type:"structure"` @@ -105581,7 +105592,7 @@ type Explanation struct { LoadBalancerTargetGroups []*AnalysisComponent `locationName:"loadBalancerTargetGroupSet" locationNameList:"item" type:"list"` // The target port. - LoadBalancerTargetPort *int64 `locationName:"loadBalancerTargetPort" min:"1" type:"integer"` + LoadBalancerTargetPort *int64 `locationName:"loadBalancerTargetPort" type:"integer"` // The missing component. MissingComponent *string `locationName:"missingComponent" type:"string"` @@ -105596,7 +105607,7 @@ type Explanation struct { PacketField *string `locationName:"packetField" type:"string"` // The port. - Port *int64 `locationName:"port" min:"1" type:"integer"` + Port *int64 `locationName:"port" type:"integer"` // The port ranges. PortRanges []*PortRange `locationName:"portRangeSet" locationNameList:"item" type:"list"` @@ -115016,6 +115027,14 @@ type Image struct { // The type of image. ImageType *string `locationName:"imageType" type:"string" enum:"ImageTypeValues"` + // If v2.0, it indicates that IMDSv2 is specified in the AMI. Instances launched + // from this AMI will have HttpTokens automatically set to required so that, + // by default, the instance requires that IMDSv2 is used when requesting instance + // metadata. In addition, HttpPutResponseHopLimit is set to 2. For more information, + // see Configure the AMI (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration) + // in the Amazon Elastic Compute Cloud User Guide. + ImdsSupport *string `locationName:"imdsSupport" type:"string" enum:"ImdsSupportValues"` + // The kernel associated with the image, if any. Only applicable for machine // images. KernelId *string `locationName:"kernelId" type:"string"` @@ -115176,6 +115195,12 @@ func (s *Image) SetImageType(v string) *Image { return s } +// SetImdsSupport sets the ImdsSupport field's value. +func (s *Image) SetImdsSupport(v string) *Image { + s.ImdsSupport = &v + return s +} + // SetKernelId sets the KernelId field's value. func (s *Image) SetKernelId(v string) *Image { s.KernelId = &v @@ -142169,6 +142194,17 @@ type RegisterImageInput struct { // in the Amazon S3 Service Developer Guide. ImageLocation *string `type:"string"` + // Set to v2.0 to indicate that IMDSv2 is specified in the AMI. Instances launched + // from this AMI will have HttpTokens automatically set to required so that, + // by default, the instance requires that IMDSv2 is used when requesting instance + // metadata. In addition, HttpPutResponseHopLimit is set to 2. For more information, + // see Configure the AMI (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration) + // in the Amazon Elastic Compute Cloud User Guide. + // + // If you set the value to v2.0, make sure that your AMI software can support + // IMDSv2. + ImdsSupport *string `type:"string" enum:"ImdsSupportValues"` + // The ID of the kernel. KernelId *string `locationName:"kernelId" type:"string"` @@ -142295,6 +142331,12 @@ func (s *RegisterImageInput) SetImageLocation(v string) *RegisterImageInput { return s } +// SetImdsSupport sets the ImdsSupport field's value. +func (s *RegisterImageInput) SetImdsSupport(v string) *RegisterImageInput { + s.ImdsSupport = &v + return s +} + // SetKernelId sets the KernelId field's value. func (s *RegisterImageInput) SetKernelId(v string) *RegisterImageInput { s.KernelId = &v @@ -167939,6 +167981,9 @@ const ( // ImageAttributeNameLastLaunchedTime is a ImageAttributeName enum value ImageAttributeNameLastLaunchedTime = "lastLaunchedTime" + + // ImageAttributeNameImdsSupport is a ImageAttributeName enum value + ImageAttributeNameImdsSupport = "imdsSupport" ) // ImageAttributeName_Values returns all elements of the ImageAttributeName enum @@ -167955,6 +168000,7 @@ func ImageAttributeName_Values() []string { ImageAttributeNameTpmSupport, ImageAttributeNameUefiData, ImageAttributeNameLastLaunchedTime, + ImageAttributeNameImdsSupport, } } @@ -168014,6 +168060,18 @@ func ImageTypeValues_Values() []string { } } +const ( + // ImdsSupportValuesV20 is a ImdsSupportValues enum value + ImdsSupportValuesV20 = "v2.0" +) + +// ImdsSupportValues_Values returns all elements of the ImdsSupportValues enum +func ImdsSupportValues_Values() []string { + return []string{ + ImdsSupportValuesV20, + } +} + const ( // InstanceAttributeNameInstanceType is a InstanceAttributeName enum value InstanceAttributeNameInstanceType = "instanceType" diff --git a/service/snowball/api.go b/service/snowball/api.go index 4aff56ab8ba..31612933af5 100644 --- a/service/snowball/api.go +++ b/service/snowball/api.go @@ -436,7 +436,7 @@ func (c *Snowball) CreateJobRequest(input *CreateJobInput) (req *request.Request // information about Region availability, see Amazon Web Services Regional Services // (https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/?p=ngi&loc=4). // -// Snow Family Devices and their capacities. +// Snow Family devices and their capacities. // // - Snow Family device type: SNC1_SSD Capacity: T14 Description: Snowcone // @@ -454,6 +454,9 @@ func (c *Snowball) CreateJobRequest(input *CreateJobInput) (req *request.Request // - Device type: EDGE Capacity: T100 Description: Snowball Edge Storage // Optimized with EC2 Compute // +// - Device type: V3_5C Capacity: T32 Description: Snowball Edge Compute +// Optimized without GPU +// // - Device type: STANDARD Capacity: T50 Description: Original Snowball device // This device is only available in the Ningxia, Beijing, and Singapore Amazon // Web Services Region @@ -1219,9 +1222,12 @@ func (c *Snowball) GetJobManifestRequest(input *GetJobManifestInput) (req *reque // action. // // The manifest is an encrypted file that you can download after your job enters -// the WithCustomer status. The manifest is decrypted by using the UnlockCode -// code value, when you pass both values to the Snow device through the Snowball -// client when the client is started for the first time. +// the WithCustomer status. This is the only valid status for calling this API +// as the manifest and UnlockCode code value are used for securing your device +// and should only be used when you have the device. The manifest is decrypted +// by using the UnlockCode code value, when you pass both values to the Snow +// device through the Snowball client when the client is started for the first +// time. // // As a best practice, we recommend that you don't save a copy of an UnlockCode // value in the same location as the manifest file for that job. Saving these @@ -1320,7 +1326,9 @@ func (c *Snowball) GetJobUnlockCodeRequest(input *GetJobUnlockCodeInput) (req *r // The UnlockCode value is a 29-character code with 25 alphanumeric characters // and 4 hyphens. This code is used to decrypt the manifest file when it is // passed along with the manifest to the Snow device through the Snowball client -// when the client is started for the first time. +// when the client is started for the first time. The only valid status for +// calling this API is WithCustomer as the manifest and Unlock code values are +// used for securing your device and should only be used when you have the device. // // As a best practice, we recommend that you don't save a copy of the UnlockCode // in the same location as the manifest file for that job. Saving these separately @@ -1559,6 +1567,12 @@ func (c *Snowball) ListClusterJobsRequest(input *ListClusterJobsInput) (req *req Name: opListClusterJobs, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -1615,6 +1629,57 @@ func (c *Snowball) ListClusterJobsWithContext(ctx aws.Context, input *ListCluste return out, req.Send() } +// ListClusterJobsPages iterates over the pages of a ListClusterJobs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListClusterJobs method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListClusterJobs operation. +// pageNum := 0 +// err := client.ListClusterJobsPages(params, +// func(page *snowball.ListClusterJobsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *Snowball) ListClusterJobsPages(input *ListClusterJobsInput, fn func(*ListClusterJobsOutput, bool) bool) error { + return c.ListClusterJobsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListClusterJobsPagesWithContext same as ListClusterJobsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Snowball) ListClusterJobsPagesWithContext(ctx aws.Context, input *ListClusterJobsInput, fn func(*ListClusterJobsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListClusterJobsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListClusterJobsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListClusterJobsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListClusters = "ListClusters" // ListClustersRequest generates a "aws/request.Request" representing the @@ -1645,6 +1710,12 @@ func (c *Snowball) ListClustersRequest(input *ListClustersInput) (req *request.R Name: opListClusters, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -1696,6 +1767,57 @@ func (c *Snowball) ListClustersWithContext(ctx aws.Context, input *ListClustersI return out, req.Send() } +// ListClustersPages iterates over the pages of a ListClusters operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListClusters method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListClusters operation. +// pageNum := 0 +// err := client.ListClustersPages(params, +// func(page *snowball.ListClustersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *Snowball) ListClustersPages(input *ListClustersInput, fn func(*ListClustersOutput, bool) bool) error { + return c.ListClustersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListClustersPagesWithContext same as ListClustersPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Snowball) ListClustersPagesWithContext(ctx aws.Context, input *ListClustersInput, fn func(*ListClustersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListClustersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListClustersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListClustersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListCompatibleImages = "ListCompatibleImages" // ListCompatibleImagesRequest generates a "aws/request.Request" representing the @@ -1726,6 +1848,12 @@ func (c *Snowball) ListCompatibleImagesRequest(input *ListCompatibleImagesInput) Name: opListCompatibleImages, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -1784,6 +1912,57 @@ func (c *Snowball) ListCompatibleImagesWithContext(ctx aws.Context, input *ListC return out, req.Send() } +// ListCompatibleImagesPages iterates over the pages of a ListCompatibleImages operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListCompatibleImages method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListCompatibleImages operation. +// pageNum := 0 +// err := client.ListCompatibleImagesPages(params, +// func(page *snowball.ListCompatibleImagesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *Snowball) ListCompatibleImagesPages(input *ListCompatibleImagesInput, fn func(*ListCompatibleImagesOutput, bool) bool) error { + return c.ListCompatibleImagesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListCompatibleImagesPagesWithContext same as ListCompatibleImagesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Snowball) ListCompatibleImagesPagesWithContext(ctx aws.Context, input *ListCompatibleImagesInput, fn func(*ListCompatibleImagesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListCompatibleImagesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListCompatibleImagesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListCompatibleImagesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListJobs = "ListJobs" // ListJobsRequest generates a "aws/request.Request" representing the @@ -1954,6 +2133,12 @@ func (c *Snowball) ListLongTermPricingRequest(input *ListLongTermPricingInput) ( Name: opListLongTermPricing, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -2008,6 +2193,57 @@ func (c *Snowball) ListLongTermPricingWithContext(ctx aws.Context, input *ListLo return out, req.Send() } +// ListLongTermPricingPages iterates over the pages of a ListLongTermPricing operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListLongTermPricing method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListLongTermPricing operation. +// pageNum := 0 +// err := client.ListLongTermPricingPages(params, +// func(page *snowball.ListLongTermPricingOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *Snowball) ListLongTermPricingPages(input *ListLongTermPricingInput, fn func(*ListLongTermPricingOutput, bool) bool) error { + return c.ListLongTermPricingPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListLongTermPricingPagesWithContext same as ListLongTermPricingPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Snowball) ListLongTermPricingPagesWithContext(ctx aws.Context, input *ListLongTermPricingInput, fn func(*ListLongTermPricingOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListLongTermPricingInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListLongTermPricingRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListLongTermPricingOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opUpdateCluster = "UpdateCluster" // UpdateClusterRequest generates a "aws/request.Request" representing the @@ -3334,7 +3570,7 @@ type CreateClusterInput struct { // ShippingOption is a required field ShippingOption *string `type:"string" required:"true" enum:"ShippingOption"` - // The type of Snow Family Devices to use for this cluster. + // The type of Snow Family devices to use for this cluster. // // For cluster jobs, Amazon Web Services Snow Family currently supports only // the EDGE device type. @@ -3620,7 +3856,7 @@ type CreateJobInput struct { // (Snow Family Devices and Capacity) in the Snowcone User Guide. SnowballCapacityPreference *string `type:"string" enum:"Capacity"` - // The type of Snow Family Devices to use for this job. + // The type of Snow Family devices to use for this job. // // For cluster jobs, Amazon Web Services Snow Family currently supports only // the EDGE device type. @@ -3829,6 +4065,8 @@ func (s *CreateJobOutput) SetJobId(v string) *CreateJobOutput { type CreateLongTermPricingInput struct { _ struct{} `type:"structure"` + // snowballty + // // Specifies whether the current long-term pricing type for the device should // be renewed. IsLongTermPricingAutoRenew *bool `type:"boolean"` @@ -3839,7 +4077,7 @@ type CreateLongTermPricingInput struct { // LongTermPricingType is a required field LongTermPricingType *string `type:"string" required:"true" enum:"LongTermPricingType"` - // The type of Snow Family Devices to use for the long-term pricing job. + // The type of Snow Family devices to use for the long-term pricing job. SnowballType *string `type:"string" enum:"Type"` } @@ -6614,7 +6852,7 @@ type LongTermPricingListEntry struct { // A new device that replaces a device that is ordered with long-term pricing. ReplacementJob *string `min:"39" type:"string"` - // The type of Snow Family Devices associated with this long-term pricing job. + // The type of Snow Family devices associated with this long-term pricing job. SnowballType *string `type:"string" enum:"Type"` } @@ -7918,6 +8156,9 @@ const ( // CapacityNoPreference is a Capacity enum value CapacityNoPreference = "NoPreference" + + // CapacityT32 is a Capacity enum value + CapacityT32 = "T32" ) // Capacity_Values returns all elements of the Capacity enum @@ -7931,6 +8172,7 @@ func Capacity_Values() []string { CapacityT8, CapacityT14, CapacityNoPreference, + CapacityT32, } } @@ -8207,6 +8449,9 @@ const ( // TypeSnc1Ssd is a Type enum value TypeSnc1Ssd = "SNC1_SSD" + + // TypeV35c is a Type enum value + TypeV35c = "V3_5C" ) // Type_Values returns all elements of the Type enum @@ -8219,5 +8464,6 @@ func Type_Values() []string { TypeEdgeS, TypeSnc1Hdd, TypeSnc1Ssd, + TypeV35c, } } diff --git a/service/snowball/snowballiface/interface.go b/service/snowball/snowballiface/interface.go index 5ca0c283958..808de7eccad 100644 --- a/service/snowball/snowballiface/interface.go +++ b/service/snowball/snowballiface/interface.go @@ -131,14 +131,23 @@ type SnowballAPI interface { ListClusterJobsWithContext(aws.Context, *snowball.ListClusterJobsInput, ...request.Option) (*snowball.ListClusterJobsOutput, error) ListClusterJobsRequest(*snowball.ListClusterJobsInput) (*request.Request, *snowball.ListClusterJobsOutput) + ListClusterJobsPages(*snowball.ListClusterJobsInput, func(*snowball.ListClusterJobsOutput, bool) bool) error + ListClusterJobsPagesWithContext(aws.Context, *snowball.ListClusterJobsInput, func(*snowball.ListClusterJobsOutput, bool) bool, ...request.Option) error + ListClusters(*snowball.ListClustersInput) (*snowball.ListClustersOutput, error) ListClustersWithContext(aws.Context, *snowball.ListClustersInput, ...request.Option) (*snowball.ListClustersOutput, error) ListClustersRequest(*snowball.ListClustersInput) (*request.Request, *snowball.ListClustersOutput) + ListClustersPages(*snowball.ListClustersInput, func(*snowball.ListClustersOutput, bool) bool) error + ListClustersPagesWithContext(aws.Context, *snowball.ListClustersInput, func(*snowball.ListClustersOutput, bool) bool, ...request.Option) error + ListCompatibleImages(*snowball.ListCompatibleImagesInput) (*snowball.ListCompatibleImagesOutput, error) ListCompatibleImagesWithContext(aws.Context, *snowball.ListCompatibleImagesInput, ...request.Option) (*snowball.ListCompatibleImagesOutput, error) ListCompatibleImagesRequest(*snowball.ListCompatibleImagesInput) (*request.Request, *snowball.ListCompatibleImagesOutput) + ListCompatibleImagesPages(*snowball.ListCompatibleImagesInput, func(*snowball.ListCompatibleImagesOutput, bool) bool) error + ListCompatibleImagesPagesWithContext(aws.Context, *snowball.ListCompatibleImagesInput, func(*snowball.ListCompatibleImagesOutput, bool) bool, ...request.Option) error + ListJobs(*snowball.ListJobsInput) (*snowball.ListJobsOutput, error) ListJobsWithContext(aws.Context, *snowball.ListJobsInput, ...request.Option) (*snowball.ListJobsOutput, error) ListJobsRequest(*snowball.ListJobsInput) (*request.Request, *snowball.ListJobsOutput) @@ -150,6 +159,9 @@ type SnowballAPI interface { ListLongTermPricingWithContext(aws.Context, *snowball.ListLongTermPricingInput, ...request.Option) (*snowball.ListLongTermPricingOutput, error) ListLongTermPricingRequest(*snowball.ListLongTermPricingInput) (*request.Request, *snowball.ListLongTermPricingOutput) + ListLongTermPricingPages(*snowball.ListLongTermPricingInput, func(*snowball.ListLongTermPricingOutput, bool) bool) error + ListLongTermPricingPagesWithContext(aws.Context, *snowball.ListLongTermPricingInput, func(*snowball.ListLongTermPricingOutput, bool) bool, ...request.Option) error + UpdateCluster(*snowball.UpdateClusterInput) (*snowball.UpdateClusterOutput, error) UpdateClusterWithContext(aws.Context, *snowball.UpdateClusterInput, ...request.Option) (*snowball.UpdateClusterOutput, error) UpdateClusterRequest(*snowball.UpdateClusterInput) (*request.Request, *snowball.UpdateClusterOutput)